1 2007-10-10 Markus Deuling <deuling@de.ibm.com>
3 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
4 get_regcache_arch to get at the current architecture by regcache.
6 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
8 get_regcache_arch to get at the current architecture by regcache.
10 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
11 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
12 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
13 current architecture by regcache.
15 2007-10-10 Markus Deuling <deuling@de.ibm.com>
17 * remote-mips.c (mips_wait, mips_fetch_registers)
18 (mips_store_registers): Use get_regcache_arch to get at the
19 current architecture by regcache.
21 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
22 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
23 get at the current architecture by regcache.
24 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
25 architecture by frame_info.
27 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
28 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
29 the current architecture by regcache.
31 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
32 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
33 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
34 current architecture by frame_info.
35 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
36 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
37 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
38 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
39 get at the current architecture by regcache.
41 * mips-linux-nat.c (mips_linux_register_addr)
42 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
43 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
44 (mips64_linux_regsets_fetch_registers)
45 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
46 the current architecture by regcache.
48 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
49 get at the current architecture by frame_info.
51 2007-10-10 Markus Deuling <deuling@de.ibm.com>
53 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
54 current architecture by regcache.
55 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
56 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
57 (mips_stub_frame_cache, mips_read_fp_register_single)
58 (mips_read_fp_register_double, mips_print_fp_register)
59 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
60 at the current architecture by frame_info.
61 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
62 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
63 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
64 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
65 (mips_o32_push_dummy_call, mips_o32_return_value)
66 (mips_o64_push_dummy_call, mips_o64_return_value)
67 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
70 2007-10-10 Markus Deuling <deuling@de.ibm.com>
72 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
73 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
74 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
75 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
76 (xtensa_register_write_masked, xtensa_register_read_masked)
77 (xtensa_supply_gregset, xtensa_store_return_value)
78 (xtensa_extract_return_value): Use get_regcache_arch to get at the
79 current architecture by regcache.
80 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
81 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
82 architecture by frame_info.
84 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
86 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
87 (thumb_analyze_prologue): Move pv_area_store_would_trash call
88 out of loop. Do not set cache->frameoffset.
89 (arm_scan_prologue): Use prologue-value mechanism. Do not set
90 frameoffset. Simplify framesize.
91 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
93 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
95 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
97 * target.c (update_current_target): Call setup_target_debug.
98 (push_target): Do not call it here.
100 2007-10-09 Michael Snyder <msnyder@specifix.com>
102 * MAINTAINERS: Update my email address.
104 2007-10-09 Markus Deuling <deuling@de.ibm.com>
106 * xtensa-tdep.c: Replace following current-gdbarch based macros by
108 (xtensa_pseudo_register_read)
109 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
110 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
111 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
112 (xtensa_pseudo_register_read)
113 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
114 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
115 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
116 (xtensa_frame_prev_register): NUM_AREGS.
117 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
118 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
119 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
120 (xtensa_supply_gregset, xtensa_frame_cache)
121 (xtensa_frame_prev_register): WS_REGNUM.
122 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
123 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
124 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
125 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
126 (xtensa_register_reggroup_p): REGMAP.
127 (call0_track_op): LITBASE_REGNUM.
128 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
129 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
130 (xtensa_frame_prev_register, AREG_NUMBER)
131 (xtensa_register_type): AR_BASE.
132 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
133 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
134 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
135 (xtensa_frame_cache, xtensa_frame_prev_register)
136 (xtensa_extract_return_value, xtensa_store_return_value)
137 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
138 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
139 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
140 (xtensa_frame_prev_register, xtensa_push_dummy_call)
141 (call0_frame_cache): A1_REGNUM.
142 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
143 (xtensa_push_dummy_call): A4_REGNUM.
144 (ARGS_FIRST_REG): A6_REGNUM.
145 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
146 (xtensa_frame_prev_register): A15_REGNUM.
147 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
148 them in the appropriate source file:
149 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
150 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
151 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
152 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
153 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
154 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
155 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
156 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
157 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
158 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
159 A13_REGNUM, A14_REGNUM, A15_REGNUM.
161 2007-10-09 Markus Deuling <deuling@de.ibm.com>
163 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
164 the current architecture by frame_info.
165 (h8300_frame_prev_register
166 (h8300_print_register): Replace current_gdbarch by gdbarch.
167 (h8300_print_registers_info, h8300_register_type)
168 (h8300_register_type): Likewise.
170 2007-10-09 Markus Deuling <deuling@de.ibm.com>
172 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
173 the current architecture by regcache.
174 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
175 (i386_linux_fetch_inferior_registers)
176 (i386_linux_store_inferior_registers): Likewise.
177 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
178 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
179 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
180 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
181 (i386_extract_return_value, i386_store_return_value): Likewise.
182 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
183 the current architecture by frame_info.
184 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
185 (i386_register_to_value, i386_value_to_register): Likewise.
187 2007-10-09 Markus Deuling <deuling@de.ibm.com>
189 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
190 the current architecture by regcache.
191 (monitor_store_register, monitor_store_registers): Likewise.
193 2007-10-09 Markus Deuling <deuling@de.ibm.com>
195 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
196 the current architecture by regcache.
198 2007-10-09 Markus Deuling <deuling@de.ibm.com>
200 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
203 2007-10-09 Markus Deuling <deuling@de.ibm.com>
205 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
206 architecture by frame.
207 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
208 (inside_main_func, frame_sp_unwind): Likewise.
210 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
212 * solib-svr4.c (enable_break): Add the dynamic linker also if
215 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
217 * MAINTAINERS (Write After Approval): Add self.
219 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
221 * stabsread.c (read_huge_number): Initialize local variable to 0.
223 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
225 * p-lang.h (pascal_main_name): Add declaration.
226 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
227 (GPC_MAIN_PROGRAM_NAME_2): New constants.
228 (pascal_main_name): New function.
229 * symtab.c: Include p-lang.h.
230 (find_main_name): Add call to pascal_main_name.
231 * Makefile.in (symtab.o): Add dependency on p-lang.h.
233 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
235 * stabsread.c (read_huge_number): Fix handling of octal
236 representation when the bit width is known.
237 (read_range_type): Record unsigned integral types with their size,
238 when the type size is known.
240 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
242 * MAINTAINERS (Write After Approval): Add self.
244 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
246 * breakpoint.c (print_one_breakpoint_location): ARI fix:
247 Replace asprintf by xstrprintf.
249 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
251 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
252 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
254 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
256 * linux-fork.c: Move "gdb_wait.h" include back to the position of
257 <sys/wait.h> include before last commit.
259 2007-10-08 Maciej W. Rozycki <macro@mips.com>
261 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
263 2007-10-08 Markus Deuling <deuling@de.ibm.com>
265 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
266 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
267 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
268 (store_regs_user_thread, store_regs_kernel_thread): Use
269 get_regcache_arch or get_frame_arch to get at the current architecture
270 by regcache or by frame, respectively.
272 2007-10-08 Markus Deuling <deuling@de.ibm.com>
274 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
275 (sh64_pseudo_register_read, sh64_pseudo_register_write)
276 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
277 (sh64_print_register, sh64_media_print_registers_info)
278 (sh64_compact_print_registers_info, sh64_unwind_sp)
279 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
280 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
281 (sh64_frame_prev_register): Use FRAME to recognize current
284 2007-10-08 Markus Deuling <deuling@de.ibm.com>
286 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
287 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
288 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
289 current_gdbarch by gdbarch.
290 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
291 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
292 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
293 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
294 recognize current architecture.
296 2007-10-08 Markus Deuling <deuling@de.ibm.com>
298 * remote.c (init_remote_state, fetch_register_using_p)
299 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
300 (store_register_using_P, store_registers_using_G)
301 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
302 get at the current architecture by regcache or by frame, respectively.
304 2007-10-08 Markus Deuling <deuling@de.ibm.com>
306 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
307 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
308 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
309 get_regcache_arch or get_frame_arch to get at the current architecture
310 by regcache or by frame, respectively.
311 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
312 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
313 (store_register, old_store_inferior_registers, supply_gregset)
314 (supply_fpregset, fill_fpregset): Likewise.
315 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
316 Replace current_gdbarch by gdbarch.
318 2007-10-08 Markus Deuling <deuling@de.ibm.com>
320 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
321 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
322 get_frame_arch to get at the current architecture by regcache or by
325 2007-10-08 Markus Deuling <deuling@de.ibm.com>
327 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
328 Replace current_gdbarch by gdbarch.
329 * ia64-tdep.c (ia64_frame_prev_register
330 (ia64_sigtramp_frame_prev_register)
331 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
332 get_frame_arch to get at the current architecture by regcache or by
334 * ia64-linux-nat.c (ia64_linux_fetch_register)
335 (ia64_linux_fetch_registers, ia64_linux_store_register)
336 (ia64_linux_store_registers): Likewise.
338 2007-10-08 Markus Deuling <deuling@de.ibm.com>
340 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
341 current_gdbarch by gdbarch.
342 * hppa-linux-nat.c (fetch_register, store_register)
343 (hppa_linux_fetch_inferior_registers)
344 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
345 get_frame_arch to get at the current architecture by regcache or by
347 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
348 (hppa_hpux_unwind_adjust_stub): Likewise.
349 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
350 (hppa_hpux_fetch_inferior_registers)
351 (hppa_hpux_store_inferior_registers): Likewise.
353 2007-10-08 Markus Deuling <deuling@de.ibm.com>
355 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
356 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
357 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
358 or get_frame_arch to get at the current architecture by regcache or by
360 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
361 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
362 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
363 current_gdbarch by gdbarch.
365 2007-10-08 Markus Deuling <deuling@de.ibm.com>
367 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
368 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
369 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
370 get at the current architecture by regcache or by·frame, respectively.
371 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
374 2007-10-08 Markus Deuling <deuling@de.ibm.com>
376 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
377 Use get_regcache_arch or get_frame_arch to get at the current
378 architecture by regcache or by frame, respectively.
379 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
380 * amd64-nat.c (amd64_supply_native_gregset)
381 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
383 2007-10-08 Markus Deuling <deuling@de.ibm.com>
385 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
387 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
388 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
389 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
390 get_frame_arch to get at the current architecture by regcache or by
392 * alpha-nat.c (fetch_osf_core_registers): Likewise.
394 2007-10-08 Markus Deuling <deuling@de.ibm.com>
396 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
397 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
398 current_gdbarch by gdbarch.
399 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
401 2007-10-08 Markus Deuling <deuling@de.ibm.com>
403 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
404 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
405 * regcache.c (regcache_raw_write): Use get_regcache_arch or
406 get_frame_arch to get at the current architecture by regcache or by
409 2007-10-08 Markus Deuling <deuling@de.ibm.com>
411 * findvar.c (value_of_register, locate_var_value): Use
412 get_regcache_arch or get_frame_arch to get at the current architecture
413 by regcache or by frame, respectively.
414 * findvar.c (default_value_from_register, value_from_register): Replace
415 current_gdbarch by gdbarch.
417 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
419 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
421 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
423 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
424 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
426 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
428 * remote.c (get_offsets): Only call free_symfile_segment_data if
431 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
433 * objc-exp.y: ARI fix: remove 4 PARAMS.
435 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
437 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
438 news. Mention XML support for M68K in GDB 6.7.
440 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
442 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
444 (init_vector_type): Use builtin_type_int32.
446 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
448 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
449 size to enable bi-arch generate-core-file support.
451 2007-10-02 Markus Deuling <deuling@de.ibm.com>
453 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
455 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
457 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
459 * tui/tui-win.c (tui_initialize_win): New function for
460 initializing tui's SIGWINCH signal handler.
461 * tui/tui-win.h (tui_initialize_win): Declare.
463 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
465 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
466 pointer to uintptr_t before casting to CORE_ADDR.
468 2007-10-02 Markus Deuling <deuling@de.ibm.com>
470 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
472 2007-10-02 Mark Mitchell <mark@codesourcery.com>
474 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
475 * ser-mingw.c (enum select_thread_state): New type.
476 (struct ser_console_state): Add have_started and thread_state.
477 (select_thread_wait): New function.
478 (thread_fn_type): New type.
479 (create_select_thread): New function.
480 (destroy_select_thread): Likewise.
481 (start_select_thread): Likewise.
482 (stop_select_thread): Likewise.
483 (console_select_thread): Use new functions.
484 (pipe_select_thread): Likewise.
485 (file_select_thread): Likewise.
486 (ser_console_wait_handle): Likewise.
487 (ser_console_done_wait_handle): Likewise.
488 (ser_console_close): Likewise.
489 (free_pipe_state): Likewise.
490 (pipe_wait_handle): Likewise.
491 (pipe_done_wait_handle): Likewise.
492 (struct net_windows_state): Derive from ser_console_state.
493 (net_windows_select_thread): Use new functions.
494 (net_windows_wait_handle): Likewise.
495 (net_windows_done_wait_handle): Likewise.
496 (net_windows_close): Likewise.
498 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
500 * inflow.c (terminal_ours_1): Remove useless line.
502 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
504 * mips-tdep.c (mips_read_fp_register_double): Correct check for
506 (mips_print_fp_register): Correct check for even FP registers.
507 (mips_virtual_frame_pointer): New function.
508 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
510 2007-09-30 Mike Frysinger <vapier@gentoo.org>
512 * value.h (lookup_only_internalvar): New prototype.
513 (create_internalvar): Likewise.
514 * value.c (lookup_only_internalvar): New function.
515 (create_internalvar): Likewise.
516 (lookup_internalvar): Use new lookup_only_internalvar and
517 create_internalvar functions.
518 * parse.c (write_dollar_variable): Look up $ symbols in internal
519 table first rather than last.
521 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
523 * linux-nat.c (linux_nat_new_thread): New variable.
524 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
525 linux_nat_switch_fork.
526 (lwp_list): Make public.
527 (add_lwp): Call linux_nat_new_thread.
528 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
530 (resume_callback): Clear lp->siginfo. Remove unused variable.
531 (linux_nat_resume): Assert that the LWP list is already initialized.
534 (stop_wait_callback, linux_nat_wait): Call it.
535 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
536 * linux-nat.h (struct lwp_info): Add siginfo.
537 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
540 * amd64-linux-nat.c (amd64_linux_dr): New.
541 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
542 (amd64_linux_dr_set): Take a PTID argument.
543 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
544 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
545 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
546 (amd64_linux_new_thread): New.
547 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
548 * i386-linux-nat.c (i386_linux_dr): New.
549 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
550 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
551 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
552 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
553 (i386_linux_new_thread): New.
554 (i386_linux_resume): Remove unnecessary PID check.
555 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
556 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
557 (fetch_debug_register, fetch_debug_register_pair): Delete.
558 (debug_registers): New.
559 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
560 ALL_LWPS and debug_registers.
561 (ia64_linux_new_thread): New.
562 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
563 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
564 * ppc-linux-nat.c (last_stopped_data_address): Delete.
565 (saved_dabr_value): New.
566 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
568 (ppc_linux_new_thread): New.
569 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
570 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
571 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
572 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
574 (s390_fix_watch_points): Take a PTID argument.
575 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
576 (_initialize_s390_nat): Call linux_nat_set_new_thread.
578 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
579 Jeff Johnston <jjohnstn@redhat.com>
581 * breakpoint.c (watchpoints_triggered): New.
582 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
583 Check watchpoint_triggered instead. Combine handling for software
584 and hardware watchpoints. Do not use target_stopped_data_address
585 here. Always check a watchpoint if its scope breakpoint triggers.
586 Do not stop for thread or overlay events. Improve check for
587 triggered watchpoints without a value change.
588 (watch_command_1): Insert the scope breakpoint first. Link the
589 scope breakpoint to the watchpoint.
590 * breakpoint.h (enum watchpoint_triggered): New.
591 (struct breakpoint): Add watchpoint_triggered.
592 (bpstat_stop_status): Update prototype.
593 (watchpoints_triggered): Declare.
594 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
595 (stepped_after_stopped_by_watchpoint): Delete.
596 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
597 local. Handle infwait_step_watch_state. Update calls to
598 bpstat_stop_status. Use watchpoints_triggered to check
600 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
601 (remote_stopped_data_address): Do not check it.
603 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
605 * configure.ac: Add $LIBINTL when testing libbfd.
606 * configure: Regenerated.
608 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
610 * NEW: Mention pending breakpoint changes and
611 support for breakpoints at multiple locations.
613 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
615 * arm-linux-tdep.c (arm_linux_software_single_step): New.
616 (arm_linux_init_abi): Use it.
617 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
619 * arm-tdep.h (arm_get_next_pc): Declare.
620 * Makefile.in (arm-linux-tdep.o): Update.
622 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
624 * varobj.c (install_new_value): Don't
625 call value_get_print_value when a value is
626 lazy. Update the print_value member in a
629 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
631 * breakpoint.c (create_breakpoint): Set
632 condition on each location, not on the first
633 location of breakpoint.
635 2007-09-26 Jim Blandy <jimb@codesourcery.com>
637 * remote.c (getpkt_sane): Fix error message. No animals were
638 harmed in the making of this debugger.
640 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
642 * p-typeprint.c: Fix 11 ARI reported problems.
643 (pascal_print_type): Fix 4 operator at end of line.
644 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
645 using strncmp function.
646 (pascal_type_print_base): Fix 2 operator at end of line.
647 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
648 using strncmp function.
651 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
654 dwarf2read.c (read_subroutine_type):
655 All pascal functions are prototyped.
657 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
660 p-valprint.c (pascal_val_print): correct current language check.
661 Also print array of char as strings.
664 2007-09-26 David Ung <davidu@mips.com>
665 Maciej W. Rozycki <macro@mips.com>
667 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
669 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
671 * p-exp.y: Fix 12 ARI reported problems.
672 (name_not_typename): Fix 2 operator at end of line issues.
673 (yylex): Fix 3 operator at end of line issues.
674 Replace 7 DEPRECATED_STREQ macros using strcmp function.
676 2007-09-25 David Ung <davidu@mips.com>
677 Maciej W. Rozycki <macro@mips.com>
679 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
680 rules return composite types in registers as appropriate.
682 2007-09-24 Jim Blandy <jimb@codesourcery.com>
684 * symfile.h (struct symfile_segment_data): Doc fixes.
685 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
686 Assert that we were passed some loaded segment addresses,
687 and that sections' segment numbers are valid.
688 Simplify offset calculation.
689 * remote.c (get_offsets): Clarify selection of relocate-by-segment
690 strategy, and set num_segments correctly. Delete redundant
691 assignments to do_sections.
693 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
695 * frame.c (get_prev_frame_1): Also check for PC in the same register.
697 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
699 * breakpoint.c (remove_sal): New.
700 (expand_line_sal_maybe): New.
701 (create_breakpoints): Call expand_line_sal_maybe.
702 (clear_command): Add comment.
703 (breakpoint_re_set_one): Call expand_line_sal_maybe.
704 * linespec.c (decode_indirect): Set explicit_pc to 1.
705 (decode_all_digits): Set explicit_line to 1.
706 (append_expanded_sal): New.
707 (expand_line_sal): New.
708 * linespec.h (expand_line_sal): Declare.
709 * symtab.c (init_sal): Initialize explicit_pc
711 * symtab.h (struct symtab_and_line): New fields
712 explicit_pc and explicit_line.
714 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
716 * infcall.c (call_function_by_hand): Handle language-specific
717 pass and return by reference.
719 * cp-abi.c (cp_pass_by_reference): New.
720 * cp-abi.h (cp_pass_by_reference): Declare.
721 (struct cp_abi_ops): Add pass_by_reference.
722 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
723 (init_gnuv3_ops): Set pass_by_reference.
725 * language.c (language_pass_by_reference): New.
726 (default_pass_by_reference): New.
727 (unknown_language_defn, auto_language_defn, local_language_defn): Add
728 default_pass_by_reference.
729 * langauge.h (struct language_defn): Add la_pass_by_reference.
730 (language_pass_by_reference, default_pass_by_reference): Declare.
731 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
732 * c-lang.c (c_language_defn, asm_language_defn)
733 (minimal_language_defn): Likewise.
734 (cplus_language_defn): Add cp_pass_by_reference.
735 * f-lang.c (f_language_defn): Add default_pass_by_reference.
736 * jv-lang.c (java_language_defn): Likewise.
737 * m2-lang.c (m2_language_defn): Likewise.
738 * objc-lang.c (objc_language_defn): Likewise.
739 * p-lang.c (pascal_language_defn): Likewise.
740 * scm-lang.c (scm_language_defn): Likewise
742 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
744 Allow a code breakpoint to have several locations
746 * breakpoint.h (enum enable_state): Remove the
747 bp_shlib_disabled enumerator.
748 (struct bp_location): New members shlib_disabled,
749 global_next, enabled and function_name.
750 Rename pending to condition_not_parsed.
752 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
753 (ALL_BP_LOCATIONS_SAFE): Likewise.
754 (breakpoint_enabled): Don't check for pending.
755 (condition_command): Free and update all locations of
757 (insert_bp_location): Adjust.
758 (software_breakpoint_inserted_here_p): Don't care
759 if breakpoint is enabled, as soon as it's inserted.
760 (print_it_typical): Print bpstat's location, not
761 bpstat's breakpoint's location.
762 (bpstat_stop_status): Iterate over all locations, not
764 (print_breakpoint_location): New.
765 (print_one_breakpoint): Renamed to
766 (print_one_breakpoint_location): ...this. Take
767 parameters to describe which location is being
768 printed. Modify code to properly print header
769 for several locations and individual locations.
770 (print_one_breakpoint): Print all locations.
771 (breakpoint_has_pc): New.
772 (describe_other_breakpoints): Use the above.
773 (check_duplicates): Renamed to...
774 (check_duplicates_for): .. this.
775 (check_duplicates): Use check_duplicates_for.
776 (allocate_bp_location): Adjust.
777 (set_raw_breakpoint_without_location): New,
778 extracted from set_raw_breakpoint.
779 (set_breakpoint_location_function): New.
780 (set_raw_breakpoint): Use
781 set_raw_breakpoint_without_location.
782 (make_breakpoint_permanent): Mark all locations
784 (disable_breakpoints_in_shlibs): Iterate over
786 (disable_breakpoints_in_unloaded_shlib): Likewise.
787 (re_enable_breakpoints_in_shlibs): Likewise.
788 (mention): Say "pending" when breakpoint has
789 zero locations. If breakpoint has more than one
791 (add_location_to_breakpoint): New.
792 (create_breakpoint): Accept symtabs_and_lines, not
793 symtab_and_line. Pass extra sals to
794 add_location_to_breakpoint.
795 (create_breakpoints): Pass symtabs_and_lines to
797 (break_command_1): Make pending breakpoints
799 (do_captured_breakpoint): Remove wrong allocation.
800 (clear_command): Iterate over all locations.
801 (unlink_locations_from_global_list): Renamed
802 from unlink_location_from_global_list. Remove
804 (delete_breakpoint): Remove all locations.
805 Iterate over all locations when deciding which
806 other location to re-enable.
807 (all_locations_are_pending): New.
808 (update_breakpoint_locations): Renamed from
809 update_breakpoint_location. Try to match old
810 and new locations using names of containing
812 (breakpoint_re_set_one): Adjust.
813 (find_location_by_number): New.
814 (disable_command): Allow disabling individual location.
815 (enable_command): Allow enabling individual location.
816 * breakpoint.c: Adjust all uses of breakpoint's
817 enable state to for bp_shlib_disabled change.
819 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
821 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
822 (resolve_pending_breakpoint): Remove.
823 (re_enable_breakpoints_in_shlibs): Remove.
824 (unlink_locations_from_global_list): New.
825 (update_breakpoint_locations): New.
826 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
827 Use parse_condition and update_breakpoint_location to
828 reset breakpoint. Ignore 'symbol not found' error from
830 (breakpoint_re_set): Don't emit newline before the
831 reason why breakpoint is not reset.
832 (do_enable_breakpoint): Don't specially process pending
834 (free_bp_location): New.
835 (break_command_1): For pending breakpoints, initialize
836 all fields of a sal with zeroes.
837 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
838 * infcmd.c (post_create_inferior): Don't call
839 re_enable_breakpoints_in_shlibs.
840 * infrun.c (handle_inferior_event): Likewise.
841 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
842 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
843 * win32-nat.c (get_win32_debug_event): Likewise.
845 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
847 * breakpoint.c (create_breakpoint): Split from
848 create_breakpoints, implementing most of its logic.
849 Take just a single sal, single address string and
850 single condition. Do not take parsed condition at
852 (create_breakpoints): Just call create_breakpoint
854 (find_condition_and_thread): New.
855 (break_command_1): Use find_condition_and_thread.
856 Do not keep parsed conditions.
857 (do_captured_breakpoint): Don't convert
858 condition string to struct expression.
860 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
862 * breakpoint.h (struct breakpoint): Move the cond
864 (struct bp_location): Here.
865 * breakpoint.c (condition_command, bpstat_stop_status)
866 (print_one_breakpoint, allocate_bp_location)
867 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
868 (create_exec_event_catchpoint, create_breakpoints)
869 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
870 (create_ada_exception_breakpoint, set_breakpoint_sal)
871 (delete_breakpoint, breakpoint_re_set_one): Adjust.
872 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
874 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
876 Associate bp_stat with bp_location, not breakpoint.
877 * breakpoint.h (breakpoint_at): Change type
879 * breakpoint.c (bpstat_alloc): Take bp_location,
881 (bpstat_find_breakpoint): Look at bpstat's location's
882 owner, not at bpstat->breakpoint_at.
883 (bpstat_find_step_resume_breakpoint): Likewise.
884 (bpstat_num): Likewise.
885 (print_it_typical): Likewise.
886 (print_bp_stop_message): Likewise.
887 (watchpoint_check): Likewise.
888 (bpstat_what): Likewise.
889 (bpstat_get_triggered_catchpoints): Likewise.
890 (breakpoint_auto_delete): Likewise.
891 (delete_breakpoint): Likewise.
892 (bpstat_stop_status): Pass location, not breakpoint,
893 to bpstat_alloc. Look at bpstat's location's
894 owner, not at bpstat->breakpoint_at.
896 2007-09-21 Jim Blandy <jimb@codesourcery.com>
898 * macrotab.h (new_macro_table): Document that removing information
899 from an obstack/bcache-managed macro table leaks memory.
900 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
901 that data is never freed in obstack/bcache-managed macro tables,
902 just leak the storage.
903 (macro_undef): If we're undefining a macro at exactly the same
904 source location that we defined it, simply remove the definition
907 2007-09-21 Joel Brobecker <brobecker@adacore.com>
909 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
910 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
911 Adjust the struct sym_fns object accordingly by setting
912 the new field to NULL.
913 * xcoffread.c (aix_process_linenos): Make static.
914 (xcoff_sym_fns): Set new field to aix_process_linenos.
915 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
916 by call to new the new sym_fns sym_read_linetable function.
917 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
918 * config/rs6000/tm-rs6000.h: Delete.
920 2007-09-21 David Ung <davidu@mips.com>
921 Maciej W. Rozycki <macro@mips.com>
923 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
924 rules do not treat composite types specially.
926 2007-09-20 Maciej W. Rozycki <macro@mips.com>
928 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
929 (mips16_in_function_epilogue_p): Likewise.
930 (mips_in_function_epilogue_p): Likewise.
931 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
933 2007-09-19 Joel Brobecker <brobecker@adacore.com>
935 * configure.ac: Add check for "etext".
936 * configure, config.in: Regenerate.
937 * maint.c (TEXTEND): Only define if either _etext or etext
939 Disable the profiling functionality if TEXTEND is not defined.
941 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
943 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
944 address register. Correct the call to frame_id_build.
945 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
948 2007-09-18 Joel Brobecker <brobecker@adacore.com>
950 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
951 the linetable past the function end.
953 2007-09-18 James E. Wilson <wilson@specifix.com>
955 * MAINTAINERS: Update my email address.
957 2007-09-18 Jerome Guitton <guitton@adacore.com>
959 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
960 (inf_ttrace_delete_dying_threads_callback): New function.
961 (inf_ttrace_resume): After resuming the execution, iterate over
962 the dying threads to delete them for the thread list.
963 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
964 mark the corresponding thread as dying instead of removing it
965 from the thread list.
966 (inf_ttrace_thread_alive): return 0 for dying threads.
968 2007-09-17 Joel Brobecker <brobecker@adacore.com>
970 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
971 that return_frame is not null.
973 2007-09-17 Joel Brobecker <brobecker@adacore.com>
975 * solib-svr4.c: Add include of "auxv.h".
976 (enable_break): Use the AT_BASE auxiliary entry if available.
977 * Makefile.in (solib-svr4.o): Update dependencies.
979 2007-09-17 Joel Brobecker <brobecker@adacore.com>
981 * NEWS: Create a new section for the next release branch.
982 Rename the section of the current branch, now that it has
985 2007-09-17 Jerome Guitton <guitton@adacore.com>
987 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
988 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
990 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
992 * mi/mi-cmds.c (mi_cmds): Register -list-features.
993 * mi/mi-cmds.h (mi_cmd_list_features): New.
994 * mi/mi-main.c (mi_cmd_list_features): New.
996 2007-09-11 Joel Brobecker <brobecker@adacore.com>
998 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
999 * version.in: Bump version to 6.7.50-20070911-cvs.
1001 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1003 * thread.c (free_thread): Do not delete the step resume breakpoint
1006 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1008 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
1009 * corelow.c (core_read_description): New.
1010 (init_core_ops): Set to_read_description.
1011 * gdbarch.sh: Add gdbarch_core_read_description.
1012 * mips-linux-tdep.c (mips_linux_core_read_description): New.
1013 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1014 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1015 (mips_register_g_packet_guesses): Use them.
1016 (_initialize_mips_tdep): Initialize them.
1017 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1018 * gdbarch.h, gdbarch.c: Regenerated.
1020 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1022 * infrun.c (stepping_past_breakpoint): New global variable.
1023 (stepping_past_breakpoint_ptid): Likewise.
1024 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1025 Only switch threads if we need to single-step over a breakpoint hit
1026 in the previously selected thread. If stepping, remember previous
1027 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1028 switch_to_thread instead of copying its contents.
1029 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1030 prepare_to_proceed returns true.
1031 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1032 (context_switch): Call switch_to_thread.
1033 (handle_inferior_event): Switch back to previous thread if requested
1034 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1035 * gdbthread.h (switch_to_thread): Add prototype.
1036 * thread.c (switch_to_thread): Make global.
1038 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
1040 * p-valprint.c: Fix 7 ARI reported problems.
1041 (pascal_val_print): Fix one operator at end of line issue.
1042 Use paddress function to remove use of
1043 deprecated_print_address_numeric function (2 times).
1044 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1045 (pascal_value_print): Fix 3 operator at end of line issues.
1047 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1050 * arm-tdep.c (arm_in_call_stub): Delete.
1051 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1053 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1055 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1058 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1059 Jim Blandy <jimb@codesourcery.com>
1061 * NEWS: Update description of string changes. Mention print/s.
1062 * c-valprint.c (textual_element_type): New.
1063 (c_val_print): Use it. Do not skip address printing for pointers
1064 with a string format.
1065 (c_value_print): Doc update.
1066 * dwarf2read.c (read_array_type): Use make_vector_type.
1067 * gdbtypes.c (make_vector_type): New.
1068 (init_vector_type): Use it.
1069 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1070 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1071 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1072 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1073 (make_vector_type): New.
1074 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1075 Call the language print routine for string format.
1076 (print_scalar_formatted): Call val_print for string format. Handle
1077 unsigned original types for char format.
1078 (validate_format): Do not reject string format.
1079 * stabsread.c (read_type): Use make_vector_type.
1080 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1082 2007-09-04 Michael Snyder <msnyder@access-company.com>
1084 * expprint.c (print_subexp_standard): Check strchr for null.
1085 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1087 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1089 * stabsread.c (patch_block_status): Guard against null.
1090 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1092 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1094 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1095 in internal error message.
1097 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1098 Daniel Jacobowitz <dan@codesourcery.com>
1100 * infcmd.c (post_create_inferior): Update comment.
1101 (run_command_1): Always call post_create_inferior with 0 as
1104 * i386-cygwin-tdep.h: New.
1105 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1106 (win32_xfer_shared_library): Make it extern.
1108 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1110 (win32_so_ops): Delete.
1111 (get_relocated_section_addrs): Delete.
1112 (solib_symbols_add): Delete.
1113 (register_loaded_dll): Delete.
1114 (win32_make_so): New.
1115 (handle_load_dll): Use win32_make_so.
1116 (win32_free_so): Free the passed in so.
1117 (win32_relocate_section_addresses): Delete.
1118 (win32_solib_create_inferior_hook): Delete.
1119 (handle_unload_dll): Don't add PE offset here. Free so with
1120 win32_free_so instead of free_so.
1121 (win32_special_symbol_handling): Delete.
1122 (get_win32_debug_event): Remove unneeded calls. Set state to
1123 TARGET_WAITKIND_LOADED on a dll unload.
1124 (do_initial_win32_stuff): Clear cygwin_load_start and
1126 (map_code_section_args): Delete.
1127 (dll_code_sections_add): Delete.
1128 (core_section_load_dll_symbols): Delete.
1129 (win32_xfer_shared_libraries): New.
1130 (win32_current_sos): Delete.
1131 (win32_xfer_partial): New.
1132 (open_symbol_file_object): Delete.
1133 (in_dynsym_resolve_code): Delete.
1134 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1135 of win32_ops. Remove win32_so_ops settings. Don't set
1136 current_target_so_ops here.
1138 * Makefile.in (i386_cygwin_tdep_h): New variable.
1139 (i386-cygwin-tdep.o): Update dependencies.
1140 (win32-nat.o): Update dependencies.
1142 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1143 Daniel Jacobowitz <dan@codesourcery.com>
1145 * gdbarch.sh (core_xfer_shared_libraries): New.
1147 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1149 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1151 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1152 (xml_escape_text): New.
1153 * xml-support.h (xml_escape_text): Declare.
1155 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1156 * config/i386/cygwin.mt (TDEPFILES): ... here.
1158 * win32-nat.c: (fetch_elf_core_registers): Delete.
1159 (win32_elf_core_fn): Delete.
1160 (_initialize_core_win32): Delete.
1162 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1163 "xml-support.h" and "gdbcore.h".
1164 (i386_win32_gregset_reg_offset): New.
1165 (I386_WIN32_SIZEOF_GREGSET): New.
1166 (i386_win32_regset_from_core_section): New.
1167 (win32_xfer_shared_library): New.
1168 (struct cpms_data): New.
1169 (core_process_module_section): New.
1170 (win32_core_xfer_shared_libraries): New.
1171 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1172 gregset_num_regs, sizeof_gregset members of tdep. Register
1173 regset_from_core_section and core_xfer_shared_libraries callbacks.
1175 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1176 * gdbarch.h, gdbarch.c: Regenerate.
1178 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1180 * corelow.c (core_xfer_partial): Pass writebuf to
1181 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1183 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1185 * arm-tdep.h (arm_skip_stub): Declare.
1186 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1188 (arm_pe_skip_trampoline_code): New function.
1189 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1190 gdbarch_skip_trampoline_code callback.
1191 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1193 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1195 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1197 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1199 * configure.ac: Add --with-expat.
1200 * configure: Regenerated.
1202 2007-09-03 Andreas Schwab <schwab@suse.de>
1204 * configure.ac: Accept --with-system-readline.
1205 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1206 * configure: Regenerate.
1207 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1209 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1211 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1212 Daniel Jacobowitz <dan@codesourcery.com>
1214 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1216 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1218 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1220 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1222 * top.c (print_gdb_version): Update for GPL version 3.
1224 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1226 * NEWS: Mention the build-id .debug files verification.
1228 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1230 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1232 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1234 * Makefile.in (symfile.o): Update dependencies.
1235 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1236 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1237 (struct build_id): New structure.
1238 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1239 (find_separate_debug_file): New variable BUILD_ID.
1240 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1242 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1244 * varobj.c (struct varobj): Fix comment
1245 for the type member not to lie when it can be
1248 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1250 Implement -var-info-path-expression.
1252 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1254 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1255 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1256 * varobj.c (struct varobj): New field 'path_expr'.
1257 (c_path_expr_of_child, cplus_path_expr_of_child)
1258 (java_path_expr_of_child): New.
1259 (struct language_specific): New field path_expr_of_child.
1260 (varobj_create): Initialize the path_expr field.
1261 (varobj_get_path_expr): New.
1262 (new_variable): Initialize the path_expr field.
1263 (free_variable): Free the path_expr field.
1264 (adjust_value_for_children_access): New parameter
1266 (c_number_of_children): Adjust.
1267 (c_describe_child): New parameter CFULL_EXPRESSION.
1268 Compute full expression.
1269 (c_value_of_child, c_type_of_child): Adjust.
1270 (cplus_number_of_children): Adjust.
1271 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1272 Compute full expression.
1273 (cplus_name_of_child, cplus_value_of_child)
1274 (cplus_type_of_child): Adjust.
1275 * varobj.h (varobj_get_path_expr): Declare.
1277 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1279 * mi/mi-cmd-var.c (print_varobj): If a varobj
1280 type is NULL, don't try to print it.
1282 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1284 * ppc-linux-nat.c (right_fill_reg): Delete.
1285 (supply_gregset): Use ppc_supply_gregset.
1286 (supply_fpregset): Use ppc_supply_fpregset.
1287 (fill_gregset): Use ppc_collect_gregset.
1288 (fill_fpregset): Use ppc_collect_fpregset.
1289 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1290 (right_supply_register, ppc_linux_supply_gregset): Delete.
1291 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1292 (ppc_linux_supply_fpregset): Delete.
1293 (ppc_linux_collect_gregset): New function.
1294 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1295 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1296 ppc_linux_supply_gregset, and ppc_collect_gregset.
1297 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1298 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1299 (ppc_linux_regset_from_core_section): Update.
1300 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1301 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1302 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1303 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1304 (ppcobsd_collect_gregset): Likewise.
1305 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1306 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1307 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1308 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1309 (rs6000_aix64_reg_offsets): Likewise.
1310 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1311 ppc_floating_point_unit_p.
1312 (rs6000_aix_collect_regset): Similarly.
1313 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1314 when regsize is larger than regcache register size.
1315 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1316 regcache register size.
1317 (ppc_greg_offset): New function, split out from..
1318 (ppc_supply_gregset): ..here. Separate code handling all regs from
1319 single reg case. Correct xer offset.
1320 (ppc_fpreg_offset): New function, split out from..
1321 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1323 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1324 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1325 a fp unit, instead return if no fp.
1327 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1329 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1330 this code has not been compiled for two years.
1332 2007-08-29 Michael Snyder <msnyder@access-company.com>
1334 * event-top.c (gdb_readline2): Return after EOF.
1336 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1338 * symtab.c: Remove a function that has been commented out 3 years ago.
1340 2007-08-29 Randolph Chung <tausq@debian.org>
1342 * hppa-tdep.c (hppa32_cannot_fetch_register)
1343 (hppa64_cannot_fetch_register): New functions.
1344 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1345 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1347 2007-08-28 Michael Snyder <msnyder@access-company.com>
1349 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1350 check for null before calling check_typedef.
1352 * NEWS: Mention Coverity bug fixes.
1354 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1356 * spu-tdep.c (spu_pointer_to_address): New function.
1357 (spu_integer_to_address): Likewise.
1358 (spu_gdbarch_init): Add spu_pointer_to_address and
1359 spu_integer_to_address to gdbarch.
1361 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1363 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1365 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1367 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1368 that contains the GDB license.
1369 * copying.awk: Adjust to the GPLv3 wording.
1370 * copying.c: Regenerate.
1372 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1374 * copying.awk: Protoization, and i18n markup.
1376 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1378 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1379 * copyright.sh: Likewise.
1380 * gdb-events.sh: Likewise.
1381 * gdb_gcore.sh: Likewise.
1382 * gdb_mbuild.sh: Likewise.
1383 * gdbarch.sh: Likewise.
1384 * observer.sh: Likewise.
1385 * features/feature_to_c.sh: Likewise.
1386 * regformats/regdat.sh: Likewise.
1388 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1390 Switch the license of all .c files to GPLv3.
1391 Switch the license of all .h files to GPLv3.
1392 Switch the license of all .cc files to GPLv3.
1394 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1396 * configure.ac: Switch license to GPLv3.
1398 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1400 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1401 determine the file's FPU type.
1403 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1405 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1406 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1407 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1409 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1411 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1413 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1414 (elf_lookup_lib_symbol): Fix formatting.
1416 2007-08-21 Michael Snyder <msnyder@access-company.com>
1418 * dbxread.c (read_dbx_symtab): Guard null deref.
1421 * valops.c (find_overload_match): Guard against NULL.
1423 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1425 * MAINTAINERS (Patch Champions): Remove self.
1427 2007-08-21 Chris Smith <chris.smith@st.com>
1429 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1432 2007-08-18 Michael Snyder <msnyder@access-company.com>
1434 * stabsread.c (dbx_lookup_type): Memory leak.
1436 * event-loop.c (delete_async_signal_handler): Move pointer null
1437 test to before pointer dereference.
1439 * ui-out.c (append_header_to_list): Possible cut and paste error.
1441 * MAINTAINERS: white space tweak.
1443 2007-08-17 Michael Snyder <msnyder@access-company.com>
1445 * stack.c (print_frame): Memory leak.
1447 * completer.c (filename_completer): Avoid memory leak.
1448 Remove unnecessary nested block.
1450 * c-exp.y (parse_number): Memory leak.
1452 * completer.c (location_completer): Must free 'fn_list', except
1453 in the one case where it is returned (as 'list').
1455 * varobj.c (value_of_root): Memory leak.
1457 * gdbtypes.h (virtual_base_list): Remove export decl.
1458 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1459 (virtual_base_index): Memory leak.
1460 (virtual_base_index_skip_primaries): Ditto.
1462 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1464 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1465 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1466 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1467 (xtensa_read_register): New function.
1468 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1469 (xtensa_insn_kind): New types.
1470 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1471 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1472 (xtensa_verify_config, xtensa_pseudo_register_read)
1473 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1474 (xtensa_store_return_value)
1475 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1476 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1477 (xtensa_frame_this_id, xtensa_frame_prev_register)
1478 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1479 (call0_frame_cache, call0_frame_get_reg_at_entry)
1480 (call0_classify_opcode, call0_track_op)
1481 (call0_analyze_prologue, call0_frame_cache): New functions.
1483 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1485 * breakpoint.c (bpstat_free): New.
1486 (bpstat_clear): Use bpstat_free.
1487 (delete_breakpoint): Document why we cannot
1488 remove bpstats from stop_bpstat.
1489 * breakpoint.h (bpstat_free): Declare.
1491 2007-08-16 Michael Snyder <msnyder@access-company.com>
1493 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1495 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1496 Joel Brobecker <brobecker@adacore.com>
1498 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1500 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1501 Joel Brobecker <brobecker@adacore.com>
1503 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1504 checkin guarding against NULL.
1506 2007-08-14 Michael Snyder <msnyder@access-company.com>
1508 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1509 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1510 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1511 go at beginning of new line.
1513 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1514 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1515 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1516 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1517 tui-winsource.h, tui.c, tui.h: Function declarations and
1518 definitions, wrap long lines.
1520 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1521 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1522 Reformat block comments to GNU standard.
1524 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1525 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1526 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1527 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1528 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1529 spaces after periods, etc).
1531 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1532 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1533 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1534 tui-winsource.h: Whitespace changes, fix pointer declarations
1537 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1538 Michael Snyder <msnyder@access-company.com>
1540 * ada-lang.c (field_alignment): Guard against NULL.
1542 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1544 * MAINTAINERS (Global Maintainers): Add self.
1546 2007-08-14 Michael Snyder <msnyder@access-company.com>
1548 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1550 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1552 * varobj.c (cplus_describe_child): Guard against null.
1553 Use "NULL" instead of "0" to initialize pointers.
1555 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1557 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1558 to match any gdbarch with matching OSABI. Set default ABI and FPU
1559 after running the OSABI handler.
1561 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1563 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1564 * config/i386/linux.mt (TDEPFILES): ...to here.
1566 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1568 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1569 the 'silent' parameter and code to implement that.
1570 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1572 * win32-nat.c: Adjust.
1575 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1577 * breakpoint.c (update_breakpoints_after_exec): Don't
1578 set address to zero.
1580 2007-08-13 Michael Snyder <msnyder@access-company.com>
1582 * valops.c: Whitespace clean-up.
1584 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1586 * event-top.c (command_line_handler): Memory leak.
1588 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1589 No need to make copy.
1591 * source.c (find_source_lines): Require symtab 's'.
1593 2007-08-11 Michael Snyder <msnyder@access-company.com>
1595 * completer.c: Spelling fix in comments.
1597 2007-08-10 Michael Snyder <msnyder@access-company.com>
1599 * gdbtypes.c: Coding standard cleanup.
1600 * gdbtypes.c: Comment/whitespace cleanup.
1602 * stabsread.c (read_huge_number): Attempt to compute value before
1603 values that it depends on.
1605 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1606 (decode_objc): Use "NULL" instead of 0.
1607 (find_method): Ditto.
1608 (decode_all_digits): Ditto.
1609 (decode_dollar): Ditto.
1611 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1613 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1615 * solib-svr4.c (enable_break): Don't free tmp_pathname until
1618 * completer.c: Comment/whitespace cleanup.
1620 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1622 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1624 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
1626 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1627 allocated file descriptors.
1629 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1631 * Makefile.in: Minor cleanup throughout; add some missing variables,
1632 add some missing rules, remove some rules that are no longer needed,
1633 and fix the dependencies in several rules.
1635 2007-08-10 Ludovic Courtès <ludo@gnu.org>
1637 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
1638 (scm_lang_h, scm_tags_h): New.
1639 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
1640 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
1641 * defs.h (enum language): Add `language_scm'.
1643 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
1646 2007-08-09 Ludovic Courtès <ludo@gnu.org>
1648 * MAINTAINERS (Write After Approval): Add myself.
1650 2007-08-09 Michael Snyder <msnyder@access-company.com>
1652 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
1654 2007-08-09 Joel Brobecker <brobecker@adacore.com>
1656 * solib-som.c (som_relocate_section_addresses): Stop saving
1657 the $CODE$ section in the so_list structure.
1659 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
1661 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
1662 (xtensa_register_group_t): Add entries for coprocessors.
1663 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
1664 (xtensa_add_reggroups): Likewise.
1665 (xtensa_register_reggroup_p): Likewise.
1666 (xtensa_coprocessor_register_group): New function.
1669 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1671 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
1673 2007-08-08 Michael Snyder <msnyder@access-company.com>
1675 * target.c (target_read_string): Guard against null.
1677 * varobj.c (value_of_root): Move alloc after return to avoid leak.
1679 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
1680 (tui_set_layout_for_display_command): Mem leak.
1682 * top.c (command_line_input): Memory leak.
1684 * solib-svr4.c (open_symbol_file_object): Memory leak.
1685 (svr4_current_sos): Ditto.
1686 (enable_break): Ditto.
1688 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
1690 * dwarf2read.c (add_partial_symbol): Memory leak.
1692 2007-08-06 Michael Snyder <msnyder@access-company.com>
1694 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
1696 2007-08-05 Jim Blandy <jimb@codesourcery.com>
1698 * macroexp.c (init_buffer): Remove testing code that overrides the
1699 caller's length guess.
1700 (gather_arguments): Use a larger initial size, now that the vector
1701 growth code has been exercised.
1703 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
1705 * solib-target.c (solib_target_relocate_section_addresses): Add
1706 orig_delta to addr_high.
1708 2007-08-04 Michael Snyder <msnyder@access-company.com>
1710 * remote-fileio.c (remote_fileio_func_write): Memory leak.
1712 * breakpoint.c (print_one_breakpoint): Off by one error.
1714 * tracepoint.c (add_register): Off by one error.
1715 (stringify_collection_list): Free malloc buffer.
1717 2007-08-03 Michael Snyder <msnyder@access-company.com>
1719 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
1720 stop memory leak, straighten out cleanups.
1722 * jv-lang.c (java_link_class_type): Guard against NULL.
1724 2007-08-02 Michael Snyder <msnyder@access-company.com>
1726 * gdbtypes.c (create_set_type): Test should only be done within
1727 the preceeding if block. Otherwise, variable is uninitialized.
1729 * gdbtypes.c (check_typedef): Guard NULL.
1731 2007-08-01 Michael Snyder <msnyder@access-company.com>
1733 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
1734 avoid dereference in lookup_cmd_1.
1736 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
1737 clean up long lines.
1738 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
1739 (tui_alloc_win_info): Ditto.
1740 (tui_add_content_elements): Ditto.
1741 * tui/tui-file.c (tui_file_magic): Ditto.
1743 2007-07-31 Michael Snyder <msnyder@access-company.com>
1745 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
1746 True and false paths are mutually exclusive.
1748 * event-top.c (command_line_handler): Add pedantic return.
1750 * f-valprint.c (info_common_command): Bail out to prevent null
1751 pointer deref. Break up a long line.
1753 * exec.c (xfer_memory): Remove redundant condition from 'if'.
1755 * symfile.c (reread_separate_symbols): Free xmalloced memory.
1757 * printcmd.c (build_address_symbolic): Remove dead code and dead
1760 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
1762 * linespec.c (minsym_found): Advance to the next line if possible.
1764 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
1766 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
1767 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
1768 solib-svr4.o, and add solib-target.o
1770 2007-07-27 Michael Snyder <msnyder@access-company.com>
1772 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
1774 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
1776 * MAINTAINERS (Write After Approval): Add myself.
1778 2007-07-26 Maciej W. Rozycki <macro@mips.com>
1780 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
1783 2007-07-25 Maciej W. Rozycki <macro@mips.com>
1785 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
1787 2007-07-24 Michael Snyder <msnyder@access-company.com>
1789 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
1790 'buffer' must cover both branches that call strcmp (Coverity).
1792 * stack.c (print_frame_args): Check return value of lookup_symbol.
1794 * ax-gdb.c (find_field): Guard against null ptr.
1796 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1798 * regformats/reg-spu.dat: Fix order of npc, id registers.
1800 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1802 * target.c (memory_xfer_partial): Accesses to unmapped overlay
1803 sections should always go to the executable file.
1805 2004-07-20 Chris Dearman <chris@mips.com>
1807 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
1808 prologue instructions.
1810 2007-07-20 Maciej W. Rozycki <macro@mips.com>
1812 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
1815 2007-07-20 Chris Dearman <chris@mips.com>
1816 Maciej W. Rozycki <macro@mips.com>
1818 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
1821 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
1822 Daniel Jacobowitz <dan@codesourcery.com>
1824 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
1825 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
1827 * NEWS: Mention gdbserver DLL support.
1829 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
1831 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
1833 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
1835 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
1838 2007-07-13 Kevin Buettner <kevinb@redhat.com>
1840 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
1843 2007-07-12 Kevin Buettner <kevinb@redhat.com>
1845 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
1846 (mep_analyze_prologue): Add case for BRA instruction.
1848 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
1850 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
1852 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
1854 * breakpoint.c: Include "top.h".
1855 (breakpoint_1): Don't set convenience variable $_ if server prefix
1857 (_initialize_breakpoint): Describe this behaviour in command help.
1859 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
1861 * solib-target.c (library_list_start_segment): Cast address to
1864 2007-07-06 Mark Kettenis <kettenis@gnu.org>
1866 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
1867 for terminated processes.
1869 2007-07-05 Michael Snyder <msnyder@access-company.com>
1871 * event-top.c (cli_command_loop): Prompt string can (and should)
1872 be freed after call to readline (Coverity). Also move local var
1873 declarations into block where they are used.
1875 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
1876 should) be freed after call to readline (Coverity). Also move
1877 local var declarations into block where they are used.
1879 2007-07-03 Andreas Schwab <schwab@suse.de>
1881 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
1884 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
1885 Thiago Bauermann <bauerman@br.ibm.com>
1886 Joseph S. Myers <joseph@codesourcery.com>
1887 Daniel Jacobowitz <dan@codesourcery.com>
1889 * remote.c (remote_check_symbols): Use
1890 gdbarch_convert_from_func_ptr_addr.
1891 * infcall.c (find_function_addr): Handle function descriptors
1892 without debugging information.
1893 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
1894 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
1895 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
1896 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
1897 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
1898 allow SEC_CODE and SEC_DATA.
1899 (enable_break): Update calls. Pass current_target to solib_add.
1900 Use gdbarch_convert_from_func_ptr_addr.
1902 2007-07-03 Ilko Iliev <iliev@ronetix.at>
1903 Daniel Jacobowitz <dan@codesourcery.com>
1905 * symfile.c (print_transfer_performance): Avoid integer overflow.
1908 2007-07-03 Markus Deuling <deuling@de.ibm.com>
1910 * cp-namespace.c (lookup_symbol_file): Add block to
1911 lookup_symbol_global call.
1912 * Makefile.in (solist_h): Add dependency on symtab header.
1913 (symtab.o): Add dependency on solist header.
1914 * solib.c (solib_global_lookup): New function.
1915 * solib-svr4.c (scan_dyntag): Likewise.
1916 (elf_locate_base): Call helper routine scan_dyntag.
1917 (elf_lookup_lib_symbol): New function.
1918 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
1919 * solist.h (symtab.h): New include.
1920 (struct target_so_ops): New member lookup_lib_global_symbol.
1921 (solib_global_lookup): New prototype.
1922 * symtab.c: New include solist.h.
1923 (lookup_objfile_from_block): New function.
1924 (lookup_global_symbol_from_objfile): New function.
1925 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
1926 (lookup_symbol_global): Call library-specific lookup procedure.
1927 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
1929 * NEWS: Document framework.
1931 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1933 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
1936 * cli/cli-script.c (build_command_line): Update NULL check.
1938 2007-07-02 Michael Snyder <msnyder@access-company.com>
1940 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
1942 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1944 * Makefile.in (XMLFILES): Add library-list.dtd.
1945 (ALLDEPFILES): Add solib-target.o.
1946 (solib-target.o): New rule.
1947 * remote.c (PACKET_qXfer_libraries): New constant.
1948 (remote_protocol_features): Add qXfer:libraries:read.
1949 (remote_wait): Recognize library stop replies.
1950 (remote_async_wait): Likewise. Fix typo.
1951 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1952 (init_remote_async_ops): Fix typo.
1953 (_initialize_remote): Register "set remote library-info-packet".
1954 * solib-som.c (som_current_sos): Set addr_low and addr_high.
1955 * solib-target.c: New file.
1956 * solib.c (solib_map_sections): Use addr_low and addr_high instead
1958 (info_sharedlibrary_command): Likewise.
1959 (solib_add_library, solib_remove_library): New.
1960 * solist.h (struct so_list): Replace textsection with addr_low and
1962 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
1963 * NEWS: Describe new qXfer:libraries:read and shared library
1965 * features/library-list.dtd: New.
1967 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1969 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
1970 (start_remote): Use STOP_QUIETLY_REMOTE.
1971 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
1972 support on a SOLIB_ADD definition. Update breakpoints_inserted.
1973 Update to match shared library event breakpoint support. Only
1974 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
1975 (normal_stop): Handle TARGET_WAITKIND_LOADED.
1976 * fork-child.c (startup_inferior): Do not set
1977 inferior_ignoring_startup_exec_events
1978 * inferior.h (inferior_ignoring_startup_exec_events): Delete
1980 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
1982 2007-07-02 Markus Deuling <deuling@de.ibm.com>
1984 * breakpoint.c (insert_bp_location): Remove dead code
1985 (DISABLE_UNSETTABLE_BREAK).
1986 (disable_breakpoints_in_shlibs)
1987 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
1989 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1991 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
1992 Call insert_bp_location.
1994 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
1996 * core-regset.c (fetch_core_registers): Work around gcc 3.4
1999 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2001 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
2004 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2006 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
2007 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
2008 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
2009 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
2010 to display_gdb_prompt.
2012 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2015 * target.c (memory_xfer_partial): Do not continue past targets with
2018 2007-06-30 Andreas Schwab <schwab@suse.de>
2020 * m68k-tdep.c (m68k_ps_type): New.
2021 (m68k_init_types): New.
2022 (m68k_register_type): Use m68k_ps_type for PS register.
2023 (_initialize_m68k_tdep): Call m68k_init_types.
2025 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2026 from the generic m68k arch.
2028 2007-06-28 Michael Snyder <msnyder@access-company.com>
2030 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2033 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2034 gdb_assert before using return value of find_thread_pid (Coverity).
2036 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2038 * cli/cli-script.c (build_command_line): Add null pointer guard
2041 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2043 * linux-thread-db.c (thread_db_attach): Delete.
2044 (thread_db_detach): Typo fix. Call target_mourn_inferior
2045 instead of fixing up proc_handle.
2046 (have_threads_callback, have_threads): New functions.
2047 (thread_db_wait): Remove dead proc_handle.pid check. Only
2048 translate PTIDs if we have registered threads. Check for new
2049 threads if we have none.
2050 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2051 (find_new_threads_callback): Only enable event reporting if TID == 0.
2052 (same_ptid_callback): New.
2053 (thread_db_get_thread_local_address): Check for new threads.
2054 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2055 or to_post_startup_inferior.
2057 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2059 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2060 is always active if SOFTWARE_SINGLE_STEP_P is true.
2061 (resume): Use gdbarch_software_single_step[_p] instead of
2062 SOFTWARE_SINGLE_STEP[_P].
2063 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2065 * gdbarch.sh (software_single_step): Remove target macro.
2066 * gdbarch.h, gdbarch.c: Regenerate.
2068 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2070 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2071 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2072 (struct gdbarch_swap, struct gdbarch_swap_registration,
2073 struct gdbarch_swap_registry, gdbarch_swap_registry,
2074 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2075 current_gdbarch_swap_in_hack): Remove.
2076 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2077 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2078 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2079 (deprecated_current_gdbarch_select_hack): Likewise.
2080 * gdbarch.h, gdbarch.c: Regenerate.
2082 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2084 * infrun.c (clear_proceed_status): Clean up stop_registers.
2085 (normal_stop): Allocate regcache for stop_registers.
2086 (struct inferior_status): Remove stop_registers member.
2087 (save_inferior_status): Do not save stop_registers.
2088 (restore_inferior_status): Do not restore stop_registers.
2089 (discard_inferior_status): Do not discard stop_registers.
2090 (build_infrun): Remove.
2091 (_initialize_infrun): Do not swap stop_registers.
2093 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2095 * remote.c (remote_address_masked): If remote_address_size is zero,
2096 default to target address size.
2097 (build_remote_gdbarch_data): Remove.
2098 (_initialize_remote): Do not swap remote_address_size.
2100 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2102 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2103 builtin_type_char, builtin_type_short, builtin_type_int,
2104 builtin_type_long, builtin_type_signed_char,
2105 builtin_type_unsigned_char, builtin_type_unsigned_short,
2106 builtin_type_unsigned_int, builtin_type_unsigned_long,
2107 builtin_type_float, builtin_type_double, builtin_type_long_double,
2108 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2109 builtin_type_bool, builtin_type_long_long,
2110 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2111 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2112 variable declaration with compatibility macro.
2113 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2114 builtin_type_char, builtin_type_short, builtin_type_int,
2115 builtin_type_long, builtin_type_signed_char,
2116 builtin_type_unsigned_char, builtin_type_unsigned_short,
2117 builtin_type_unsigned_int, builtin_type_unsigned_long,
2118 builtin_type_float, builtin_type_double, builtin_type_long_double,
2119 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2120 builtin_type_bool, builtin_type_long_long,
2121 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2122 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2123 (build_gdbtypes): Remove.
2124 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2125 opaque-type-resolution command here. Do not call
2126 deprecated_register_gdbarch_swap.
2128 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2130 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2131 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2132 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2134 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2135 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2136 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2137 (build_parse): Remove.
2138 (_initialize_parse): Do not call build_parse. Do not register
2139 msym_ types for gdbarch-swapping.
2141 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2142 instead of creating private type.
2144 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2145 (_initialize_xcoffread): Do not initialized them.
2146 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2148 * mdebugread.c (nodebug_func_symbol_type): Remove.
2149 (nodebug_var_symbol_type): Remove.
2150 (_initialize_mdebugread): Do not initialize them.
2151 (parse_symbol): Use builtin nodebug_ type instead of them.
2152 (parse_procedure): Likewise.
2154 2007-06-21 Chris Dearman <chris@mips.com>
2156 * printcmd.c (do_one_display): If display/i, start with an initial
2157 line feed to avoid bad layout if there is a branch delay slot.
2159 2007-06-21 Nigel Stephens <nigel@mips.com>
2160 Maciej W. Rozycki <macro@mips.com>
2162 * disasm.c (gdb_print_insn): Return the number of branch delay
2163 slot instructions too.
2164 * disasm.h (gdb_print_insn): Update prototype.
2165 * printcmd.c (branch_delay_insns): New variable to record the
2166 number of delay slot instructions after disassembling a branch.
2167 (print_formatted): Record the number of branch delay slot
2169 (do_examine): When disassembling, if the last instruction
2170 disassembled has any branch delay slots, then bump the count so
2171 that they get disassembled too.
2172 * tui/tui-disasm.c (tui_disassemble): Update the call to
2174 * NEWS: Document the new behaviour.
2176 2007-06-21 Andreas Schwab <schwab@suse.de>
2178 * regcache.c (write_pc_pid): Restore missing else.
2180 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2182 * regcache.c (regcache_print): Use get_current_regcache ()
2183 instead of current_regcache.
2185 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2188 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2189 instead of bfd_make_section_anyway.
2190 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2191 when clearing SEC_LOAD.
2193 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2195 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2196 registers for big-endian.
2198 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2200 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2201 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2202 * gdbarch.c, gdbarch.h: Regenerate.
2204 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2206 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2207 gdbarch_believe_pcc_promotion.
2208 * stabsread.c (define_symbol): Likewise.
2209 Remove unnecessary definition.
2210 * coffread.c (process_coff_symbol): Remove unnecessary code.
2211 * gdbarch.c, gdbarch.h: Regenerate.
2213 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2215 * configure.ac: Do not use ${objdir}.
2216 * configure: Regenerated.
2218 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2220 * gdbarch.sh (deprecated_register_size): Remove.
2221 * gdbarch.h, gdbarch.c: Regenerate.
2223 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2224 by INT_REGISTER_SIZE.
2225 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2226 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2227 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2228 set_gdbarch_deprecated_register_size.
2230 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2232 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2233 gdbarch_deprecated_fp_regnum.
2234 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2235 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2236 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2237 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2239 * gdbarch.c, gdbarch.h: Regenerate.
2241 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2243 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2244 gdbarch_extract_return_value.
2245 * value.c (generic_use_struct_convention): Likewise (comment).
2246 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2247 * arch-utils.c (legacy_return_value): Likewise.
2248 * arch-utils.h (legacy_return_value): Likewise (comment).
2249 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2250 gdbarch_store_return_value.
2251 * stack.c (return_command): Likewise (comment).
2252 * arch-utils.h (legacy_return_value): Likewise (comment).
2253 * arch-utils.c (legacy_return_value): Likewise.
2254 * gdbarch.c, gdbarch.h: Regenerate.
2256 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2258 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2259 gdbarch_deprecated_use_struct_convention.
2260 * arch-utils.c (legacy_return_value): Likewise.
2261 * gdbarch.c, gdbarch.h: Regenerate.
2263 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2265 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2266 gdbarch_deprecated_function_start_offset.
2267 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2268 * linespec.c (minsym_found): Likewise.
2269 * infrun.c (handle_inferior_event): Likewise.
2270 * infcall.c (find_function_addr): Likewise.
2271 * cli/cli-cmds.c (disassemble_command): Likewise.
2272 * gdbarch.c, gdbarch.h: Regenerate.
2274 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2276 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2277 gdbarch_deprecated_reg_struct_has_addr.
2278 * infcall.c (call_function_by_hand): Likewise.
2279 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2280 * gdbarch_deprecated_reg_struct_has_addr_p.
2281 * infcall.c (call_function_by_hand): Likewise.
2282 * gdbarch.c, gdbarch.h: Regenerate.
2284 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2286 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2287 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2288 (sh_gdbarch_init): Remove
2289 set_gdbarch_deprecated_extract_struct_value_address.
2290 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2291 (sh64_gdbarch_init): Remove
2292 set_gdbarch_deprecated_extract_struct_value_address.
2293 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2294 (ia64_gdbarch_init): Remove
2295 set_gdbarch_deprecated_extract_struct_value_address.
2296 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2297 (frv_gdbarch_init): Remove
2298 set_gdbarch_deprecated_extract_struct_value_address.
2299 * gdbarch.c, gdbarch.h: Regenerate.
2301 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2303 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2304 * v850-tdep.c (v850_unwind_sp): Likewise.
2305 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2306 * stack.c (frame_info): Likewise.
2307 * stabsread.c (define_symbol): Likewise.
2308 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2309 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2310 (sh_unwind_sp): Likewise.
2311 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2312 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2313 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2314 (rs6000_frame_cache): Likewise.
2315 * rs6000-nat.c (store_register): Likewise.
2316 * remote-mips.c (mips_wait): Likewise.
2317 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2318 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2319 (ppc64_sysv_abi_push_dummy_call): Likewise.
2320 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2321 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2322 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2323 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2324 * m32r-rom.c (m32r_supply_register): Likewise.
2325 * frame.c (frame_sp_unwind): Likewise.
2326 * mips-tdep.c (mips_insn16_frame_cache)
2327 (mips_insn32_frame_cache): Likewise (comment).
2328 * m68klinux-nat.c (supply_gregset): Likewise.
2329 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2330 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2331 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2332 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2333 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2334 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2335 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2336 (cris_register_type, crisv32_register_type)
2337 (cris_dwarf2_frame_init_reg): Likewise.
2338 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2339 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2340 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2341 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2343 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2344 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2345 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2346 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2347 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2348 * v850-tdep.c (v850_unwind_pc): Likewise.
2349 * stack.c (frame_info): Likewise.
2350 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2351 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2352 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2353 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2354 (sh_dsp_show_regs): Likewise.
2355 * shnbsd-tdep.c (shnbsd_supply_gregset)
2356 (shnbsd_collect_gregset): Likewise.
2357 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2358 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2359 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2360 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2361 (6000_register_reggroup_p, rs6000_unwind_pc)
2362 (rs6000_frame_cache): Likewise.
2363 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2364 (rs6000_store_inferior_registers): Likewise.
2365 * remote-mips.c (mips_wait, mips_load): Likewise.
2366 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2367 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2368 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2369 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2370 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2371 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2372 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2373 (store_ppc_registers, fill_gregset): Likewise.
2374 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2375 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2376 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2377 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2378 * m68klinux-nat.c (supply_gregset): Likewise.
2379 * irix5-nat.c (fill_gregset): Likewise.
2380 * i386-tdep.c (i386_unwind_pc): Likewise.
2381 * i386-linux-nat.c (i386_linux_resume): Likewise.
2382 * frame.c (get_prev_frame_1): Likewise.
2383 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2384 * dbug-rom.c (dbug_supply_register): Likewise.
2385 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2386 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2387 (cris_register_type, crisv32_register_type, crisv32_register_name)
2388 (cris_dwarf2_frame_init_reg, find_step_target)
2389 (cris_software_single_step, cris_supply_gregset)
2390 (cris_regnums): Likewise.
2391 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2392 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2393 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2394 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2395 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2397 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2398 * dbug-rom.c (dbug_supply_register): Likewise.
2399 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2400 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2401 * win32-nat.c (win32_resume): Likewise.
2402 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2403 * m68k-tdep.c (m68k_register_type): Likewise.
2404 * m68klinux-nat.c (supply_gregset): Likewise.
2406 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2407 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2408 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2409 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2410 (fv_reg_base_num, dr_reg_base_num): Likewise.
2411 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2412 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2413 (sh64_extract_return_value, sh64_store_return_value)
2414 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2415 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2416 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2417 (invalidate_cache): Likewise.
2418 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2419 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2420 (mipsnbsd_fill_fpreg): Likewise.
2421 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2422 (mipsnbsd_store_inferior_registers): Likewise.
2423 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2424 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2425 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2426 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2427 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2428 (fill_fpregset): Likewise.
2429 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2430 * i386-tdep.h (struct_return): Likewise (comment).
2431 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2432 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2433 (go32_store_registers): Likewise.
2434 * alpha-tdep.c (alpha_next_pc): Likewise.
2435 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2436 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2437 (alphabsd_store_inferior_registers): Likewise.
2438 * core-regset.c (fetch_core_registers): Likewise.
2439 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2441 * gdbarch.c, gdbarch.h: Regenerate.
2443 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2445 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2446 * dbxread.c (start_psymtab): Check HAVE_ELF.
2447 (aout_sym_fns): Likewise.
2448 * elfread.c (elf_symfile_segments): New.
2449 (elf_sym_fns): Add elf_symfile_segments.
2450 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2451 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2452 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2453 * somread.c (som_sym_fns): Use default_symfile_segments.
2454 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2455 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2456 (default_symfile_segments): New function.
2457 (syms_from_objfile): Update call to find_sym_fns.
2458 (symfile_get_segment_data, free_symfile_segment_data): New.
2459 (symfile_map_offsets_to_segments): New.
2460 (symfile_find_segment_sections): New.
2461 * symfile.h (struct symfile_segment_data): New.
2462 (struct sym_fns): Add sym_segments.
2463 (default_symfile_segments, symfile_get_segment_data)
2464 (free_symfile_segment_data): New prototypes.
2465 (symfile_map_offsets_to_segments): Likewise.
2466 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2467 * Makefile.in (COMMON_OBS): Remove elfread.o.
2468 (elf_internal_h): New.
2469 (elfread.o): Update.
2470 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2472 * config.in, configure: Regenerated.
2473 * NEWS: Mention qOffsets changes.
2475 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2477 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2478 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2479 Replace global variable declaration with compatibility macro.
2480 (struct builtin_m2_type): New data type.
2481 (builtin_m2_type): Add prototype.
2482 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2483 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2484 Remove global variables.
2485 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2486 (build_m2_types): New function.
2487 (m2_type_data): New variable.
2488 (builtin_m2_type): New function.
2489 (_initialize_m2_language): Do not build data types. Register
2490 m2_type_data per-gdbarch data.
2492 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2494 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2495 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2496 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2497 builtin_type_f_real_s8, builtin_type_f_real_s16,
2498 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2499 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2500 variable declaration with compatibility macro.
2501 (struct builtin_f_type): New data type.
2502 (builtin_f_type): Add prototype.
2503 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2504 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2505 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2506 builtin_type_f_real_s8, builtin_type_f_real_s16,
2507 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2508 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2509 (f_language_arch_info): Use builtin_f_type instead of variables.
2510 (build_fortran_types): Build builtin_f_type structure instead of
2511 setting global type variables.
2512 (f_type_data): New variable.
2513 (builtin_f_type): New function.
2514 (_initialize_f_language): Do not call build_fortran_types. Do not
2515 swap global type variables. Register f_type_data per-gdbarch data.
2517 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2519 * f-lang.c (_initialize_f_language): Do not initialize or
2520 swap builtin_type_string.
2522 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2524 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2525 value_of_builtin_frame_reg): Remove.
2526 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2527 inactive call to value_of_builtin_frame_reg.
2529 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2531 * gdbarch.sh (bfd_vma_bit): Remove.
2532 * gdbarch.c, gdbarch.h: Regenerate.
2534 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2535 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2536 (build_gdbtypes): Do not initialize it.
2537 (_initialize_gdbtypes): Do not swap it.
2539 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2541 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2542 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2543 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2544 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2545 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2546 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2547 builtin_type_vec64, builtin_type_vec128): Remove.
2548 (init_simd_type): Remove.
2549 (init_vector_type): Make global.
2550 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2551 (build_gdbtypes): Do not build vector types.
2552 (_initialize_gdbtypes): Do not swap vector types.
2553 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2554 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2555 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2556 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2557 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2558 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2559 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2560 (init_vector_type): Add prototype.
2562 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2563 i386_sse_type members.
2564 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2565 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2566 (i386_init_types): Do not build vector types.
2567 (i386_mmx_type, i386_sse_type): New functions.
2568 (i386_register_type): Call them instead of using global variables.
2569 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2570 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2571 of using global variable.
2573 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2574 and ppc_builtin_type_vec128 members.
2575 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2576 (rs6000_builtin_type_vec128): Likewise.
2577 (rs6000_register_type): Call them instead of using builtin_type_vec64
2578 and builtin_type_vec128.
2579 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2581 * spu-tdep.c (struct gdbarch_tdep): New data type.
2582 (spu_builtin_type_vec128): Remove variable.
2583 (spu_builtin_type_vec128): New function.
2584 (spu_register_type): Call it instead of using global variable.
2585 (spu_gdbarch_init): Allocate tdep structure.
2586 (spu_init_vector_type): Remove function.
2587 (_initialize_spu_tdep): Do not call it.
2589 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2591 * amd64-tdep.c (struct amd64_register_info): Remove.
2592 (amd64_register_info): Remove.
2593 (amd64_register_names): New static variable.
2594 (AMD64_NUM_REGS): Use amd64_register_names instead of
2595 amd64_register_info.
2596 (amd64_register_name): Likewise.
2597 (amd64_register_type): Do not refer to amd64_register_info.
2599 * s390-tdep.c (struct s390_register_info): Remove.
2600 (s390_register_info): Remove.
2601 (s390_register_name): Do not refer to s390_register_info.
2602 (s390_register_type): Likewise.
2604 * sparc64-tdep.c (struct sparc64_register_info): Remove.
2605 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2606 (sparc64_register_names, sparc64_pseudo_register_names): New.
2607 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2608 sparc64_register_names and sparc64_pseudo_register_names instead of
2609 sparc64_register_info and sparc64_pseudo_register_info.
2610 (sparc64_register_name): Likewise.
2611 (sparc64_register_type): Do not refer to sparc64_register_info
2612 and sparc64_pseudo_register_info.
2614 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2616 * c-lang.c (cplus_builtin_types): Remove.
2617 (enum cplus_primitive_types): New data type.
2618 (cplus_language_arch_info): New function.
2619 (cplus_language_defn): Set la_language_arch_info member. Do not set
2620 la_builtin_type_vector and string_char_type members.
2622 * f-lang.c (f_builtin_types): Remove.
2623 (enum f_primitive_types): New data type.
2624 (f_language_arch_info): New function.
2625 (f_language_de): Set la_language_arch_info member. Do not set
2626 la_builtin_type_vector and string_char_type members.
2628 * m2-lang.c (m2_builtin_types): Remove.
2629 (enum m2_primitive_types): New data type.
2630 (m2_language_arch_info): New function.
2631 (m2_language_defn): Set la_language_arch_info member. Do not set
2632 la_builtin_type_vector and string_char_type members.
2634 * objc-lang.c (objc_builtin_types): Remove.
2635 (objc_language): Set la_language_arch_info member. Do not set
2636 la_builtin_type_vector and string_char_type members.
2638 * p-lang.c (pascal_builtin_types): Remove.
2639 (enum pascal_primitive_types): New data type.
2640 (pascal_language_arch_info): New function.
2641 (pascal_language_defn): Set la_language_arch_info member. Do not set
2642 la_builtin_type_vector and string_char_type members.
2644 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2646 * regcache.c (struct regcache): Add ptid_t member.
2647 (regcache_xmalloc): Initialize it.
2648 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
2649 (regcache_dup): Likewise.
2650 (regcache_dup_no_passthrough): Likewise.
2651 (current_regcache): Make static.
2652 (registers_ptid): Remove variable.
2653 (get_thread_regcache): New function.
2654 (get_current_regcache): New function.
2655 (registers_changed): Implement by freeing current regcache.
2656 (regcache_raw_read): Do not refer to current_regcache. Set
2657 inferior_ptid to regcache->ptid while calling target routines.
2658 (regcache_raw_write): Likewise.
2659 (regcache_raw_supply): Do not refer to current_regcache.
2660 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
2661 (write_pc_pid): Likewise.
2662 (build_regcache): Remove.
2663 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
2664 or deprecated_register_gdbarch_swap. Do not initialize
2666 * regcache.h (get_current_regcache): Add prototype.
2667 (get_thread_regcache): Likewise.
2668 (current_regcache): Remove declaration.
2670 * corelow.c (core_open): Replace current_regcache by
2671 get_current_regcache ().
2672 * frame.c (frame_pop): Likewise.
2673 (put_frame_register): Likewise.
2674 (get_current_frame, create_new_frame): Likewise.
2675 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
2676 * stack.c (return_command): Likewise.
2677 * infcall.c (call_function_by_hand): Likewise.
2678 * infrun.c (resume): Likewise.
2679 (save_inferior_status, restore_inferior_status): Likewise.
2680 * linux-fork.c (fork_load_infrun_state): Likewise.
2681 (fork_save_infrun_state): Likewise.
2682 * win32-nat.c (win32_resume): Likewise.
2683 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
2684 * monitor.c (monitor_wait): Likewise.
2685 * remote.c (remote_wait): Likewise.
2686 * remote-mips.c (mips_wait): Likewise.
2688 * bsd-kvm.c (bsd_kvm_open): Likewise
2689 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
2690 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
2691 * i386-linux-nat.c (i386_linux_resume): Likewise.
2692 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2693 (ia64_linux_stopped_data_address): Likewise.
2695 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
2696 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2697 * mep-tdep.c (current_me_module, current_options): Likewise.
2698 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
2700 * linux-nat.c (linux_nat_do_thread_registers): Use thread
2701 regcache instead of current_regcache. Call target_fetch_registers.
2702 (linux_nat_corefile_thread_callback): Update call site.
2703 (linux_nat_do_registers): Likewise.
2704 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
2705 of current_regcache.
2706 (procfs_make_note_section): Likewise.
2707 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
2708 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2709 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
2710 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2712 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2714 * regcache.c (read_register, read_register_pid): Remove.
2715 (write_register, write_register_pid): Likewise.
2716 * regcache.h (read_register, read_register_pid): Remove prototype.
2717 (write_register, write_register_pid): Likewise.
2719 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2721 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
2722 (write_pc): Likewise. Remove default implementation, add predicate.
2723 * gdbarch.c, gdbarch.h: Regenerate.
2724 * regcache.c (read_pc_pid): Use current regcache instead of calling
2726 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
2728 (generic_target_write_pc): Remove.
2729 * inferior.h (generic_target_write_pc): Remove.
2730 * frv-tdep.c (frv_gdbarch_init): Do not install it.
2731 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2732 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2733 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2734 * sh-tdep.c (sh_gdbarch_init): Likewise.
2735 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2737 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
2738 argument. Use REGCACHE instead of calling read_register_pid.
2739 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
2740 * hppa-tdep.c (hppa_read_pc): Likewise.
2741 * hppa-tdep.h (hppa_read_pc): Likewise.
2742 * ia64-tdep.c (ia64_read_pc): Likewise.
2743 * m32r-tdep.c (m32r_read_pc): Likewise.
2744 * mep-tdep.c (mep_read_pc): Likewise.
2745 * mn10300-tdep.c (mn10300_read_pc): Likewise.
2746 * spu-tdep.c (spu_read_pc): Likewise.
2748 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
2749 argument. Use REGCACHE instead of calling write_register_pid.
2750 * avr-tdep.c (avr_write_pc): Likewise.
2751 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
2752 * hppa-tdep.c (hppa_write_pc): Likewise.
2753 * hppa-tdep.h (hppa_write_pc): Likewise.
2754 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
2755 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
2756 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
2757 * ia64-tdep.c (ia64_write_pc): Likewise.
2758 * ia64-tdep.h (ia64_write_pc): Likewise.
2759 * m32r-tdep.c (m32r_write_pc): Likewise.
2760 * m88k-tdep.c (m88k_write_pc): Likewise.
2761 * mep-tdep.c (mep_write_pc): Likewise.
2762 * mips-tdep.c (mips_write_pc): Likewise.
2763 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2764 * mn10300-tdep.c (mn10300_write_pc): Likewise.
2765 * sparc-tdep.c (sparc_write_pc): Likewise.
2766 * spu-tdep.c (spu_write_pc): Likewise.
2768 * mips-tdep.c (read_signed_register): Remove.
2769 (read_signed_register_pid): Likewise.
2770 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
2771 Use REGCACHE instead of calling read_signed_register_pid.
2773 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2775 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
2776 * gdbarch.c, gdbarch.h: Regenerate.
2777 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
2778 (push_dummy_code): Likewise. Pass it to callee.
2779 (call_function_by_hand): Pass current regcache to push_dummy_code.
2781 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
2782 argument. Use it instead of current_regcache.
2784 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
2785 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2787 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2789 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
2790 * gdbarch.c, gdbarch.h: Regenerate.
2791 * infrun.c (handle_inferior_event): Pass current frame to
2792 gdbarch_get_longjmp_target.
2794 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
2795 Read registers from FRAME instead of using read_register.
2796 Use get_frame_arch instead of current_gdbarch.
2797 * arm-tdep.c (arm_get_longjmp_target): Likewise.
2798 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2799 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2800 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
2801 (mips64_linux_get_longjmp_target): Likewise.
2802 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2804 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2806 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
2807 * gdbarch.c, gdbarch.h: Regenerate.
2808 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
2809 * arch-utils.h (generic_skip_trampoline_code): Likewise.
2810 * infrun.c (handle_inferior_event): Pass current frame to
2811 gdbarch_skip_trampoline_code and skip_language_trampoline.
2813 * language.c (unk_lang_trampoline): Add FRAME argument.
2814 (skip_language_trampoline): Add FRAME argument. Pass it to
2815 skip_trampoline callback.
2816 * language.h: Add forward declaration of struct frame_info.
2817 (struct language_defn): Add FRAME argument to skip_trampoline.
2818 (skip_language_trampoline): Add FRAME argument.
2819 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
2820 to skip_trampoline callback.
2821 * cp-abi.h: Add forward declaration of struct frame_info.
2822 (cplus_skip_trampoline): Add FRAME argument.
2823 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
2824 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
2825 to gdbarch_skip_trampoline_code.
2826 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
2827 to gdbarch_skip_trampoline_code.
2829 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
2830 * symtab.h (find_solib_trampoline_target): Likewise.
2831 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
2832 find_solib_trampoline_target.
2834 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
2835 from FRAME instead of calling read_register.
2837 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
2838 argument. Read registers from FRAME instead of using read_register.
2839 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
2840 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
2842 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
2845 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
2847 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
2848 registers from FRAME instead of using read_signed_register.
2850 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
2852 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
2853 instead of using read_register.
2854 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
2855 ppc64_standard_linkage_target.
2856 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
2857 Pass it to find_solib_trampoline_target. Read registers from FRAME
2858 instead of using read_register.
2860 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
2863 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2865 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
2867 * gdbarch.c, gdbarch.h: Regenerate.
2868 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
2870 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
2871 registers from FRAME instead of using read_register.
2872 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2873 to alpha_next_pc. Use get_frame_pc instead of read_pc.
2874 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
2877 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
2878 from FRAME instead of using read_register.
2879 (thumb_get_next_pc): Likewise.
2880 (arm_get_next_pc): Likewise.
2881 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2882 to arm_get_next_pc. Use get_frame_pc instead of read_register.
2883 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
2886 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
2887 from FRAME instead of using read_register.
2888 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2889 to find_step_target.
2891 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
2892 from FRAME instead of using read_register / read_signed_register.
2893 (extended_mips16_next_pc): Likewise.
2894 (mips16_next_pc): Likewise.
2895 (mips_next_pc): Likewise.
2896 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2897 to mips_next_pc. Use get_frame_pc instead of read_pc.
2898 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
2901 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
2902 of current frame. Read registers from FRAME.
2903 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
2904 branch_dest. Use get_frame_pc instead of read_pc.
2905 (rs6000_software_single_step): Likewise.
2906 (bl_to_blrl_insn_p): Do not call branch_dest.
2907 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
2910 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
2911 Read registers from FRAME instead of current regcache.
2912 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
2913 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
2914 * sparc-tdep.c (sparc_address_from_register): Remove.
2915 (sparc_analyze_control_transfer): Pass FRAME argument instead of
2916 GDBARCH. Pass FRAME to step_trap callback.
2917 (sparc_step_trap): Add FRAME argument.
2918 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2919 to sparc_analyze_control_transfer. Read registers from FRAME instead
2920 of calling sparc_address_from_register.
2921 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
2923 (sparc_address_from_register): Remove prototype.
2924 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
2925 (sparcnbsd_step_trap): Add FRAME argument.
2927 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
2928 by FRAME. Read registers from FRAME instead of REGCACHE.
2930 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2932 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
2933 instead of calling read_register.
2935 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
2936 calling write_register.
2938 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
2939 calling write_register.
2941 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
2942 instead of calling read_register.
2943 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
2944 instead of calling read_register and write_register.
2946 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
2947 instead of current_regcache.
2949 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
2950 of calling write_register.
2951 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
2952 parameter instead of current_regcache.
2954 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
2955 instead of calling read_register.
2956 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
2957 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
2958 (mips_n32n64_push_dummy_call): Likewise.
2959 (mips_o32_push_dummy_call): Likewise.
2960 (mips_o64_push_dummy_call): Likewise.
2962 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
2963 parameter instead of current_regcache.
2965 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
2966 Use it instead of read_register and write_register.
2967 (xtensa_register_read_masked): Likewise.
2968 (xtensa_pseudo_register_read): Update call.
2969 (xtensa_pseudo_register_write): Likewise.
2970 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
2971 instead of calling read_register.
2972 (xtensa_push_dummy_call): Update comment.
2974 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2976 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
2977 by frame_unwind_register_signed calls.
2978 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
2979 frame allocations when called with NULL NEXT_FRAME parameter.
2980 (read_next_frame_reg): Remove.
2982 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
2983 instead of reading the FPSCR register.
2984 (sh_frame_cache): Pass unwound FPSCR register value to
2985 sh_analyze_prologue.
2986 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
2988 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
2989 instead of reading the CTBP register.
2990 (v850_frame_cache): Pass unwound CTBP register value to
2991 v850_analyze_prologue.
2993 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2995 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
2996 * sh-tdep.c (sh_show_regs): Likewise.
2997 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
2998 (sh_generic_show_regs): Add FRAME parameter. Use register
2999 values from that frame instead of calling read_register.
3000 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
3001 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
3002 sh_dsp_show_regs): Likewise.
3003 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
3004 sh64_show_regs): Likewise.
3006 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3008 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
3009 current regcache instead of calling read_register.
3011 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3013 * mep-tdep.c (current_me_module): Read from current regcache
3014 instead of calling read_register.
3015 (current_options): Likewise.
3017 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3019 * cris-tdep.c (cris_stopped_data_address): Read register values
3020 from current frame instead of calling read_register.
3021 * frv-tdep.c (frv_stopped_data_address): Likewise.
3023 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3025 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3026 instead of write_register (PC_REGNUM, ...).
3028 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3030 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3031 explaining why the PC adjustment code is necessary.
3033 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3035 * m68k-tdep.h (enum m68k_flavour): New.
3036 (struct gdbarch_tdep): New fields
3037 float_return, flavour and fpregs_present.
3038 * m68k-tdep.c (m68k_register_type): Use
3039 fpregs_present and conditionalize floating
3040 registers type on flavour.
3041 (m68k_register_names): New.
3042 (m68k_register_name): Use the above.
3043 (m68k_convert_register_p): Consult fpregs_present.
3044 (m68k_register_to_value, m68k_value_to_register):
3045 Use register_type to obtain the type of floating
3047 (m68k_svr4_extract_return_value): Check tdep->float_return.
3048 Use register_type to get the type of floating
3050 (m68k_svr4_store_return_value): Likewise.
3051 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3052 (m68k_analyze_register_saves): Likewise.
3053 (m68k_gdbarch_init): Extract infromation
3054 from XML description, if present. Guess coldfire by
3055 looking at the file, if present. Conditionalize
3056 setting of long double format. Set decr_pc_after_break
3057 to 2 on coldfire and fido. Enable XML-driven
3058 register description.
3059 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3060 size of tdep->fpreg_type, as opposed to hardcoded value.
3061 * Makefile.in (m68k-tdep.o): Update dependencies.
3063 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3065 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3066 qXfer:spu:write remote packet types.
3068 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3070 * xml-tdesc.c (tdesc_start_target): New.
3071 (target_attributes): New.
3072 (tdesc_elements): Use it.
3073 * features/gdb-target.dtd: Add #FIXED version attribute for
3076 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3078 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3080 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3082 * fork-child.c (fork_inferior): Update comment.
3084 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3086 * features/Makefile: Generate regformats for mips-linux and
3088 * features/sort-regs.xsl: Correct typo.
3089 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3090 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3093 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3095 * config/mips/linux.mh (TDEP_XML): New.
3096 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3097 * mips-linux-nat.c (mips_linux_register_addr): Handle
3098 MIPS_RESTART_REGNUM.
3099 (mips64_linux_register_addr): Likewise.
3100 (super_xfer_partial, mips_linux_xfer_partial): New.
3101 (_initialize_mips_linux_nat): Add them to the target_ops.
3102 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3103 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3104 (mips_linux_o32_sigframe_init)
3105 (mips_linux_n32n64_sigframe_init): Likewise.
3106 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3107 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3108 "org.gnu.gdb.mips.linux" feature.
3109 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3110 (mips_linux_restart_reg_p): New prototype.
3111 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3112 initialization routine.
3113 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3115 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3117 * Makefile.in (mips-tdep.o): Update.
3118 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3119 (mips_n32_n64_aliases, mips_register_aliases): New.
3120 (mips_register_name): Call tdesc_register_name.
3121 (mips_tdesc_register_reggroup_p): New.
3122 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3123 (mips_gdbarch_init): Add target-described register support.
3124 Register aliases for register names.
3125 * target-descriptions.c (tdesc_register_name): Make global.
3126 (tdesc_register_in_reggroup_p): New function, broken out from
3127 tdesc_register_reggroup_p.
3128 (tdesc_register_reggroup_p): Use it.
3129 * target-descriptions.h (tdesc_register_name)
3130 (tdesc_register_in_reggroup_p): New prototypes.
3131 * NEWS: Correct formatting. Mention MIPS register support.
3132 * features/mips-cp0.xml, features/mips-fpu.xml,
3133 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3134 features/mips64-cpu.xml: New files.
3136 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3138 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3139 * valops.c (value_cast): Likewise.
3140 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3141 * ui-out.c (ui_out_field_core_addr): Likewise.
3142 * tracepoint.c (tracepoints_info): Likewise.
3143 * symtab.c (print_msymbol_info): Likewise.
3144 * solib-irix.c (irix_current_sos)
3145 (irix_open_symbol_file_object): Likewise.
3146 * remote.c (build_remote_gdbarch_data): Likewise.
3147 * prologue-value.c (make_pv_area): Likewise.
3148 * procfs.c (info_mappings_callback): Likewise.
3149 * printcmd.c (print_scalar_formatted)
3150 (deprecated_print_address_numeric): Likewise.
3151 * memattr.c (mem_info_command): Likewise.
3152 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3153 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3154 * exec.c (print_section_info): Likewise.
3155 * dwarf2read.c (read_subrange_type): Likewise.
3156 * dwarf2loc.c (find_location_expression): Likewise.
3157 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3158 (signed_address_type, execute_stack_op): Likewise.
3159 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3160 * gdbarch.c, gdbarch.h: Regenerate.
3162 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3164 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3165 * arch-utils.c (show_architecture): Likewise.
3166 * remote-mips.c (mips_open): Likewise
3167 * nto-tdep.c (nto_find_and_open_solib)
3168 (nto_init_solib_absolute_prefix): Likewise.
3169 * nto-procfs (procfs_open): Likewise.
3170 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3171 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3172 * gdbarch.c, gdbarch.h: Regenerate.
3174 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3176 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3177 * gdbtypes.c (build_flt): Likewise.
3178 * gdbarch.c, gdbarch.h: Regenerate.
3180 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3182 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3183 gdbarch_breakpoint_from_pc.
3184 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3185 * remote.c (remote_insert_breakpoint)
3186 (remote_insert_hw_breakpoint): Likewise.
3187 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3188 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3189 * breakpoint.h (bp_target_info): Likewise (comment).
3190 * breakpoint.c (read_memory_nobpt): Likewise.
3191 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3192 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3193 * gdbarch.c, gdbarch.h: Regenerate.
3195 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3197 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3198 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3199 * solib-pa64.c (read_dynamic_info): Likewise.
3200 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3201 * solib.c (info_sharedlibrary_command): Likewise.
3202 * s390-nat.c (SUBOFF): Likewise.
3203 * p-valprint.c (pascal_val_print): Likewise.
3204 * procfs.c (info_proc_mappings): Likewise.
3205 * printcmd.c (decode_format): Likewise.
3206 * nto-tdep.c (nto_truncate_ptr): Likewise.
3207 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3208 (mips64_linux_get_longjmp_target): Likewise.
3209 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3210 * jv-valprint.c (java_value_print): Likewise.
3211 * jv-lang.c (get_java_object_header_size): Likewise.
3212 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3213 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3214 (hppa_hpux_unwind_adjust_stub): Likewise.
3215 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3216 * gdbtypes.c (make_pointer_type, make_reference_type)
3217 (smash_to_memberptr_type): Likewise.
3218 * gdbarch.c, gdbarch.h: Regenerate.
3220 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3222 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3223 (print_gp_register_row): Stop before printing a register bigger
3224 than the ABI register size.
3225 (mips_print_registers_info): Update call to mips_print_register.
3227 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3229 * expression.h (enum exp_opcode): Document a register name for
3231 * parse.c (write_dollar_variable): Write the register name for
3233 (operator_length_standard): Expect the register name following
3235 * ada-lang.c (resolve_subexp): Likewise.
3236 * ax-gdb.c (gen_expr): Likewise.
3237 * eval.c (evaluate_subexp_standard): Likewise.
3238 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3240 * tracepoint.c (encode_actions): Likewise.
3242 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3244 * utils.c (set_screen_size): Use INT_MAX for default columns.
3246 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3248 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3249 qXfer:spu:write packet types.
3251 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3253 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3254 * gdbarch.c, gdbarch.h: Regenerate.
3256 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3258 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3259 gdbarch_stab_reg_to_regnum.
3260 * stabsread.c (define_symbol): Likewise.
3261 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3262 gdbarch_ecoff_reg_to_regnum.
3263 * mdebugread.c (parse_symbol): Likewise.
3264 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3265 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3266 gdbarch_dwarf_reg_to_regnum.
3267 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3268 * coffread.c (process_coff_symbol): Likewise.
3269 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3270 gdbarch_dwarf2_reg_to_regnum.
3271 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3272 (locexpr_describe_location): Likewise.
3273 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3274 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3275 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3276 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3277 * gdbarch.c, gdbarch.h: Regenerate.
3279 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3281 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3282 gdbarch_smash_text_address.
3283 * somread.c (som_symtab_read): Likewise.
3284 * elfread.c (record_minimal_symbol): Likewise.
3285 * dbxread.c (process_one_symbol): Likewise.
3286 * coffread.c (coff_symtab_read): Likewise.
3287 * gdbarch.c, gdbarch.h: Regenerate.
3289 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3291 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3292 * findvar.c (value_from_register): Likewise.
3293 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3294 * valops.c (value_assign): Likewise.
3295 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3296 gdbarch_convert_register_p.
3297 * findvar.c (value_from_register): Likewise.
3298 * valops.c (value_assign): Likewise.
3299 * gdbarch.c, gdbarch.h: Regenerate.
3301 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3303 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3304 gdbarch_register_sim_regno.
3305 * sim-regno.h (sim_regno): Likewise (comment).
3306 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3307 * gdbarch.c, gdbarch.h: Regenerate.
3309 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3311 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3312 gdbarch_virtual_frame_pointer.
3313 * tracepoint.c (encode_actions): Likewise.
3314 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3315 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3316 * gdbarch.c, gdbarch.h: Regenerate.
3318 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3320 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3321 * p-lang.c (pascal_create_fundamental_type): Likewise.
3322 * objc-lang.c (objc_create_fundamental_type): Likewise.
3323 * mdebugread.c (_initialize_mdebugread): Likewise.
3324 * m2-lang.c (m2_create_fundamental_type)
3325 (_initialize_m2_language): Likewise.
3326 * gdbtypes.c (build_gdbtypes): Likewise.
3327 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3328 * doublest.c (floatformat_from_length): Likewise.
3329 * c-lang.c (c_create_fundamental_type): Likewise.
3330 * ada-lang.c (ada_create_fundamental_type)
3331 (ada_language_arch_info): Likewise.
3332 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3333 * value.c (unpack_double): Likewise (comment).
3334 * gdbtypes.c (build_gdbtypes): Likewise.
3335 * doublest.c (floatformat_from_length): Likewise.
3336 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3337 * valarith.c (value_binop): Likewise.
3338 * p-lang.c (pascal_create_fundamental_type): Likewise.
3339 * objc-lang.c (objc_create_fundamental_type): Likewise.
3340 * mdebugread.c (_initialize_mdebugread): Likewise.
3341 * m2-lang.c (m2_create_fundamental_type): Likewise.
3342 * gdbtypes.c (build_gdbtypes): Likewise.
3343 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3344 * doublest.c (floatformat_from_length): Likewise.
3345 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3346 * c-lang.c (c_create_fundamental_type): Likewise.
3347 * ada-lex.l (processReal): Likewise.
3348 * ada-lang.c (ada_create_fundamental_type)
3349 (ada_language_arch_info): Likewise.
3350 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3351 * value.c (unpack_double): Likewise (comment).
3352 * gdbtypes.c (build_gdbtypes): Likewise.
3353 * doublest.c (floatformat_from_length): Likewise.
3354 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3355 gdbarch_long_double_bit.
3356 * p-lang.c (pascal_create_fundamental_type): Likewise.
3357 * objc-lang.c (objc_create_fundamental_type): Likewise.
3358 * m2-lang.c (m2_create_fundamental_type): Likewise.
3359 * gdbtypes.c (build_gdbtypes): Likewise.
3360 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3361 * doublest.c (floatformat_from_length): Likewise.
3362 * c-lang.c (c_create_fundamental_type): Likewise.
3363 * ada-lex.l (processReal): Likewise.
3364 * ada-lang.c (ada_create_fundamental_type)
3365 (ada_language_arch_info): Likewise.
3366 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3367 gdbarch_long_double_format.
3368 * gdbtypes.c (build_gdbtypes): Likewise.
3369 * doublest.c (floatformat_from_length): Likewise.
3370 * gdbarch.c, gdbarch.h: Regenerate.
3372 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3374 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3375 * ada-lang.c (ada_create_fundamental_type)
3376 (ada_language_arch_info): Likewise.
3377 * c-lang.c (c_create_fundamental_type): Likewise.
3378 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3379 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3380 * m2-lang.c (m2_create_fundamental_type): Likewise.
3381 * objc-lang.c (objc_create_fundamental_type): Likewise.
3382 * p-lang.c (pascal_create_fundamental_type): Likewise.
3383 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3384 * c-exp.y (parse_number): Likewise.
3385 * objc-exp.y (parse_number): Likewise.
3386 * ada-lex.l (processInt): Likewise.
3387 * f-exp.y (parse_number): Likewise.
3388 * p-exp.y (parse_number): Likewise.
3389 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3390 (gdbtypes_post_init, build_gdbtypes): Likewise.
3391 * p-lang.c (pascal_create_fundamental_type): Likewise.
3392 * parse.c (build_parse): Likewise.
3393 * xcoffread.c (_initialize_xcoffread): Likewise.
3394 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3395 (read_range_type): Likewise.
3396 * objc-lang.c (objc_create_fundamental_type): Likewise.
3397 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3398 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3399 (m2_create_fundamental_type): Likewise.
3400 * c-lang.c (c_create_fundamental_type): Likewise.
3401 * coffread.c (coff_read_enum_type): Likewise.
3402 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3403 * dwarf2read.c (new_symbol): Likewise.
3404 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3405 * c-exp.y (parse_number): Likewise.
3406 * objc-exp.y (parse_number): Likewise.
3407 * ada-lex.l (processInt): Likewise.
3408 * f-exp.y (parse_number): Likewise.
3409 * p-exp.y (parse_number): Likewise.
3410 * valarith.c (value_binop): Likewise.
3411 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3412 * ada-lang.c (ada_create_fundamental_type)
3413 (ada_language_arch_info): Likewise.
3414 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3415 * symfile.c (TARGET_LONG_BYTES): Likewise.
3416 * p-lang.c (pascal_create_fundamental_type): Likewise.
3417 * objc-lang.c (objc_create_fundamental_type): Likewise.
3418 * m2-lang.c (m2_create_fundamental_type): Likewise.
3419 * f-lang.c (f_create_fundamental_type): Likewise.
3420 * c-lang.c (c_create_fundamental_type): Likewise.
3421 * coffread.c (decode_base_type): Likewise.
3422 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3423 * c-exp.y (parse_number): Likewise.
3424 * objc-exp.y (parse_number): Likewise.
3425 * p-exp.y (parse_number): Likewise.
3426 * ada-lang.c (ada_create_fundamental_type)
3427 (ada_language_arch_info): Likewise.
3428 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3429 * stabsread.c (read_range_type): Likewise.
3430 * p-lang.c (pascal_create_fundamental_type): Likewise.
3431 * objc-lang.c (objc_create_fundamental_type): Likewise.
3432 * m2-lang.c (m2_create_fundamental_type): Likewise.
3433 * f-lang.c (f_create_fundamental_type): Likewise.
3434 * c-lang.c (c_create_fundamental_type): Likewise.
3435 * gdbarch.c, gdbarch.h: Regenerate.
3437 2007-06-12 Andreas Schwab <schwab@suse.de>
3439 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3440 (struct frame_unwind): Add dealloc_cache.
3441 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3443 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3444 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3445 (libunwind_frame_unwind): Set dealloc_cache.
3446 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3448 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3449 Markus Deuling <deuling@de.ibm.com>
3451 * remote.c (remote_write_qxfer): New function.
3452 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3453 (remote_read_qxfer): Do not cache empty objects.
3454 (_initialize_remote): Add PACKET_qXfer_spu_read and
3455 PACKET_qXfer_spu_write.
3457 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3459 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3460 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3462 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3463 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3464 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3465 * spu-tdep.c (infospucmdlist): New variable.
3466 (spu_register_name): Handle additional pseudo registers.
3467 (spu_register_type): Likewise.
3468 (spu_pseudo_register_read): Likewise.
3469 (spu_pseudo_register_write): Likewise.
3470 (spu_pseudo_register_read_spu): New function.
3471 (spu_pseudo_register_write_spu): Likewise.
3472 (info_spu_event_command): New function.
3473 (info_spu_signal_command): Likewise.
3474 (info_spu_mailbox_list): Likewise.
3475 (info_spu_mailbox_command): Likewise.
3476 (spu_mfc_get_bitfield): Likewise.
3477 (info_spu_dma_cmdlist): Likewise.
3478 (info_spu_dma_command): Likewise.
3479 (info_spu_proxydma_command): Likewise.
3480 (info_spu_command): Likewise.
3481 (_initialize_spu_tdep): Install "info spu" commands.
3483 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3485 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3486 accessing non-seekable spufs files.
3488 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3490 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3491 gdbarch_skip_trampoline_code.
3492 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3493 * objc-lang.c (objc_skip_trampoline)
3494 (objc_submethod_helper_data): Likewise.
3495 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3496 * infrun.c (handle_inferior_event): Likewise.
3497 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3498 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3499 gdbarch_in_solib_return_trampoline.
3500 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3501 * infrun.c (handle_inferior_event): Likewise.
3502 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3503 * gdbarch.c, gdbarch.h: Regenerate.
3505 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3507 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3508 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3509 * linespec.c (minsym_found): Likewise.
3510 * infrun.c (step_into_function): Likewise.
3511 * gdbarch.c, gdbarch.h: Regenerate.
3513 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3515 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3516 * valops.c (value_allocate_space_in_inferior): Likewise.
3517 * gdbarch.c, gdbarch.h: Regenerate.
3519 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3521 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3522 gdbarch_memory_insert_breakpoint.
3523 * mem-break.c (memory_insert_breakpoint): Likewise.
3524 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3525 gdbarch_memory_remove_breakpoint.
3526 * mem-break.c (memory_remove_breakpoint): Likewise.
3527 * gdbarch.c, gdbarch.h: Regenerate.
3529 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3531 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3532 gdbarch_fetch_tls_load_module_address.
3533 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3534 gdbarch_fetch_tls_load_module_address_p.
3535 * gdbarch.c, gdbarch.h: Regenerate.
3537 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3539 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3540 gdbarch_decr_pc_after_break.
3541 * tracepoint.c (trace_dump_command): Likewise.
3542 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3543 * linux-thread-db.c (check_event): Likewise.
3544 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3545 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3546 * frame.h: Likewise (comment).
3547 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3548 * aix-thread.c (aix_thread_wait): Likewise.
3549 * gdbarch.c, gdbarch.h: Regenerate.
3551 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3553 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3554 gdbarch_address_class_type_flags.
3555 * dwarf2read.c (read_tag_pointer_type): Likewise.
3556 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3557 gdbarch_address_class_type_flags_p.
3558 * dwarf2read.c (read_tag_pointer_type): Likewise.
3559 * gdbarch.c, gdbarch.h: Regenerate.
3561 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3563 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3564 * value.c (value_as_address): Likewise (comment).
3565 * remote-mips.c (common_breakpoint): Likewise.
3566 * regcache.c (read_pc_pid): Likewise.
3567 * printcmd.c (do_one_display): Likewise.
3568 * monitor.c (monitor_write_memory, monitor_read_memory)
3569 (monitor_insert_breakpoint): Likewise.
3570 * mips-tdep.c (heuristic_proc_start): Likewise.
3571 * infrun.c (insert_step_resume_breakpoint_at_frame)
3572 (insert_step_resume_breakpoint_at_caller): Likewise.
3573 * buildsym.c (record_line): Likewise.
3574 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3575 (arm_get_next_pc): Likewise.
3576 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3577 (store_regs): Likewise.
3578 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3579 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3580 * gdbarch.c, gdbarch.h: Regenerate.
3582 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3584 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3585 * tracepoint.c (scope_info): Likewise.
3586 * target.c (debug_print_register): Likewise.
3587 * stack.c (frame_info): Likewise.
3588 * sh-tdep.c (sh_register_reggroup_p): Likewise.
3589 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3590 (sh64_media_print_registers_info)
3591 (sh64_compact_print_registers_info): Likewise.
3592 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3593 * remote-sim.c (gdbsim_fetch_register): Likewise.
3594 * remote.c (packet_reg): Likewise (comment).
3595 * reggroups.c (default_register_reggroup_p): Likewise.
3596 * regcache.c (regcache_dump): Likewise.
3597 * printcmd.c (address_info): Likewise.
3598 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3599 * mt-dep.c (mt_registers_info): Likewise.
3600 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3601 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3602 (mips_read_fp_register_double, mips_print_fp_register)
3603 (mips_print_register, print_gp_register_row, mips_print_registers_info)
3604 (mips_register_sim_regno): Likewise.
3605 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3606 * inf-ptrace.c (inf_ptrace_fetch_register)
3607 (inf_ptrace_store_register): Likewise.
3608 * infcmd.c (default_print_registers_info): Likewise.
3609 * ia64-linux-nat.c (ia64_linux_fetch_register)
3610 (ia64_linux_store_register): Likewise.
3611 * i386-linux-nat.c (fetch_register, store_register): Likewise.
3612 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3613 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3614 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3615 (hppa_hpux_store_register): Likewise.
3616 * findvar.c (locate_var_value): Likewise.
3617 * dwarf2loc.c (locexpr_describe_location): Likewise.
3618 * dwarf2-frame.c (execute_cfa_program): Likewise.
3619 * arm-tdep.c (arm_push_dummy_call): Likewise.
3620 * arch-utils.c (legacy_register_sim_regno): Likewise.
3621 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3622 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3623 * mi/mi-main.c (mi_cmd_data_list_register_names)
3624 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3625 (mi_cmd_data_write_register_values): Likewise.
3626 * gdbarch.c, gdbarch.h: Regenerate.
3628 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3630 * target-memory.c (blocks_to_erase): Correct off-by-one error.
3632 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
3634 * remote.c (process_g_packet): Don't check size.
3635 * gdbarch.sh: Remove register_bytes_ok.
3636 * gdbarch.c: Regenerated.
3637 * gdbarch.h: Regenerated.
3638 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
3639 (m68k_register_bytes_ok): Remove.
3640 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
3642 2007-06-06 Andreas Schwab <schwab@suse.de>
3644 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
3645 (destroy_addr_space_name): Define.
3646 (libunwind_load): Get address of destroy_addr_space function.
3647 (libunwind_frame_cache): Destroy unw_addr_space_t object before
3648 returning unsuccessfully.
3649 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
3651 (libunwind_sigtramp_frame_sniffer): Likewise.
3652 (libunwind_get_reg_special): Likewise.
3654 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3656 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
3657 gdbarch_fetch_pointer_argument.
3658 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
3659 * gdbarch.c, gdbarch.h: Regenerate.
3661 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3663 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
3664 gdbarch_have_nonsteppable_watchpoint.
3665 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
3666 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
3667 gdbarch_cannot_step_breakpoint.
3668 * infrun.c (resume): Likewise.
3669 * gdbarch.c, gdbarch.h: Regenerate.
3671 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3673 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
3674 * stack.c (print_frame_args): Likewise.
3675 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
3676 * stack.c (print_args_stub, frame_info): Likewise.
3677 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
3678 * stack.c (print_args_stub, frame_info): Likewise.
3679 * gdbarch.c, gdbarch.h: Regenerate.
3681 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3683 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
3684 gdbarch_coff_make_msymbol_special.
3685 * coffread.c (coff_symtab_read): Likewise.
3686 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
3687 gdbarch_elf_make_msymbol_special.
3688 * elfread.c (elf_symtab_read): Likewise.
3689 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
3690 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
3691 * gdbarch.c, gdbarch.h: Regenerate.
3693 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3695 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
3696 gdbarch_frame_red_zone_size.
3697 * gdbarch.c, gdbarch.h: Regenerate.
3699 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3701 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
3702 * infcall.c (call_function_by_hand): Likewise.
3703 * gcore.c (derive_stack_segment): Likewise.
3704 * frame.c (frame_id_inner): Likewise.
3705 * arch-utils.c (core_addr_lessthan): Likewise (comment).
3706 * ada-lang.c (ensure_lval): Likewise.
3707 * gdbarch.c, gdbarch.h: Regenerate.
3709 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3711 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
3712 gdbarch_address_to_pointer.
3713 * findvar.c (store_typed_address): Likewise.
3714 * gdbtypes.c (make_pointer_type): Likewise (comment).
3715 * procfs.c (procfs_address_to_host_pointer): Likewise.
3716 * std-regs.c (value_of_builtin_frame_reg): Likewise.
3717 (value_of_builtin_frame_fp_reg): Likewise.
3718 (value_of_builtin_frame_pc_reg): Likewise.
3719 * utils.c (paddress): Likewise (comment).
3720 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
3721 gdbarch_pointer_to_address.
3722 * findvar.c (extract_typed_address): Likewise.
3723 * gdbtypes.c (make_pointer_type): Likewise (comment).
3724 * valops.c (value_cast): Likewise (comment).
3725 * gdbarch.c, gdbarch.h: Regenerate.
3727 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3729 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
3730 * infrun.c (handle_inferior_event): Likewise.
3731 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
3732 gdbarch_get_longjmp_target_p.
3733 * breakpoint.c (breakpoint_re_set): Likewise.
3734 * infrun.c (handle_inferior_event): Likewise.
3735 * gdbarch.c, gdbarch.h: Regenerate.
3737 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3739 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
3740 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
3741 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
3742 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
3743 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
3744 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
3745 find_stub_with_shl_get, cover_find_stub_with_shl_get,
3746 initialize_hp_cxx_exception_support, child_enable_exception_callback,
3747 current_ex_event, child_get_current_exception_event): Remove.
3748 (hppa_hpux_inferior_created): Remove.
3749 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
3751 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
3752 (deprecated_exception_support_initialized): Remove.
3753 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
3754 (deprecated_exception_support_initialized): Remove.
3755 (breakpoint_init_inferior): Remove handling of non-zero
3756 deprecated_exception_catchpoints_are_fragile.
3758 * symtab.h (deprecated_hp_som_som_object_present): Remove.
3759 * symtab.c (deprecated_hp_som_som_object_present): Remove.
3760 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
3761 deprecated_hp_som_som_object_present.
3762 * eval.c (evaluate_subexp_standard): Likewise.
3763 * valops.c (value_cast): Likewise.
3765 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
3766 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
3767 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
3769 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3771 * objfiles.h (ImportEntry, ExportEntry): Remove types.
3772 (struct objfile): Remove import_list, import_list_size,
3773 export_list, export_list_size members.
3774 (is_in_import_list): Remove prototype.
3775 * objfiles.c (is_in_import_list): Remove.
3776 * somread.c (init_import_symbols, init_export_symbols): Remove.
3777 (som_symfile_read): Do not call init_import_symbols. Do not
3778 set objfile->export_list and objfile->export_list_size.
3780 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
3782 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
3783 Use the original objfile if necessary.
3785 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
3787 * defs.h (ldirname): New prototype.
3788 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
3790 * utils.c (ldirname): New function.
3791 * xml-tdesc.c (file_read_description_xml): Use ldirname.
3793 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3795 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
3797 2007-06-01 Joel Brobecker <brobecker@adacore.com>
3799 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
3801 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3803 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
3805 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3807 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
3808 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
3809 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
3810 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
3811 (ppc_linux_in_sigtramp, insn_is_sigreturn,
3812 ppc_linux_at_sigtramp_return_path): Remove.
3814 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3816 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
3817 (xtensa_register_write_masked, xtensa_register_read_masked)
3818 (xtensa_extract_return_value, xtensa_store_return_value
3819 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
3820 TARGET_BYTE_ORDER by gdbarch_byte_order.
3821 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
3822 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
3823 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
3824 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
3825 (sh64_push_dummy_call, sh64_extract_return_value)
3826 (sh64_store_return_value, sh64_register_convert_to_virtual)
3827 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
3828 (sh64_pseudo_register_write, sh64_do_fp_register)
3829 (sh64_frame_prev_register): Likewise.
3830 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
3831 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
3832 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
3833 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
3834 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3835 * ppc-linux-nat.c (store_register): Likewise.
3836 * nto-tdep.c (nto_find_and_open_solib)
3837 (nto_init_solib_absolute_prefix): Likewise.
3838 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
3839 (mips_convert_register_p, mips_eabi_push_dummy_call)
3840 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
3841 (mips_o32_push_dummy_call, mips_o32_return_value)
3842 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
3843 (mips_read_fp_register_single, mips_read_fp_register_double)
3844 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
3845 (mips_breakpoint_from_pc): Likewise.
3846 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
3847 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
3848 (mips_linux_o32_sigframe_init): Likewise.
3849 * m32r-tdep.c (m32r_memory_insert_breakpoint)
3850 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
3851 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
3852 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
3853 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
3854 * coffread.c (process_coff_symbol): Likewise.
3855 * arm-tdep.c (convert_from_extended, convert_to_extended)
3856 (gdb_print_insn_arm): Likewise.
3858 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3860 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
3861 * i386-tdep.c (i386_dbx_reg_to_regnum)
3862 (i386_svr4_reg_to_regnum): Likewise.
3863 * inf-ptrace.c (inf_ptrace_fetch_registers)
3864 (inf_ptrace_store_registers): Likewise.
3865 * corelow.c (get_core_registers): Likewise.
3866 * i386-linux-nat.c (supply_gregset, fill_gregset)
3867 (i386_linux_fetch_inferior_registers)
3868 (i386_linux_store_inferior_registers): Likewise.
3869 * remote.c (init_remote_state,packet_reg_from_regnum)
3870 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
3871 (remote_prepare_to_store,store_registers_using_G)
3872 (remote_store_registers,remote_arch_state): Likewise.
3873 * tracepoint.c (encode_actions): Likewise.
3874 * mi/mi-main.c (mi_cmd_data_list_register_names)
3875 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3876 (mi_cmd_data_write_register_values): Likewise.
3877 * tui/tui-regs.c (tui_show_register_group)
3878 (tui_show_register_group): Likewise.
3879 * xtensa-tdep.h (FP_ALIAS): Likewise.
3880 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
3881 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
3882 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
3883 * win32-nat.c (do_win32_fetch_inferior_registers)
3884 (do_win32_store_inferior_registers,fetch_elf_core_registers
3885 * user-regs.h: Likewise (comment).
3886 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3887 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3888 * target-descriptions.h: Likewise (comment).
3889 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
3890 * target.c (debug_print_register): Likewise.
3891 * stack.c (frame_info): Likewise.
3892 * stabsread.c (define_symbol): Likewise.
3893 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
3894 (sh64_media_print_registers_info)
3895 (sh64_compact_print_registers_info): Likewise.
3896 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3897 * rs6000-nat.c (fetch_register,store_register): Likewise.
3898 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
3899 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
3900 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
3901 * remote-m32r-sdi.c (m32r_fetch_registers)
3902 (m32r_store_registers): Likewise.
3903 * reggroups.c (default_register_reggroup_p): Likewise.
3904 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
3905 (regcache_restore,regcache_dump): Likewise.
3906 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
3907 * mips-tdep.c (mips_xfer_register,mips_register_name)
3908 (mips_register_reggroup_p,mips_pseudo_register_read)
3909 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
3910 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
3911 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
3912 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
3913 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
3914 (print_gp_register_row,mips_print_registers_info)
3915 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3916 (mips_register_sim_regno): Likewise.
3917 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
3918 (mips_linux_n32n64_sigframe_init): Likewise.
3919 * mips-linux-nat.c (mips_linux_register_addr)
3920 (mips64_linux_register_addr): Likewise.
3921 * findvar.c (value_of_register): Likewise.
3922 * infcmd.c (default_print_registers_info,registers_info)
3923 (print_vector_info,print_float_info): Likewise.
3924 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
3925 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3926 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3927 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
3928 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3929 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
3930 (ia64_cannot_store_register,ia64_linux_fetch_registers)
3931 (ia64_linux_store_registers): Likewise.
3932 * hpux-thread.c (hpux_thread_fetch_registers)
3933 (hpux_thread_store_registers): Likewise.
3934 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
3935 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
3936 (h8300_register_type): Likewise.
3937 * dwarf2-frame.c (dwarf2_frame_cache)
3938 (dwarf2_frame_state_alloc_regs): Likewise.
3939 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
3940 (cris_cannot_store_register,crisv32_cannot_fetch_register)
3941 (crisv32_cannot_store_register,cris_register_name): Likewise.
3942 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
3943 * arch-utils.c (legacy_register_sim_regno)
3944 (legacy_virtual_frame_pointer): Likewise.
3945 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
3946 * arm-tdep.h: Likewise (comment).
3947 * frv-tdep.c (frv_register_sim_regno): Likewise.
3948 * m68klinux-nat.c (old_fetch_inferior_registers)
3949 (old_store_inferior_registers): Likewise.
3950 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3951 * irix5-nat.c (fetch_core_registers): Likewise.
3952 * hppa-tdep.c (hppa_frame_cache): Likewise.
3953 * hppa-linux-nat.c (hppa_linux_register_addr)
3954 (hppa_linux_fetch_inferior_registers)
3955 (hppa_linux_store_inferior_registers): Likewise.
3956 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
3957 (hppa_hpux_store_inferior_registers): Likewise.
3958 * amd64-nat.c (amd64_native_gregset_reg_offset)
3959 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
3960 * dbug-rom.c (dbug_regname): Likewise.
3961 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
3962 (HARD_PAGE_REGNUM (comment)): Likewise.
3963 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
3964 * i386-tdep.c (i386_dbx_reg_to_regnum)
3965 (i386_svr4_reg_to_regnum): Likewise.
3966 * mi/mi-main.c (mi_cmd_data_list_register_names)
3967 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3968 (mi_cmd_data_write_register_values): Likewise.
3969 * gdbarch.c, gdbarch.h: Regenerate.
3970 * tui/tui-regs.c (tui_show_register_group): Likewise.
3971 * xtensa-tdep.h (FP_ALIAS): Likewise.
3972 * user-regs.h: Likewise (comment).
3973 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3974 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3975 * target-descriptions.h: Likewise (comment).
3976 * target.c (debug_print_register): Likewise.
3977 * stack.c (frame_info): Likewise.
3978 * stabsread.c (define_symbol): Likewise.
3979 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
3980 (sh64_compact_print_registers_info): Likewise.
3981 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3982 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
3983 (regcache_restore,regcache_dump): Likewise.
3984 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
3985 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3986 (mips_stab_reg_to_regnum): Likewise.
3987 * findvar.c (value_of_register): Likewise.
3988 * infcmd.c (default_print_registers_info,registers_info)
3989 (print_vector_info,print_float_info): Likewise.
3990 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3991 * h8300-tdep.c (h8300_register_type): Likewise.
3992 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3993 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
3994 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
3995 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
3996 * parse.c: Remove comment.
3997 * gdbarch.c, gdbarch.h: Regenerate
3999 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4001 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
4002 gdbarch_cannot_fetch_register.
4003 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4004 * hppa-linux-nat.c (fetch_register): Likewise.
4005 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4006 * m68klinux-nat.c (fetch_register): Likewise.
4007 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
4009 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
4010 gdbarch_cannot_store_register.
4011 * hppa-linux-nat.c (store_register): Likewise.
4012 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
4013 * regcache.c (regcache_raw_write): Likewise.
4014 * m68klinux-nat.c (store_register): Likewise.
4015 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4016 * gdbarch.c, gdbarch.h: Regenerate.
4018 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4020 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4021 * gdbarch.c, gdbarch.h: Regenerate.
4023 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4025 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4026 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4027 * gdbarch.c, gdbarch.h: Regenerate.
4029 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4031 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4032 * ax-gdb.c (gen_bitfield_ref): Likewise.
4033 * mi/mi-main.c (get_register): Likewise.
4034 * findvar.c (default_value_from_register, extract_signed_integer)
4035 (extract_unsigned_integer, extract_long_unsigned_integer)
4036 (store_signed_integer, store_unsigned_integer): Likewise.
4037 * regcache.c (regcache_dump): Likewise.
4038 * value.c (lookup_internalvar, value_of_internalvar)
4039 (set_internalvar): Likewise.
4041 * valprint.c (print_binary_chars, print_octal_chars)
4042 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4043 * infcmd.c (default_print_registers_info): Likewise.
4044 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4045 * stabsread.c (define_symbol): Likewise.
4046 * doublest.c (floatformat_from_length, floatformat_from_type)
4047 (extract_typed_floating, store_typed_floating): Likewise.
4048 * gdbarch.c, gdbarch.h: Regenerate.
4050 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4052 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4053 gdbarch_call_dummy_location.
4054 * infcall.c (call_function_by_hand): Likewise.
4055 * inferior.h: Change comment.
4056 * arch-utils.c: Change comment.
4057 * gdbarch.c, gdbarch.h: Regenerate.
4059 2007-05-28 Joel Brobecker <brobecker@adacore.com>
4061 * solib-aix5.c: Delete.
4062 * Makefile.in (solib-aix5.o): Delete rule.
4064 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4066 * breakpoint.h (enum bpstat_what_main_action): Remove
4067 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4068 * infrun.c (process_event_stop_test): Do not check for it.
4070 2007-05-22 Chris Dearman <chris@mips.com>
4071 Maciej W. Rozycki <macro@mips.com>
4073 * ser-unix.c (show_serial_hwflow): New function.
4074 (hardwire_raw): Add hardware flow control support.
4075 (_initialize_ser_hardwire): Add "set/show remoteflow".
4076 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4077 * NEWS: Document the new command.
4079 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4081 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4082 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4083 define for i[[3456]]86-*-linux* native configurations.
4084 * config.in, configure: Regenerate.
4086 2007-05-19 Joel Brobecker <brobecker@adacore.com>
4088 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4089 a core file. Add comment in the function description.
4091 2007-05-18 Caroline Tice <ctice@apple.com>
4093 * c-valprint.c (c_value_print): If the initialized field of the
4094 value struct is 0, print out "[uninitialized]" before the value.
4095 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4096 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4097 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4098 ctx->initialized appropriately. Verify no location op follows
4100 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4101 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4102 set_value_initialized.
4103 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4104 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4105 * value.c (struct value): New field, initialized.
4106 (allocate_value): Initialize new field.
4107 (set_value_initialized): New function.
4108 (value_initialized): New function.
4109 * value.h (value_initialized): New extern declaration.
4110 (set_value_initialized): Likewise.
4112 2007-05-18 Caroline Tice <ctice@apple.com>
4114 * MAINTAINERS (Write After Approval): Add self.
4116 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4118 * gdbtypes.c (make_reference_type): Preserve the type chain
4119 and set the length of all the variants of the pointer type.
4121 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4123 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4124 and set the length of all the variants of the pointer type.
4126 2007-05-17 Maciej W. Rozycki <macro@mips.com>
4128 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4130 (mips_o64_push_dummy_call): Reformat a comment.
4132 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4134 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4135 (score_prologue_frame_base_address): Return fp to keep gdb print
4136 local variables correctly when debugging information is stabs.
4138 (score_analyze_prologue): For software watchpoint, fetch all the
4139 instructions from range [startaddr, pc] once and identify them locally
4140 to reduce memory access.
4141 (score_malloc_and_get_memblock, score_free_memblock)
4142 (score_adjust_memblock_ptr): New functions.
4143 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4145 (score_target_can_use_watch, score_stopped_by_watch)
4146 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4147 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4148 New functions for remote & local hw-watchpoint and hw-breakpoint.
4150 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
4152 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4153 declarations as well.
4155 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4157 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4158 * config/arm/tm-embed.h: Delete file.
4160 * arm-tdep.h (arm_software_single_step): Declare.
4161 * arm-tdep.c (arm_software_single_step): Make global.
4162 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4164 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4165 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4166 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4167 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4169 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4170 allow defines to be overriden by TM file.
4171 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4172 change default to {0xbe,0xbe}.
4173 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4174 arm_obsd_thumb_be_breakpoint): New global variables.
4175 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4176 tdep->thumb_breakpoint_size.
4177 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4178 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4179 tdep->thumb_breakpoint_size.
4181 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4183 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4185 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4188 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4189 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4190 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4191 (mips_abi_regsize): Simplify.
4192 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4193 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4194 (mips_o32_return_value, mips_o64_push_dummy_call)
4195 (mips_o64_return_value): Propogate constant register sizes. Use the
4196 ABI register size instead of mips_stack_argsize.
4197 (mips_dump_tdep): Don't print mips_stack_argsize.
4198 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4201 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4203 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4204 * config/mips/tm-linux.h: Delete.
4205 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4206 (mips_linux_in_dynsym_resolve_code): Make static. Use
4207 svr4_in_dynsym_resolve_code.
4208 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4210 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4212 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4213 * Makefile.in (mips-linux-tdep.o): Update.
4214 * solib.c (set_solib_ops): New.
4215 (current_target_so_ops): Update comment.
4216 * solib.h (set_solib_ops): New prototype.
4218 2007-05-16 Chris Dearman <chris@mips.com>
4220 * printcmd.c (do_examine): Fix typos in a comment.
4222 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4224 * configure.ac: Allow sysroots to be relocated under $prefix as
4225 well as $exec_prefix.
4226 * configure: Regenerate.
4228 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4230 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4231 (offsetof): Do not define.
4232 (find_stub_with_shl_get): Use numerical value 3 instead of
4233 symbolic value TYPE_PROCEDURE.
4235 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4237 * gdb_proc_service.h (paddr_t): Delete typedef.
4238 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4239 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4240 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4241 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4242 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4243 * Makefile.in (proc-service.o): Update.
4245 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4247 * Makefile.in (mips-tdep.o): Update.
4248 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4251 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4253 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4254 instead of store_typed_address.
4255 * value.c (pack_long): New.
4256 (value_from_longest): Use it.
4257 * value.h (pack_long): New prototype.
4259 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4261 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4262 DW_EH_PE_signed if appropriate.
4264 2007-05-14 Paul Brook <paul@codesourcery.com>
4265 Daniel Jacobowitz <dan@codesourcery.com>
4267 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4269 (dwarf_decode_lines): Check for line info without a file.
4271 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4273 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4276 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4278 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4280 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4282 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4284 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4286 * gdbarch.sh (read_sp): Remove.
4287 * gdbarch.c, gdbarch.h: Regenerate.
4288 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4290 * avr-tdep.c (avr_read_sp): Remove.
4291 (avr_unwind_sp): New function.
4292 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4293 * mips-tdep.c (mips_read_sp): Remove.
4294 (mips_unwind_sp): New function.
4295 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4296 * score-tdep.c (score_read_unsigned_register): Remove.
4297 (score_read_sp): Remove.
4298 (score_unwind_sp): New function.
4299 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4301 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4303 * buildsym.c (start_subfile): Handle absolute pathnames
4304 while comparing subfile names.
4306 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4308 * hppa-hpux-tdep.c: Include "regcache.h".
4309 * hppa-linux-tdep.c: Likewise.
4310 * hppa-tdep.c: Include "gdb_stdint.h".
4311 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4313 * Makefile.in: Update dependencies.
4315 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4317 * blockframe.c: Remove obsolete comments.
4318 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4319 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4320 * hppa-tdep.h (enum hppa_regnum): Likewise.
4321 * mips-tdep.h: Likewise.
4322 * m68hc11-tdep.c: Likewise.
4324 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4326 * inferior.h (read_sp): Remove prototype.
4327 * regcache.c (read_sp): Remove.
4328 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4329 * infcall.c (call_function_by_hand): Likewise.
4330 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4332 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4334 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4336 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4337 instead of read_register and read_register_pid.
4339 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4340 argument instead of PTID. Use regcache functions instead of
4342 (ia64_linux_insert_watchpoint): Update call.
4343 (ia64_linux_stopped_data_address): Use regcache functions
4344 instead of read_register_pid and write_register_pid.
4346 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4348 * libunwind-frame.h (struct regcache): Add forward declaration.
4349 (libunwind_get_reg_special): Add REGCACHE argument.
4350 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4351 argument. Pass it to unw_init_remote_p.
4353 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4354 libunwind_get_reg_special.
4355 (ia64_access_reg): Remove "write" case.
4356 (ia64_access_fpreg): Likewise. Read from next_frame passed
4357 as callback argument instead of from current_regcache.
4358 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4359 passed as callback argument instead of from current_regcache.
4360 (ia64_access_rse_fpreg): New function.
4361 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4363 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4365 * NEWS: Mention SPU overlay support.
4367 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4369 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4371 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4373 * breakpoint.c (remove_breakpoint): Do not remove software
4374 breakpoints in unmapped overlay sections.
4376 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4378 * spu-tdep.c: Include "observer.h".
4379 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4380 (spu_overlay_data): New variable.
4381 (struct spu_overlay_table): New type.
4382 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4383 spu_overlay_new_objfile): New functions.
4384 (spu_gdbarch_init): Install spu_overlay_update.
4385 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4386 allocate spu_overlay_data objfile data.
4388 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4390 * gdbarch.sh (overlay_update): New gdbarch function.
4391 (struct obj_section): Add forward declaration.
4392 * gdbarch.c, gdbarch.h: Regenerate.
4394 * symfile.c (simple_overlay_update): Make global.
4395 (target_overlay_update): Remove variable.
4396 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4397 target_overlay_update.
4398 (overlay_load_command): Likewise.
4399 * symfile.h (struct obj_section): Add forward declaration.
4400 (simple_overlay_update): Add prototype.
4402 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4404 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4406 * observer.sh: Add "struct objfile" forward declaration.
4407 * target.h (deprecated_target_new_objfile_hook): Remove.
4408 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4409 (clear_symtab_users): Call observer_notify_new_objfile.
4410 (symbol_file_add_with_addrs_or_offsets): Likewise.
4411 * rs6000-nat.c: Include "observer.h".
4412 (vmap_ldinfo): Call observer_notify_new_objfile.
4413 (xcoff_relocate_core): Likewise.
4414 * remote.c (remote_new_objfile_chain): Remove.
4415 (remote_new_objfile): Do not call remote_new_objfile_chain.
4416 (_initialize_remote): Use observer_attach_new_objfile.
4417 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4418 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4419 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4420 * aix-thread.c: Include "observer.h".
4421 (target_new_objfile_chain): Remove.
4422 (new_objfile): Do not call target_new_objfile_chain.
4423 (_initialize_aix_thread): Use observer_attach_new_objfile.
4424 * hpux-thread.c: Include "observer.h"
4425 (target_new_objfile_chain): Remove.
4426 (hpux_thread_new_objfile): Make static. Do not call
4427 target_new_objfile_chain.
4428 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4429 * linux-thread-db.c: Include "observer.h".
4430 (target_new_objfile_chain): Remove.
4431 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4432 (_initialize_thread_db): Use observer_attach_new_objfile.
4433 * sol-thread.c: Include "observer.h".
4434 (target_new_objfile_chain): Remove.
4435 (sol_thread_new_objfile): Make static. Do not call
4436 target_new_objfile_chain.
4437 (_initialize_sol_thread): Use observer_attach_new_objfile.
4438 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4439 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4442 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4444 * gdbarch.sh (remote_translate_xfer_address): Remove.
4445 * gdbarch.h, gdbarch.c: Regenerate.
4446 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4447 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4448 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4449 call gdbarch_remote_translate_xfer_address.
4450 * frv-tdep.c (frv_gdbarch_init): Do not call
4451 set_gdbarch_remote_translate_xfer_address.
4452 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4453 (ia64_gdbarch_init): Do not install it.
4455 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4457 * NEWS: Mention change in handling the -tui option.
4459 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4461 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4464 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4466 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4467 (breakpoint_inserted_here_p): Call it.
4468 (software_breakpoint_inserted_here_p): Likewise.
4470 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4472 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4473 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4474 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4475 (inf_ptrace_store_register): Likewise.
4476 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4477 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4479 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4481 * linux-nat.c (linux_trad_target): Adapt parameter list.
4482 * linux-nat.h (linux_trad_target): Likewise.
4484 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4486 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4487 (mips_linux_cannot_store_register): Likewise.
4488 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4489 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4490 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4491 (mips64_linux_register_addr): Likewise.
4492 (mips_linux_register_u_offset): Adapt parameter list. Pass
4493 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4495 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4496 * config/mips/nm-linux.h: Delete file.
4498 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4500 * remote.c (remote_detach): Error out if remote can't detach.
4502 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
4504 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4505 instruction's opcode in the "opcode" variable and declares new
4506 variable "closing_insn".
4508 2007-05-10 Chris Dearman <chris@mips.com>
4509 Maciej W. Rozycki <macro@mips.com>
4511 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4512 whitespace when setting a var_filename.
4514 2007-05-09 Bob Wilson <bob.wilson@acm.org>
4516 * main.c (captured_main): Recognize -tui option and print an error
4517 message when the TUI is not configured.
4519 2007-05-09 Andreas Schwab <schwab@suse.de>
4521 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4522 set removed members.
4523 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4525 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4527 * gdbarch.sh (deprecated_store_struct_return): Remove.
4528 * gdbarch.c, gdbarch.h: Regenerate.
4529 * frv-tdep.c (frv_store_struct_return): Remove.
4530 (frv_gdbarch_init): Do not install it.
4532 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4534 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4535 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4536 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4538 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4540 * spu-linux-nat.c: Include "gdb_stdint.h".
4541 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4542 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4543 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4544 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4545 (spu_child_wait): Mark up string for translation.
4547 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4548 Luis Machado <luisgpm@br.ibm.com>
4550 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4551 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4552 BC_INSTRUCTION): Define.
4553 (deal_with_atomic_sequence): New function.
4554 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4555 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4556 gdbarch_software_single_step routine.
4558 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4560 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4561 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4562 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4563 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4564 spu_child_post_attach, spu_fetch_inferior_registers,
4565 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4566 memory addresses as ULONGEST, not CORE_ADDR.
4568 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4570 * gdbarch.sh: Add skip_permanent_breakpoint callback.
4571 * gdbarch.h, gdbarch.c: Regenerate.
4573 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4574 (resume): Call gdbarch_skip_permanent_breakpoint instead of
4575 SKIP_PERMANENT_BREAKPOINT. Inline default case.
4577 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4578 Add REGCACHE argument. Use it instead of read/write_register.
4579 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4581 * config/pa/tm-hppah.h: Delete file.
4582 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4583 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4585 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4587 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4588 * NEWS: Mention improved C++ thunk support.
4589 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4590 * cp-abi.c (cplus_skip_trampoline): New.
4591 * cp-abi.h (cplus_skip_trampoline): New prototype.
4592 (struct cp_abi_ops): Add skip_trampoline member.
4593 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4594 (init_gnuv3_ops): Set skip_trampoline.
4596 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4598 * rs6000-tdep.c (struct frame_extra_info): Delete.
4600 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4602 * linux-thread-db.c: Update some FIXME comments.
4603 (thread_db_xfer_partial): Delete.
4604 (init_thread_db_ops): Do not set to_xfer_partial.
4606 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4608 * inftarg.c, infptrace.c: Remove files.
4609 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4610 (inftarg.o, infptrace.o): Remove rules.
4611 * gdbcore.h (register_addr): Remove prototype.
4612 * inferior.h (kill_inferior, store_inferior_registers,
4613 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4614 call_ptrace, pre_fork_inferior): Remove prototypes.
4615 * target.h (child_xfer_memory, child_pid_to_exec_file,
4616 child_core_file_to_sym_file, child_post_attach,
4617 child_post_startup_inferior, child_acknowledge_created_inferior,
4618 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4619 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4620 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4621 child_follow_fork, child_reported_exec_events_per_exec_call,
4622 child_has_exited, child_thread_alive): Remove prototypes.
4624 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4626 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4627 (sparc_store_inferior_registers): Likewise.
4628 * sparc-nat.c (fetch_inferior_registers): Rename to ...
4629 (sparc_fetch_inferior_registers): ... this.
4630 (store_inferior_registers): Rename to ...
4631 (sparc_store_inferior_registers): ... this.
4632 (sparc_target): Update callback names.
4633 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
4634 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
4636 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4638 * linux-nat.c (child_post_attach): Rename to ...
4639 (linux_child_post_attach): ... this. Make static.
4640 (child_follow_fork): Rename to ...
4641 (linux_child_follow_fork): ... this. Make static.
4642 (child_insert_fork_catchpoint): Rename to ...
4643 (linux_child_insert_fork_catchpoint): ... this. Make static.
4644 (child_insert_vfork_catchpoint): Rename to ...
4645 (linux_child_insert_vfork_catchpoint): ... this. Make static.
4646 (child_insert_exec_catchpoint): Rename to ...
4647 (linux_child_insert_exec_catchpoint): ... this. Make static.
4648 (child_pid_to_exec_file): Rename to ...
4649 (linux_child_pid_to_exec_file): ... this. Make static.
4651 (linux_handle_extended_wait): Update call.
4652 (linux_xfer_partial): Update callback routine names.
4654 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4656 * configure.host (alpha*-*-osf[12]*): Remove support.
4657 * NEWS: Mention removed configurations.
4659 * config/alpha/alpha-osf1.mh: Delete file.
4660 * config/alpha/alpha-osf2.mh: Delete file.
4661 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
4663 * config/alpha/nm-osf.h: Delete file.
4664 * config/alpha/nm-osf2.h: Delete file.
4665 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
4666 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
4667 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
4669 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
4670 (register_addr, kernel_u_size): Remove.
4671 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
4673 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4675 * regcache.c (regcache_invalidate): New function.
4676 (register_cached): Remove.
4677 (set_register_cached): Remove.
4678 (deprecated_registers_fetched): Remove.
4679 (registers_changed): Use regcache_invalidate instead
4680 of set_register_cached.
4681 (regcache_raw_read): Update comment.
4683 * regcache.h (regcache_invalidate): Add prototype.
4684 (register_cached): Remove.
4685 (set_register_cached): Remove.
4686 (deprecated_registers_fetched): Remove.
4688 * findvar.c (value_of_register): Do not call register_cached.
4689 * frame.c (frame_register): Likewise.
4690 * tui/tui-regs.c (tui_get_register): Likewise.
4692 * remote.c (fetch_register_using_p): Do not call set_register_cached.
4693 (process_g_packet): Likewise.
4694 (remote_fetch_registers): Likewise.
4695 * remote-sim.c (gdbsim_fetch_register): Likewise.
4696 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
4697 by regcache_invalidate.
4698 (mt_pseudo_register_write): Likewise.
4699 * sh-tdep.c (sh_pseudo_register_write): Likewise.
4701 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
4702 call by loop over regcache_raw_supply (..., NULL).
4704 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4706 * target.h (struct target_ops): Add REGCACHE parameter to
4707 to_prepare_to_store.
4708 (target_prepare_to_store): Likewise.
4709 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
4710 (update_current_target): Adapt prepare_to_store de_fault rule.
4712 * regcache.c (regcache_raw_write): Pass regcache to
4713 target_prepare_to_store.
4715 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
4716 Do not call CHILD_PREPARE_TO_STORE.
4717 * gnu-nat.c (gnu_prepare_to_store): Likewise.
4718 * procfs.c (procfs_prepare_to_store): Likewise.
4720 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
4721 * go32-nat.c (go32_prepare_to_store): Likewise.
4722 * monitor.c (monitor_prepare_to_store): Likewise.
4723 * nto-procfs.c (procfs_prepare_to_store): Likewise.
4724 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
4725 * remote-mips.c (mips_prepare_to_store): Likewise.
4726 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
4727 * win32-nat.c (win32_prepare_to_store): Likewise.
4729 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
4730 Use it instead of current_regcache.
4732 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
4733 parameter. Pass it on to next target.
4734 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
4736 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4738 * target.h (struct regcache): Add forward declaration.
4739 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
4740 and to_store_registers target operations.
4741 (target_fetch_registers, target_store_registers): Update.
4743 * regcache.c (regcache_raw_read): Replace register_cached by
4744 regcache_valid_p. Pass regcache to target_fetch_registers.
4745 (regcache_raw_write): Pass regcache to target_store_registers.
4747 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
4748 store_regs, store_wmmx_regs): Replace register_cached by
4751 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
4752 to target_fetch_registers calls.
4753 * corelow.c (core_open): Likewise.
4754 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
4755 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4756 ps_lsetfpregs): Likewise.
4757 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4758 ps_lsetfpregs): Likewise.
4759 * win32-nat.c (win32_resume): Likewise.
4760 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
4761 to target_store_registers call.
4762 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4764 * inferior.h (store_inferior_registers): Update prototype.
4765 (fetch_inferior_registers): Likewise.
4766 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
4767 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
4768 Update function pointer signatures.
4770 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
4771 use it instead of current_regcache, update calls.
4772 (aix_thread_store_registers): Likewise.
4773 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4774 (alphabsd_store_inferior_registers): Likewise.
4775 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4776 (amd64bsd_store_inferior_registers): Likewise.
4777 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
4778 (amd64_linux_store_inferior_registers): Likewise.
4779 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
4780 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
4781 fetch_wmmx_regs, store_wmmx_regs): Likewise.
4782 (arm_linux_fetch_inferior_registers): Likewise.
4783 (arm_linux_store_inferior_registers): Likewise.
4784 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
4785 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
4786 (store_register, store_regs, store_fp_register, store_fp_regs,
4787 armnbsd_store_registers): Likewise.
4788 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
4789 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4790 (bsd_uthread_store_registers): Likewise.
4791 * corelow.c (get_core_registers): Likewise.
4792 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
4793 go32_store_registers): Likewise.
4794 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
4795 (hppabsd_store_registers): Likewise.
4796 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
4797 (hppa_hpux_fetch_inferior_registers): Likewise.
4798 (hppa_hpux_store_register): Likewise.
4799 (hppa_hpux_store_inferior_registers): Likewise.
4800 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4801 (hppa_linux_fetch_inferior_registers): Likewise.
4802 (hppa_linux_store_inferior_registers): Likewise.
4803 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
4804 (hpux_thread_store_registers): Likewise.
4805 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
4806 (i386bsd_store_inferior_registers): Likewise.
4807 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
4808 gnu_store_registers): Likewise.
4809 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
4810 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
4812 (i386_linux_fetch_inferior_registers): Likewise.
4813 (i386_linux_store_inferior_registers): Likewise.
4814 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
4815 (ia64_linux_fetch_registers): Likewise.
4816 (ia64_linux_store_register): Likewise.
4817 (ia64_linux_store_registers): Likewise.
4818 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4819 (inf_child_store_inferior_registers): Likewise.
4820 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4821 (inf_ptrace_fetch_registers): Likewise.
4822 (inf_ptrace_store_register): Likewise.
4823 (inf_ptrace_store_registers): Likewise.
4824 * infptrace.c (fetch_register, store_register): Likewise.
4825 (fetch_inferior_registers, store_inferior_registers): Likewise.
4826 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
4827 (m32r_linux_fetch_inferior_registers): Likewise.
4828 (m32r_linux_store_inferior_registers): Likewise.
4829 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
4830 (m68kbsd_store_inferior_registers): Likewise.
4831 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
4832 store_register, old_store_inferior_registers, fetch_regs, store_regs,
4833 fetch_fpregs, store_fpregs): Likewise.
4834 (m68k_linux_fetch_inferior_registers): Likewise.
4835 (m68k_linux_store_inferior_registers): Likewise.
4836 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
4837 (m88kbsd_store_inferior_registers): Likewise.
4838 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
4839 (mips64obsd_store_inferior_registers): Likewise.
4840 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
4841 (mips64_linux_regsets_store_registers): Likewise.
4842 (mips64_linux_fetch_registers): Likewise.
4843 (mips64_linux_store_registers): Likewise.
4844 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4845 (mipsnbsd_store_inferior_registers): Likewise.
4846 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
4847 (monitor_fetch_registers, monitor_store_registers): Likewise.
4848 * nto-procfs.c (procfs_fetch_registers): Likewise.
4849 (procfs_store_registers): Likewise.
4850 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
4851 fetch_register, supply_vrregset, fetch_altivec_registers,
4852 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
4853 (store_altivec_register, store_spe_register, store_register,
4854 fill_vrregset, store_altivec_registers, store_ppc_registers,
4855 ppc_linux_store_inferior_registers): Likewise.
4856 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
4857 (ppcnbsd_store_inferior_registers): Likewise.
4858 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
4859 (ppcobsd_store_registers): Likewise.
4860 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4861 * remote.c (fetch_register_using_p, process_g_packet,
4862 fetch_registers_using_g, remote_fetch_registers): Likewise.
4863 (store_register_using_P, store_registers_using_G,
4864 remote_store_registers): Likewise.
4865 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
4866 m32r_store_register, m32r_store_register): Likewise.
4867 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
4868 * remote-sim.c (gdbsim_fetch_register): Likewise.
4869 (gdbsim_store_register): Likewise.
4870 * rs6000-nat.c (fetch_register, store_register): Likewise.
4871 (rs6000_fetch_inferior_registers): Likewise.
4872 (rs6000_store_inferior_registers): Likewise.
4873 * s390-nat.c (fetch_regs, store_regs): Likewise.
4874 (fetch_fpregs, store_fpregs): Likewise.
4875 (s390_linux_fetch_inferior_registers): Likewise.
4876 (s390_linux_store_inferior_registers): Likewise.
4877 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4878 (shnbsd_store_inferior_registers): Likewise.
4879 * sol-thread.c (sol_thread_fetch_registers): Likewise.
4880 (sol_thread_store_registers): Likewise.
4881 * sparc-nat.c (fetch_inferior_registers): Likewise.
4882 (store_inferior_registers): Likewise.
4883 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4884 (spu_store_inferior_registers): Likewise.
4885 * target.c (debug_print_register): Likewise.
4886 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
4887 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
4888 (vaxbsd_store_inferior_registers): Likewise.
4889 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
4890 (win32_fetch_inferior_registers): Likewise.
4891 (win32_store_inferior_registers): Likewise.
4893 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4895 * gdbcore.h (struct regcache): Add forward declaration.
4896 (struct core_fns): Add REGCACHE argument to core_read_registers
4898 * corelow.c (get_core_register_section): Add REGCACHE argument,
4899 use it instead of current_regcache, pass it to core_read_registers
4901 (get_core_registers): Add current_regcache as parameter to
4902 get_core_register_section calls.
4904 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
4905 use it instead of current_regcache.
4906 * armnbsd-nat.c (fetch_core_registers): Likewise.
4907 (fetch_elfcore_registers): Likewise.
4908 * core-regset.c (fetch_core_registers): Likewise.
4909 * cris-tdep.c (fetch_core_registers): Likewise.
4910 * irix5-nat.c (fetch_core_registers): Likewise.
4911 * m68klinux-nat.c (fetch_core_registers): Likewise.
4912 * mips-linux-tdep.c (fetch_core_registers): Likewise.
4913 * win32-nat.c (fetch_elf_core_registers): Likewise.
4915 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4917 * gregset.h (struct regcache): Add forward declaration.
4918 (supply_gregset): Add REGCACHE parameter, make GREGS const.
4919 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
4920 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
4921 (fill_gregset): Add REGCACHE parameter.
4922 (fill_fpregset): Likewise.
4923 (fill_fpxregset): Likewise.
4925 Update all definitions accordingly:
4926 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
4927 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
4928 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
4929 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
4930 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
4931 (supply_gregset): Add REGCACHE parameter, use it instead of
4932 current_regcache. Make GREGSETP parameter const, adapt casts.
4933 (supply_fpregset): Add REGCACHE parameter, use it instead of
4934 current_regcache. Make FPREGSETP parameter const, adapt casts.
4935 (fill_gregset): Add REGCACHE parameter, use it instead of
4937 (fill_fpregset): Likewise.
4939 Update all callers to pass in current_regcache as the new argument:
4940 * core-regset.c: Include "regcache.h".
4941 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
4942 * procfs.c: Include "regcache.h".
4943 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
4944 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
4945 (procfs_do_thread_registers): Likewise.
4946 (procfs_make_note_section): Likewise.
4947 * proc-service.c: Include "regcache.h".
4948 (ps_lgetregs): Update fill_gregset call.
4949 (ps_lsetregs): Update supply_gregset call.
4950 (ps_lgetfpregs): Update fill_fpregset call.
4951 (ps_lsetfpregs): Update supply_fpregset call.
4952 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
4953 supply_fpregset calls.
4954 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
4955 (ps_lgetregs): Update fill_gregset call.
4956 (ps_lsetregs): Update supply_gregset call.
4957 (ps_lgetfpregs): Update fill_fpregset call.
4958 (ps_lsetfpregs): Update supply_fpregset call.
4960 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
4961 fill_fpregset, and fill_fpxregset calls.
4962 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
4963 (store_regs): Update fill_gregset call.
4964 (fetch_fpregs): Update supply_fpregset call.
4965 (store_fpregs): Update fill_fpregset call.
4966 (fetch_fpxregs): Update supply_fpxregset call.
4967 (store_fpxregs): Update fill_fpxregset call.
4968 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
4969 (store_regs): Update fill_gregset call.
4970 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
4971 (store_regs): Update fill_gregset call.
4972 (fetch_fpregs): Update supply_fpregset call.
4973 (store_fpregs): Update fill_fpregset call.
4974 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
4975 * s390-nat.c (fetch_regs): Update supply_gregset call.
4976 (store_regs): Update fill_gregset call.
4977 (fetch_fpregs): Update supply_fpregset call.
4978 (store_fpregs): Update fill_fpregset call.
4980 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
4983 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4985 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
4986 it instead of current_regcache.
4987 (parse_register_dump): Add REGCACHE parameter, pass it to
4988 supply_register callback.
4989 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
4990 parse_register_dump.
4991 (monitor_dump_regs): Add REGCACHE parameter, pass it to
4992 parse_register_dump and dumpregs callback.
4993 (monitor_wait): Pass current_regcache to parse_register_dump and
4995 (monitor_fetch_register): Pass current_regcache to
4996 monitor_supply_register.
4997 (monitor_fetch_registers): Pass current_regcache to
4999 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
5000 supply_register and dumpregs callbacks.
5001 (monitor_supply_register, monitor_dump_reg_block): Update
5003 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
5004 it to monitor_supply_register.
5005 * dink32-rom.c (dink32_supply_register): Likewise.
5006 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
5007 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
5008 instead of current_regcache.
5010 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5012 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
5013 Add REGCACHE parameter. Use it instead of current_regcache.
5014 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5015 i386nto_supply_gregset and i386nto_supply_fpregset.
5016 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5017 of current_regcache.
5019 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5020 nto_supply_ helper functions.
5021 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5023 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5025 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5026 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5027 and regset_fill member function pointers.
5028 (nto_dummy_supply_regset): Adapt prototype.
5030 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5032 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5033 instead of current_regcache. Make REGS const.
5034 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5035 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5037 * shnbsd-nat.c: Include "regcache.h".
5038 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5040 (shnbsd_store_inferior_registers): Pass current_regcache to
5042 * Makefile.in (shbsd-nat.o): Update dependencies.
5044 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5046 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5047 instead of current_regcache.
5048 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5049 Make GREGSETP const, remove superfluous casts.
5050 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5051 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5053 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5054 (supply_64bit_reg): Likewise
5055 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5056 Make GREGSETP const, adapt casts accordingly.
5057 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5058 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5060 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5061 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5063 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5064 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5065 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5067 * mips-linux-nat.c: Include "regcache.h".
5068 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5069 current_regcache to mips{64}_(supply|fill)_ helper routines.
5070 (mips64_linux_regsets_fetch_registers): Likewise.
5071 (mips64_linux_regsets_store_registers): Likewise.
5073 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5074 REGCACHE argument; replace current_regcache. Make REGS const.
5075 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5076 replace current_regcache.
5077 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5078 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5079 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5080 mipsnbsd_store_inferior_registers): Pass current_regcache to
5081 mipsnbsd_(supply|fill)_... helper routines.
5083 * Makefile.in (mips-linux-nat.o): Update dependencies.
5085 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5087 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5088 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5089 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5090 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5091 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5092 * i386gnu-nat.c (store_fpregs): Likewise.
5093 * i386v4-nat.c (fill_fpregset): Likewise.
5094 * go32-nat.c (store_register, go32_store_registers): Likewise.
5096 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5098 * cris-tdep.c (supply_gregset): Rename to ...
5099 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5100 instead of current_regcache.
5101 (fetch_core_registers): Update call. Pass current_regcache.
5103 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5105 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5106 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5107 Use it instead of current_regcache.
5108 (supply_fparegset): Rename to ...
5109 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5110 Use it instead of current_regcache.
5111 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5112 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5114 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5116 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5117 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5118 use it instead of current_regcache.
5119 * alpha-tdep.h (struct regcache): Add forward declaration.
5120 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5121 alpha_fill_fp_regs): Update prototypes.
5123 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5124 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5125 * alpha-linux-nat.c: Include "regcache.h".
5126 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5127 current_regcache to alpha_supply/fill_ routines.
5129 * alphabsd-tdep.c: Include "regcache.h".
5130 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5131 pass it to alpha_supply_ routines. Make REGS const.
5132 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5133 pass it to alpha_fill_ routines.
5134 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5135 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5136 alphabsd_fill_fpreg): Update prototypes.
5138 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5139 fill_fpregset, alphabsd_fetch_inferior_registers,
5140 alphabsd_store_inferior_registers): Pass current_regcache to
5141 alphabsd_supply/fill_ routines.
5143 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5146 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5148 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5149 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5150 instead of current_regcache.
5151 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5152 REGCACHE parameter, pass it to supply_ routines.
5153 (aix_thread_fetch_registers): Pass current_regcache to
5154 fetch_regs_user_thread and fetch_regs_kernel_thread.
5156 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5157 Add REGCACHE parameter, use it instead of current_regcache.
5158 Call regcache_valid_p instead of register_cached.
5159 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5160 Also, pass REGCACHE to fill_ routines.
5161 (aix_thread_store_registers): Pass current_regcache to
5162 store_regs_user_thread and store_regs_kernel_thread.
5164 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5166 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5167 pointed to by GREGSETP.
5169 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5171 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5172 of regcache_raw_read_signed.
5173 (fill_fpregset): Use regcache_raw_collect instead of
5176 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5178 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5179 point arguments, test explicitly for use of the EABI32 ABI
5180 instead of inferring this condition from tests on register
5183 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5185 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5186 prior to allocating its location.
5188 2007-05-02 Maciej W. Rozycki <macro@mips.com>
5190 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5191 based on mips_abi_regsize() whose result is known in advance.
5192 (mips_o64_push_dummy_call): Likewise.
5194 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5196 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5197 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5199 * mips-linux-nat.c: Include "gregset.h".
5200 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5201 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5202 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5203 fill_fpregset): Move to mips-linux-nat.c.
5205 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5207 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5209 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5210 (read_register): ... here.
5211 (deprecated_write_register_gen): Remove, inline ...
5212 (write_register): ... here.
5213 * regcache.h (deprecated_read_register_gen): Remove prototype.
5214 (deprecated_write_register_gen): Likewise.
5216 * remote-sim.c (gdbsim_store_register): Replace call to
5217 deprecated_read_register_gen with regcache_cooked_read.
5218 * target.c (debug_print_register): Replace calls to
5219 deprecated_read_register_gen and read_register with
5220 regcache_cooked_read.
5222 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5224 * hpux-thread.c (hpux_thread_store_registers): Use
5225 regcache_raw_collect, not regcache_raw_read.
5226 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5227 not regcache_raw_write.
5229 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5231 * gdbarch.sh: Remove deprecated_register_byte.
5232 * gdbarch.c, gdbarch.h: Regenerate.
5233 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5234 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5236 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5237 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5238 read-only register caches. Make REGCACHE parameter const.
5239 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5241 * mi/mi-main.c (old_regs): Remove.
5242 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5243 (register_changed_p): Reimplement to compare two register caches.
5244 (mi_cmd_data_list_changed_registers): Update caller.
5245 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5246 * mi/mi-interp.c (mi_interpreter_init): Do not call
5247 mi_setup_architecture_data.
5249 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5251 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5252 inline definition at the places the macros are used.
5253 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5255 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5257 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5259 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5260 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5261 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5262 (rs6000_aix_regset_from_core_section): New function.
5263 (rs6000_aix_init_osabi): Register it.
5264 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5265 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5266 * rs6000-nat.c (CoreRegs): Do not define type.
5267 (fetch_core_registers, rs6000_core_fns): Remove.
5268 (_initialize_core_rs6000): Do not register it. Rename to ...
5269 (_initialize_rs6000_nat): ... this.
5270 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5272 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5274 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5275 (dwarf2_read_address): Sign extend return address as required by
5276 target architecture.
5278 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5280 * solib-frv.c (lm_base): Bail out if the main executable has
5283 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5285 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5286 of FPCR register in fpregset.
5288 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5290 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5291 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5293 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5295 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5296 * rs6000-nat.c (rs6000_wait): New function.
5297 (_initialize_core_rs6000): Install it as to_wait target method.
5298 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5300 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5302 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5303 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5304 * rs6000-nat.c (super_create_inferior): New variable.
5305 (rs6000_create_inferior): Make static. Adapt argument list. Call
5306 original version of create_inferior via super_create_inferior.
5307 (_initialize_core_rs6000): Install to_create_inferior target method.
5309 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5311 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5312 (aix_thread_xfer_partial): ... this.
5313 (init_aix_thread_ops): Install to_xfer_partial instead
5314 of deprecated_xfer_memory target method.
5316 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5317 and inftarg.o, add inf-ptrace.o.
5318 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5319 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5320 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5321 (fetch_inferior_registers): Rename to ...
5322 (rs6000_fetch_inferior_registers): ... this. Make static.
5323 (store_inferior_registers): Rename to ...
5324 (rs6000_store_inferior_registers): ... this. Make static.
5325 (read_word, child_xfer_memory): Remove.
5326 (rs6000_xfer_partial): New function.
5327 (kernel_u_size): Remove.
5328 (_initialize_core_rs6000): Add inf_ptrace-based target.
5329 * Makefile.in (rs6000-nat.o): Update dependencies.
5331 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5333 * inf-ptrace.c: Include "gdb_stdint.h".
5334 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5335 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5336 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5337 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5338 (inf_ptrace_store_register): Likewise.
5339 * Makefile.in (inf-ptrace.o): Update dependencies.
5341 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5343 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5344 * configure.tgt (rs6000-*-*): Likewise.
5345 * config/rs6000/aix4.mh: Delete file.
5346 * config/rs6000/aix4.mt: Delete file.
5347 * config/rs6000/rs6000.mh: Delete file.
5348 * config/rs6000/rs6000.mt: Delete file.
5350 * config/powerpc/nm-aix.h: Delete file.
5351 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5353 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5355 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5356 Remove obsolete part of comment.
5357 (store_regs_user_thread): Use uint32_t temporaries when calling
5359 (store_regs_kernel_thread): Likewise. Add assertion to verify
5360 correct size of struct ptsprs members.
5361 (aix_thread_xfer_memory): Fix type of myaddr.
5362 (aix_thread_extra_thread_info): Fix compiler warning.
5363 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5364 (fetch_register, store_register): Adapt callers.
5366 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5368 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5370 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5372 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5374 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5375 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5376 (alpha_linux_regset_from_core_section): New function.
5377 (alpha_linux_init_abi): Install it.
5378 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5379 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5380 <sys/procfs.h>, and "gregset.h".
5381 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5382 Move from config/alpha/nm-linux.h.
5383 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5385 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5386 * alpha-nat.c: Remove #ifdef __linux__ section.
5387 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5388 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5389 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5390 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5391 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5392 (NATDEPFILES): Remove alpha-nat.o.
5393 * config/alpha/nm-linux.h: Delete file.
5394 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5395 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5396 (alpha-linux-tdep.o): Likewise.
5398 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5400 * mips-linux-nat.c: No longer include "gdbcore.h".
5401 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5402 (mips64_linux_register_addr): Likewise.
5403 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5404 mips64_linux_register_addr instead of register_addr.
5405 * mips-linux-tdep.c (mips_linux_register_addr,
5406 mips64_linux_register_addr): Move to mips-linux-nat.c.
5407 (register_addr): Remove.
5408 (register_addr_data, init_register_addr_data): Remove.
5409 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5410 (set_mips_linux_register_addr): Remove.
5411 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5412 * Makefile.in (mips-linux-nat.o): Update dependencies.
5414 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5416 * linux-nat.c (linux_register_u_offset): Remove.
5417 (linux_target_install_ops): New function.
5418 (linux_target): Use it.
5419 (linux_trad_target): New function.
5420 * linux-nat.h (linux_trad_target): Declare.
5422 * alpha-linux-nat.c: Include "gdbcore.h".
5423 (alpha_linux_register_u_offset): New function.
5424 (_initialize_alpha_linux_nat): Use linux_trad_target.
5426 * mips-linux-nat.c: Include "gdbcore.h".
5427 (mips_linux_register_u_offset): New function.
5428 (_initialize_mips_linux_nat): Use linux_trad_target.
5430 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5431 * config/arm/nm-linux.h: Delete file.
5433 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5434 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5436 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5437 * config/ia64/nm-linux.h: Delete file.
5439 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5440 * config/m32r/nm-linux.h: Delete file.
5442 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5443 * config/m68k/nm-linux.h: Delete file.
5445 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5446 * config/pa/nm-linux.h: Delete file.
5448 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5449 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5450 * config/powerpc/nm-linux.h: Delete file.
5452 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5453 * config/s390/nm-linux.h: Delete file.
5455 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5456 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5457 * config/sparc/nm-linux.h: Delete file.
5459 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5460 (mips-linux-nat.o): Likewise.
5462 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5464 * core-aout.c: Delete file.
5465 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5466 (core-aout.o): Delete rule.
5467 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5469 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5471 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5472 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5473 KERNEL_U_ADDR): Remove.
5475 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5476 (cannot_fetch_register, cannot_store_register): Remove.
5477 (fetch_register): Inline cannot_fetch_register and register_addr.
5478 (store_register): Inline cannot_store_register and register_addr.
5479 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5480 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5481 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5484 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5485 (fetch_register): Inline register_addr.
5486 (store_register): Inline register_addr.
5487 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5488 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5489 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5491 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5492 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5493 REGISTER_U_ADDR): Remove.
5495 * hppa-linux-nat.c (register_addr): Rename to ...
5496 (hppa_linux_register_addr): ... this. Make static.
5497 (fetch_register, store_register): Adapt callers.
5498 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5500 * ppc-linux-nat.c (kernel_u_size): Remove.
5501 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5503 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5504 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5506 * config/vax/nm-vax.h: Delete file.
5508 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5510 * MAINTAINERS (Write After Approval): Add myself.
5512 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5514 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5515 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5516 (m68k_linux_sigcontext_reg_offset): Fix typo.
5517 (target_is_uclinux): New.
5518 (m68k_linux_inferior_created): New.
5519 (m68k_linux_get_sigtramp_info): Check for uClinux or
5520 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5522 (_initialize_m68k_linux_tdep): Register
5523 m68k_linux_inferior_created.
5525 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5527 * win32-nat.c (win32_detach): Remove delete_command call.
5528 Resume inferior with win32_resume instead of win32_continue.
5530 2007-04-19 Jerome Guitton <guitton@adacore.com>
5532 * ser-mingw.c (fd_is_file): New function.
5533 (file_select_thread): New function.
5534 (ser_console_wait_handle): Add special handling for files.
5536 2007-04-18 Denis Pilat <denis.pilat@st.com>
5538 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5539 when missing from DW_TAG_subrange_type. Remove the handling of null
5540 return from die_type.
5542 2007-04-18 Maciej W. Rozycki <macro@mips.com>
5544 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5545 change to rearrange some brackets.
5546 (mips_n32n64_push_dummy_call): Likewise.
5547 (mips_o32_push_dummy_call): Likewise.
5548 (mips_o64_push_dummy_call): Likewise.
5550 2007-04-18 Denis Pilat <denis.pilat@st.com>
5552 * infcmd.c (post_create_inferior): Start with a call to
5553 target_terminal_ours.
5555 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5557 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5559 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5561 (mips_o32_push_dummy_call): Likewise.
5562 (mips_o64_push_dummy_call): Likewise.
5564 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5566 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5569 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5571 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5573 (mips_o32_push_dummy_call): Likewise.
5575 2007-04-17 Andreas Schwab <schwab@suse.de>
5577 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5578 sal to be bigger than the end of the function.
5580 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5581 Nigel Stephens <nigel@mips.com>
5583 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5584 argument alignment requirements when calculating stack space
5585 required. When aligning an arg register to eight bytes
5586 boundary, align stack_offset too. Write floating-point
5587 arguments to the appropriate integer register if need go there.
5588 (mips_o64_push_dummy_call): Likewise.
5590 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5592 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5593 "sig" arguments, add "regcache" argument.
5594 * gdbarch.c, gdbarch.h: Regenerate.
5596 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5597 (handle_inferior_event): Call remove_single_step_breakpoints directly
5598 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5600 * alpha-tdep.c (alpha_software_single_step): Update argument list.
5601 Remove handling of !insert_breakpoints_p case.
5602 * arm-tdep.c (arm_software_single_step): Likewise.
5603 * cris-tdep.c (cris_software_single_step): Likewise.
5604 * mips-tdep.c (mips_software_single_step): Likewise.
5605 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5606 * sparc-tdep.c (sparc_software_single_step): Likewise.
5607 * spu-tdep.c (spu_software_single_step): Likewise.
5609 * alpha-tdep.h (alpha_software_single_step): Update prototype.
5610 * mips-tdep.h (mips_software_single_step): Likewise.
5611 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5612 * sparc-tdep.h (sparc_software_single_step): Likewise.
5614 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5616 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5617 when removing single-step breakpoints.
5619 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
5621 * varobj.h (varobj_set_frozen): New
5622 (varobj_get_frozen): New.
5623 (varobj_update): New parameter explicit.
5624 * varobj.c (struct varobj): New fields frozen
5626 (varobj_set_frozen, varobj_get_frozen): New.
5627 (install_new_value): Don't fetch values for
5628 frozen variable object, or children thereof. Allow
5629 a frozen variable object to have non-fetched value.
5630 (varobj_update): Allow updating child variables.
5631 Don't traverse frozen children.
5632 (new_variable): Initialize the frozen field.
5633 (c_value_of_variable): Return NULL for frozen
5634 variable without any value yet.
5635 * mi/mi-cmd-var.c (varobj_update_one): New parameter
5637 (mi_cmd_var_create): Output the 'frozen' field,
5638 as soon as testsuite is adjusted to expect that field.
5639 (mi_cmd_var_set_frozen): New.
5640 (mi_cmd_var_update): Pass the 'explicit' parameter to
5642 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
5643 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
5645 2007-04-13 Paul Brook <paul@codesourcery.com>
5647 * target-descriptions.c (tdesc_named_type): Add ieee_single and
5649 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
5651 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5653 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
5654 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
5655 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
5656 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
5657 * Makefile.in: Remove references to deleted files.
5658 * README: Do not mention deleted ROM monitor interfaces.
5659 * defs.h (enum language): Delete language_scm.
5660 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
5661 (dump_subexp_body_standard): Likewise.
5662 * parse.c (operator_length_standard): Likewise.
5663 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
5664 * remote-mips.c: Do not include remote-utils.h.
5665 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
5667 * value.c: Do not include scm-lang.h.
5668 (unpack_long): Delete scm_unpack call.
5669 * config/h8300/h8300.mt, config/mips/embed.mt,
5670 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
5671 config/sh/embed.mt, config/sh/linux.mt: Remove references to
5673 * NEWS: Mention removed files.
5675 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5677 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
5678 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5680 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5682 * NEWS: Mention removal of HP aCC support.
5684 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5686 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
5687 first entry for static executables.
5688 (breakpoint_addr): Delete unused variable.
5689 (elf_locate_base): Search for _r_debug in static executables.
5690 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
5693 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5695 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
5696 (bpstat_what, print_one_breakpoint, allocate_bp_location)
5697 (mention): Remove bp_through_sigtramp support.
5698 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
5700 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5702 * breakpoint.c (bpstat_what): Give step-resume higher priority than
5705 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5707 * infrun.c: Doc fixes.
5708 (handle_inferior_event): Clarify debug message.
5709 (insert_step_resume_breakpoint_at_sal): Print a debug message.
5711 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5713 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
5715 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5717 * config/m68k/tm-monitor.h: Delete file.
5718 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
5719 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
5721 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
5722 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
5724 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
5726 * gdbarch.sh (software_single_step): Change the return type
5727 from void to int and reformatted some comments to <= 80
5729 * gdbarch.c, gdbarch.h: Regenerated.
5730 * alpha-tdep.c (alpha_software_single_step): Likewise.
5731 * alpha-tdep.h (alpha_software_single_step): Likewise.
5732 * arm-tdep.c (arm_software_single_step): Likewise.
5733 * cris-tdep.c (cris_software_single_step): Likewise.
5734 * mips-tdep.c (mips_software_single_step): Likewise.
5735 * mips-tdep.h (mips_software_single_step): Likewise.
5736 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5737 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5738 * sparc-tdep.c (sparc_software_single_step): Likewise.
5739 * sparc-tdep.h (sparc_software_single_step): Likewise.
5740 * spu-tdep.c (spu_software_single_step): Likewise.
5741 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
5742 and act accordingly.
5744 2007-04-11 Steve Ellcey <sje@cup.hp.com>
5746 * configure.ac (build_warnings): Add -Wno-char-subscripts.
5747 * configure: Regenerate.
5748 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
5750 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5752 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
5754 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5756 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
5758 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
5759 distinct on the TYPE_STUB_SUPPORTED debug targets.
5760 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
5762 2007-04-11 Joel Brobecker <brobecker@adacore.com>
5764 * sparc-tdep.c (X_RS2): New macro.
5765 (sparc_skip_stack_check): New function.
5766 (sparc_analyze_prologue): Adjust PC past stack probing
5767 sequence if necessary.
5769 2007-04-10 Andreas Schwab <schwab@suse.de>
5771 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
5774 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5776 * breakpoint.c (gdb_breakpoint_query): Really return an
5778 (gdb_breakpoint): Likewise.
5779 * thread.c (gdb_list_thread_ids): Likewise.
5780 (gdb_thread_select): Likewise.
5781 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
5782 (mi_cmd_thread_list_ids): Remove bogus initialization.
5784 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5786 * Makefile.in (SFILES): Remove hpacc-abi.c.
5787 (COMMON_OBS): Remove hpacc-abi.o.
5788 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
5789 (hpacc-abi.o, hpread.o): Delete rules.
5790 * somread.c: Delete extern declarations from hpread.c.
5791 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
5792 (som_symfile_finish): Do not call hpread_symfile_finish.
5793 (som_symfile_init): Do not call hpread_symfile_init.
5794 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
5795 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
5796 * hpacc-abi.c, hpread.c: Deleted.
5798 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5800 * solib-svr4.c (enable_break): Simplify return value.
5801 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
5803 2007-04-10 Andreas Schwab <schwab@suse.de>
5805 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
5806 l_ld_size, l_next_size, l_prev_size, l_name_size.
5808 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
5809 to extract addresses from link map.
5810 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
5811 (LM_NEXT): Likewise.
5812 (LM_NAME): Likewise.
5813 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
5814 (elf_locate_base): Likewise.
5815 (open_symbol_file_object): Likewise.
5816 (svr4_fetch_objfile_link_map): Likewise.
5817 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
5818 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
5820 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
5821 (svr4_lp64_fetch_link_map_offsets): Likewise.
5823 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
5824 removed members. Set l_ld_offset to -1 if not present.
5826 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
5828 Pass stderr of program run with "target remote |"
5830 * serial.c (serial_open): Set error_fd to -1.
5831 * serial.h (struct serial): New field error_fd.
5832 (struct serial_opts): New field avail.
5833 * ser-pipe.c (pipe_open): Create another pair
5834 of sockets. Pass stderr to gdb.
5835 * ser-mingw.c (pipe_windows_open): Pass
5836 PEX_STDERR_TO_PIPE to pex_run. Initialize
5839 (_initialize_ser_windows): Hook pipe_avail.
5840 * ser-base.c (generic_readchar): Check if there's
5841 anything in stderr channel and route that to gdb_stderr.
5843 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
5845 * dbxread.c (read_ofile_symtab): Move current_objfile
5846 clearing to after end_stabs.
5848 2007-04-01 Andreas Schwab <schwab@suse.de>
5850 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
5851 gdbarch instead of current_gdbarch.
5853 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
5855 * varobj.c (varobj_create): Keep varobj value
5856 NULL when evaluating the type.
5858 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
5860 * NEWS: Mention new Windows CE support.
5862 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
5864 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
5865 the obsoletion stanza.
5866 * NEWS: Mention deleted targets.
5868 * config/sh/tm-wince.h: Remove.
5869 * config/sh/wince.mt: Remove.
5870 * config/mips/tm-wince.h: Remove.
5871 * config/mips/wince.mt: Remove.
5874 * wince-stub.c: Remove.
5875 * wince-stub.h: Remove.
5876 * Makefile.in (wince.o): Remove rule.
5877 (wince-stub.o): Likewise.
5879 * mips-tdep.c (mips_next_pc): Make static.
5880 * mips-tdep.h (mips_next_pc): Remove declaration.
5881 * arm-tdep.c (arm_pc_is_thumb): Make static.
5882 (thumb_get_next_pc): Likewise.
5883 (arm_get_next_pc): Likewise.
5884 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
5885 (arm_pc_is_thumb): Likewise.
5886 (thumb_get_next_pc): Likewise.
5887 (arm_get_next_pc): Likewise.
5889 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5891 * MAINTAINERS: Remove d10v entry.
5892 * Makefile.in (SFILES): Remove dwarfread.c.
5893 (COMMON_OBS): Remove dwarfread.o.
5894 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
5895 (remote-est.o, rom68k-rom.o): Delete.
5896 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
5897 target est, target rom68k, and DWARF 1.
5898 * configure.tgt: Mark d10v as removed.
5899 * dwarf2read.c: Doc update.
5900 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
5902 (elf_locate_sections): Do not set them.
5903 (elf_symfile_read): Do not call dwarf_build_psymtabs.
5904 * symfile.h (dwarf_build_psymtabs): Delete prototype.
5905 * config/m68k/monitor.mt (TDEPFILES): Prune.
5906 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
5907 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
5909 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5911 * doublest.c (convert_floatformat_to_doublest): Use
5912 floatformat_classify.
5913 (floatformat_is_nan): Rename to...
5914 (floatformat_classify): ...this. Return more information.
5915 * doublest.h (enum float_kind): New.
5916 (floatformat_is_nan): Replace prototype...
5917 (floatformat_classify): ...with this one.
5918 * valprint.c (print_floating): Use floatformat_classify. Handle
5921 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5923 * README: Mention ISO C library requirement.
5925 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5927 * Makefile.in (SFILES): Remove nlmread.c.
5928 (COMMON_OBS): Remove nlmread.o.
5929 (nlmread.o): Delete rule.
5930 * README: Delete reference to remote-st.c.
5931 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
5932 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
5934 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
5935 (_initialize_i386_tdep): Do not reference them.
5936 * nlmread.c: Delete file.
5937 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
5938 * target.c: Doc update.
5939 * thread.c: Delete commented include.
5940 * config/alpha/tm-alpha.h: Doc update.
5942 2007-03-30 Chris Dearman <chris@mips.com>
5944 * utils.c (string_to_core_addr): Comment typo.
5946 2007-03-30 Chris Dearman <chris@mips.com>
5948 * mips-tdep.c: Comment typo.
5950 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
5952 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
5953 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5954 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5955 * config/powerpc/nm-ppc64-linux.h: Remove file.
5956 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
5957 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
5958 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
5959 * infptrace.c (call_ptrace): Likewise.
5960 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
5961 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
5962 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
5963 (store_register): Likewise.
5965 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5967 * Makefile.in (varobj.o): Add missing dependency.
5969 2007-03-29 Michael Snyder <msnyder@access-company.com>
5971 * MAINTAINERS: Update my email address.
5973 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5975 Add support for exception handling with multiple versions of
5977 * ada-lang.c: Update general comments on how Ada exception catchpoints
5979 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
5980 (__gnat_raise_nodefer_with_msg): Delete.
5981 (ada_unhandled_exception_name_addr_ftype): New type.
5982 (exception_support_info): New type.
5983 (ada_unhandled_exception_name_addr): Add forward declaration.
5984 (ada_unhandled_exception_name_addr_from_raise): Likewise.
5985 (default_exception_support_info): New constant.
5986 (exception_support_info_fallback): Likewise.
5987 (exception_info): New global variable.
5988 (ada_exception_support_info_sniffer): New function.
5989 (ada_executable_changed_observer): Likewise.
5990 (ada_unhandled_exception_name_addr_from_raise): Renamed from
5991 ada_unhandled_exception_name_addr.
5992 (ada_unhandled_exception_name_addr): Reimplement to match the
5993 latest Ada runtime implementation.
5994 (error_breakpoint_runtime_sym_not_found): Delete.
5995 (ada_exception_sym_name): Get the exception sym name from
5996 exception_info rather than hardcoding it.
5997 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
5998 Update error handling.
5999 * Makefile.in (ada-lang.o): Add dependency on observer.h.
6001 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6003 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
6004 (remote-st.o, uw-thread.o): Delete.
6005 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
6006 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6007 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
6008 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
6009 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
6010 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
6011 rs6000-*-lynxos* to an obsoletion stanza.
6012 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6013 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6014 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6015 i[34567]86-*-netware*.
6016 * NEWS: Mention deleted targets.
6018 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6019 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6020 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6021 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6022 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6023 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6024 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6025 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6026 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6027 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6028 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6029 config/rs6000/tm-rs6000ly.h: Delete files.
6031 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6033 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6034 * interps.c (clear_interpreter_hooks): Do not clear
6035 deprecated_registers_changed_hook.
6036 * regcache.c (registers_changed): Do not call it.
6037 * top.c (deprecated_registers_changed_hook): Do not define it.
6038 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6039 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6040 (tui_remove_hooks): Do not remove it.
6041 (tui_selected_frame_level_changed_hook): Check for negative level.
6042 Use get_selected_frame.
6043 (tui_registers_changed_hook): Deleted.
6045 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6047 * stabsread.c (add_undefined_type): Add extra parameter.
6048 Now handles nameless types separately.
6049 (struct nat): New type.
6050 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6051 New static variables.
6052 (read_type): Update calls to add_undefined_type.
6053 (add_undefined_type_noname): New function.
6054 (add_undefined_type_1): Renames from add_undefined_type.
6055 (cleanup_undefined_types_noname): New function.
6056 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6057 (cleanup_undefined_types): New handles nameless types separately.
6058 (_initialize_stabsread): Initialize our new static constants.
6060 2007-03-29 Denis Pilat <denis.pilat@st.com>
6062 * configure.ac: Test for signal.h.
6063 * configure, config.in: Regenerate.
6065 2007-03-29 Denis Pilat <denis.pilat@st.com>
6067 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6068 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6070 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6072 * arm-wince-tdep.c: New.
6073 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6074 (MT_CFLAGS): Delete.
6076 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6077 solib-legacy.o, solib-svr4.o, and remove wince.o.
6078 * configure.tgt (arm*-*-mingw32ce*): Add.
6079 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6080 (do_target_signal_to_host): Silence 'not used' warning.
6081 * config/arm/tm-wince.h: Remove.
6083 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6085 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6086 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6088 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6089 * config/ia64/tm-linux.h: Remove file.
6090 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6091 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6092 legacy_pc_in_sigtramp.
6093 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6094 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6095 Remove func_name argument.
6096 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6098 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6099 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6100 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6101 (HAVE_STEPPABLE_WATCHPOINT): Define.
6103 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6104 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6105 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6106 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6107 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6108 target_insert_watchpoint, target_remove_watchpoint): Remove.
6109 (FETCH_INFERIOR_REGISTERS): Define.
6110 * ia64-linux-nat.c (ia64_register_addr): Make static.
6111 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6112 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6113 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6114 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6115 (ia64_linux_stopped_by_watchpoint): Make static.
6116 (ia64_linux_can_use_hw_breakpoint): New function.
6117 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6118 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6119 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6121 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6123 * linespec.c: Include language.h.
6124 (find_methods): Add language parameter. Call
6125 lookup_symbol_in_language. Pass language down.
6126 (add_matching_methods): Likewise. Call
6127 lookup_symbol_in_language.
6128 (add_constructors): Likewise.
6129 (find_method): Pass sym_class to collect_methods.
6130 (collect_methods): Add sym_class parameter. Pass language
6132 * symtab.c (lookup_symbol): Rename to ...
6133 (lookup_symbol_in_language): ... this. Add language
6134 parameter. Use passed language instead of current_language.
6135 (lookup_symbol): New as wrapper around
6136 lookup_symbol_in_language.
6137 (lookup_symbol_aux): Add language parameter. Use passed
6138 language instead of current_language.
6139 (search_symbols): Indent.
6140 * symtab.h (enum language): Forward declare.
6141 (lookup_symbol_in_language): Declare.
6142 (lookup_symbol): Update description.
6143 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6144 * ada-lang.c (restore_language): Remove.
6145 (lookup_symbol_in_language): Remove.
6147 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6149 * breakpoint.c (bpstat_num): Add int *num parameter.
6150 * breakpoint.h (bpstat_num): Likewise.
6151 * infcmd.c (continue_command): Adjust to new bpstat_num
6153 (program_info): Likewise.
6155 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6157 * config/sh/tm-sh.h: Remove file.
6158 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6159 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6160 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6161 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6163 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6165 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6166 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6167 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6168 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6169 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6170 sequence if target_shortname is "remote".
6172 2007-03-27 Anton Blanchard <anton@samba.org>
6174 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6175 instead of wordsize when looking for the LR in a stack frame.
6177 2007-03-27 Andreas Schwab <schwab@suse.de>
6178 Daniel Jacobowitz <dan@codesourcery.com>
6180 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6181 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6182 argument. Update all callers.
6183 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6184 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6185 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6186 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6187 (dwarf2_frame_set_adjust_regnum): ...this.
6188 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6189 * rs6000-tdep.c: Include "dwarf2-frame.h".
6190 (rs6000_adjust_frame_regnum): Define.
6191 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6192 Register rs6000_adjust_frame_regnum.
6194 * Makefile.in (rs6000-tdep.o): Update dependencies.
6196 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6198 * Makefile.in: Add support for a "pdf" target.
6200 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6202 * amd64-tdep.c (amd64_init_frame_cache): New function.
6203 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6205 2007-03-26 Nigel Stephens <nigel@mips.com>
6206 Maciej W. Rozycki <macro@mips.com>
6208 * ui-out.c (ui_out_field_core_addr): Truncate address to
6209 TARGET_ADDR_BIT size before printing.
6211 2007-03-22 Nigel Stephens <nigel@mips.com>
6212 Maciej W. Rozycki <macro@mips.com>
6214 * remote-mips.c (mips_xfer_memory): Update prototype.
6216 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6218 * symfile.h: #include "symtab.h"
6220 2007-03-22 Denis Pilat <denis.pilat@st.com>
6222 * utils.c (pagination_on_command, pagination_off_command):
6223 Remove useless prototypes.
6225 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6228 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6229 instead of TYPE_NAME for object base class name.
6232 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6234 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6235 Specify frame type in calls to frame_func_unwind().
6237 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6239 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6240 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6241 (refine_prologue_limit): Delete.
6242 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6243 Assume lim_pc is set. Correct check for incomplete prologues.
6244 Do not skip clobbers of the frame pointer.
6245 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6248 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6250 * frame.c (frame_pop): Check to see whether there's a frame to
6251 which we can pop first.
6253 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6255 * MAINTAINERS (Write After Approval): Add myself.
6257 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6259 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6260 (handle_inferior_event): Remove unnecessary braces.
6261 * breakpoint.c (bpstat_what): Remove wrong comment.
6263 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6265 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6266 (spu_gdbarch_init): Install it.
6268 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6270 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6271 object types, not 0.
6273 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6275 * spu-tdep.c (spu_frame_align): New function.
6276 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6278 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6280 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6281 (spu_software_single_step): Likewise.
6282 (spu_read_pc, spu_write_pc): New functions.
6283 (spu_gdbarch_init): Install them.
6285 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6287 * cli/cli-dump.c (struct callback_data): load_offset needs to
6288 have signed long type.
6290 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6292 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6293 Revert the previous change that had some unexpected side-effects
6295 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6296 function to get the address of the calling instruction.
6298 2007-03-07 Denis Pilat <denis.pilat@st.com>
6300 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6301 get_selected_frame by deprecated_safe_get_selected_frame.
6303 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6305 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6306 "gdb_string.h". Don't include "nbsd-tdep.h".
6307 (SIZEOF_STRUCT_REG): Remove.
6308 (SHNBSD_SIZEOF_GREGS): New.
6309 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6310 (shnbsd_regset_from_core_section): New functions.
6311 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6312 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6313 shnbsd_supply_gregset, shnbsd_collect_gregset.
6314 (shnbsd_gregset): New variable.
6315 (shnbsd_init_abi): Set regset_from_core_section.
6316 (GDB_OSABI_NETBSD_CORE): New define.
6317 (shnbsd_core_osabi_sniffer): New function.
6318 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6319 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6320 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6322 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6324 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6326 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6327 length of the types referenced by the new type CV ring.
6329 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6331 * frame.c (frame_pop, frame_observer_target_changed): Call
6333 (flush_cached_frames): Rename to reinit_frame_cache and delete
6335 * frame.h (flush_cached_frames): Delete prototype and update comment.
6337 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6338 reinit_frame_cache instead of flush_cached_frames. Do not call
6339 select_frame after reinit_frame_cache.
6340 * corelow.c (core_open): Likewise.
6341 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6342 * infrun.c (prepare_to_proceed, context_switch)
6343 (handle_inferior_event): Likewise.
6344 * linux-fork.c (fork_load_infrun_state): Likewise.
6345 * ocd.c (ocd_start_remote): Likewise.
6346 * remote-e7000.c (e7000_start_remote): Likewise.
6347 * remote-mips.c (device): Likewise.
6348 * thread.c (switch_to_thread): Likewise.
6349 * tracepoint.c (finish_tfind_command): Likewise.
6350 * gdbarch.c: Regenerated.
6352 2007-02-28 Jerome Guitton <guitton@adacore.com>
6353 Joel Brobecker <brobecker@adacore.com>
6355 * gdbtypes.c (check_typedef): Do not replace stub type if
6356 the resolved type is not defined in the same objfile.
6358 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6360 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6362 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6364 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6365 symbol for Ada units when the symbol is defined using 't' rather
6366 than 'Tt' as symbol descriptor.
6368 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6370 * config/mips/tm-nbsd.h: Delete file.
6371 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6372 * config/sh/tm-nbsd.h: Delete file.
6373 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6375 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6377 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6378 unused WRONG_PARAM value since it was recently deleted.
6380 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6382 * varobj.c (varobj_update): Free temporary vectors.
6384 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6386 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6387 * config/powerpc/tm-linux.h: Delete file.
6388 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6389 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6390 (TEXT_SEGMENT_BASE): Do not redefine.
6391 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6392 from config/rs6000/tm-rs6000.h.
6393 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6394 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6395 (TEXT_SEGMENT_BASE): Remove.
6396 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6397 (rs6000_in_solib_return_trampoline): Remove.
6398 (SKIP_TRAMPOLINE_CODE): Remove.
6399 (rs6000_skip_trampoline_code): Remove.
6400 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6401 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6402 (FP0_REGNUM): Remove.
6403 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6404 (rs6000_set_host_arch_hook): Remove.
6405 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6406 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6407 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6408 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6409 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6410 * rs6000-nat.c: Include "rs6000-tdep.h".
6411 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6412 (set_host_arch): Rename to ...
6413 (rs6000_create_inferior): ... this. Make public.
6414 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6415 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6416 (rs6000_create_inferior): Remove.
6417 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6418 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6419 set_gdbarch_in_solib_return_trampoline, and
6420 set_gdbarch_skip_trampoline_code.
6421 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6422 from config/rs6000/tm-rs6000.h.
6424 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6426 * buildsym.c (record_producer): Do nothing if no producer is provided.
6428 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6430 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6431 to check changelist is non-NULL. Call error if the frontend tries
6432 to update a non-root variable.
6434 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6436 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6438 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6439 (dwarf2_frame_sniffer): Update.
6440 (dwarf2_signal_frame_this_id): New function.
6441 (dwarf2_signal_frame_unwind): Use it.
6442 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6443 * frame.c (frame_func_unwind): Add this_type argument.
6444 (get_frame_func): Update.
6445 (frame_unwind_address_in_block): Add this_type argument and check it.
6447 (get_frame_address_in_block): Update.
6448 * frame.h (enum frame_type): Move higher in the file.
6449 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6452 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6453 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6454 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6455 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6456 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6457 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6458 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6459 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6460 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6461 frame_func_unwind and frame_unwind_address_in_block to specify
6462 the frame type. Use frame_unwind_address_in_block instead of
6463 frame_pc_unwind in sniffers.
6465 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6467 * frame.c (deprecated_selected_frame): Rename to...
6468 (selected_frame): ...this. Make static.
6469 (get_selected_frame, select_frame): Update.
6470 * frame.h (deprected_select_frame): Delete.
6471 (deprecated_safe_get_selected_frame): Update comments.
6473 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6474 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6475 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6476 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6477 tui/tui.c: Replace references to deprecated_selected_frame.
6479 2007-02-27 Fred Fish <fnf@specifix.com>
6481 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6482 directly decrement the stack pointer, accumulate their operand into
6483 the stack offset, and mark the function as not being frameless.
6485 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6487 * arch-utils.c (selected_byte_order): New.
6488 * arch-utils.h (selected_byte_order): New prototype.
6489 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6491 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6493 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6494 (default_symfile_offsets): Check VMA here. Update section VMAs.
6496 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6498 * remote.c (init_remote_state): Add special handling for placeholder
6501 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6503 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6504 (filenames_h): New variable.
6505 (clean): Clean up xml-builtin.c and stamp-xml.
6506 (arm-linux-nat.o): Update.
6507 * config/arm/linux.mh (TDEP_XML): Define.
6508 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6509 (arm_linux_has_wmmx_registers): New.
6510 (GET_THREAD_ID): Fix typo.
6511 (IWMMXT_REGS_SIZE): Define.
6512 (fetch_wmmx_regs, store_wmmx_regs): New.
6513 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6514 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6515 (super_xfer_partial, arm_linux_xfer_partial): New.
6516 (_initialize_arm_linux_nat): Use them.
6517 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6518 (xml_builtin_xfer_partial): New function.
6519 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6520 * NEWS: Update mention of iWMMXt support.
6522 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6524 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6525 if there are no FPA registers.
6526 (arm_dwarf_reg_to_regnum): New function.
6527 (arm_register_type, arm_register_name): Return minimal values for
6528 unsupported registers.
6529 (arm_register_sim_regno): Handle iWMMXt registers.
6530 (arm_gdbarch_init): Record missing FPA registers if indicated by
6531 a target description. Recognize iWMMXt registers. Only register
6532 "info float" for FPA. Use ARM_NUM_REGS. Register
6533 arm_dwarf_reg_to_regnum.
6534 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6536 (struct gdbarch_tdep): Add have_fpa_registers.
6537 * features/xscale-iwmmxt.xml: Update capitalization.
6538 * regformats/arm-with-iwmmxt.dat: Regenerated.
6540 2007-02-24 Kevin Buettner <kevinb@redhat.com>
6542 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6544 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6546 * MAINTAINERS (mep): New target.
6548 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6550 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6552 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6553 (mep-tdep.o): New rule.
6554 * configure.tgt (mep-*-*): New target.
6555 * mep-tdep.c: New file.
6556 * config/mep/mep.mt: New file.
6558 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6560 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6561 BREAKPOINT_HIT and STOP_UNKNOWN.
6563 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6565 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6567 2007-02-20 Joel Brobecker <brobecker@adacore.com>
6569 * gdb_expat.h (XMLCALL): Define if not already defined.
6571 2007-02-20 Andreas Schwab <schwab@suse.de>
6573 * Makefile.in (symfile.o): Update dependencies.
6575 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6577 * MAINTAINERS: Disable -Werror for cris simulator. Build
6578 sparc64-solaris2.10 instead of the broken sparc-elf.
6579 * solib-frv.c: Include "solib.h".
6580 * Makefile.in (solib-frv.o): Update.
6581 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6582 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6583 (xtensa_frame_this_id, xtensa_frame_prev_register)
6584 (xtensa_push_dummy_call): Use %p.
6586 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6588 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6589 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6590 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6591 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6592 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6593 (sparc-linux-tdep.o): Update.
6595 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
6597 * xtensa-tdep.h (xtensa_reg_mask_t): New.
6598 (xtensa_mask_t): Change mask field to be a separate array.
6599 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6600 (xtensa_pseudo_register_write, xtensa_unwind_pc)
6601 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6602 (xtensa_breakpoint_from_pc): Remove implicit type casting.
6603 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6604 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6605 (mask14, mask15): Rename to
6606 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6607 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6608 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6609 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6610 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6611 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6612 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6613 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6614 (xtensa_submask14, xtensa_submask15): New.
6615 (rmap): Follow strict aliasing rules doing static initialization.
6617 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
6619 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6620 handling from here...
6621 (tdesc_register_type): ...to here.
6622 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6623 * features/arm-core.xml: Use code_ptr and data_ptr.
6625 2007-02-13 Denis Pilat <denis.pilat@st.com>
6627 * varobj.h (enum varobj_update_error): New enum.
6628 * varobj.c (struct varobj_root): Add is_valid member.
6629 (varobj_get_type): Check for invalid varobj.
6630 (varobj_get_attributes): Likewise.
6631 (variable_editable):Likewise.
6632 (varobj_update): Likewise. Use varobj_update_error.
6633 (new_root_variable): Set root varobj as valid by default.
6634 (varobj_invalidate): New function.
6635 * symfile.c (clear_symtab_users): Use varobj_invalidate.
6636 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
6637 Use varobj_update_error.
6639 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
6642 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
6643 Pascal language marker.
6644 * dwarf2read.c (set_cu_language): Likewise.
6646 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
6648 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
6649 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
6650 instead of target_terminal_init since inferior_ptid isn't set yet.
6652 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
6654 * MAINTAINERS (Write After Approval): Add myself.
6656 2007-02-09 Fred Fish <fnf@specifix.com>
6658 Based on work by Apple Computer, Inc.
6659 * event-top.c (async_request_quit): Call quit() whenever either
6660 quit_flag is set or immediate_quit is set.
6662 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6664 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
6665 type to a pointer to const struct block.
6666 (ada_lookup_symbol_list): Don't cast away constness when calling
6667 remove_out_of_scope_renamings.
6669 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6671 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
6672 address of 'filename'; it is always non null.
6674 2007-02-09 Joel Brobecker <brobecker@adacore.com>
6676 * exec.c (add_to_section_table): Do not discard empty sections.
6678 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6680 * features/Makefile, features/arm-with-iwmmxt.xml,
6681 features/gdbserver-regs.xsl, features/number-regs.xsl,
6682 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
6683 * regformats/arm-with-iwmmxt.dat: Generate.
6684 * NEWS: Mention iWMMXt.
6686 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6688 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
6689 (xml-tdesc.o): Update.
6690 * xml-support.c: Add a comment.
6691 (gdb_xml_enums_boolean): New variable.
6692 (gdb_xml_parse_attr_enum): Use strcasecmp.
6693 * xml-support.h (gdb_xml_enums_boolean): Declare.
6694 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
6695 next_regnum, and current_union.
6696 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
6697 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
6698 (field_attributes, union_children, reg_attributes, union_attributes)
6699 (vector_attributes, feature_attributes, feature_children): New.
6700 (target_children): Make static. Add <feature>.
6701 (tdesc_elements): Make static.
6702 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
6703 (struct tdesc_feature, tdesc_feature_p): New types.
6704 (struct target_desc): Add features member.
6705 (struct tdesc_arch_data, tdesc_data): New.
6706 (target_find_description): Clarify error message. Warn about
6707 ignored register descriptions.
6708 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6709 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
6710 (tdesc_data_cleanup, tdesc_numbered_register)
6711 (tdesc_numbered_register_choices, tdesc_find_register)
6712 (tdesc_register_name, tdesc_register_type)
6713 (tdesc_remote_register_number, tdesc_register_reggroup_p)
6714 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
6715 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
6716 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
6717 (tdesc_create_feature, tdesc_record_type): New.
6718 (free_target_description): Free features.
6719 (_initialize_target_descriptions): Initialize tdesc_data.
6720 * arch-utils.c (default_remote_register_number): New.
6721 * arch-utils.h (default_remote_register_number): New prototype.
6722 * target-descriptions.h (set_tdesc_pseudo_register_name)
6723 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
6724 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
6725 (tdesc_numbered_register, tdesc_numbered_register_choices)
6726 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6727 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
6728 (tdesc_create_reg): Declare.
6729 * gdbarch.sh (remote_register_number): New entry.
6730 * gdbarch.c, gdbarch.h: Regenerate.
6731 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
6732 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
6734 * arm-tdep.c (arm_register_aliases): New.
6735 (arm_register_name_strings): Rename to...
6736 (arm_register_names): ...this. Make const. Delete the old version.
6737 (current_option, arm_register_byte): Delete.
6738 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
6739 (value_of_arm_user_reg): New.
6740 (arm_gdbarch_init): Verify any described registers. Call
6741 tdesc_use_registers. Don't use arm_register_byte. Create aliases
6742 for standard register names.
6743 (_initialize_arm_tdep): Do not adjust arm_register_names.
6744 * user-regs.c (struct user_reg): Add baton member.
6745 (append_user_reg, user_reg_add_builtin, user_regs_init)
6746 (user_reg_add, value_of_user_reg): Use a baton for user
6748 * std-regs.c: Update.
6749 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
6750 (user_reg_add): Add baton argument.
6751 * NEWS: Mention target description register support.
6752 * features/arm-core.xml, features/arm-fpa.xml: New.
6753 * eval.c (evaluate_subexp_standard): Allow ptype $register
6754 when the program is not running.
6756 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
6758 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
6760 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6762 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
6763 info->disassembler_options to "any".
6765 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6767 * varobj.c (install_new_value): Only call value_get_print_value
6770 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6772 Reported by timeless@gmail.com:
6773 * gdb/target.c (target_flash_erase): Do not return void value.
6774 (target_flash_done): Likewise.
6775 * gdb/cli/cli-cmds.c (source_command): Likewise.
6777 2007-02-08 Fred Fish <fnf@specifix.com>
6779 Based on work by Apple Computer, Inc.
6780 * event-top.c (handle_sigint): Set quit_flag.
6781 (async_request_quit): Don't set quit_flag. Avoid calling quit()
6782 if quit_flag has already been reset.
6784 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6786 * ser-mingw.c (pipe_windows_close): Move variable initialization back
6789 2007-02-08 Fred Fish <fnf@specifix.com>
6791 * defs.h (request_quit): Remove declaration.
6792 * utils.c (request_quit): Remove definition.
6794 2007-02-08 Joel Brobecker <brobecker@gnat.com>
6795 Jan Kratochvil <jan.kratochvil@redhat.com>
6796 Daniel Jacobowitz <dan@codesourcery.com>
6798 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
6799 (skip_prologue): Allow bl->blrl used by PIC code.
6801 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6802 Daniel Jacobowitz <dan@codesourcery.com>
6804 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
6805 initialize tmp_obstack.
6806 * p-valprint.c (pascal_object_print_value_fields)
6807 (pascal_object_print_value): Likewise.
6809 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6811 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
6813 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6815 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6816 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
6818 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6820 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
6822 (tdesc_parse_xml): Cache expanded descriptions.
6824 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6826 * Makefile.in (XMLFILES): New.
6827 (COMMON_OBS): Add xml-builtin.o.
6828 (xml-builtin.c, stamp-xml): New rules.
6829 (xml-tdesc.o): Update.
6830 * features/feature_to_c.sh: New file.
6831 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
6832 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
6833 (gdb_xml_start_element): Initialize scope after possibly reallocating
6834 scopes. Move cleanup later. Handle the XInclude description
6836 (gdb_xml_end_element): Only parse the body if there is a current element.
6837 Call XML_DefaultCurrent if there is no element.
6838 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
6839 (struct xinclude_parsing_data, xinclude_start_include)
6840 (xinclude_end_include, xml_xinclude_default)
6841 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
6842 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
6843 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
6844 * xml-support.h (xml_fetch_another, xml_process_xincludes)
6845 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
6846 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
6847 XInclude directives. Use the compiled in DTD.
6848 (fetch_xml_from_file): Add baton argument. Treat it as a containing
6849 directory name. Do not warn here.
6850 (file_read_description_xml): Update call. Warn here instead. Pass
6852 (fetch_available_features_from_target): New.
6853 (target_read_description_xml): Use it.
6854 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
6856 * features/xinclude.dtd: New file.
6858 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6860 * linux-thread-db.c (check_for_thread_db): Return early if we have
6861 no libthread_db support.
6863 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6865 * mi/mi-parse.h: Include <sys/time.h>.
6867 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
6869 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
6870 instead of print_variable_value to print values.
6872 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6874 * mi/mi-main.c: Numerous formatting changes.
6875 (mi_cmd_data_write_register_values): Replace clause inadvertantly
6876 removed in my previous change.
6878 2007-02-03 Eli Zaretskii <eliz@gnu.org>
6880 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
6881 Use 1000000L instead of 1000000.
6883 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6885 Based on work by Apple Computer, Inc.
6887 * configure.ac: Test for sys/resource.h and getrusage.
6888 * configure, config.in: Regenerate.
6890 * mi/mi-main.c: Include <sys/resource.h> if present.
6891 (rusage): Declare if HAVE_GETRUSAGE.
6892 (current_command_ts, do_timings): New static variables.
6893 (timestamp, print_diff_now, print_diff, timeval_diff):
6894 New static timing functions.
6895 (mi_cmd_enable_timings): New function for new MI command.
6896 (captured_mi_execute_command, mi_execute_async_cli_command):
6897 Call timing functions.
6899 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
6902 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
6904 * mi/mi-parse.h: (mi_timestamp): New structure.
6905 (mi_parse): Add mi_timestamp* member.
6907 2007-02-02 Denis Pilat <denis.pilat@st.com>
6909 * thread.c (make_cleanup_restore_current_thread): New function.
6910 (info_threads_command): Use of make_cleanup_restore_current_thread
6911 to restore the current thread and the selected frame.
6912 (restore_selected_frame): New function.
6913 (struct current_thread_cleanup): Add frame_id field.
6914 (do_restore_current_thread_cleanup): Add restoring of the selected
6916 (make_cleanup_restore_current_thread): Likewise.
6917 (thread_apply_all_command): backup the selected frame while
6918 entering the function and restore it at exit.
6919 (thread_apply_command): Likewise.
6921 2007-02-02 Denis Pilat <denis.pilat@st.com>
6923 * MAINTAINERS (Write After Approval): Add myself to the list.
6925 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6927 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
6928 (m32r_store_register): Ditto.
6930 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
6932 * ser-mingw.c (pipe_windows_open)
6933 (pipe_windows_read, pipe_windows_write): Declare
6934 variables at the top of the function.
6936 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6938 * doublest.c (floatformat_from_length): Use the right element from
6939 gdbarch floatformats.
6940 (floatformat_from_type, extract_typed_floating)
6941 (store_typed_floating): Likewise.
6942 * doublest.h: Remove declarations for undefined floatformat arrays.
6943 * gdbarch.sh (float_format, double_format, long_double_format): Change
6945 (pformat): Update for pairs.
6946 * gdbarch.c, gdbarch.h: Regenerated.
6947 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
6948 (floatformats_ieee_double_littlebyte_bigword)
6949 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
6950 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
6951 (floatformats_vax_d): New variables.
6952 (builtin_type_ieee_single, builtin_type_ieee_double)
6953 (builtin_type_arm_ext, builtin_type_ia64_spill)
6954 (builtin_type_ia64_quad): Replace arrays with individual types.
6955 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
6956 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
6957 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
6958 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
6959 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
6960 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
6961 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
6962 unused and endian-specific types.
6963 (recursive_dump_type): Update for floatformat pairs.
6964 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
6965 (build_gdbtypes): Use build_flt.
6966 (_initialize_gdbtypes): Update set of initialized types.
6967 * gdbtypes.h: Update declarations to match gdbtypes.c.
6968 (struct main_type): Store a pointer to two floatformats.
6969 * arch-utils.c (default_float_format, default_double_format): Delete.
6970 * arch-utils.h (default_float_format, default_double_format): Delete.
6972 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6973 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
6974 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
6975 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
6976 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
6978 2007-01-29 Joel Brobecker <brobecker@adacore.com>
6980 * target.c (maintenance_print_target_stack): New function.
6981 (initialize_targets): Add new "maintenance print target-stack"
6984 2007-01-28 Mark Kettenis <kettenis@gnu.org>
6986 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
6988 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
6990 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
6991 (struct dwarf2_loclist_baton): Likewise.
6993 2007-01-27 Eli Zaretskii <eliz@gnu.org>
6995 * cli/cli-script.c: Include breakpoint.h.
6996 (build_command_line): Require arguments only for if and while
6998 (get_command_line, execute_user_command, execute_control_command):
6999 Fix wording of warning messages.
7000 (print_command_lines): Print breakpoint commands.
7001 (execute_control_command): Call commands_from_control_command to
7002 handle the `commands' command inside a body of a flow-control
7004 (read_next_line): Recognize the `commands' command and build a
7005 command line structure for it.
7006 (recurse_read_control_structure, read_command_lines): Handle
7007 `commands' similarly to `if' and `while'.
7009 * breakpoint.c (get_number_trailer): Document the special meaning
7010 of NULL as the first argument PP.
7011 (commands_from_control_command): New function.
7013 * breakpoint.h (commands_from_control_command): Add prototype.
7015 * defs.h (commands_control): New enumerated value for enum
7016 command_control_type.
7018 2007-01-26 Joel Brobecker <brobecker@adacore.com>
7020 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7021 (ada_exception_sal): Update accordingly.
7023 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7025 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7026 * NEWS: Describe CHAR array vs. string identifcation rules.
7028 2007-01-25 Paul Brook <paul@codesourcery.com>
7030 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7032 2007-01-24 Jim Blandy <jimb@codesourcery.com>
7034 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7035 expression is empty, bother to return the 'optimized out' value we
7036 construct. (Thanks to Carl Burch.)
7038 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7040 * varobj.c (c_value_of_root, c_value_of_child)
7041 (cplus_describe_child): Don't call release_value.
7043 2007-01-24 Thiemo Seufer <ths@mips.com>
7045 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7048 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7050 Refactor getting children name, value and type access
7052 * varobj.c (get_type_deref): Remove.
7053 (adjust_value_for_child_access): New.
7054 (c_number_of_children): Use the above.
7055 (c_describe_child): Likewise.
7056 (enum accessibility): New.
7057 (match_accessibility): New function.
7058 (cplus_describe_child): New function.
7059 (cplus_name_of_child, cplus_value_of_child)
7060 (cplus_type_of_child): Reimplement in terms
7061 of cplus_describe_child.
7062 (cplus_number_of_children): Use
7063 adjust_value_for_child_access.
7065 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7067 Fix computation of the 'editable' attribute and
7068 value changeability for for references.
7069 * varobj.c (get_value_type): New function.
7070 (c_variable_editable): Use get_value_type.
7071 (varobj_value_is_changeable): Likewise.
7073 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7075 * source.c (find_and_open_source): Try rewriting the source
7076 path inside filename if dirname is NULL.
7078 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7080 * dwarf2read.c (add_partial_symbol): Create an extra partial
7081 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7082 (new_symbol): Likewise for symbols.
7084 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
7086 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7088 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7090 * value.c (value_primitive_field): Copy the full 'location'
7091 contents, instead of assuming that copying ADDRESS will
7092 bring over everything in the union. Remove obsolete comment.
7094 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
7096 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7097 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7098 (m32c_m16c_pointer_to_address): Separate code from declarations.
7100 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7102 * target.c (update_current_target): Correct typo.
7104 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
7106 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7109 2007-01-11 Andrew Cagney <cagney@redhat.com>
7110 Daniel Jacobowitz <dan@codesourcery.com>
7111 Jan Kratochvil <jan.kratochvil@redhat.com>
7113 * dwarf2-frame.c (execute_cfa_program): New support of
7114 `DW_CFA_GNU_negative_offset_extended'.
7116 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7118 * NEWS: Mention flash support for "load" and new remote packets.
7120 2007-01-21 Markus Deuling <deuling@de.ibm.com>
7122 * breakpoint.c (delete_command): Skip redundant loop iterations.
7124 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7126 * gdbarch.sh (register_type): Update comment.
7127 * gdbarch.h: Regenerated.
7128 * arch-utils.c (generic_register_size): Call register_type.
7129 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7130 * m32c-tdep.c (check_for_saved): Likewise.
7131 * mips-tdep.c (mips_print_register, print_gp_register_row)
7132 (mips_print_registers_info): Likewise.
7133 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7135 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7136 (sh64_do_register, sh64_print_register)
7137 (sh64_media_print_registers_info): Likewise.
7138 * tui/tui-regs.c (tui_register_format): Likewise.
7140 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7142 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7144 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7145 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7146 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7147 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7148 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7149 (make_symbol_completion_list): Likewise.
7151 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7152 Daniel Jacobowitz <dan@codesourcery.com>
7154 * buildsym.c (end_symtab): Use preallocated symtab if available.
7155 Fill in SYMBOL_SYMTAB.
7156 * buildsym.h (struct subfile): Add symtab member.
7157 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7158 (struct file_entry): Add symtab.
7159 (free_cu_line_header): New function.
7160 (read_file_scope): Use it. Save line_header in the cu. Process
7162 (add_file_name): Initialize new symtab member.
7163 (dwarf_decode_lines): Create symtabs for included files.
7164 (new_symbol): Set SYMBOL_SYMTAB.
7165 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7166 (search_symbols): Likewise.
7167 * symtab.h (struct symbol): Add symtab member.
7168 (SYMBOL_SYMTAB): Define.
7170 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7172 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7174 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7176 * arch-utils.c (show_endian): Correct reversed condition.
7178 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7180 * MAINTAINERS (Write After Approval): Add myself.
7182 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7183 Vladimir Prus <vladimir@codesourcery.com>
7185 Fix 'selected frame' varobjs.
7186 * varobj.c (struct varobj): Remove the error field.
7187 (varobj_set_value): Don't check var->error.
7188 (install_new_value): Don't set var->error.
7189 (varobj_update): Always pass the new value
7190 of the root via install_new_value.
7191 (create_child): Don't set error field.
7192 (new_variable): Likewise.
7193 (c_value_of_root): Always reevaluate the value
7194 of selected frame varobjs in the selected frame.
7195 Don't call reinit_frame_cache.
7197 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7199 * source.c (_initialize_source): Improve the help text of
7200 the substitute-path commands.
7202 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7204 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7205 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7206 (frv_skip_prologue): Remove prototypes.
7207 (frv_adjust_breakpoint_address): Renamed from
7208 frv_gdbarch_adjust_breakpoint_address.
7209 (frv_gdbarch_init): Adjust.
7211 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7213 * gdbarch.sh (deprecated_extract_return_value)
7214 (deprecated_store_return_value): Remove.
7215 (extract_return_value, store_return_value): Remove default values.
7216 * gdbarch.c, gdbarch.h: Regenerate.
7217 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7218 (legacy_store_return_value): Remove.
7219 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7222 * mi/mi-main.c: Remove obsolete comment.
7224 * regcache.c, regcache.h (deprecated_register_bytes)
7225 (deprecated_read_register_bytes)
7226 (deprecated_write_register_bytes): Remove.
7228 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7229 Don't forget to move destination pointer.
7231 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7233 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7235 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7237 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7238 past entry function with recent newlib.
7240 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7242 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7243 introduction. Specify -var-update more exactly.
7245 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7247 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7249 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7251 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7252 the Global Maintainers' invitation to be a global maintainer.
7254 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7256 * infrun.c (singlestep_pc): New variable.
7257 (resume): Set singlestep_pc.
7258 (context_switch): Add a debugging message. Flush the frame cache.
7259 (handle_inferior_event): Add debugging messages. Handle thread
7260 hops when a software single step has completed. Let context_switch
7261 handle flushing the frame cache.
7263 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7265 * NEWS: Mention target descriptions, "set tdesc filename",
7266 "unset tdesc filename", "show tdesc filename", and
7267 qXfer:features:read.
7268 * arch-utils.c (choose_architecture_for_target): New function.
7269 (gdbarch_info_fill): Call it.
7270 * target-descriptions.c (struct property): Make members non-const.
7271 (struct target_desc): Add arch member.
7272 (target_description_filename): New variable.
7273 (target_find_description): Try via XML first.
7274 (tdesc_architecture): New.
7275 (free_target_description, make_cleanup_free_target_description): New.
7276 (set_tdesc_property): Call xstrdup.
7277 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7278 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7279 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7280 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7281 * target-descriptions.h (tdesc_architecture)
7282 (make_cleanup_free_target_description, set_tdesc_architecture): New
7284 * Makefile.in (SFILES): Add xml-tdesc.c.
7285 (COMMON_OBS): Add xml-tdesc.o.
7286 (target-descriptions.o): Update.
7287 (xml-tdesc.o): New rule.
7288 * xml-tdesc.c, xml-tdesc.h: New files.
7289 * remote.c (PACKET_qXfer_features): New enum.
7290 (remote_protocol_features): Add qXfer:features:read.
7291 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7292 (_initialize_remote): Register qXfer:features:read.
7293 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7294 * features/gdb-target.dtd: New file.
7296 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7298 * copyright.sh: Clarify error.
7300 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7302 * symtab.c (matching_bfd_sections): Fix VMA matching for
7305 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7307 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7310 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7312 Updated copyright notices for most files.
7314 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7316 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7318 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7320 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7322 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7324 * configure, config.in: Regenerate.
7325 * defs.h (debug_file_directory): Declare.
7326 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7327 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7328 relocate it if DEBUGDIR_RELOCATABLE.
7329 * symfile.c (debug_file_directory): Make non-static.
7330 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7331 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7332 (_initialize_symfile): Don't initialize debug_file_directory here.
7334 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7336 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7339 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7341 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7342 frame_unwind_register to recurse.
7343 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7344 (alpha_heuristic_frame_prev_register): Likewise.
7345 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7346 * m32c-tdep.c (m32c_prev_register): Likewise.
7347 * frame.c (frame_register_unwind_location): Remove FIXME.
7349 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7350 Eli Zaretskii <eliz@gnu.org>
7352 * copyright.sh: New file.
7354 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7356 * configure.ac: Check for XML_StopParser.
7357 * xml-support.c (gdb_xml_body_text): Check for an error.
7358 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7359 (gdb_xml_end_element_wrapper): Likewise.
7360 * config.in, configure: Regenerated.
7362 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7364 * varobj.c (install_new_value): Always update print_value.
7365 (value_get_print_value): Immediately return NULL for missing
7368 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7370 * configure.ac: Tighten pattern for extracting value of
7371 DEPRECATED_TM_FILE from the target makefile fragment.
7372 * configure: Regenerated.
7374 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7376 * linux-nat.c (struct simple_pid_list): Add status.
7377 (add_to_pid_list): Record the PID's status.
7378 (linux_record_stopped_pid): Likewise. Make static.
7379 (pull_pid_from_list): Return the saved status.
7380 (linux_nat_handle_extended): Deleted.
7381 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7382 Make static. Handle non-SIGSTOP for a new thread's first signal.
7383 (flush_callback): Handle unexpected pending signals.
7384 (linux_nat_wait): Update calls to changed functions.
7385 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7386 Remove prototypes for newly static functions.
7388 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7390 * gdbarch.sh (value_from_register): New gdbarch function.
7391 * gdbarch.c, gdbarch.h: Regenerate.
7392 * findvar.c (default_value_from_register): New function.
7393 (value_from_register): Use gdbarch_value_from_register.
7394 * value.h (default_value_from_register): Declare.
7395 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7396 spu_value_to_register): Remove.
7397 (spu_value_from_register): New function.
7398 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7399 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7400 Call set_gdbarch_value_from_register.
7401 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7402 s390_value_to_register): Remove.
7403 (s390_value_from_register): New function.
7404 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7405 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7406 Call set_gdbarch_value_from_register.
7408 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7410 * NEWS: Add "set sysroot" and "show sysroot".
7411 * solib.c (solib_absolute_prefix): Delete. Replace
7412 all uses with gdb_sysroot.
7413 (_initialize_solib): Add "set sysroot" and "show sysroot".
7414 Make "solib-absolute-prefix" an alias to it.
7416 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7418 * frame.c (get_frame_register_bytes): New function.
7419 (put_frame_register_bytes): Likewise.
7420 * frame.h (get_frame_register_bytes): Declare.
7421 (put_frame_register_bytes): Likewise.
7422 * findvar.c (value_from_register): Always construct lval_register
7423 values. Use get_frame_register_bytes.
7424 * valops.c (value_assign): Use get_frame_register_bytes and
7425 put_frame_register_bytes.
7427 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7429 * MAINTAINERS: Update Stan Shebs' email address.
7431 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7433 * ada-lang.c (is_known_support_routine): Improve the implementation.
7435 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7437 * ada-lang.c: Add include of source.h.
7438 (is_known_support_routine): Improve the check verifying that the file
7439 associated to this frame exists.
7440 * Makefile.in (ada-lang.o): Add dependency on source.h.
7442 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7444 * ax-general.c (ax_const_l): Select proper opcode for the given
7447 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7449 * varobj.c (c_value_of_root): Don't select frame if variable
7450 object is out of scope.
7452 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7454 * varobj.c (struct varobj): New member print_value.
7455 (install_new_value): Compare last printed value with current one
7456 instead of contents.
7457 (new_variable): Initialize var->print_value to NULL.
7458 (free_variable): Free var->print_value.
7459 (value_get_print_value): New function derived from
7460 c_value_of_variable.
7461 (c_value_of_variable): Use value_get_print_value.
7463 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7465 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7467 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7469 * NEWS: Add entries for new catch commands.
7471 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7473 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7474 (add_partial_symbol): Correct identification of external references.
7475 (process_structure_scope): Likewise.
7476 (read_partial_die): Handle DW_AT_byte_size attribute.
7478 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7480 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7482 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7484 * varobj.c (get_type_deref): Fix variable objects for references to
7487 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7489 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7492 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7494 * memory-map.c (struct_memory_map_parsing_data): Remove most
7495 members. Make property_name an array.
7496 (free_memory_map_parsing_data, memory_map_start_element)
7497 (memory_map_end_element, memory_map_character_data): Delete.
7498 (memory_map_start_memory, memory_map_end_memory)
7499 (memory_map_start_property, memory_map_end_property): New functions.
7500 (property_attributes, memory_children, memory_type_enum)
7501 (memory_attributes, memory_map_children, memory_map_elements): New.
7502 (parse_memory_map): Rewrite.
7503 * xml-support.c (debug_xml): New.
7504 (xml_get_required_attribute, xml_get_integer_attribute)
7505 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7507 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7508 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7509 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7510 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7511 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7512 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7513 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7515 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7516 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7517 (enum gdb_xml_element_flag, struct gdb_xml_element)
7518 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7519 (struct gdb_xml_enum): New.
7520 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7521 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7522 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7523 (xml_get_required_attribute, xml_get_integer_attribute)
7524 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7525 * Makefile.in (xml_support_h, xml-support.o): Update.
7527 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7529 * Makefile.in (eval.o): Update dependencies.
7530 * eval.c: Include "ui-out.h" and "exceptions.h".
7531 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7532 Use value_zero if an error occurs when avoiding side effects.
7533 * varobj.c (c_value_of_root): Initialize new_val.
7535 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7537 * varobj.c (varobj_list_children): Stop if the number of children is
7539 (c_number_of_children):
7541 2007-01-04 Mark Kettenis <kettenis@gnu.org>
7543 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7544 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7545 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7546 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7547 sizeof, instead of hardcoded constants.
7549 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7551 * CONTRIBUTE: Use sourceware.org.
7553 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7555 * buildsym.c (start_subfile): Handle producer.
7556 (record_producer): New function.
7557 * buildsym.h (struct subfile): Include producer.
7558 (record_producer): New prototype.
7559 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7560 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7561 armcc_cfa_offsets_reversed.
7562 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7563 (dwarf2_frame_find_quirks): New function.
7564 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7565 (decode_frame_entry_1): Record the CIE version. Record the
7566 augmentation. Skip armcc augmentations.
7567 * dwarf2read.c (read_file_scope): Save the producer.
7568 * symtab.h (struct symtab): Rename unused version member to
7571 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7573 * configure.ac (build_warnings): Use -Wall and
7574 -Wdeclaration-after-statement.
7575 * configure: Regenerated.
7577 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7579 Simplify access to variours properties of child
7580 variable objects in C.
7581 * varobj.c (value_struct_element_index): New function.
7582 (c_describe_child): New function.
7583 (c_name_of_child, c_value_of_child)
7584 (c_type_of_child): Rewrite to use c_describe_child.
7586 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7589 * varobj.c: Include "vec.h".
7590 (varobj_p): New typedef, declare vector of those.
7591 (struct varobj): Use vector for the 'children' member.
7592 (child_exists): Remove.
7593 (save_child_in_parent): Remove.
7594 (remove_child_from_parent): Remove.
7595 (struct varobj_child): Remove.
7596 (struct vstack): Remove.
7597 (vpush, vpop): Remove.
7598 (varobj_list_children): Adjust to work work vector.
7599 (varobj_update): Likewise. Use vectors for
7600 working stack and result.
7601 (delete_variable_1): Likewise.
7602 * Makefile.in (varobj.o): Update dependencies.
7604 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7606 Port from Apple's version.
7608 * varobj.c (type_changeable): Rename to...
7609 (varobj_value_is_changeable_p): ...this. Adjust all callers.
7610 (is_root_p): New function. Use it everywhere.
7612 2007-01-04 Jim Blandy <jimb@codesourcery.com>
7614 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7617 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7619 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7621 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7623 * hpread.c (hpread_type_lookup): Fix compilation failure.
7625 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
7627 * NEWS: New port to S+core.
7628 * MAINTAINERS (Write After Approval, Responsible Maintainers):
7631 * Makefile.in: Add dependencies for S+core files.
7632 * configure.tgt (score*, score-*-*): Add S+core target.
7633 * config/score/embed.mt: New file.
7634 * score-tdep.c: New file.
7635 * score-tdep.h: New file.
7637 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7639 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
7640 the appropriate type rather than a bogus void type.
7642 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7644 * ada-lang.h (ada_find_printable_frame): Remove.
7645 (ada_exception_catchpoint_p, ada_decode_exception_location)
7646 (ada_decode_assert_location): Add declaration.
7647 * ada-lang.c: Add include of annotate.h and valprint.h.
7648 (exception_catchpoint_kind): New enum.
7649 (function_name_from_pc, is_known_support_routine)
7650 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
7651 (ada_exception_name_addr_1, ada_exception_name_addr)
7652 (print_it_exception, print_one_exception, print_mention_exception)
7653 (print_it_catch_exception, print_one_catch_exception)
7654 (print_mention_catch_exception, catch_exception_breakpoint_ops)
7655 (print_it_catch_exception_unhandled)
7656 (print_one_catch_exception_unhandled)
7657 (print_mention_catch_exception_unhandled, print_it_catch_assert)
7658 (print_one_catch_assert, print_mention_catch_assert)
7659 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
7660 (ada_get_next_arg, catch_ada_exception_command_split)
7661 (ada_exception_sym_name, ada_exception_sym_name)
7662 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
7663 (ada_parse_catchpoint_condition, ada_exception_sal)
7664 (ada_decode_exception_location)
7665 (ada_decode_assert_location): New function.
7666 (catch_exception_unhandled_breakpoint_ops): New global variable.
7667 (catch_assert_breakpoint_ops): New global variable.
7668 * breakpoint.c: Add include of ada-lang.h.
7669 (print_one_breakpoint): Do not print the condition for Ada
7670 exception catchpoints.
7671 (create_ada_exception_breakpoint): New function.
7672 (catch_ada_exception_command, catch_assert_command): New function.
7673 (catch_command_1): Add support for the new "catch exception" and
7674 "catch assert" commands.
7675 (_initialize_breakpoint): Add help description for the new catch
7677 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
7679 (breakpoint.o): Add dependency on ada-lang.h.
7681 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
7683 * coffread.c (cs_to_section): If bfd_section is found, always
7684 return its section index.
7685 (coff_symtab_read): Determine the minimal_symbol_type using the
7688 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7689 Daniel Jacobowitz <dan@codesourcery.com>
7691 * Makefile.in (top.o): Update.
7692 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
7693 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
7694 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
7696 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
7698 2007-01-03 Mark Kettenis <kettenis@gnu.org>
7700 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
7701 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
7703 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7705 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
7706 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
7707 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
7708 greater than or equal to zero.
7709 * m2-typeprint.c (m2_array): Likewise.
7710 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7711 * gdbtypes.c (copy_type_recursive): Correct == typo.
7712 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
7713 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
7715 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
7716 (default_macro_scope): Remove unused variable.
7717 * prologue-value.h (pv_area_find_reg): Don't name an argument
7719 * remote-fileio.c (remote_fio_func_map): Add missing braces.
7720 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
7722 (cleanup_sigint_signal_handler): Remove casts.
7723 * valprint.c (val_print): Use a volatile local for the modified
7725 * varobj.c (languages): Remove extra array dimension.
7726 (varobj_create): Correct access to languages array.
7727 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
7729 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
7730 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
7731 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
7732 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
7733 (mi_cmd_data_write_memory): Likewise.
7734 * signals/signals.c (target_signal_to_string): Cast to int before
7736 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
7739 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7741 * NEWS: Mention pointer to member improvements.
7742 * Makefile.in (gnu-v3-abi.o): Delete special rule.
7743 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
7744 * ada-valprint.c (ada_print_scalar): Update for new type codes.
7745 * c-typeprint.c (c_print_type): Update for new type codes.
7746 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
7747 (c_type_print_base): Likewise.
7748 (c_type_print_args): Rewrite.
7749 * c-valprint.c (c_val_print): Update for new type codes. Remove
7750 support for references to members. Treat methods like functions.
7751 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
7752 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
7753 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
7754 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
7755 (struct cp_abi_ops): Add corresponding members.
7756 * cp-valprint.c (cp_print_class_method): Delete.
7757 (cp_find_class_member): New function.
7758 (cp_print_class_member): Use it. Simplify support for bogus
7760 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
7761 lookup_methodptr_type.
7762 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
7763 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
7764 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
7766 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
7767 references returned by user defined operators.
7768 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
7769 (f_type_print_varspec_suffix): Remove support for member pointers.
7770 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
7772 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
7773 (lookup_methodptr_type): New.
7774 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
7775 (recursive_dump_type): Update for new types.
7776 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
7777 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
7778 (lookup_memberptr_type, lookup_methodptr_type)
7779 (smash_to_memberptr_type): New prototypes.
7780 (smash_to_method_type): Formatting fix.
7781 (lookup_member_type, smash_to_member_type): Delete prototypes.
7782 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
7783 Do not rely on debug information for the vptr or the method's
7784 enclosing type. Handle function descriptors for IA64.
7785 (gnuv3_virtual_fn_field): Rewrite using the new functions.
7786 (gnuv3_find_method_in, gnuv3_print_method_ptr)
7787 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
7788 (gnuv3_method_ptr_to_value): New.
7789 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
7790 * hpread.c (hpread_type_lookup): Update for new types.
7791 * infcall.c (value_arg_coerce): Likewise.
7792 * m2-typeprint.c (m2_print_type): Remove explicit support
7793 for member pointers.
7794 * m2-valprint.c (m2_val_print): Likewise.
7795 * p-typeprint.c (pascal_type_print_varspec_prefix)
7796 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
7797 * p-valprint.c (pascal_val_print): Likewise.
7798 (pascal_object_print_class_method, pascal_object_print_class_member):
7800 * p-lang.h (pascal_object_print_class_method)
7801 (pascal_object_print_class_member): Delete prototypes.
7802 * stabsread.c (read_type): Update for new types.
7803 * typeprint.c (print_type_scalar): Likewise.
7804 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
7805 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
7806 argument. Construct a pointer to member if the address of a
7807 function or data member is requested.
7808 (value_cast_pointers): Don't modify the input value.
7809 (value_cast): Adjust pointer to member handling for new types.
7810 Allow null pointer to member constants. Don't modify the input
7812 (value_ind): Remove pointer to member check. Handle function
7813 descriptors for function pointers.
7814 (value_struct_elt, value_find_oload_method_list, check_field):
7815 Remove pointer to member checks.
7816 * value.c (unpack_long): Allow pointers to data members.
7817 (value_from_longest): Allow member pointers.
7818 * value.h (value_aggregate_elt): Add want_address.
7819 * varobj.c (c_variable_editable): Remove check for members.
7820 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
7821 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
7823 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
7824 * c-lang.h (cp_print_class_method): Delete prototype.
7825 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
7826 * mips-tdep.c (mips_gdbarch_init): Likewise.
7827 * gdbarch.c, gdbarch.h: Regenerated.
7829 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7831 * rs6000-tdep.c (rs6000_use_struct_convention)
7832 (rs6000_extract_return_value, rs6000_store_return_value)
7833 (rs6000_extract_struct_value_address): Remove.
7834 (rs6000_return_value): New function.
7835 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
7836 store_return_value, deprecated_extract_struct_value_address and
7837 deprecated_use_struct_convention. Use rs6000_return_value
7840 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
7842 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
7843 -display-disable, -display-enable, -display-insert and
7846 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7848 * breakpoint.c (remove_breakpoint): Remove dead code.
7850 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
7852 * varobj.c: Include block.h.
7853 (c_value_of_root): Check scope within nested statements.
7855 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7857 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
7858 regcache_cooked_write_signed instead of
7859 deprecated_write_register_bytes.
7861 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7863 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
7865 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7867 Followed the Start of New Year Procedure:
7868 * ChangeLog-2006: New file, containing all the entries for 2006.
7869 * ChangeLog: Removed all 2006 entries, and changed the reference
7870 to the previous ChangeLog to point to ChangeLog 2006.
7871 * top.c (print_gdb_version): Update copyright year.
7873 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7875 * Makefile.in (remote-sds.o): Remove.
7876 * remote-sds.c: Delete.
7878 For older changes see ChangeLog-2006.
7884 version-control: never