1 2007-10-10 Markus Deuling <deuling@de.ibm.com>
3 * remote-mips.c (mips_wait, mips_fetch_registers)
4 (mips_store_registers): Use get_regcache_arch to get at the
5 current architecture by regcache.
7 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
8 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
9 get at the current architecture by regcache.
10 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
11 architecture by frame_info.
13 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
14 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
15 the current architecture by regcache.
17 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
18 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
19 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
20 current architecture by frame_info.
21 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
22 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
23 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
24 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
25 get at the current architecture by regcache.
27 * mips-linux-nat.c (mips_linux_register_addr)
28 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
29 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
30 (mips64_linux_regsets_fetch_registers)
31 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
32 the current architecture by regcache.
34 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
35 get at the current architecture by frame_info.
37 2007-10-10 Markus Deuling <deuling@de.ibm.com>
39 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
40 current architecture by regcache.
41 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
42 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
43 (mips_stub_frame_cache, mips_read_fp_register_single)
44 (mips_read_fp_register_double, mips_print_fp_register)
45 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
46 at the current architecture by frame_info.
47 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
48 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
49 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
50 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
51 (mips_o32_push_dummy_call, mips_o32_return_value)
52 (mips_o64_push_dummy_call, mips_o64_return_value)
53 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
56 2007-10-10 Markus Deuling <deuling@de.ibm.com>
58 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
59 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
60 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
61 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
62 (xtensa_register_write_masked, xtensa_register_read_masked)
63 (xtensa_supply_gregset, xtensa_store_return_value)
64 (xtensa_extract_return_value): Use get_regcache_arch to get at the
65 current architecture by regcache.
66 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
67 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
68 architecture by frame_info.
70 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
72 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
73 (thumb_analyze_prologue): Move pv_area_store_would_trash call
74 out of loop. Do not set cache->frameoffset.
75 (arm_scan_prologue): Use prologue-value mechanism. Do not set
76 frameoffset. Simplify framesize.
77 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
79 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
81 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
83 * target.c (update_current_target): Call setup_target_debug.
84 (push_target): Do not call it here.
86 2007-10-09 Michael Snyder <msnyder@specifix.com>
88 * MAINTAINERS: Update my email address.
90 2007-10-09 Markus Deuling <deuling@de.ibm.com>
92 * xtensa-tdep.c: Replace following current-gdbarch based macros by
94 (xtensa_pseudo_register_read)
95 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
96 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
97 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
98 (xtensa_pseudo_register_read)
99 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
100 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
101 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
102 (xtensa_frame_prev_register): NUM_AREGS.
103 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
104 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
105 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
106 (xtensa_supply_gregset, xtensa_frame_cache)
107 (xtensa_frame_prev_register): WS_REGNUM.
108 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
109 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
110 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
111 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
112 (xtensa_register_reggroup_p): REGMAP.
113 (call0_track_op): LITBASE_REGNUM.
114 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
115 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
116 (xtensa_frame_prev_register, AREG_NUMBER)
117 (xtensa_register_type): AR_BASE.
118 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
119 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
120 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
121 (xtensa_frame_cache, xtensa_frame_prev_register)
122 (xtensa_extract_return_value, xtensa_store_return_value)
123 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
124 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
125 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
126 (xtensa_frame_prev_register, xtensa_push_dummy_call)
127 (call0_frame_cache): A1_REGNUM.
128 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
129 (xtensa_push_dummy_call): A4_REGNUM.
130 (ARGS_FIRST_REG): A6_REGNUM.
131 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
132 (xtensa_frame_prev_register): A15_REGNUM.
133 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
134 them in the appropriate source file:
135 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
136 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
137 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
138 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
139 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
140 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
141 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
142 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
143 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
144 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
145 A13_REGNUM, A14_REGNUM, A15_REGNUM.
147 2007-10-09 Markus Deuling <deuling@de.ibm.com>
149 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
150 the current architecture by frame_info.
151 (h8300_frame_prev_register
152 (h8300_print_register): Replace current_gdbarch by gdbarch.
153 (h8300_print_registers_info, h8300_register_type)
154 (h8300_register_type): Likewise.
156 2007-10-09 Markus Deuling <deuling@de.ibm.com>
158 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
159 the current architecture by regcache.
160 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
161 (i386_linux_fetch_inferior_registers)
162 (i386_linux_store_inferior_registers): Likewise.
163 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
164 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
165 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
166 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
167 (i386_extract_return_value, i386_store_return_value): Likewise.
168 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
169 the current architecture by frame_info.
170 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
171 (i386_register_to_value, i386_value_to_register): Likewise.
173 2007-10-09 Markus Deuling <deuling@de.ibm.com>
175 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
176 the current architecture by regcache.
177 (monitor_store_register, monitor_store_registers): Likewise.
179 2007-10-09 Markus Deuling <deuling@de.ibm.com>
181 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
182 the current architecture by regcache.
184 2007-10-09 Markus Deuling <deuling@de.ibm.com>
186 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
189 2007-10-09 Markus Deuling <deuling@de.ibm.com>
191 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
192 architecture by frame.
193 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
194 (inside_main_func, frame_sp_unwind): Likewise.
196 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
198 * solib-svr4.c (enable_break): Add the dynamic linker also if
201 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
203 * MAINTAINERS (Write After Approval): Add self.
205 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
207 * stabsread.c (read_huge_number): Initialize local variable to 0.
209 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
211 * p-lang.h (pascal_main_name): Add declaration.
212 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
213 (GPC_MAIN_PROGRAM_NAME_2): New constants.
214 (pascal_main_name): New function.
215 * symtab.c: Include p-lang.h.
216 (find_main_name): Add call to pascal_main_name.
217 * Makefile.in (symtab.o): Add dependency on p-lang.h.
219 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
221 * stabsread.c (read_huge_number): Fix handling of octal
222 representation when the bit width is known.
223 (read_range_type): Record unsigned integral types with their size,
224 when the type size is known.
226 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
228 * MAINTAINERS (Write After Approval): Add self.
230 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
232 * breakpoint.c (print_one_breakpoint_location): ARI fix:
233 Replace asprintf by xstrprintf.
235 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
237 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
238 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
240 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
242 * linux-fork.c: Move "gdb_wait.h" include back to the position of
243 <sys/wait.h> include before last commit.
245 2007-10-08 Maciej W. Rozycki <macro@mips.com>
247 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
249 2007-10-08 Markus Deuling <deuling@de.ibm.com>
251 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
252 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
253 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
254 (store_regs_user_thread, store_regs_kernel_thread): Use
255 get_regcache_arch or get_frame_arch to get at the current architecture
256 by regcache or by frame, respectively.
258 2007-10-08 Markus Deuling <deuling@de.ibm.com>
260 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
261 (sh64_pseudo_register_read, sh64_pseudo_register_write)
262 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
263 (sh64_print_register, sh64_media_print_registers_info)
264 (sh64_compact_print_registers_info, sh64_unwind_sp)
265 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
266 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
267 (sh64_frame_prev_register): Use FRAME to recognize current
270 2007-10-08 Markus Deuling <deuling@de.ibm.com>
272 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
273 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
274 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
275 current_gdbarch by gdbarch.
276 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
277 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
278 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
279 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
280 recognize current architecture.
282 2007-10-08 Markus Deuling <deuling@de.ibm.com>
284 * remote.c (init_remote_state, fetch_register_using_p)
285 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
286 (store_register_using_P, store_registers_using_G)
287 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
288 get at the current architecture by regcache or by frame, respectively.
290 2007-10-08 Markus Deuling <deuling@de.ibm.com>
292 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
293 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
294 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
295 get_regcache_arch or get_frame_arch to get at the current architecture
296 by regcache or by frame, respectively.
297 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
298 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
299 (store_register, old_store_inferior_registers, supply_gregset)
300 (supply_fpregset, fill_fpregset): Likewise.
301 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
302 Replace current_gdbarch by gdbarch.
304 2007-10-08 Markus Deuling <deuling@de.ibm.com>
306 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
307 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
308 get_frame_arch to get at the current architecture by regcache or by
311 2007-10-08 Markus Deuling <deuling@de.ibm.com>
313 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
314 Replace current_gdbarch by gdbarch.
315 * ia64-tdep.c (ia64_frame_prev_register
316 (ia64_sigtramp_frame_prev_register)
317 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
318 get_frame_arch to get at the current architecture by regcache or by
320 * ia64-linux-nat.c (ia64_linux_fetch_register)
321 (ia64_linux_fetch_registers, ia64_linux_store_register)
322 (ia64_linux_store_registers): Likewise.
324 2007-10-08 Markus Deuling <deuling@de.ibm.com>
326 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
327 current_gdbarch by gdbarch.
328 * hppa-linux-nat.c (fetch_register, store_register)
329 (hppa_linux_fetch_inferior_registers)
330 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
331 get_frame_arch to get at the current architecture by regcache or by
333 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
334 (hppa_hpux_unwind_adjust_stub): Likewise.
335 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
336 (hppa_hpux_fetch_inferior_registers)
337 (hppa_hpux_store_inferior_registers): Likewise.
339 2007-10-08 Markus Deuling <deuling@de.ibm.com>
341 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
342 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
343 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
344 or get_frame_arch to get at the current architecture by regcache or by
346 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
347 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
348 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
349 current_gdbarch by gdbarch.
351 2007-10-08 Markus Deuling <deuling@de.ibm.com>
353 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
354 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
355 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
356 get at the current architecture by regcache or by·frame, respectively.
357 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
360 2007-10-08 Markus Deuling <deuling@de.ibm.com>
362 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
363 Use get_regcache_arch or get_frame_arch to get at the current
364 architecture by regcache or by frame, respectively.
365 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
366 * amd64-nat.c (amd64_supply_native_gregset)
367 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
369 2007-10-08 Markus Deuling <deuling@de.ibm.com>
371 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
373 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
374 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
375 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
376 get_frame_arch to get at the current architecture by regcache or by
378 * alpha-nat.c (fetch_osf_core_registers): Likewise.
380 2007-10-08 Markus Deuling <deuling@de.ibm.com>
382 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
383 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
384 current_gdbarch by gdbarch.
385 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
387 2007-10-08 Markus Deuling <deuling@de.ibm.com>
389 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
390 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
391 * regcache.c (regcache_raw_write): Use get_regcache_arch or
392 get_frame_arch to get at the current architecture by regcache or by
395 2007-10-08 Markus Deuling <deuling@de.ibm.com>
397 * findvar.c (value_of_register, locate_var_value): Use
398 get_regcache_arch or get_frame_arch to get at the current architecture
399 by regcache or by frame, respectively.
400 * findvar.c (default_value_from_register, value_from_register): Replace
401 current_gdbarch by gdbarch.
403 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
405 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
407 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
409 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
410 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
412 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
414 * remote.c (get_offsets): Only call free_symfile_segment_data if
417 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
419 * objc-exp.y: ARI fix: remove 4 PARAMS.
421 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
423 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
424 news. Mention XML support for M68K in GDB 6.7.
426 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
428 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
430 (init_vector_type): Use builtin_type_int32.
432 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
434 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
435 size to enable bi-arch generate-core-file support.
437 2007-10-02 Markus Deuling <deuling@de.ibm.com>
439 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
441 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
443 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
445 * tui/tui-win.c (tui_initialize_win): New function for
446 initializing tui's SIGWINCH signal handler.
447 * tui/tui-win.h (tui_initialize_win): Declare.
449 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
451 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
452 pointer to uintptr_t before casting to CORE_ADDR.
454 2007-10-02 Markus Deuling <deuling@de.ibm.com>
456 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
458 2007-10-02 Mark Mitchell <mark@codesourcery.com>
460 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
461 * ser-mingw.c (enum select_thread_state): New type.
462 (struct ser_console_state): Add have_started and thread_state.
463 (select_thread_wait): New function.
464 (thread_fn_type): New type.
465 (create_select_thread): New function.
466 (destroy_select_thread): Likewise.
467 (start_select_thread): Likewise.
468 (stop_select_thread): Likewise.
469 (console_select_thread): Use new functions.
470 (pipe_select_thread): Likewise.
471 (file_select_thread): Likewise.
472 (ser_console_wait_handle): Likewise.
473 (ser_console_done_wait_handle): Likewise.
474 (ser_console_close): Likewise.
475 (free_pipe_state): Likewise.
476 (pipe_wait_handle): Likewise.
477 (pipe_done_wait_handle): Likewise.
478 (struct net_windows_state): Derive from ser_console_state.
479 (net_windows_select_thread): Use new functions.
480 (net_windows_wait_handle): Likewise.
481 (net_windows_done_wait_handle): Likewise.
482 (net_windows_close): Likewise.
484 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
486 * inflow.c (terminal_ours_1): Remove useless line.
488 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
490 * mips-tdep.c (mips_read_fp_register_double): Correct check for
492 (mips_print_fp_register): Correct check for even FP registers.
493 (mips_virtual_frame_pointer): New function.
494 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
496 2007-09-30 Mike Frysinger <vapier@gentoo.org>
498 * value.h (lookup_only_internalvar): New prototype.
499 (create_internalvar): Likewise.
500 * value.c (lookup_only_internalvar): New function.
501 (create_internalvar): Likewise.
502 (lookup_internalvar): Use new lookup_only_internalvar and
503 create_internalvar functions.
504 * parse.c (write_dollar_variable): Look up $ symbols in internal
505 table first rather than last.
507 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
509 * linux-nat.c (linux_nat_new_thread): New variable.
510 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
511 linux_nat_switch_fork.
512 (lwp_list): Make public.
513 (add_lwp): Call linux_nat_new_thread.
514 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
516 (resume_callback): Clear lp->siginfo. Remove unused variable.
517 (linux_nat_resume): Assert that the LWP list is already initialized.
520 (stop_wait_callback, linux_nat_wait): Call it.
521 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
522 * linux-nat.h (struct lwp_info): Add siginfo.
523 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
526 * amd64-linux-nat.c (amd64_linux_dr): New.
527 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
528 (amd64_linux_dr_set): Take a PTID argument.
529 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
530 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
531 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
532 (amd64_linux_new_thread): New.
533 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
534 * i386-linux-nat.c (i386_linux_dr): New.
535 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
536 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
537 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
538 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
539 (i386_linux_new_thread): New.
540 (i386_linux_resume): Remove unnecessary PID check.
541 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
542 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
543 (fetch_debug_register, fetch_debug_register_pair): Delete.
544 (debug_registers): New.
545 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
546 ALL_LWPS and debug_registers.
547 (ia64_linux_new_thread): New.
548 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
549 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
550 * ppc-linux-nat.c (last_stopped_data_address): Delete.
551 (saved_dabr_value): New.
552 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
554 (ppc_linux_new_thread): New.
555 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
556 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
557 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
558 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
560 (s390_fix_watch_points): Take a PTID argument.
561 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
562 (_initialize_s390_nat): Call linux_nat_set_new_thread.
564 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
565 Jeff Johnston <jjohnstn@redhat.com>
567 * breakpoint.c (watchpoints_triggered): New.
568 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
569 Check watchpoint_triggered instead. Combine handling for software
570 and hardware watchpoints. Do not use target_stopped_data_address
571 here. Always check a watchpoint if its scope breakpoint triggers.
572 Do not stop for thread or overlay events. Improve check for
573 triggered watchpoints without a value change.
574 (watch_command_1): Insert the scope breakpoint first. Link the
575 scope breakpoint to the watchpoint.
576 * breakpoint.h (enum watchpoint_triggered): New.
577 (struct breakpoint): Add watchpoint_triggered.
578 (bpstat_stop_status): Update prototype.
579 (watchpoints_triggered): Declare.
580 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
581 (stepped_after_stopped_by_watchpoint): Delete.
582 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
583 local. Handle infwait_step_watch_state. Update calls to
584 bpstat_stop_status. Use watchpoints_triggered to check
586 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
587 (remote_stopped_data_address): Do not check it.
589 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
591 * configure.ac: Add $LIBINTL when testing libbfd.
592 * configure: Regenerated.
594 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
596 * NEW: Mention pending breakpoint changes and
597 support for breakpoints at multiple locations.
599 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
601 * arm-linux-tdep.c (arm_linux_software_single_step): New.
602 (arm_linux_init_abi): Use it.
603 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
605 * arm-tdep.h (arm_get_next_pc): Declare.
606 * Makefile.in (arm-linux-tdep.o): Update.
608 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
610 * varobj.c (install_new_value): Don't
611 call value_get_print_value when a value is
612 lazy. Update the print_value member in a
615 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
617 * breakpoint.c (create_breakpoint): Set
618 condition on each location, not on the first
619 location of breakpoint.
621 2007-09-26 Jim Blandy <jimb@codesourcery.com>
623 * remote.c (getpkt_sane): Fix error message. No animals were
624 harmed in the making of this debugger.
626 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
628 * p-typeprint.c: Fix 11 ARI reported problems.
629 (pascal_print_type): Fix 4 operator at end of line.
630 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
631 using strncmp function.
632 (pascal_type_print_base): Fix 2 operator at end of line.
633 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
634 using strncmp function.
637 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
640 dwarf2read.c (read_subroutine_type):
641 All pascal functions are prototyped.
643 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
646 p-valprint.c (pascal_val_print): correct current language check.
647 Also print array of char as strings.
650 2007-09-26 David Ung <davidu@mips.com>
651 Maciej W. Rozycki <macro@mips.com>
653 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
655 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
657 * p-exp.y: Fix 12 ARI reported problems.
658 (name_not_typename): Fix 2 operator at end of line issues.
659 (yylex): Fix 3 operator at end of line issues.
660 Replace 7 DEPRECATED_STREQ macros using strcmp function.
662 2007-09-25 David Ung <davidu@mips.com>
663 Maciej W. Rozycki <macro@mips.com>
665 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
666 rules return composite types in registers as appropriate.
668 2007-09-24 Jim Blandy <jimb@codesourcery.com>
670 * symfile.h (struct symfile_segment_data): Doc fixes.
671 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
672 Assert that we were passed some loaded segment addresses,
673 and that sections' segment numbers are valid.
674 Simplify offset calculation.
675 * remote.c (get_offsets): Clarify selection of relocate-by-segment
676 strategy, and set num_segments correctly. Delete redundant
677 assignments to do_sections.
679 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
681 * frame.c (get_prev_frame_1): Also check for PC in the same register.
683 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
685 * breakpoint.c (remove_sal): New.
686 (expand_line_sal_maybe): New.
687 (create_breakpoints): Call expand_line_sal_maybe.
688 (clear_command): Add comment.
689 (breakpoint_re_set_one): Call expand_line_sal_maybe.
690 * linespec.c (decode_indirect): Set explicit_pc to 1.
691 (decode_all_digits): Set explicit_line to 1.
692 (append_expanded_sal): New.
693 (expand_line_sal): New.
694 * linespec.h (expand_line_sal): Declare.
695 * symtab.c (init_sal): Initialize explicit_pc
697 * symtab.h (struct symtab_and_line): New fields
698 explicit_pc and explicit_line.
700 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
702 * infcall.c (call_function_by_hand): Handle language-specific
703 pass and return by reference.
705 * cp-abi.c (cp_pass_by_reference): New.
706 * cp-abi.h (cp_pass_by_reference): Declare.
707 (struct cp_abi_ops): Add pass_by_reference.
708 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
709 (init_gnuv3_ops): Set pass_by_reference.
711 * language.c (language_pass_by_reference): New.
712 (default_pass_by_reference): New.
713 (unknown_language_defn, auto_language_defn, local_language_defn): Add
714 default_pass_by_reference.
715 * langauge.h (struct language_defn): Add la_pass_by_reference.
716 (language_pass_by_reference, default_pass_by_reference): Declare.
717 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
718 * c-lang.c (c_language_defn, asm_language_defn)
719 (minimal_language_defn): Likewise.
720 (cplus_language_defn): Add cp_pass_by_reference.
721 * f-lang.c (f_language_defn): Add default_pass_by_reference.
722 * jv-lang.c (java_language_defn): Likewise.
723 * m2-lang.c (m2_language_defn): Likewise.
724 * objc-lang.c (objc_language_defn): Likewise.
725 * p-lang.c (pascal_language_defn): Likewise.
726 * scm-lang.c (scm_language_defn): Likewise
728 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
730 Allow a code breakpoint to have several locations
732 * breakpoint.h (enum enable_state): Remove the
733 bp_shlib_disabled enumerator.
734 (struct bp_location): New members shlib_disabled,
735 global_next, enabled and function_name.
736 Rename pending to condition_not_parsed.
738 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
739 (ALL_BP_LOCATIONS_SAFE): Likewise.
740 (breakpoint_enabled): Don't check for pending.
741 (condition_command): Free and update all locations of
743 (insert_bp_location): Adjust.
744 (software_breakpoint_inserted_here_p): Don't care
745 if breakpoint is enabled, as soon as it's inserted.
746 (print_it_typical): Print bpstat's location, not
747 bpstat's breakpoint's location.
748 (bpstat_stop_status): Iterate over all locations, not
750 (print_breakpoint_location): New.
751 (print_one_breakpoint): Renamed to
752 (print_one_breakpoint_location): ...this. Take
753 parameters to describe which location is being
754 printed. Modify code to properly print header
755 for several locations and individual locations.
756 (print_one_breakpoint): Print all locations.
757 (breakpoint_has_pc): New.
758 (describe_other_breakpoints): Use the above.
759 (check_duplicates): Renamed to...
760 (check_duplicates_for): .. this.
761 (check_duplicates): Use check_duplicates_for.
762 (allocate_bp_location): Adjust.
763 (set_raw_breakpoint_without_location): New,
764 extracted from set_raw_breakpoint.
765 (set_breakpoint_location_function): New.
766 (set_raw_breakpoint): Use
767 set_raw_breakpoint_without_location.
768 (make_breakpoint_permanent): Mark all locations
770 (disable_breakpoints_in_shlibs): Iterate over
772 (disable_breakpoints_in_unloaded_shlib): Likewise.
773 (re_enable_breakpoints_in_shlibs): Likewise.
774 (mention): Say "pending" when breakpoint has
775 zero locations. If breakpoint has more than one
777 (add_location_to_breakpoint): New.
778 (create_breakpoint): Accept symtabs_and_lines, not
779 symtab_and_line. Pass extra sals to
780 add_location_to_breakpoint.
781 (create_breakpoints): Pass symtabs_and_lines to
783 (break_command_1): Make pending breakpoints
785 (do_captured_breakpoint): Remove wrong allocation.
786 (clear_command): Iterate over all locations.
787 (unlink_locations_from_global_list): Renamed
788 from unlink_location_from_global_list. Remove
790 (delete_breakpoint): Remove all locations.
791 Iterate over all locations when deciding which
792 other location to re-enable.
793 (all_locations_are_pending): New.
794 (update_breakpoint_locations): Renamed from
795 update_breakpoint_location. Try to match old
796 and new locations using names of containing
798 (breakpoint_re_set_one): Adjust.
799 (find_location_by_number): New.
800 (disable_command): Allow disabling individual location.
801 (enable_command): Allow enabling individual location.
802 * breakpoint.c: Adjust all uses of breakpoint's
803 enable state to for bp_shlib_disabled change.
805 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
807 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
808 (resolve_pending_breakpoint): Remove.
809 (re_enable_breakpoints_in_shlibs): Remove.
810 (unlink_locations_from_global_list): New.
811 (update_breakpoint_locations): New.
812 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
813 Use parse_condition and update_breakpoint_location to
814 reset breakpoint. Ignore 'symbol not found' error from
816 (breakpoint_re_set): Don't emit newline before the
817 reason why breakpoint is not reset.
818 (do_enable_breakpoint): Don't specially process pending
820 (free_bp_location): New.
821 (break_command_1): For pending breakpoints, initialize
822 all fields of a sal with zeroes.
823 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
824 * infcmd.c (post_create_inferior): Don't call
825 re_enable_breakpoints_in_shlibs.
826 * infrun.c (handle_inferior_event): Likewise.
827 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
828 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
829 * win32-nat.c (get_win32_debug_event): Likewise.
831 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
833 * breakpoint.c (create_breakpoint): Split from
834 create_breakpoints, implementing most of its logic.
835 Take just a single sal, single address string and
836 single condition. Do not take parsed condition at
838 (create_breakpoints): Just call create_breakpoint
840 (find_condition_and_thread): New.
841 (break_command_1): Use find_condition_and_thread.
842 Do not keep parsed conditions.
843 (do_captured_breakpoint): Don't convert
844 condition string to struct expression.
846 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
848 * breakpoint.h (struct breakpoint): Move the cond
850 (struct bp_location): Here.
851 * breakpoint.c (condition_command, bpstat_stop_status)
852 (print_one_breakpoint, allocate_bp_location)
853 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
854 (create_exec_event_catchpoint, create_breakpoints)
855 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
856 (create_ada_exception_breakpoint, set_breakpoint_sal)
857 (delete_breakpoint, breakpoint_re_set_one): Adjust.
858 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
860 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
862 Associate bp_stat with bp_location, not breakpoint.
863 * breakpoint.h (breakpoint_at): Change type
865 * breakpoint.c (bpstat_alloc): Take bp_location,
867 (bpstat_find_breakpoint): Look at bpstat's location's
868 owner, not at bpstat->breakpoint_at.
869 (bpstat_find_step_resume_breakpoint): Likewise.
870 (bpstat_num): Likewise.
871 (print_it_typical): Likewise.
872 (print_bp_stop_message): Likewise.
873 (watchpoint_check): Likewise.
874 (bpstat_what): Likewise.
875 (bpstat_get_triggered_catchpoints): Likewise.
876 (breakpoint_auto_delete): Likewise.
877 (delete_breakpoint): Likewise.
878 (bpstat_stop_status): Pass location, not breakpoint,
879 to bpstat_alloc. Look at bpstat's location's
880 owner, not at bpstat->breakpoint_at.
882 2007-09-21 Jim Blandy <jimb@codesourcery.com>
884 * macrotab.h (new_macro_table): Document that removing information
885 from an obstack/bcache-managed macro table leaks memory.
886 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
887 that data is never freed in obstack/bcache-managed macro tables,
888 just leak the storage.
889 (macro_undef): If we're undefining a macro at exactly the same
890 source location that we defined it, simply remove the definition
893 2007-09-21 Joel Brobecker <brobecker@adacore.com>
895 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
896 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
897 Adjust the struct sym_fns object accordingly by setting
898 the new field to NULL.
899 * xcoffread.c (aix_process_linenos): Make static.
900 (xcoff_sym_fns): Set new field to aix_process_linenos.
901 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
902 by call to new the new sym_fns sym_read_linetable function.
903 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
904 * config/rs6000/tm-rs6000.h: Delete.
906 2007-09-21 David Ung <davidu@mips.com>
907 Maciej W. Rozycki <macro@mips.com>
909 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
910 rules do not treat composite types specially.
912 2007-09-20 Maciej W. Rozycki <macro@mips.com>
914 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
915 (mips16_in_function_epilogue_p): Likewise.
916 (mips_in_function_epilogue_p): Likewise.
917 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
919 2007-09-19 Joel Brobecker <brobecker@adacore.com>
921 * configure.ac: Add check for "etext".
922 * configure, config.in: Regenerate.
923 * maint.c (TEXTEND): Only define if either _etext or etext
925 Disable the profiling functionality if TEXTEND is not defined.
927 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
929 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
930 address register. Correct the call to frame_id_build.
931 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
934 2007-09-18 Joel Brobecker <brobecker@adacore.com>
936 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
937 the linetable past the function end.
939 2007-09-18 James E. Wilson <wilson@specifix.com>
941 * MAINTAINERS: Update my email address.
943 2007-09-18 Jerome Guitton <guitton@adacore.com>
945 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
946 (inf_ttrace_delete_dying_threads_callback): New function.
947 (inf_ttrace_resume): After resuming the execution, iterate over
948 the dying threads to delete them for the thread list.
949 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
950 mark the corresponding thread as dying instead of removing it
951 from the thread list.
952 (inf_ttrace_thread_alive): return 0 for dying threads.
954 2007-09-17 Joel Brobecker <brobecker@adacore.com>
956 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
957 that return_frame is not null.
959 2007-09-17 Joel Brobecker <brobecker@adacore.com>
961 * solib-svr4.c: Add include of "auxv.h".
962 (enable_break): Use the AT_BASE auxiliary entry if available.
963 * Makefile.in (solib-svr4.o): Update dependencies.
965 2007-09-17 Joel Brobecker <brobecker@adacore.com>
967 * NEWS: Create a new section for the next release branch.
968 Rename the section of the current branch, now that it has
971 2007-09-17 Jerome Guitton <guitton@adacore.com>
973 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
974 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
976 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
978 * mi/mi-cmds.c (mi_cmds): Register -list-features.
979 * mi/mi-cmds.h (mi_cmd_list_features): New.
980 * mi/mi-main.c (mi_cmd_list_features): New.
982 2007-09-11 Joel Brobecker <brobecker@adacore.com>
984 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
985 * version.in: Bump version to 6.7.50-20070911-cvs.
987 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
989 * thread.c (free_thread): Do not delete the step resume breakpoint
992 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
994 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
995 * corelow.c (core_read_description): New.
996 (init_core_ops): Set to_read_description.
997 * gdbarch.sh: Add gdbarch_core_read_description.
998 * mips-linux-tdep.c (mips_linux_core_read_description): New.
999 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1000 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1001 (mips_register_g_packet_guesses): Use them.
1002 (_initialize_mips_tdep): Initialize them.
1003 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1004 * gdbarch.h, gdbarch.c: Regenerated.
1006 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1008 * infrun.c (stepping_past_breakpoint): New global variable.
1009 (stepping_past_breakpoint_ptid): Likewise.
1010 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1011 Only switch threads if we need to single-step over a breakpoint hit
1012 in the previously selected thread. If stepping, remember previous
1013 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1014 switch_to_thread instead of copying its contents.
1015 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1016 prepare_to_proceed returns true.
1017 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1018 (context_switch): Call switch_to_thread.
1019 (handle_inferior_event): Switch back to previous thread if requested
1020 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1021 * gdbthread.h (switch_to_thread): Add prototype.
1022 * thread.c (switch_to_thread): Make global.
1024 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
1026 * p-valprint.c: Fix 7 ARI reported problems.
1027 (pascal_val_print): Fix one operator at end of line issue.
1028 Use paddress function to remove use of
1029 deprecated_print_address_numeric function (2 times).
1030 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1031 (pascal_value_print): Fix 3 operator at end of line issues.
1033 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1036 * arm-tdep.c (arm_in_call_stub): Delete.
1037 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1039 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1041 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1044 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1045 Jim Blandy <jimb@codesourcery.com>
1047 * NEWS: Update description of string changes. Mention print/s.
1048 * c-valprint.c (textual_element_type): New.
1049 (c_val_print): Use it. Do not skip address printing for pointers
1050 with a string format.
1051 (c_value_print): Doc update.
1052 * dwarf2read.c (read_array_type): Use make_vector_type.
1053 * gdbtypes.c (make_vector_type): New.
1054 (init_vector_type): Use it.
1055 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1056 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1057 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1058 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1059 (make_vector_type): New.
1060 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1061 Call the language print routine for string format.
1062 (print_scalar_formatted): Call val_print for string format. Handle
1063 unsigned original types for char format.
1064 (validate_format): Do not reject string format.
1065 * stabsread.c (read_type): Use make_vector_type.
1066 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1068 2007-09-04 Michael Snyder <msnyder@access-company.com>
1070 * expprint.c (print_subexp_standard): Check strchr for null.
1071 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1073 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1075 * stabsread.c (patch_block_status): Guard against null.
1076 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1078 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1080 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1081 in internal error message.
1083 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1084 Daniel Jacobowitz <dan@codesourcery.com>
1086 * infcmd.c (post_create_inferior): Update comment.
1087 (run_command_1): Always call post_create_inferior with 0 as
1090 * i386-cygwin-tdep.h: New.
1091 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1092 (win32_xfer_shared_library): Make it extern.
1094 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1096 (win32_so_ops): Delete.
1097 (get_relocated_section_addrs): Delete.
1098 (solib_symbols_add): Delete.
1099 (register_loaded_dll): Delete.
1100 (win32_make_so): New.
1101 (handle_load_dll): Use win32_make_so.
1102 (win32_free_so): Free the passed in so.
1103 (win32_relocate_section_addresses): Delete.
1104 (win32_solib_create_inferior_hook): Delete.
1105 (handle_unload_dll): Don't add PE offset here. Free so with
1106 win32_free_so instead of free_so.
1107 (win32_special_symbol_handling): Delete.
1108 (get_win32_debug_event): Remove unneeded calls. Set state to
1109 TARGET_WAITKIND_LOADED on a dll unload.
1110 (do_initial_win32_stuff): Clear cygwin_load_start and
1112 (map_code_section_args): Delete.
1113 (dll_code_sections_add): Delete.
1114 (core_section_load_dll_symbols): Delete.
1115 (win32_xfer_shared_libraries): New.
1116 (win32_current_sos): Delete.
1117 (win32_xfer_partial): New.
1118 (open_symbol_file_object): Delete.
1119 (in_dynsym_resolve_code): Delete.
1120 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1121 of win32_ops. Remove win32_so_ops settings. Don't set
1122 current_target_so_ops here.
1124 * Makefile.in (i386_cygwin_tdep_h): New variable.
1125 (i386-cygwin-tdep.o): Update dependencies.
1126 (win32-nat.o): Update dependencies.
1128 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1129 Daniel Jacobowitz <dan@codesourcery.com>
1131 * gdbarch.sh (core_xfer_shared_libraries): New.
1133 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1135 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1137 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1138 (xml_escape_text): New.
1139 * xml-support.h (xml_escape_text): Declare.
1141 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1142 * config/i386/cygwin.mt (TDEPFILES): ... here.
1144 * win32-nat.c: (fetch_elf_core_registers): Delete.
1145 (win32_elf_core_fn): Delete.
1146 (_initialize_core_win32): Delete.
1148 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1149 "xml-support.h" and "gdbcore.h".
1150 (i386_win32_gregset_reg_offset): New.
1151 (I386_WIN32_SIZEOF_GREGSET): New.
1152 (i386_win32_regset_from_core_section): New.
1153 (win32_xfer_shared_library): New.
1154 (struct cpms_data): New.
1155 (core_process_module_section): New.
1156 (win32_core_xfer_shared_libraries): New.
1157 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1158 gregset_num_regs, sizeof_gregset members of tdep. Register
1159 regset_from_core_section and core_xfer_shared_libraries callbacks.
1161 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1162 * gdbarch.h, gdbarch.c: Regenerate.
1164 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1166 * corelow.c (core_xfer_partial): Pass writebuf to
1167 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1169 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1171 * arm-tdep.h (arm_skip_stub): Declare.
1172 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1174 (arm_pe_skip_trampoline_code): New function.
1175 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1176 gdbarch_skip_trampoline_code callback.
1177 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1179 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1181 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1183 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1185 * configure.ac: Add --with-expat.
1186 * configure: Regenerated.
1188 2007-09-03 Andreas Schwab <schwab@suse.de>
1190 * configure.ac: Accept --with-system-readline.
1191 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1192 * configure: Regenerate.
1193 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1195 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1197 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1198 Daniel Jacobowitz <dan@codesourcery.com>
1200 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1202 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1204 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1206 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1208 * top.c (print_gdb_version): Update for GPL version 3.
1210 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1212 * NEWS: Mention the build-id .debug files verification.
1214 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1216 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1218 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1220 * Makefile.in (symfile.o): Update dependencies.
1221 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1222 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1223 (struct build_id): New structure.
1224 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1225 (find_separate_debug_file): New variable BUILD_ID.
1226 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1228 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1230 * varobj.c (struct varobj): Fix comment
1231 for the type member not to lie when it can be
1234 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1236 Implement -var-info-path-expression.
1238 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1240 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1241 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1242 * varobj.c (struct varobj): New field 'path_expr'.
1243 (c_path_expr_of_child, cplus_path_expr_of_child)
1244 (java_path_expr_of_child): New.
1245 (struct language_specific): New field path_expr_of_child.
1246 (varobj_create): Initialize the path_expr field.
1247 (varobj_get_path_expr): New.
1248 (new_variable): Initialize the path_expr field.
1249 (free_variable): Free the path_expr field.
1250 (adjust_value_for_children_access): New parameter
1252 (c_number_of_children): Adjust.
1253 (c_describe_child): New parameter CFULL_EXPRESSION.
1254 Compute full expression.
1255 (c_value_of_child, c_type_of_child): Adjust.
1256 (cplus_number_of_children): Adjust.
1257 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1258 Compute full expression.
1259 (cplus_name_of_child, cplus_value_of_child)
1260 (cplus_type_of_child): Adjust.
1261 * varobj.h (varobj_get_path_expr): Declare.
1263 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1265 * mi/mi-cmd-var.c (print_varobj): If a varobj
1266 type is NULL, don't try to print it.
1268 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1270 * ppc-linux-nat.c (right_fill_reg): Delete.
1271 (supply_gregset): Use ppc_supply_gregset.
1272 (supply_fpregset): Use ppc_supply_fpregset.
1273 (fill_gregset): Use ppc_collect_gregset.
1274 (fill_fpregset): Use ppc_collect_fpregset.
1275 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1276 (right_supply_register, ppc_linux_supply_gregset): Delete.
1277 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1278 (ppc_linux_supply_fpregset): Delete.
1279 (ppc_linux_collect_gregset): New function.
1280 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1281 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1282 ppc_linux_supply_gregset, and ppc_collect_gregset.
1283 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1284 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1285 (ppc_linux_regset_from_core_section): Update.
1286 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1287 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1288 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1289 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1290 (ppcobsd_collect_gregset): Likewise.
1291 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1292 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1293 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1294 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1295 (rs6000_aix64_reg_offsets): Likewise.
1296 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1297 ppc_floating_point_unit_p.
1298 (rs6000_aix_collect_regset): Similarly.
1299 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1300 when regsize is larger than regcache register size.
1301 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1302 regcache register size.
1303 (ppc_greg_offset): New function, split out from..
1304 (ppc_supply_gregset): ..here. Separate code handling all regs from
1305 single reg case. Correct xer offset.
1306 (ppc_fpreg_offset): New function, split out from..
1307 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1309 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1310 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1311 a fp unit, instead return if no fp.
1313 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1315 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1316 this code has not been compiled for two years.
1318 2007-08-29 Michael Snyder <msnyder@access-company.com>
1320 * event-top.c (gdb_readline2): Return after EOF.
1322 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1324 * symtab.c: Remove a function that has been commented out 3 years ago.
1326 2007-08-29 Randolph Chung <tausq@debian.org>
1328 * hppa-tdep.c (hppa32_cannot_fetch_register)
1329 (hppa64_cannot_fetch_register): New functions.
1330 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1331 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1333 2007-08-28 Michael Snyder <msnyder@access-company.com>
1335 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1336 check for null before calling check_typedef.
1338 * NEWS: Mention Coverity bug fixes.
1340 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1342 * spu-tdep.c (spu_pointer_to_address): New function.
1343 (spu_integer_to_address): Likewise.
1344 (spu_gdbarch_init): Add spu_pointer_to_address and
1345 spu_integer_to_address to gdbarch.
1347 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1349 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1351 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1353 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1354 that contains the GDB license.
1355 * copying.awk: Adjust to the GPLv3 wording.
1356 * copying.c: Regenerate.
1358 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1360 * copying.awk: Protoization, and i18n markup.
1362 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1364 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1365 * copyright.sh: Likewise.
1366 * gdb-events.sh: Likewise.
1367 * gdb_gcore.sh: Likewise.
1368 * gdb_mbuild.sh: Likewise.
1369 * gdbarch.sh: Likewise.
1370 * observer.sh: Likewise.
1371 * features/feature_to_c.sh: Likewise.
1372 * regformats/regdat.sh: Likewise.
1374 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1376 Switch the license of all .c files to GPLv3.
1377 Switch the license of all .h files to GPLv3.
1378 Switch the license of all .cc files to GPLv3.
1380 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1382 * configure.ac: Switch license to GPLv3.
1384 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1386 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1387 determine the file's FPU type.
1389 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1391 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1392 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1393 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1395 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1397 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1399 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1400 (elf_lookup_lib_symbol): Fix formatting.
1402 2007-08-21 Michael Snyder <msnyder@access-company.com>
1404 * dbxread.c (read_dbx_symtab): Guard null deref.
1407 * valops.c (find_overload_match): Guard against NULL.
1409 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1411 * MAINTAINERS (Patch Champions): Remove self.
1413 2007-08-21 Chris Smith <chris.smith@st.com>
1415 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1418 2007-08-18 Michael Snyder <msnyder@access-company.com>
1420 * stabsread.c (dbx_lookup_type): Memory leak.
1422 * event-loop.c (delete_async_signal_handler): Move pointer null
1423 test to before pointer dereference.
1425 * ui-out.c (append_header_to_list): Possible cut and paste error.
1427 * MAINTAINERS: white space tweak.
1429 2007-08-17 Michael Snyder <msnyder@access-company.com>
1431 * stack.c (print_frame): Memory leak.
1433 * completer.c (filename_completer): Avoid memory leak.
1434 Remove unnecessary nested block.
1436 * c-exp.y (parse_number): Memory leak.
1438 * completer.c (location_completer): Must free 'fn_list', except
1439 in the one case where it is returned (as 'list').
1441 * varobj.c (value_of_root): Memory leak.
1443 * gdbtypes.h (virtual_base_list): Remove export decl.
1444 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1445 (virtual_base_index): Memory leak.
1446 (virtual_base_index_skip_primaries): Ditto.
1448 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1450 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1451 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1452 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1453 (xtensa_read_register): New function.
1454 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1455 (xtensa_insn_kind): New types.
1456 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1457 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1458 (xtensa_verify_config, xtensa_pseudo_register_read)
1459 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1460 (xtensa_store_return_value)
1461 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1462 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1463 (xtensa_frame_this_id, xtensa_frame_prev_register)
1464 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1465 (call0_frame_cache, call0_frame_get_reg_at_entry)
1466 (call0_classify_opcode, call0_track_op)
1467 (call0_analyze_prologue, call0_frame_cache): New functions.
1469 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1471 * breakpoint.c (bpstat_free): New.
1472 (bpstat_clear): Use bpstat_free.
1473 (delete_breakpoint): Document why we cannot
1474 remove bpstats from stop_bpstat.
1475 * breakpoint.h (bpstat_free): Declare.
1477 2007-08-16 Michael Snyder <msnyder@access-company.com>
1479 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1481 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1482 Joel Brobecker <brobecker@adacore.com>
1484 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1486 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1487 Joel Brobecker <brobecker@adacore.com>
1489 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1490 checkin guarding against NULL.
1492 2007-08-14 Michael Snyder <msnyder@access-company.com>
1494 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1495 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1496 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1497 go at beginning of new line.
1499 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1500 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1501 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1502 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1503 tui-winsource.h, tui.c, tui.h: Function declarations and
1504 definitions, wrap long lines.
1506 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1507 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1508 Reformat block comments to GNU standard.
1510 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1511 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1512 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1513 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1514 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1515 spaces after periods, etc).
1517 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1518 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1519 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1520 tui-winsource.h: Whitespace changes, fix pointer declarations
1523 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1524 Michael Snyder <msnyder@access-company.com>
1526 * ada-lang.c (field_alignment): Guard against NULL.
1528 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1530 * MAINTAINERS (Global Maintainers): Add self.
1532 2007-08-14 Michael Snyder <msnyder@access-company.com>
1534 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1536 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1538 * varobj.c (cplus_describe_child): Guard against null.
1539 Use "NULL" instead of "0" to initialize pointers.
1541 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1543 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1544 to match any gdbarch with matching OSABI. Set default ABI and FPU
1545 after running the OSABI handler.
1547 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1549 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1550 * config/i386/linux.mt (TDEPFILES): ...to here.
1552 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1554 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1555 the 'silent' parameter and code to implement that.
1556 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1558 * win32-nat.c: Adjust.
1561 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1563 * breakpoint.c (update_breakpoints_after_exec): Don't
1564 set address to zero.
1566 2007-08-13 Michael Snyder <msnyder@access-company.com>
1568 * valops.c: Whitespace clean-up.
1570 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1572 * event-top.c (command_line_handler): Memory leak.
1574 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1575 No need to make copy.
1577 * source.c (find_source_lines): Require symtab 's'.
1579 2007-08-11 Michael Snyder <msnyder@access-company.com>
1581 * completer.c: Spelling fix in comments.
1583 2007-08-10 Michael Snyder <msnyder@access-company.com>
1585 * gdbtypes.c: Coding standard cleanup.
1586 * gdbtypes.c: Comment/whitespace cleanup.
1588 * stabsread.c (read_huge_number): Attempt to compute value before
1589 values that it depends on.
1591 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1592 (decode_objc): Use "NULL" instead of 0.
1593 (find_method): Ditto.
1594 (decode_all_digits): Ditto.
1595 (decode_dollar): Ditto.
1597 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1599 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1601 * solib-svr4.c (enable_break): Don't free tmp_pathname until
1604 * completer.c: Comment/whitespace cleanup.
1606 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1608 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1610 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
1612 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1613 allocated file descriptors.
1615 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1617 * Makefile.in: Minor cleanup throughout; add some missing variables,
1618 add some missing rules, remove some rules that are no longer needed,
1619 and fix the dependencies in several rules.
1621 2007-08-10 Ludovic Courtès <ludo@gnu.org>
1623 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
1624 (scm_lang_h, scm_tags_h): New.
1625 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
1626 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
1627 * defs.h (enum language): Add `language_scm'.
1629 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
1632 2007-08-09 Ludovic Courtès <ludo@gnu.org>
1634 * MAINTAINERS (Write After Approval): Add myself.
1636 2007-08-09 Michael Snyder <msnyder@access-company.com>
1638 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
1640 2007-08-09 Joel Brobecker <brobecker@adacore.com>
1642 * solib-som.c (som_relocate_section_addresses): Stop saving
1643 the $CODE$ section in the so_list structure.
1645 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
1647 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
1648 (xtensa_register_group_t): Add entries for coprocessors.
1649 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
1650 (xtensa_add_reggroups): Likewise.
1651 (xtensa_register_reggroup_p): Likewise.
1652 (xtensa_coprocessor_register_group): New function.
1655 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1657 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
1659 2007-08-08 Michael Snyder <msnyder@access-company.com>
1661 * target.c (target_read_string): Guard against null.
1663 * varobj.c (value_of_root): Move alloc after return to avoid leak.
1665 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
1666 (tui_set_layout_for_display_command): Mem leak.
1668 * top.c (command_line_input): Memory leak.
1670 * solib-svr4.c (open_symbol_file_object): Memory leak.
1671 (svr4_current_sos): Ditto.
1672 (enable_break): Ditto.
1674 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
1676 * dwarf2read.c (add_partial_symbol): Memory leak.
1678 2007-08-06 Michael Snyder <msnyder@access-company.com>
1680 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
1682 2007-08-05 Jim Blandy <jimb@codesourcery.com>
1684 * macroexp.c (init_buffer): Remove testing code that overrides the
1685 caller's length guess.
1686 (gather_arguments): Use a larger initial size, now that the vector
1687 growth code has been exercised.
1689 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
1691 * solib-target.c (solib_target_relocate_section_addresses): Add
1692 orig_delta to addr_high.
1694 2007-08-04 Michael Snyder <msnyder@access-company.com>
1696 * remote-fileio.c (remote_fileio_func_write): Memory leak.
1698 * breakpoint.c (print_one_breakpoint): Off by one error.
1700 * tracepoint.c (add_register): Off by one error.
1701 (stringify_collection_list): Free malloc buffer.
1703 2007-08-03 Michael Snyder <msnyder@access-company.com>
1705 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
1706 stop memory leak, straighten out cleanups.
1708 * jv-lang.c (java_link_class_type): Guard against NULL.
1710 2007-08-02 Michael Snyder <msnyder@access-company.com>
1712 * gdbtypes.c (create_set_type): Test should only be done within
1713 the preceeding if block. Otherwise, variable is uninitialized.
1715 * gdbtypes.c (check_typedef): Guard NULL.
1717 2007-08-01 Michael Snyder <msnyder@access-company.com>
1719 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
1720 avoid dereference in lookup_cmd_1.
1722 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
1723 clean up long lines.
1724 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
1725 (tui_alloc_win_info): Ditto.
1726 (tui_add_content_elements): Ditto.
1727 * tui/tui-file.c (tui_file_magic): Ditto.
1729 2007-07-31 Michael Snyder <msnyder@access-company.com>
1731 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
1732 True and false paths are mutually exclusive.
1734 * event-top.c (command_line_handler): Add pedantic return.
1736 * f-valprint.c (info_common_command): Bail out to prevent null
1737 pointer deref. Break up a long line.
1739 * exec.c (xfer_memory): Remove redundant condition from 'if'.
1741 * symfile.c (reread_separate_symbols): Free xmalloced memory.
1743 * printcmd.c (build_address_symbolic): Remove dead code and dead
1746 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
1748 * linespec.c (minsym_found): Advance to the next line if possible.
1750 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
1752 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
1753 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
1754 solib-svr4.o, and add solib-target.o
1756 2007-07-27 Michael Snyder <msnyder@access-company.com>
1758 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
1760 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
1762 * MAINTAINERS (Write After Approval): Add myself.
1764 2007-07-26 Maciej W. Rozycki <macro@mips.com>
1766 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
1769 2007-07-25 Maciej W. Rozycki <macro@mips.com>
1771 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
1773 2007-07-24 Michael Snyder <msnyder@access-company.com>
1775 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
1776 'buffer' must cover both branches that call strcmp (Coverity).
1778 * stack.c (print_frame_args): Check return value of lookup_symbol.
1780 * ax-gdb.c (find_field): Guard against null ptr.
1782 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1784 * regformats/reg-spu.dat: Fix order of npc, id registers.
1786 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1788 * target.c (memory_xfer_partial): Accesses to unmapped overlay
1789 sections should always go to the executable file.
1791 2004-07-20 Chris Dearman <chris@mips.com>
1793 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
1794 prologue instructions.
1796 2007-07-20 Maciej W. Rozycki <macro@mips.com>
1798 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
1801 2007-07-20 Chris Dearman <chris@mips.com>
1802 Maciej W. Rozycki <macro@mips.com>
1804 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
1807 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
1808 Daniel Jacobowitz <dan@codesourcery.com>
1810 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
1811 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
1813 * NEWS: Mention gdbserver DLL support.
1815 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
1817 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
1819 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
1821 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
1824 2007-07-13 Kevin Buettner <kevinb@redhat.com>
1826 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
1829 2007-07-12 Kevin Buettner <kevinb@redhat.com>
1831 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
1832 (mep_analyze_prologue): Add case for BRA instruction.
1834 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
1836 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
1838 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
1840 * breakpoint.c: Include "top.h".
1841 (breakpoint_1): Don't set convenience variable $_ if server prefix
1843 (_initialize_breakpoint): Describe this behaviour in command help.
1845 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
1847 * solib-target.c (library_list_start_segment): Cast address to
1850 2007-07-06 Mark Kettenis <kettenis@gnu.org>
1852 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
1853 for terminated processes.
1855 2007-07-05 Michael Snyder <msnyder@access-company.com>
1857 * event-top.c (cli_command_loop): Prompt string can (and should)
1858 be freed after call to readline (Coverity). Also move local var
1859 declarations into block where they are used.
1861 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
1862 should) be freed after call to readline (Coverity). Also move
1863 local var declarations into block where they are used.
1865 2007-07-03 Andreas Schwab <schwab@suse.de>
1867 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
1870 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
1871 Thiago Bauermann <bauerman@br.ibm.com>
1872 Joseph S. Myers <joseph@codesourcery.com>
1873 Daniel Jacobowitz <dan@codesourcery.com>
1875 * remote.c (remote_check_symbols): Use
1876 gdbarch_convert_from_func_ptr_addr.
1877 * infcall.c (find_function_addr): Handle function descriptors
1878 without debugging information.
1879 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
1880 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
1881 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
1882 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
1883 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
1884 allow SEC_CODE and SEC_DATA.
1885 (enable_break): Update calls. Pass current_target to solib_add.
1886 Use gdbarch_convert_from_func_ptr_addr.
1888 2007-07-03 Ilko Iliev <iliev@ronetix.at>
1889 Daniel Jacobowitz <dan@codesourcery.com>
1891 * symfile.c (print_transfer_performance): Avoid integer overflow.
1894 2007-07-03 Markus Deuling <deuling@de.ibm.com>
1896 * cp-namespace.c (lookup_symbol_file): Add block to
1897 lookup_symbol_global call.
1898 * Makefile.in (solist_h): Add dependency on symtab header.
1899 (symtab.o): Add dependency on solist header.
1900 * solib.c (solib_global_lookup): New function.
1901 * solib-svr4.c (scan_dyntag): Likewise.
1902 (elf_locate_base): Call helper routine scan_dyntag.
1903 (elf_lookup_lib_symbol): New function.
1904 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
1905 * solist.h (symtab.h): New include.
1906 (struct target_so_ops): New member lookup_lib_global_symbol.
1907 (solib_global_lookup): New prototype.
1908 * symtab.c: New include solist.h.
1909 (lookup_objfile_from_block): New function.
1910 (lookup_global_symbol_from_objfile): New function.
1911 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
1912 (lookup_symbol_global): Call library-specific lookup procedure.
1913 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
1915 * NEWS: Document framework.
1917 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1919 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
1922 * cli/cli-script.c (build_command_line): Update NULL check.
1924 2007-07-02 Michael Snyder <msnyder@access-company.com>
1926 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
1928 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1930 * Makefile.in (XMLFILES): Add library-list.dtd.
1931 (ALLDEPFILES): Add solib-target.o.
1932 (solib-target.o): New rule.
1933 * remote.c (PACKET_qXfer_libraries): New constant.
1934 (remote_protocol_features): Add qXfer:libraries:read.
1935 (remote_wait): Recognize library stop replies.
1936 (remote_async_wait): Likewise. Fix typo.
1937 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1938 (init_remote_async_ops): Fix typo.
1939 (_initialize_remote): Register "set remote library-info-packet".
1940 * solib-som.c (som_current_sos): Set addr_low and addr_high.
1941 * solib-target.c: New file.
1942 * solib.c (solib_map_sections): Use addr_low and addr_high instead
1944 (info_sharedlibrary_command): Likewise.
1945 (solib_add_library, solib_remove_library): New.
1946 * solist.h (struct so_list): Replace textsection with addr_low and
1948 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
1949 * NEWS: Describe new qXfer:libraries:read and shared library
1951 * features/library-list.dtd: New.
1953 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1955 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
1956 (start_remote): Use STOP_QUIETLY_REMOTE.
1957 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
1958 support on a SOLIB_ADD definition. Update breakpoints_inserted.
1959 Update to match shared library event breakpoint support. Only
1960 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
1961 (normal_stop): Handle TARGET_WAITKIND_LOADED.
1962 * fork-child.c (startup_inferior): Do not set
1963 inferior_ignoring_startup_exec_events
1964 * inferior.h (inferior_ignoring_startup_exec_events): Delete
1966 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
1968 2007-07-02 Markus Deuling <deuling@de.ibm.com>
1970 * breakpoint.c (insert_bp_location): Remove dead code
1971 (DISABLE_UNSETTABLE_BREAK).
1972 (disable_breakpoints_in_shlibs)
1973 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
1975 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1977 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
1978 Call insert_bp_location.
1980 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
1982 * core-regset.c (fetch_core_registers): Work around gcc 3.4
1985 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1987 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
1990 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1992 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
1993 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
1994 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
1995 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
1996 to display_gdb_prompt.
1998 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2001 * target.c (memory_xfer_partial): Do not continue past targets with
2004 2007-06-30 Andreas Schwab <schwab@suse.de>
2006 * m68k-tdep.c (m68k_ps_type): New.
2007 (m68k_init_types): New.
2008 (m68k_register_type): Use m68k_ps_type for PS register.
2009 (_initialize_m68k_tdep): Call m68k_init_types.
2011 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2012 from the generic m68k arch.
2014 2007-06-28 Michael Snyder <msnyder@access-company.com>
2016 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2019 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2020 gdb_assert before using return value of find_thread_pid (Coverity).
2022 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2024 * cli/cli-script.c (build_command_line): Add null pointer guard
2027 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2029 * linux-thread-db.c (thread_db_attach): Delete.
2030 (thread_db_detach): Typo fix. Call target_mourn_inferior
2031 instead of fixing up proc_handle.
2032 (have_threads_callback, have_threads): New functions.
2033 (thread_db_wait): Remove dead proc_handle.pid check. Only
2034 translate PTIDs if we have registered threads. Check for new
2035 threads if we have none.
2036 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2037 (find_new_threads_callback): Only enable event reporting if TID == 0.
2038 (same_ptid_callback): New.
2039 (thread_db_get_thread_local_address): Check for new threads.
2040 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2041 or to_post_startup_inferior.
2043 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2045 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2046 is always active if SOFTWARE_SINGLE_STEP_P is true.
2047 (resume): Use gdbarch_software_single_step[_p] instead of
2048 SOFTWARE_SINGLE_STEP[_P].
2049 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2051 * gdbarch.sh (software_single_step): Remove target macro.
2052 * gdbarch.h, gdbarch.c: Regenerate.
2054 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2056 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2057 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2058 (struct gdbarch_swap, struct gdbarch_swap_registration,
2059 struct gdbarch_swap_registry, gdbarch_swap_registry,
2060 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2061 current_gdbarch_swap_in_hack): Remove.
2062 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2063 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2064 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2065 (deprecated_current_gdbarch_select_hack): Likewise.
2066 * gdbarch.h, gdbarch.c: Regenerate.
2068 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2070 * infrun.c (clear_proceed_status): Clean up stop_registers.
2071 (normal_stop): Allocate regcache for stop_registers.
2072 (struct inferior_status): Remove stop_registers member.
2073 (save_inferior_status): Do not save stop_registers.
2074 (restore_inferior_status): Do not restore stop_registers.
2075 (discard_inferior_status): Do not discard stop_registers.
2076 (build_infrun): Remove.
2077 (_initialize_infrun): Do not swap stop_registers.
2079 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2081 * remote.c (remote_address_masked): If remote_address_size is zero,
2082 default to target address size.
2083 (build_remote_gdbarch_data): Remove.
2084 (_initialize_remote): Do not swap remote_address_size.
2086 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2088 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2089 builtin_type_char, builtin_type_short, builtin_type_int,
2090 builtin_type_long, builtin_type_signed_char,
2091 builtin_type_unsigned_char, builtin_type_unsigned_short,
2092 builtin_type_unsigned_int, builtin_type_unsigned_long,
2093 builtin_type_float, builtin_type_double, builtin_type_long_double,
2094 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2095 builtin_type_bool, builtin_type_long_long,
2096 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2097 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2098 variable declaration with compatibility macro.
2099 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2100 builtin_type_char, builtin_type_short, builtin_type_int,
2101 builtin_type_long, builtin_type_signed_char,
2102 builtin_type_unsigned_char, builtin_type_unsigned_short,
2103 builtin_type_unsigned_int, builtin_type_unsigned_long,
2104 builtin_type_float, builtin_type_double, builtin_type_long_double,
2105 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2106 builtin_type_bool, builtin_type_long_long,
2107 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2108 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2109 (build_gdbtypes): Remove.
2110 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2111 opaque-type-resolution command here. Do not call
2112 deprecated_register_gdbarch_swap.
2114 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2116 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2117 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2118 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2120 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2121 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2122 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2123 (build_parse): Remove.
2124 (_initialize_parse): Do not call build_parse. Do not register
2125 msym_ types for gdbarch-swapping.
2127 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2128 instead of creating private type.
2130 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2131 (_initialize_xcoffread): Do not initialized them.
2132 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2134 * mdebugread.c (nodebug_func_symbol_type): Remove.
2135 (nodebug_var_symbol_type): Remove.
2136 (_initialize_mdebugread): Do not initialize them.
2137 (parse_symbol): Use builtin nodebug_ type instead of them.
2138 (parse_procedure): Likewise.
2140 2007-06-21 Chris Dearman <chris@mips.com>
2142 * printcmd.c (do_one_display): If display/i, start with an initial
2143 line feed to avoid bad layout if there is a branch delay slot.
2145 2007-06-21 Nigel Stephens <nigel@mips.com>
2146 Maciej W. Rozycki <macro@mips.com>
2148 * disasm.c (gdb_print_insn): Return the number of branch delay
2149 slot instructions too.
2150 * disasm.h (gdb_print_insn): Update prototype.
2151 * printcmd.c (branch_delay_insns): New variable to record the
2152 number of delay slot instructions after disassembling a branch.
2153 (print_formatted): Record the number of branch delay slot
2155 (do_examine): When disassembling, if the last instruction
2156 disassembled has any branch delay slots, then bump the count so
2157 that they get disassembled too.
2158 * tui/tui-disasm.c (tui_disassemble): Update the call to
2160 * NEWS: Document the new behaviour.
2162 2007-06-21 Andreas Schwab <schwab@suse.de>
2164 * regcache.c (write_pc_pid): Restore missing else.
2166 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2168 * regcache.c (regcache_print): Use get_current_regcache ()
2169 instead of current_regcache.
2171 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2174 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2175 instead of bfd_make_section_anyway.
2176 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2177 when clearing SEC_LOAD.
2179 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2181 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2182 registers for big-endian.
2184 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2186 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2187 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2188 * gdbarch.c, gdbarch.h: Regenerate.
2190 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2192 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2193 gdbarch_believe_pcc_promotion.
2194 * stabsread.c (define_symbol): Likewise.
2195 Remove unnecessary definition.
2196 * coffread.c (process_coff_symbol): Remove unnecessary code.
2197 * gdbarch.c, gdbarch.h: Regenerate.
2199 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2201 * configure.ac: Do not use ${objdir}.
2202 * configure: Regenerated.
2204 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2206 * gdbarch.sh (deprecated_register_size): Remove.
2207 * gdbarch.h, gdbarch.c: Regenerate.
2209 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2210 by INT_REGISTER_SIZE.
2211 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2212 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2213 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2214 set_gdbarch_deprecated_register_size.
2216 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2218 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2219 gdbarch_deprecated_fp_regnum.
2220 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2221 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2222 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2223 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2225 * gdbarch.c, gdbarch.h: Regenerate.
2227 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2229 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2230 gdbarch_extract_return_value.
2231 * value.c (generic_use_struct_convention): Likewise (comment).
2232 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2233 * arch-utils.c (legacy_return_value): Likewise.
2234 * arch-utils.h (legacy_return_value): Likewise (comment).
2235 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2236 gdbarch_store_return_value.
2237 * stack.c (return_command): Likewise (comment).
2238 * arch-utils.h (legacy_return_value): Likewise (comment).
2239 * arch-utils.c (legacy_return_value): Likewise.
2240 * gdbarch.c, gdbarch.h: Regenerate.
2242 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2244 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2245 gdbarch_deprecated_use_struct_convention.
2246 * arch-utils.c (legacy_return_value): Likewise.
2247 * gdbarch.c, gdbarch.h: Regenerate.
2249 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2251 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2252 gdbarch_deprecated_function_start_offset.
2253 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2254 * linespec.c (minsym_found): Likewise.
2255 * infrun.c (handle_inferior_event): Likewise.
2256 * infcall.c (find_function_addr): Likewise.
2257 * cli/cli-cmds.c (disassemble_command): Likewise.
2258 * gdbarch.c, gdbarch.h: Regenerate.
2260 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2262 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2263 gdbarch_deprecated_reg_struct_has_addr.
2264 * infcall.c (call_function_by_hand): Likewise.
2265 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2266 * gdbarch_deprecated_reg_struct_has_addr_p.
2267 * infcall.c (call_function_by_hand): Likewise.
2268 * gdbarch.c, gdbarch.h: Regenerate.
2270 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2272 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2273 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2274 (sh_gdbarch_init): Remove
2275 set_gdbarch_deprecated_extract_struct_value_address.
2276 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2277 (sh64_gdbarch_init): Remove
2278 set_gdbarch_deprecated_extract_struct_value_address.
2279 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2280 (ia64_gdbarch_init): Remove
2281 set_gdbarch_deprecated_extract_struct_value_address.
2282 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2283 (frv_gdbarch_init): Remove
2284 set_gdbarch_deprecated_extract_struct_value_address.
2285 * gdbarch.c, gdbarch.h: Regenerate.
2287 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2289 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2290 * v850-tdep.c (v850_unwind_sp): Likewise.
2291 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2292 * stack.c (frame_info): Likewise.
2293 * stabsread.c (define_symbol): Likewise.
2294 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2295 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2296 (sh_unwind_sp): Likewise.
2297 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2298 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2299 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2300 (rs6000_frame_cache): Likewise.
2301 * rs6000-nat.c (store_register): Likewise.
2302 * remote-mips.c (mips_wait): Likewise.
2303 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2304 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2305 (ppc64_sysv_abi_push_dummy_call): Likewise.
2306 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2307 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2308 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2309 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2310 * m32r-rom.c (m32r_supply_register): Likewise.
2311 * frame.c (frame_sp_unwind): Likewise.
2312 * mips-tdep.c (mips_insn16_frame_cache)
2313 (mips_insn32_frame_cache): Likewise (comment).
2314 * m68klinux-nat.c (supply_gregset): Likewise.
2315 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2316 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2317 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2318 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2319 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2320 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2321 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2322 (cris_register_type, crisv32_register_type)
2323 (cris_dwarf2_frame_init_reg): Likewise.
2324 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2325 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2326 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2327 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2329 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2330 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2331 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2332 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2333 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2334 * v850-tdep.c (v850_unwind_pc): Likewise.
2335 * stack.c (frame_info): Likewise.
2336 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2337 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2338 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2339 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2340 (sh_dsp_show_regs): Likewise.
2341 * shnbsd-tdep.c (shnbsd_supply_gregset)
2342 (shnbsd_collect_gregset): Likewise.
2343 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2344 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2345 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2346 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2347 (6000_register_reggroup_p, rs6000_unwind_pc)
2348 (rs6000_frame_cache): Likewise.
2349 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2350 (rs6000_store_inferior_registers): Likewise.
2351 * remote-mips.c (mips_wait, mips_load): Likewise.
2352 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2353 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2354 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2355 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2356 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2357 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2358 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2359 (store_ppc_registers, fill_gregset): Likewise.
2360 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2361 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2362 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2363 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2364 * m68klinux-nat.c (supply_gregset): Likewise.
2365 * irix5-nat.c (fill_gregset): Likewise.
2366 * i386-tdep.c (i386_unwind_pc): Likewise.
2367 * i386-linux-nat.c (i386_linux_resume): Likewise.
2368 * frame.c (get_prev_frame_1): Likewise.
2369 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2370 * dbug-rom.c (dbug_supply_register): Likewise.
2371 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2372 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2373 (cris_register_type, crisv32_register_type, crisv32_register_name)
2374 (cris_dwarf2_frame_init_reg, find_step_target)
2375 (cris_software_single_step, cris_supply_gregset)
2376 (cris_regnums): Likewise.
2377 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2378 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2379 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2380 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2381 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2383 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2384 * dbug-rom.c (dbug_supply_register): Likewise.
2385 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2386 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2387 * win32-nat.c (win32_resume): Likewise.
2388 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2389 * m68k-tdep.c (m68k_register_type): Likewise.
2390 * m68klinux-nat.c (supply_gregset): Likewise.
2392 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2393 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2394 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2395 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2396 (fv_reg_base_num, dr_reg_base_num): Likewise.
2397 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2398 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2399 (sh64_extract_return_value, sh64_store_return_value)
2400 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2401 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2402 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2403 (invalidate_cache): Likewise.
2404 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2405 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2406 (mipsnbsd_fill_fpreg): Likewise.
2407 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2408 (mipsnbsd_store_inferior_registers): Likewise.
2409 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2410 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2411 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2412 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2413 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2414 (fill_fpregset): Likewise.
2415 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2416 * i386-tdep.h (struct_return): Likewise (comment).
2417 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2418 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2419 (go32_store_registers): Likewise.
2420 * alpha-tdep.c (alpha_next_pc): Likewise.
2421 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2422 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2423 (alphabsd_store_inferior_registers): Likewise.
2424 * core-regset.c (fetch_core_registers): Likewise.
2425 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2427 * gdbarch.c, gdbarch.h: Regenerate.
2429 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2431 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2432 * dbxread.c (start_psymtab): Check HAVE_ELF.
2433 (aout_sym_fns): Likewise.
2434 * elfread.c (elf_symfile_segments): New.
2435 (elf_sym_fns): Add elf_symfile_segments.
2436 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2437 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2438 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2439 * somread.c (som_sym_fns): Use default_symfile_segments.
2440 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2441 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2442 (default_symfile_segments): New function.
2443 (syms_from_objfile): Update call to find_sym_fns.
2444 (symfile_get_segment_data, free_symfile_segment_data): New.
2445 (symfile_map_offsets_to_segments): New.
2446 (symfile_find_segment_sections): New.
2447 * symfile.h (struct symfile_segment_data): New.
2448 (struct sym_fns): Add sym_segments.
2449 (default_symfile_segments, symfile_get_segment_data)
2450 (free_symfile_segment_data): New prototypes.
2451 (symfile_map_offsets_to_segments): Likewise.
2452 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2453 * Makefile.in (COMMON_OBS): Remove elfread.o.
2454 (elf_internal_h): New.
2455 (elfread.o): Update.
2456 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2458 * config.in, configure: Regenerated.
2459 * NEWS: Mention qOffsets changes.
2461 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2463 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2464 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2465 Replace global variable declaration with compatibility macro.
2466 (struct builtin_m2_type): New data type.
2467 (builtin_m2_type): Add prototype.
2468 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2469 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2470 Remove global variables.
2471 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2472 (build_m2_types): New function.
2473 (m2_type_data): New variable.
2474 (builtin_m2_type): New function.
2475 (_initialize_m2_language): Do not build data types. Register
2476 m2_type_data per-gdbarch data.
2478 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2480 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2481 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2482 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2483 builtin_type_f_real_s8, builtin_type_f_real_s16,
2484 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2485 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2486 variable declaration with compatibility macro.
2487 (struct builtin_f_type): New data type.
2488 (builtin_f_type): Add prototype.
2489 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2490 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2491 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2492 builtin_type_f_real_s8, builtin_type_f_real_s16,
2493 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2494 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2495 (f_language_arch_info): Use builtin_f_type instead of variables.
2496 (build_fortran_types): Build builtin_f_type structure instead of
2497 setting global type variables.
2498 (f_type_data): New variable.
2499 (builtin_f_type): New function.
2500 (_initialize_f_language): Do not call build_fortran_types. Do not
2501 swap global type variables. Register f_type_data per-gdbarch data.
2503 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2505 * f-lang.c (_initialize_f_language): Do not initialize or
2506 swap builtin_type_string.
2508 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2510 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2511 value_of_builtin_frame_reg): Remove.
2512 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2513 inactive call to value_of_builtin_frame_reg.
2515 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2517 * gdbarch.sh (bfd_vma_bit): Remove.
2518 * gdbarch.c, gdbarch.h: Regenerate.
2520 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2521 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2522 (build_gdbtypes): Do not initialize it.
2523 (_initialize_gdbtypes): Do not swap it.
2525 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2527 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2528 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2529 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2530 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2531 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2532 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2533 builtin_type_vec64, builtin_type_vec128): Remove.
2534 (init_simd_type): Remove.
2535 (init_vector_type): Make global.
2536 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2537 (build_gdbtypes): Do not build vector types.
2538 (_initialize_gdbtypes): Do not swap vector types.
2539 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2540 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2541 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2542 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2543 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2544 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2545 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2546 (init_vector_type): Add prototype.
2548 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2549 i386_sse_type members.
2550 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2551 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2552 (i386_init_types): Do not build vector types.
2553 (i386_mmx_type, i386_sse_type): New functions.
2554 (i386_register_type): Call them instead of using global variables.
2555 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2556 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2557 of using global variable.
2559 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2560 and ppc_builtin_type_vec128 members.
2561 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2562 (rs6000_builtin_type_vec128): Likewise.
2563 (rs6000_register_type): Call them instead of using builtin_type_vec64
2564 and builtin_type_vec128.
2565 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2567 * spu-tdep.c (struct gdbarch_tdep): New data type.
2568 (spu_builtin_type_vec128): Remove variable.
2569 (spu_builtin_type_vec128): New function.
2570 (spu_register_type): Call it instead of using global variable.
2571 (spu_gdbarch_init): Allocate tdep structure.
2572 (spu_init_vector_type): Remove function.
2573 (_initialize_spu_tdep): Do not call it.
2575 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2577 * amd64-tdep.c (struct amd64_register_info): Remove.
2578 (amd64_register_info): Remove.
2579 (amd64_register_names): New static variable.
2580 (AMD64_NUM_REGS): Use amd64_register_names instead of
2581 amd64_register_info.
2582 (amd64_register_name): Likewise.
2583 (amd64_register_type): Do not refer to amd64_register_info.
2585 * s390-tdep.c (struct s390_register_info): Remove.
2586 (s390_register_info): Remove.
2587 (s390_register_name): Do not refer to s390_register_info.
2588 (s390_register_type): Likewise.
2590 * sparc64-tdep.c (struct sparc64_register_info): Remove.
2591 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2592 (sparc64_register_names, sparc64_pseudo_register_names): New.
2593 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2594 sparc64_register_names and sparc64_pseudo_register_names instead of
2595 sparc64_register_info and sparc64_pseudo_register_info.
2596 (sparc64_register_name): Likewise.
2597 (sparc64_register_type): Do not refer to sparc64_register_info
2598 and sparc64_pseudo_register_info.
2600 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2602 * c-lang.c (cplus_builtin_types): Remove.
2603 (enum cplus_primitive_types): New data type.
2604 (cplus_language_arch_info): New function.
2605 (cplus_language_defn): Set la_language_arch_info member. Do not set
2606 la_builtin_type_vector and string_char_type members.
2608 * f-lang.c (f_builtin_types): Remove.
2609 (enum f_primitive_types): New data type.
2610 (f_language_arch_info): New function.
2611 (f_language_de): Set la_language_arch_info member. Do not set
2612 la_builtin_type_vector and string_char_type members.
2614 * m2-lang.c (m2_builtin_types): Remove.
2615 (enum m2_primitive_types): New data type.
2616 (m2_language_arch_info): New function.
2617 (m2_language_defn): Set la_language_arch_info member. Do not set
2618 la_builtin_type_vector and string_char_type members.
2620 * objc-lang.c (objc_builtin_types): Remove.
2621 (objc_language): Set la_language_arch_info member. Do not set
2622 la_builtin_type_vector and string_char_type members.
2624 * p-lang.c (pascal_builtin_types): Remove.
2625 (enum pascal_primitive_types): New data type.
2626 (pascal_language_arch_info): New function.
2627 (pascal_language_defn): Set la_language_arch_info member. Do not set
2628 la_builtin_type_vector and string_char_type members.
2630 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2632 * regcache.c (struct regcache): Add ptid_t member.
2633 (regcache_xmalloc): Initialize it.
2634 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
2635 (regcache_dup): Likewise.
2636 (regcache_dup_no_passthrough): Likewise.
2637 (current_regcache): Make static.
2638 (registers_ptid): Remove variable.
2639 (get_thread_regcache): New function.
2640 (get_current_regcache): New function.
2641 (registers_changed): Implement by freeing current regcache.
2642 (regcache_raw_read): Do not refer to current_regcache. Set
2643 inferior_ptid to regcache->ptid while calling target routines.
2644 (regcache_raw_write): Likewise.
2645 (regcache_raw_supply): Do not refer to current_regcache.
2646 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
2647 (write_pc_pid): Likewise.
2648 (build_regcache): Remove.
2649 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
2650 or deprecated_register_gdbarch_swap. Do not initialize
2652 * regcache.h (get_current_regcache): Add prototype.
2653 (get_thread_regcache): Likewise.
2654 (current_regcache): Remove declaration.
2656 * corelow.c (core_open): Replace current_regcache by
2657 get_current_regcache ().
2658 * frame.c (frame_pop): Likewise.
2659 (put_frame_register): Likewise.
2660 (get_current_frame, create_new_frame): Likewise.
2661 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
2662 * stack.c (return_command): Likewise.
2663 * infcall.c (call_function_by_hand): Likewise.
2664 * infrun.c (resume): Likewise.
2665 (save_inferior_status, restore_inferior_status): Likewise.
2666 * linux-fork.c (fork_load_infrun_state): Likewise.
2667 (fork_save_infrun_state): Likewise.
2668 * win32-nat.c (win32_resume): Likewise.
2669 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
2670 * monitor.c (monitor_wait): Likewise.
2671 * remote.c (remote_wait): Likewise.
2672 * remote-mips.c (mips_wait): Likewise.
2674 * bsd-kvm.c (bsd_kvm_open): Likewise
2675 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
2676 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
2677 * i386-linux-nat.c (i386_linux_resume): Likewise.
2678 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2679 (ia64_linux_stopped_data_address): Likewise.
2681 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
2682 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2683 * mep-tdep.c (current_me_module, current_options): Likewise.
2684 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
2686 * linux-nat.c (linux_nat_do_thread_registers): Use thread
2687 regcache instead of current_regcache. Call target_fetch_registers.
2688 (linux_nat_corefile_thread_callback): Update call site.
2689 (linux_nat_do_registers): Likewise.
2690 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
2691 of current_regcache.
2692 (procfs_make_note_section): Likewise.
2693 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
2694 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2695 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
2696 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2698 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2700 * regcache.c (read_register, read_register_pid): Remove.
2701 (write_register, write_register_pid): Likewise.
2702 * regcache.h (read_register, read_register_pid): Remove prototype.
2703 (write_register, write_register_pid): Likewise.
2705 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2707 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
2708 (write_pc): Likewise. Remove default implementation, add predicate.
2709 * gdbarch.c, gdbarch.h: Regenerate.
2710 * regcache.c (read_pc_pid): Use current regcache instead of calling
2712 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
2714 (generic_target_write_pc): Remove.
2715 * inferior.h (generic_target_write_pc): Remove.
2716 * frv-tdep.c (frv_gdbarch_init): Do not install it.
2717 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2718 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2719 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2720 * sh-tdep.c (sh_gdbarch_init): Likewise.
2721 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2723 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
2724 argument. Use REGCACHE instead of calling read_register_pid.
2725 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
2726 * hppa-tdep.c (hppa_read_pc): Likewise.
2727 * hppa-tdep.h (hppa_read_pc): Likewise.
2728 * ia64-tdep.c (ia64_read_pc): Likewise.
2729 * m32r-tdep.c (m32r_read_pc): Likewise.
2730 * mep-tdep.c (mep_read_pc): Likewise.
2731 * mn10300-tdep.c (mn10300_read_pc): Likewise.
2732 * spu-tdep.c (spu_read_pc): Likewise.
2734 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
2735 argument. Use REGCACHE instead of calling write_register_pid.
2736 * avr-tdep.c (avr_write_pc): Likewise.
2737 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
2738 * hppa-tdep.c (hppa_write_pc): Likewise.
2739 * hppa-tdep.h (hppa_write_pc): Likewise.
2740 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
2741 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
2742 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
2743 * ia64-tdep.c (ia64_write_pc): Likewise.
2744 * ia64-tdep.h (ia64_write_pc): Likewise.
2745 * m32r-tdep.c (m32r_write_pc): Likewise.
2746 * m88k-tdep.c (m88k_write_pc): Likewise.
2747 * mep-tdep.c (mep_write_pc): Likewise.
2748 * mips-tdep.c (mips_write_pc): Likewise.
2749 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2750 * mn10300-tdep.c (mn10300_write_pc): Likewise.
2751 * sparc-tdep.c (sparc_write_pc): Likewise.
2752 * spu-tdep.c (spu_write_pc): Likewise.
2754 * mips-tdep.c (read_signed_register): Remove.
2755 (read_signed_register_pid): Likewise.
2756 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
2757 Use REGCACHE instead of calling read_signed_register_pid.
2759 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2761 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
2762 * gdbarch.c, gdbarch.h: Regenerate.
2763 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
2764 (push_dummy_code): Likewise. Pass it to callee.
2765 (call_function_by_hand): Pass current regcache to push_dummy_code.
2767 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
2768 argument. Use it instead of current_regcache.
2770 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
2771 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2773 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2775 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
2776 * gdbarch.c, gdbarch.h: Regenerate.
2777 * infrun.c (handle_inferior_event): Pass current frame to
2778 gdbarch_get_longjmp_target.
2780 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
2781 Read registers from FRAME instead of using read_register.
2782 Use get_frame_arch instead of current_gdbarch.
2783 * arm-tdep.c (arm_get_longjmp_target): Likewise.
2784 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2785 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2786 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
2787 (mips64_linux_get_longjmp_target): Likewise.
2788 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2790 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2792 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
2793 * gdbarch.c, gdbarch.h: Regenerate.
2794 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
2795 * arch-utils.h (generic_skip_trampoline_code): Likewise.
2796 * infrun.c (handle_inferior_event): Pass current frame to
2797 gdbarch_skip_trampoline_code and skip_language_trampoline.
2799 * language.c (unk_lang_trampoline): Add FRAME argument.
2800 (skip_language_trampoline): Add FRAME argument. Pass it to
2801 skip_trampoline callback.
2802 * language.h: Add forward declaration of struct frame_info.
2803 (struct language_defn): Add FRAME argument to skip_trampoline.
2804 (skip_language_trampoline): Add FRAME argument.
2805 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
2806 to skip_trampoline callback.
2807 * cp-abi.h: Add forward declaration of struct frame_info.
2808 (cplus_skip_trampoline): Add FRAME argument.
2809 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
2810 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
2811 to gdbarch_skip_trampoline_code.
2812 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
2813 to gdbarch_skip_trampoline_code.
2815 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
2816 * symtab.h (find_solib_trampoline_target): Likewise.
2817 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
2818 find_solib_trampoline_target.
2820 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
2821 from FRAME instead of calling read_register.
2823 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
2824 argument. Read registers from FRAME instead of using read_register.
2825 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
2826 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
2828 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
2831 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
2833 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
2834 registers from FRAME instead of using read_signed_register.
2836 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
2838 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
2839 instead of using read_register.
2840 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
2841 ppc64_standard_linkage_target.
2842 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
2843 Pass it to find_solib_trampoline_target. Read registers from FRAME
2844 instead of using read_register.
2846 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
2849 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2851 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
2853 * gdbarch.c, gdbarch.h: Regenerate.
2854 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
2856 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
2857 registers from FRAME instead of using read_register.
2858 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2859 to alpha_next_pc. Use get_frame_pc instead of read_pc.
2860 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
2863 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
2864 from FRAME instead of using read_register.
2865 (thumb_get_next_pc): Likewise.
2866 (arm_get_next_pc): Likewise.
2867 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2868 to arm_get_next_pc. Use get_frame_pc instead of read_register.
2869 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
2872 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
2873 from FRAME instead of using read_register.
2874 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2875 to find_step_target.
2877 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
2878 from FRAME instead of using read_register / read_signed_register.
2879 (extended_mips16_next_pc): Likewise.
2880 (mips16_next_pc): Likewise.
2881 (mips_next_pc): Likewise.
2882 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2883 to mips_next_pc. Use get_frame_pc instead of read_pc.
2884 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
2887 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
2888 of current frame. Read registers from FRAME.
2889 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
2890 branch_dest. Use get_frame_pc instead of read_pc.
2891 (rs6000_software_single_step): Likewise.
2892 (bl_to_blrl_insn_p): Do not call branch_dest.
2893 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
2896 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
2897 Read registers from FRAME instead of current regcache.
2898 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
2899 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
2900 * sparc-tdep.c (sparc_address_from_register): Remove.
2901 (sparc_analyze_control_transfer): Pass FRAME argument instead of
2902 GDBARCH. Pass FRAME to step_trap callback.
2903 (sparc_step_trap): Add FRAME argument.
2904 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2905 to sparc_analyze_control_transfer. Read registers from FRAME instead
2906 of calling sparc_address_from_register.
2907 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
2909 (sparc_address_from_register): Remove prototype.
2910 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
2911 (sparcnbsd_step_trap): Add FRAME argument.
2913 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
2914 by FRAME. Read registers from FRAME instead of REGCACHE.
2916 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2918 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
2919 instead of calling read_register.
2921 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
2922 calling write_register.
2924 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
2925 calling write_register.
2927 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
2928 instead of calling read_register.
2929 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
2930 instead of calling read_register and write_register.
2932 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
2933 instead of current_regcache.
2935 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
2936 of calling write_register.
2937 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
2938 parameter instead of current_regcache.
2940 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
2941 instead of calling read_register.
2942 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
2943 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
2944 (mips_n32n64_push_dummy_call): Likewise.
2945 (mips_o32_push_dummy_call): Likewise.
2946 (mips_o64_push_dummy_call): Likewise.
2948 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
2949 parameter instead of current_regcache.
2951 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
2952 Use it instead of read_register and write_register.
2953 (xtensa_register_read_masked): Likewise.
2954 (xtensa_pseudo_register_read): Update call.
2955 (xtensa_pseudo_register_write): Likewise.
2956 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
2957 instead of calling read_register.
2958 (xtensa_push_dummy_call): Update comment.
2960 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2962 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
2963 by frame_unwind_register_signed calls.
2964 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
2965 frame allocations when called with NULL NEXT_FRAME parameter.
2966 (read_next_frame_reg): Remove.
2968 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
2969 instead of reading the FPSCR register.
2970 (sh_frame_cache): Pass unwound FPSCR register value to
2971 sh_analyze_prologue.
2972 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
2974 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
2975 instead of reading the CTBP register.
2976 (v850_frame_cache): Pass unwound CTBP register value to
2977 v850_analyze_prologue.
2979 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2981 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
2982 * sh-tdep.c (sh_show_regs): Likewise.
2983 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
2984 (sh_generic_show_regs): Add FRAME parameter. Use register
2985 values from that frame instead of calling read_register.
2986 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
2987 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
2988 sh_dsp_show_regs): Likewise.
2989 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
2990 sh64_show_regs): Likewise.
2992 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2994 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
2995 current regcache instead of calling read_register.
2997 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2999 * mep-tdep.c (current_me_module): Read from current regcache
3000 instead of calling read_register.
3001 (current_options): Likewise.
3003 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3005 * cris-tdep.c (cris_stopped_data_address): Read register values
3006 from current frame instead of calling read_register.
3007 * frv-tdep.c (frv_stopped_data_address): Likewise.
3009 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3011 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3012 instead of write_register (PC_REGNUM, ...).
3014 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3016 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3017 explaining why the PC adjustment code is necessary.
3019 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3021 * m68k-tdep.h (enum m68k_flavour): New.
3022 (struct gdbarch_tdep): New fields
3023 float_return, flavour and fpregs_present.
3024 * m68k-tdep.c (m68k_register_type): Use
3025 fpregs_present and conditionalize floating
3026 registers type on flavour.
3027 (m68k_register_names): New.
3028 (m68k_register_name): Use the above.
3029 (m68k_convert_register_p): Consult fpregs_present.
3030 (m68k_register_to_value, m68k_value_to_register):
3031 Use register_type to obtain the type of floating
3033 (m68k_svr4_extract_return_value): Check tdep->float_return.
3034 Use register_type to get the type of floating
3036 (m68k_svr4_store_return_value): Likewise.
3037 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3038 (m68k_analyze_register_saves): Likewise.
3039 (m68k_gdbarch_init): Extract infromation
3040 from XML description, if present. Guess coldfire by
3041 looking at the file, if present. Conditionalize
3042 setting of long double format. Set decr_pc_after_break
3043 to 2 on coldfire and fido. Enable XML-driven
3044 register description.
3045 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3046 size of tdep->fpreg_type, as opposed to hardcoded value.
3047 * Makefile.in (m68k-tdep.o): Update dependencies.
3049 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3051 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3052 qXfer:spu:write remote packet types.
3054 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3056 * xml-tdesc.c (tdesc_start_target): New.
3057 (target_attributes): New.
3058 (tdesc_elements): Use it.
3059 * features/gdb-target.dtd: Add #FIXED version attribute for
3062 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3064 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3066 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3068 * fork-child.c (fork_inferior): Update comment.
3070 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3072 * features/Makefile: Generate regformats for mips-linux and
3074 * features/sort-regs.xsl: Correct typo.
3075 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3076 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3079 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3081 * config/mips/linux.mh (TDEP_XML): New.
3082 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3083 * mips-linux-nat.c (mips_linux_register_addr): Handle
3084 MIPS_RESTART_REGNUM.
3085 (mips64_linux_register_addr): Likewise.
3086 (super_xfer_partial, mips_linux_xfer_partial): New.
3087 (_initialize_mips_linux_nat): Add them to the target_ops.
3088 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3089 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3090 (mips_linux_o32_sigframe_init)
3091 (mips_linux_n32n64_sigframe_init): Likewise.
3092 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3093 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3094 "org.gnu.gdb.mips.linux" feature.
3095 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3096 (mips_linux_restart_reg_p): New prototype.
3097 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3098 initialization routine.
3099 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3101 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3103 * Makefile.in (mips-tdep.o): Update.
3104 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3105 (mips_n32_n64_aliases, mips_register_aliases): New.
3106 (mips_register_name): Call tdesc_register_name.
3107 (mips_tdesc_register_reggroup_p): New.
3108 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3109 (mips_gdbarch_init): Add target-described register support.
3110 Register aliases for register names.
3111 * target-descriptions.c (tdesc_register_name): Make global.
3112 (tdesc_register_in_reggroup_p): New function, broken out from
3113 tdesc_register_reggroup_p.
3114 (tdesc_register_reggroup_p): Use it.
3115 * target-descriptions.h (tdesc_register_name)
3116 (tdesc_register_in_reggroup_p): New prototypes.
3117 * NEWS: Correct formatting. Mention MIPS register support.
3118 * features/mips-cp0.xml, features/mips-fpu.xml,
3119 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3120 features/mips64-cpu.xml: New files.
3122 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3124 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3125 * valops.c (value_cast): Likewise.
3126 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3127 * ui-out.c (ui_out_field_core_addr): Likewise.
3128 * tracepoint.c (tracepoints_info): Likewise.
3129 * symtab.c (print_msymbol_info): Likewise.
3130 * solib-irix.c (irix_current_sos)
3131 (irix_open_symbol_file_object): Likewise.
3132 * remote.c (build_remote_gdbarch_data): Likewise.
3133 * prologue-value.c (make_pv_area): Likewise.
3134 * procfs.c (info_mappings_callback): Likewise.
3135 * printcmd.c (print_scalar_formatted)
3136 (deprecated_print_address_numeric): Likewise.
3137 * memattr.c (mem_info_command): Likewise.
3138 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3139 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3140 * exec.c (print_section_info): Likewise.
3141 * dwarf2read.c (read_subrange_type): Likewise.
3142 * dwarf2loc.c (find_location_expression): Likewise.
3143 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3144 (signed_address_type, execute_stack_op): Likewise.
3145 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3146 * gdbarch.c, gdbarch.h: Regenerate.
3148 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3150 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3151 * arch-utils.c (show_architecture): Likewise.
3152 * remote-mips.c (mips_open): Likewise
3153 * nto-tdep.c (nto_find_and_open_solib)
3154 (nto_init_solib_absolute_prefix): Likewise.
3155 * nto-procfs (procfs_open): Likewise.
3156 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3157 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3158 * gdbarch.c, gdbarch.h: Regenerate.
3160 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3162 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3163 * gdbtypes.c (build_flt): Likewise.
3164 * gdbarch.c, gdbarch.h: Regenerate.
3166 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3168 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3169 gdbarch_breakpoint_from_pc.
3170 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3171 * remote.c (remote_insert_breakpoint)
3172 (remote_insert_hw_breakpoint): Likewise.
3173 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3174 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3175 * breakpoint.h (bp_target_info): Likewise (comment).
3176 * breakpoint.c (read_memory_nobpt): Likewise.
3177 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3178 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3179 * gdbarch.c, gdbarch.h: Regenerate.
3181 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3183 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3184 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3185 * solib-pa64.c (read_dynamic_info): Likewise.
3186 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3187 * solib.c (info_sharedlibrary_command): Likewise.
3188 * s390-nat.c (SUBOFF): Likewise.
3189 * p-valprint.c (pascal_val_print): Likewise.
3190 * procfs.c (info_proc_mappings): Likewise.
3191 * printcmd.c (decode_format): Likewise.
3192 * nto-tdep.c (nto_truncate_ptr): Likewise.
3193 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3194 (mips64_linux_get_longjmp_target): Likewise.
3195 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3196 * jv-valprint.c (java_value_print): Likewise.
3197 * jv-lang.c (get_java_object_header_size): Likewise.
3198 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3199 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3200 (hppa_hpux_unwind_adjust_stub): Likewise.
3201 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3202 * gdbtypes.c (make_pointer_type, make_reference_type)
3203 (smash_to_memberptr_type): Likewise.
3204 * gdbarch.c, gdbarch.h: Regenerate.
3206 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3208 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3209 (print_gp_register_row): Stop before printing a register bigger
3210 than the ABI register size.
3211 (mips_print_registers_info): Update call to mips_print_register.
3213 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3215 * expression.h (enum exp_opcode): Document a register name for
3217 * parse.c (write_dollar_variable): Write the register name for
3219 (operator_length_standard): Expect the register name following
3221 * ada-lang.c (resolve_subexp): Likewise.
3222 * ax-gdb.c (gen_expr): Likewise.
3223 * eval.c (evaluate_subexp_standard): Likewise.
3224 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3226 * tracepoint.c (encode_actions): Likewise.
3228 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3230 * utils.c (set_screen_size): Use INT_MAX for default columns.
3232 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3234 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3235 qXfer:spu:write packet types.
3237 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3239 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3240 * gdbarch.c, gdbarch.h: Regenerate.
3242 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3244 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3245 gdbarch_stab_reg_to_regnum.
3246 * stabsread.c (define_symbol): Likewise.
3247 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3248 gdbarch_ecoff_reg_to_regnum.
3249 * mdebugread.c (parse_symbol): Likewise.
3250 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3251 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3252 gdbarch_dwarf_reg_to_regnum.
3253 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3254 * coffread.c (process_coff_symbol): Likewise.
3255 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3256 gdbarch_dwarf2_reg_to_regnum.
3257 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3258 (locexpr_describe_location): Likewise.
3259 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3260 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3261 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3262 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3263 * gdbarch.c, gdbarch.h: Regenerate.
3265 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3267 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3268 gdbarch_smash_text_address.
3269 * somread.c (som_symtab_read): Likewise.
3270 * elfread.c (record_minimal_symbol): Likewise.
3271 * dbxread.c (process_one_symbol): Likewise.
3272 * coffread.c (coff_symtab_read): Likewise.
3273 * gdbarch.c, gdbarch.h: Regenerate.
3275 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3277 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3278 * findvar.c (value_from_register): Likewise.
3279 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3280 * valops.c (value_assign): Likewise.
3281 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3282 gdbarch_convert_register_p.
3283 * findvar.c (value_from_register): Likewise.
3284 * valops.c (value_assign): Likewise.
3285 * gdbarch.c, gdbarch.h: Regenerate.
3287 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3289 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3290 gdbarch_register_sim_regno.
3291 * sim-regno.h (sim_regno): Likewise (comment).
3292 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3293 * gdbarch.c, gdbarch.h: Regenerate.
3295 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3297 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3298 gdbarch_virtual_frame_pointer.
3299 * tracepoint.c (encode_actions): Likewise.
3300 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3301 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3302 * gdbarch.c, gdbarch.h: Regenerate.
3304 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3306 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3307 * p-lang.c (pascal_create_fundamental_type): Likewise.
3308 * objc-lang.c (objc_create_fundamental_type): Likewise.
3309 * mdebugread.c (_initialize_mdebugread): Likewise.
3310 * m2-lang.c (m2_create_fundamental_type)
3311 (_initialize_m2_language): Likewise.
3312 * gdbtypes.c (build_gdbtypes): Likewise.
3313 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3314 * doublest.c (floatformat_from_length): Likewise.
3315 * c-lang.c (c_create_fundamental_type): Likewise.
3316 * ada-lang.c (ada_create_fundamental_type)
3317 (ada_language_arch_info): Likewise.
3318 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3319 * value.c (unpack_double): Likewise (comment).
3320 * gdbtypes.c (build_gdbtypes): Likewise.
3321 * doublest.c (floatformat_from_length): Likewise.
3322 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3323 * valarith.c (value_binop): Likewise.
3324 * p-lang.c (pascal_create_fundamental_type): Likewise.
3325 * objc-lang.c (objc_create_fundamental_type): Likewise.
3326 * mdebugread.c (_initialize_mdebugread): Likewise.
3327 * m2-lang.c (m2_create_fundamental_type): Likewise.
3328 * gdbtypes.c (build_gdbtypes): Likewise.
3329 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3330 * doublest.c (floatformat_from_length): Likewise.
3331 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3332 * c-lang.c (c_create_fundamental_type): Likewise.
3333 * ada-lex.l (processReal): Likewise.
3334 * ada-lang.c (ada_create_fundamental_type)
3335 (ada_language_arch_info): Likewise.
3336 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3337 * value.c (unpack_double): Likewise (comment).
3338 * gdbtypes.c (build_gdbtypes): Likewise.
3339 * doublest.c (floatformat_from_length): Likewise.
3340 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3341 gdbarch_long_double_bit.
3342 * p-lang.c (pascal_create_fundamental_type): Likewise.
3343 * objc-lang.c (objc_create_fundamental_type): Likewise.
3344 * m2-lang.c (m2_create_fundamental_type): Likewise.
3345 * gdbtypes.c (build_gdbtypes): Likewise.
3346 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3347 * doublest.c (floatformat_from_length): Likewise.
3348 * c-lang.c (c_create_fundamental_type): Likewise.
3349 * ada-lex.l (processReal): Likewise.
3350 * ada-lang.c (ada_create_fundamental_type)
3351 (ada_language_arch_info): Likewise.
3352 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3353 gdbarch_long_double_format.
3354 * gdbtypes.c (build_gdbtypes): Likewise.
3355 * doublest.c (floatformat_from_length): Likewise.
3356 * gdbarch.c, gdbarch.h: Regenerate.
3358 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3360 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3361 * ada-lang.c (ada_create_fundamental_type)
3362 (ada_language_arch_info): Likewise.
3363 * c-lang.c (c_create_fundamental_type): Likewise.
3364 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3365 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3366 * m2-lang.c (m2_create_fundamental_type): Likewise.
3367 * objc-lang.c (objc_create_fundamental_type): Likewise.
3368 * p-lang.c (pascal_create_fundamental_type): Likewise.
3369 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3370 * c-exp.y (parse_number): Likewise.
3371 * objc-exp.y (parse_number): Likewise.
3372 * ada-lex.l (processInt): Likewise.
3373 * f-exp.y (parse_number): Likewise.
3374 * p-exp.y (parse_number): Likewise.
3375 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3376 (gdbtypes_post_init, build_gdbtypes): Likewise.
3377 * p-lang.c (pascal_create_fundamental_type): Likewise.
3378 * parse.c (build_parse): Likewise.
3379 * xcoffread.c (_initialize_xcoffread): Likewise.
3380 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3381 (read_range_type): Likewise.
3382 * objc-lang.c (objc_create_fundamental_type): Likewise.
3383 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3384 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3385 (m2_create_fundamental_type): Likewise.
3386 * c-lang.c (c_create_fundamental_type): Likewise.
3387 * coffread.c (coff_read_enum_type): Likewise.
3388 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3389 * dwarf2read.c (new_symbol): Likewise.
3390 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3391 * c-exp.y (parse_number): Likewise.
3392 * objc-exp.y (parse_number): Likewise.
3393 * ada-lex.l (processInt): Likewise.
3394 * f-exp.y (parse_number): Likewise.
3395 * p-exp.y (parse_number): Likewise.
3396 * valarith.c (value_binop): Likewise.
3397 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3398 * ada-lang.c (ada_create_fundamental_type)
3399 (ada_language_arch_info): Likewise.
3400 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3401 * symfile.c (TARGET_LONG_BYTES): Likewise.
3402 * p-lang.c (pascal_create_fundamental_type): Likewise.
3403 * objc-lang.c (objc_create_fundamental_type): Likewise.
3404 * m2-lang.c (m2_create_fundamental_type): Likewise.
3405 * f-lang.c (f_create_fundamental_type): Likewise.
3406 * c-lang.c (c_create_fundamental_type): Likewise.
3407 * coffread.c (decode_base_type): Likewise.
3408 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3409 * c-exp.y (parse_number): Likewise.
3410 * objc-exp.y (parse_number): Likewise.
3411 * p-exp.y (parse_number): Likewise.
3412 * ada-lang.c (ada_create_fundamental_type)
3413 (ada_language_arch_info): Likewise.
3414 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3415 * stabsread.c (read_range_type): 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 * gdbarch.c, gdbarch.h: Regenerate.
3423 2007-06-12 Andreas Schwab <schwab@suse.de>
3425 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3426 (struct frame_unwind): Add dealloc_cache.
3427 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3429 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3430 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3431 (libunwind_frame_unwind): Set dealloc_cache.
3432 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3434 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3435 Markus Deuling <deuling@de.ibm.com>
3437 * remote.c (remote_write_qxfer): New function.
3438 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3439 (remote_read_qxfer): Do not cache empty objects.
3440 (_initialize_remote): Add PACKET_qXfer_spu_read and
3441 PACKET_qXfer_spu_write.
3443 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3445 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3446 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3448 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3449 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3450 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3451 * spu-tdep.c (infospucmdlist): New variable.
3452 (spu_register_name): Handle additional pseudo registers.
3453 (spu_register_type): Likewise.
3454 (spu_pseudo_register_read): Likewise.
3455 (spu_pseudo_register_write): Likewise.
3456 (spu_pseudo_register_read_spu): New function.
3457 (spu_pseudo_register_write_spu): Likewise.
3458 (info_spu_event_command): New function.
3459 (info_spu_signal_command): Likewise.
3460 (info_spu_mailbox_list): Likewise.
3461 (info_spu_mailbox_command): Likewise.
3462 (spu_mfc_get_bitfield): Likewise.
3463 (info_spu_dma_cmdlist): Likewise.
3464 (info_spu_dma_command): Likewise.
3465 (info_spu_proxydma_command): Likewise.
3466 (info_spu_command): Likewise.
3467 (_initialize_spu_tdep): Install "info spu" commands.
3469 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3471 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3472 accessing non-seekable spufs files.
3474 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3476 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3477 gdbarch_skip_trampoline_code.
3478 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3479 * objc-lang.c (objc_skip_trampoline)
3480 (objc_submethod_helper_data): Likewise.
3481 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3482 * infrun.c (handle_inferior_event): Likewise.
3483 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3484 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3485 gdbarch_in_solib_return_trampoline.
3486 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3487 * infrun.c (handle_inferior_event): Likewise.
3488 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3489 * gdbarch.c, gdbarch.h: Regenerate.
3491 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3493 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3494 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3495 * linespec.c (minsym_found): Likewise.
3496 * infrun.c (step_into_function): Likewise.
3497 * gdbarch.c, gdbarch.h: Regenerate.
3499 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3501 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3502 * valops.c (value_allocate_space_in_inferior): Likewise.
3503 * gdbarch.c, gdbarch.h: Regenerate.
3505 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3507 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3508 gdbarch_memory_insert_breakpoint.
3509 * mem-break.c (memory_insert_breakpoint): Likewise.
3510 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3511 gdbarch_memory_remove_breakpoint.
3512 * mem-break.c (memory_remove_breakpoint): Likewise.
3513 * gdbarch.c, gdbarch.h: Regenerate.
3515 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3517 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3518 gdbarch_fetch_tls_load_module_address.
3519 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3520 gdbarch_fetch_tls_load_module_address_p.
3521 * gdbarch.c, gdbarch.h: Regenerate.
3523 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3525 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3526 gdbarch_decr_pc_after_break.
3527 * tracepoint.c (trace_dump_command): Likewise.
3528 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3529 * linux-thread-db.c (check_event): Likewise.
3530 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3531 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3532 * frame.h: Likewise (comment).
3533 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3534 * aix-thread.c (aix_thread_wait): Likewise.
3535 * gdbarch.c, gdbarch.h: Regenerate.
3537 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3539 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3540 gdbarch_address_class_type_flags.
3541 * dwarf2read.c (read_tag_pointer_type): Likewise.
3542 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3543 gdbarch_address_class_type_flags_p.
3544 * dwarf2read.c (read_tag_pointer_type): Likewise.
3545 * gdbarch.c, gdbarch.h: Regenerate.
3547 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3549 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3550 * value.c (value_as_address): Likewise (comment).
3551 * remote-mips.c (common_breakpoint): Likewise.
3552 * regcache.c (read_pc_pid): Likewise.
3553 * printcmd.c (do_one_display): Likewise.
3554 * monitor.c (monitor_write_memory, monitor_read_memory)
3555 (monitor_insert_breakpoint): Likewise.
3556 * mips-tdep.c (heuristic_proc_start): Likewise.
3557 * infrun.c (insert_step_resume_breakpoint_at_frame)
3558 (insert_step_resume_breakpoint_at_caller): Likewise.
3559 * buildsym.c (record_line): Likewise.
3560 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3561 (arm_get_next_pc): Likewise.
3562 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3563 (store_regs): Likewise.
3564 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3565 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3566 * gdbarch.c, gdbarch.h: Regenerate.
3568 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3570 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3571 * tracepoint.c (scope_info): Likewise.
3572 * target.c (debug_print_register): Likewise.
3573 * stack.c (frame_info): Likewise.
3574 * sh-tdep.c (sh_register_reggroup_p): Likewise.
3575 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3576 (sh64_media_print_registers_info)
3577 (sh64_compact_print_registers_info): Likewise.
3578 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3579 * remote-sim.c (gdbsim_fetch_register): Likewise.
3580 * remote.c (packet_reg): Likewise (comment).
3581 * reggroups.c (default_register_reggroup_p): Likewise.
3582 * regcache.c (regcache_dump): Likewise.
3583 * printcmd.c (address_info): Likewise.
3584 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3585 * mt-dep.c (mt_registers_info): Likewise.
3586 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3587 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3588 (mips_read_fp_register_double, mips_print_fp_register)
3589 (mips_print_register, print_gp_register_row, mips_print_registers_info)
3590 (mips_register_sim_regno): Likewise.
3591 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3592 * inf-ptrace.c (inf_ptrace_fetch_register)
3593 (inf_ptrace_store_register): Likewise.
3594 * infcmd.c (default_print_registers_info): Likewise.
3595 * ia64-linux-nat.c (ia64_linux_fetch_register)
3596 (ia64_linux_store_register): Likewise.
3597 * i386-linux-nat.c (fetch_register, store_register): Likewise.
3598 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3599 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3600 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3601 (hppa_hpux_store_register): Likewise.
3602 * findvar.c (locate_var_value): Likewise.
3603 * dwarf2loc.c (locexpr_describe_location): Likewise.
3604 * dwarf2-frame.c (execute_cfa_program): Likewise.
3605 * arm-tdep.c (arm_push_dummy_call): Likewise.
3606 * arch-utils.c (legacy_register_sim_regno): Likewise.
3607 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3608 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3609 * mi/mi-main.c (mi_cmd_data_list_register_names)
3610 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3611 (mi_cmd_data_write_register_values): Likewise.
3612 * gdbarch.c, gdbarch.h: Regenerate.
3614 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3616 * target-memory.c (blocks_to_erase): Correct off-by-one error.
3618 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
3620 * remote.c (process_g_packet): Don't check size.
3621 * gdbarch.sh: Remove register_bytes_ok.
3622 * gdbarch.c: Regenerated.
3623 * gdbarch.h: Regenerated.
3624 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
3625 (m68k_register_bytes_ok): Remove.
3626 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
3628 2007-06-06 Andreas Schwab <schwab@suse.de>
3630 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
3631 (destroy_addr_space_name): Define.
3632 (libunwind_load): Get address of destroy_addr_space function.
3633 (libunwind_frame_cache): Destroy unw_addr_space_t object before
3634 returning unsuccessfully.
3635 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
3637 (libunwind_sigtramp_frame_sniffer): Likewise.
3638 (libunwind_get_reg_special): Likewise.
3640 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3642 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
3643 gdbarch_fetch_pointer_argument.
3644 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
3645 * gdbarch.c, gdbarch.h: Regenerate.
3647 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3649 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
3650 gdbarch_have_nonsteppable_watchpoint.
3651 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
3652 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
3653 gdbarch_cannot_step_breakpoint.
3654 * infrun.c (resume): Likewise.
3655 * gdbarch.c, gdbarch.h: Regenerate.
3657 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3659 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
3660 * stack.c (print_frame_args): Likewise.
3661 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
3662 * stack.c (print_args_stub, frame_info): Likewise.
3663 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
3664 * stack.c (print_args_stub, frame_info): Likewise.
3665 * gdbarch.c, gdbarch.h: Regenerate.
3667 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3669 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
3670 gdbarch_coff_make_msymbol_special.
3671 * coffread.c (coff_symtab_read): Likewise.
3672 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
3673 gdbarch_elf_make_msymbol_special.
3674 * elfread.c (elf_symtab_read): Likewise.
3675 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
3676 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
3677 * gdbarch.c, gdbarch.h: Regenerate.
3679 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3681 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
3682 gdbarch_frame_red_zone_size.
3683 * gdbarch.c, gdbarch.h: Regenerate.
3685 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3687 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
3688 * infcall.c (call_function_by_hand): Likewise.
3689 * gcore.c (derive_stack_segment): Likewise.
3690 * frame.c (frame_id_inner): Likewise.
3691 * arch-utils.c (core_addr_lessthan): Likewise (comment).
3692 * ada-lang.c (ensure_lval): Likewise.
3693 * gdbarch.c, gdbarch.h: Regenerate.
3695 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3697 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
3698 gdbarch_address_to_pointer.
3699 * findvar.c (store_typed_address): Likewise.
3700 * gdbtypes.c (make_pointer_type): Likewise (comment).
3701 * procfs.c (procfs_address_to_host_pointer): Likewise.
3702 * std-regs.c (value_of_builtin_frame_reg): Likewise.
3703 (value_of_builtin_frame_fp_reg): Likewise.
3704 (value_of_builtin_frame_pc_reg): Likewise.
3705 * utils.c (paddress): Likewise (comment).
3706 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
3707 gdbarch_pointer_to_address.
3708 * findvar.c (extract_typed_address): Likewise.
3709 * gdbtypes.c (make_pointer_type): Likewise (comment).
3710 * valops.c (value_cast): Likewise (comment).
3711 * gdbarch.c, gdbarch.h: Regenerate.
3713 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3715 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
3716 * infrun.c (handle_inferior_event): Likewise.
3717 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
3718 gdbarch_get_longjmp_target_p.
3719 * breakpoint.c (breakpoint_re_set): Likewise.
3720 * infrun.c (handle_inferior_event): Likewise.
3721 * gdbarch.c, gdbarch.h: Regenerate.
3723 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3725 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
3726 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
3727 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
3728 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
3729 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
3730 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
3731 find_stub_with_shl_get, cover_find_stub_with_shl_get,
3732 initialize_hp_cxx_exception_support, child_enable_exception_callback,
3733 current_ex_event, child_get_current_exception_event): Remove.
3734 (hppa_hpux_inferior_created): Remove.
3735 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
3737 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
3738 (deprecated_exception_support_initialized): Remove.
3739 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
3740 (deprecated_exception_support_initialized): Remove.
3741 (breakpoint_init_inferior): Remove handling of non-zero
3742 deprecated_exception_catchpoints_are_fragile.
3744 * symtab.h (deprecated_hp_som_som_object_present): Remove.
3745 * symtab.c (deprecated_hp_som_som_object_present): Remove.
3746 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
3747 deprecated_hp_som_som_object_present.
3748 * eval.c (evaluate_subexp_standard): Likewise.
3749 * valops.c (value_cast): Likewise.
3751 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
3752 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
3753 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
3755 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3757 * objfiles.h (ImportEntry, ExportEntry): Remove types.
3758 (struct objfile): Remove import_list, import_list_size,
3759 export_list, export_list_size members.
3760 (is_in_import_list): Remove prototype.
3761 * objfiles.c (is_in_import_list): Remove.
3762 * somread.c (init_import_symbols, init_export_symbols): Remove.
3763 (som_symfile_read): Do not call init_import_symbols. Do not
3764 set objfile->export_list and objfile->export_list_size.
3766 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
3768 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
3769 Use the original objfile if necessary.
3771 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
3773 * defs.h (ldirname): New prototype.
3774 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
3776 * utils.c (ldirname): New function.
3777 * xml-tdesc.c (file_read_description_xml): Use ldirname.
3779 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3781 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
3783 2007-06-01 Joel Brobecker <brobecker@adacore.com>
3785 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
3787 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3789 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
3791 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3793 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
3794 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
3795 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
3796 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
3797 (ppc_linux_in_sigtramp, insn_is_sigreturn,
3798 ppc_linux_at_sigtramp_return_path): Remove.
3800 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3802 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
3803 (xtensa_register_write_masked, xtensa_register_read_masked)
3804 (xtensa_extract_return_value, xtensa_store_return_value
3805 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
3806 TARGET_BYTE_ORDER by gdbarch_byte_order.
3807 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
3808 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
3809 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
3810 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
3811 (sh64_push_dummy_call, sh64_extract_return_value)
3812 (sh64_store_return_value, sh64_register_convert_to_virtual)
3813 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
3814 (sh64_pseudo_register_write, sh64_do_fp_register)
3815 (sh64_frame_prev_register): Likewise.
3816 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
3817 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
3818 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
3819 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
3820 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3821 * ppc-linux-nat.c (store_register): Likewise.
3822 * nto-tdep.c (nto_find_and_open_solib)
3823 (nto_init_solib_absolute_prefix): Likewise.
3824 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
3825 (mips_convert_register_p, mips_eabi_push_dummy_call)
3826 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
3827 (mips_o32_push_dummy_call, mips_o32_return_value)
3828 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
3829 (mips_read_fp_register_single, mips_read_fp_register_double)
3830 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
3831 (mips_breakpoint_from_pc): Likewise.
3832 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
3833 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
3834 (mips_linux_o32_sigframe_init): Likewise.
3835 * m32r-tdep.c (m32r_memory_insert_breakpoint)
3836 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
3837 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
3838 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
3839 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
3840 * coffread.c (process_coff_symbol): Likewise.
3841 * arm-tdep.c (convert_from_extended, convert_to_extended)
3842 (gdb_print_insn_arm): Likewise.
3844 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3846 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
3847 * i386-tdep.c (i386_dbx_reg_to_regnum)
3848 (i386_svr4_reg_to_regnum): Likewise.
3849 * inf-ptrace.c (inf_ptrace_fetch_registers)
3850 (inf_ptrace_store_registers): Likewise.
3851 * corelow.c (get_core_registers): Likewise.
3852 * i386-linux-nat.c (supply_gregset, fill_gregset)
3853 (i386_linux_fetch_inferior_registers)
3854 (i386_linux_store_inferior_registers): Likewise.
3855 * remote.c (init_remote_state,packet_reg_from_regnum)
3856 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
3857 (remote_prepare_to_store,store_registers_using_G)
3858 (remote_store_registers,remote_arch_state): Likewise.
3859 * tracepoint.c (encode_actions): Likewise.
3860 * mi/mi-main.c (mi_cmd_data_list_register_names)
3861 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3862 (mi_cmd_data_write_register_values): Likewise.
3863 * tui/tui-regs.c (tui_show_register_group)
3864 (tui_show_register_group): Likewise.
3865 * xtensa-tdep.h (FP_ALIAS): Likewise.
3866 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
3867 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
3868 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
3869 * win32-nat.c (do_win32_fetch_inferior_registers)
3870 (do_win32_store_inferior_registers,fetch_elf_core_registers
3871 * user-regs.h: Likewise (comment).
3872 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3873 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3874 * target-descriptions.h: Likewise (comment).
3875 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
3876 * target.c (debug_print_register): Likewise.
3877 * stack.c (frame_info): Likewise.
3878 * stabsread.c (define_symbol): Likewise.
3879 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
3880 (sh64_media_print_registers_info)
3881 (sh64_compact_print_registers_info): Likewise.
3882 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3883 * rs6000-nat.c (fetch_register,store_register): Likewise.
3884 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
3885 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
3886 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
3887 * remote-m32r-sdi.c (m32r_fetch_registers)
3888 (m32r_store_registers): Likewise.
3889 * reggroups.c (default_register_reggroup_p): Likewise.
3890 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
3891 (regcache_restore,regcache_dump): Likewise.
3892 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
3893 * mips-tdep.c (mips_xfer_register,mips_register_name)
3894 (mips_register_reggroup_p,mips_pseudo_register_read)
3895 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
3896 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
3897 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
3898 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
3899 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
3900 (print_gp_register_row,mips_print_registers_info)
3901 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3902 (mips_register_sim_regno): Likewise.
3903 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
3904 (mips_linux_n32n64_sigframe_init): Likewise.
3905 * mips-linux-nat.c (mips_linux_register_addr)
3906 (mips64_linux_register_addr): Likewise.
3907 * findvar.c (value_of_register): Likewise.
3908 * infcmd.c (default_print_registers_info,registers_info)
3909 (print_vector_info,print_float_info): Likewise.
3910 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
3911 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3912 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3913 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
3914 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3915 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
3916 (ia64_cannot_store_register,ia64_linux_fetch_registers)
3917 (ia64_linux_store_registers): Likewise.
3918 * hpux-thread.c (hpux_thread_fetch_registers)
3919 (hpux_thread_store_registers): Likewise.
3920 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
3921 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
3922 (h8300_register_type): Likewise.
3923 * dwarf2-frame.c (dwarf2_frame_cache)
3924 (dwarf2_frame_state_alloc_regs): Likewise.
3925 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
3926 (cris_cannot_store_register,crisv32_cannot_fetch_register)
3927 (crisv32_cannot_store_register,cris_register_name): Likewise.
3928 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
3929 * arch-utils.c (legacy_register_sim_regno)
3930 (legacy_virtual_frame_pointer): Likewise.
3931 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
3932 * arm-tdep.h: Likewise (comment).
3933 * frv-tdep.c (frv_register_sim_regno): Likewise.
3934 * m68klinux-nat.c (old_fetch_inferior_registers)
3935 (old_store_inferior_registers): Likewise.
3936 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3937 * irix5-nat.c (fetch_core_registers): Likewise.
3938 * hppa-tdep.c (hppa_frame_cache): Likewise.
3939 * hppa-linux-nat.c (hppa_linux_register_addr)
3940 (hppa_linux_fetch_inferior_registers)
3941 (hppa_linux_store_inferior_registers): Likewise.
3942 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
3943 (hppa_hpux_store_inferior_registers): Likewise.
3944 * amd64-nat.c (amd64_native_gregset_reg_offset)
3945 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
3946 * dbug-rom.c (dbug_regname): Likewise.
3947 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
3948 (HARD_PAGE_REGNUM (comment)): Likewise.
3949 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
3950 * i386-tdep.c (i386_dbx_reg_to_regnum)
3951 (i386_svr4_reg_to_regnum): Likewise.
3952 * mi/mi-main.c (mi_cmd_data_list_register_names)
3953 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3954 (mi_cmd_data_write_register_values): Likewise.
3955 * gdbarch.c, gdbarch.h: Regenerate.
3956 * tui/tui-regs.c (tui_show_register_group): Likewise.
3957 * xtensa-tdep.h (FP_ALIAS): Likewise.
3958 * user-regs.h: Likewise (comment).
3959 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3960 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3961 * target-descriptions.h: Likewise (comment).
3962 * target.c (debug_print_register): Likewise.
3963 * stack.c (frame_info): Likewise.
3964 * stabsread.c (define_symbol): Likewise.
3965 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
3966 (sh64_compact_print_registers_info): Likewise.
3967 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3968 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
3969 (regcache_restore,regcache_dump): Likewise.
3970 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
3971 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3972 (mips_stab_reg_to_regnum): Likewise.
3973 * findvar.c (value_of_register): Likewise.
3974 * infcmd.c (default_print_registers_info,registers_info)
3975 (print_vector_info,print_float_info): Likewise.
3976 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3977 * h8300-tdep.c (h8300_register_type): Likewise.
3978 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3979 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
3980 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
3981 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
3982 * parse.c: Remove comment.
3983 * gdbarch.c, gdbarch.h: Regenerate
3985 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3987 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
3988 gdbarch_cannot_fetch_register.
3989 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3990 * hppa-linux-nat.c (fetch_register): Likewise.
3991 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3992 * m68klinux-nat.c (fetch_register): Likewise.
3993 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
3995 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
3996 gdbarch_cannot_store_register.
3997 * hppa-linux-nat.c (store_register): Likewise.
3998 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
3999 * regcache.c (regcache_raw_write): Likewise.
4000 * m68klinux-nat.c (store_register): Likewise.
4001 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4002 * gdbarch.c, gdbarch.h: Regenerate.
4004 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4006 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4007 * gdbarch.c, gdbarch.h: Regenerate.
4009 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4011 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4012 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4013 * gdbarch.c, gdbarch.h: Regenerate.
4015 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4017 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4018 * ax-gdb.c (gen_bitfield_ref): Likewise.
4019 * mi/mi-main.c (get_register): Likewise.
4020 * findvar.c (default_value_from_register, extract_signed_integer)
4021 (extract_unsigned_integer, extract_long_unsigned_integer)
4022 (store_signed_integer, store_unsigned_integer): Likewise.
4023 * regcache.c (regcache_dump): Likewise.
4024 * value.c (lookup_internalvar, value_of_internalvar)
4025 (set_internalvar): Likewise.
4027 * valprint.c (print_binary_chars, print_octal_chars)
4028 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4029 * infcmd.c (default_print_registers_info): Likewise.
4030 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4031 * stabsread.c (define_symbol): Likewise.
4032 * doublest.c (floatformat_from_length, floatformat_from_type)
4033 (extract_typed_floating, store_typed_floating): Likewise.
4034 * gdbarch.c, gdbarch.h: Regenerate.
4036 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4038 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4039 gdbarch_call_dummy_location.
4040 * infcall.c (call_function_by_hand): Likewise.
4041 * inferior.h: Change comment.
4042 * arch-utils.c: Change comment.
4043 * gdbarch.c, gdbarch.h: Regenerate.
4045 2007-05-28 Joel Brobecker <brobecker@adacore.com>
4047 * solib-aix5.c: Delete.
4048 * Makefile.in (solib-aix5.o): Delete rule.
4050 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4052 * breakpoint.h (enum bpstat_what_main_action): Remove
4053 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4054 * infrun.c (process_event_stop_test): Do not check for it.
4056 2007-05-22 Chris Dearman <chris@mips.com>
4057 Maciej W. Rozycki <macro@mips.com>
4059 * ser-unix.c (show_serial_hwflow): New function.
4060 (hardwire_raw): Add hardware flow control support.
4061 (_initialize_ser_hardwire): Add "set/show remoteflow".
4062 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4063 * NEWS: Document the new command.
4065 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4067 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4068 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4069 define for i[[3456]]86-*-linux* native configurations.
4070 * config.in, configure: Regenerate.
4072 2007-05-19 Joel Brobecker <brobecker@adacore.com>
4074 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4075 a core file. Add comment in the function description.
4077 2007-05-18 Caroline Tice <ctice@apple.com>
4079 * c-valprint.c (c_value_print): If the initialized field of the
4080 value struct is 0, print out "[uninitialized]" before the value.
4081 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4082 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4083 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4084 ctx->initialized appropriately. Verify no location op follows
4086 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4087 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4088 set_value_initialized.
4089 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4090 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4091 * value.c (struct value): New field, initialized.
4092 (allocate_value): Initialize new field.
4093 (set_value_initialized): New function.
4094 (value_initialized): New function.
4095 * value.h (value_initialized): New extern declaration.
4096 (set_value_initialized): Likewise.
4098 2007-05-18 Caroline Tice <ctice@apple.com>
4100 * MAINTAINERS (Write After Approval): Add self.
4102 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4104 * gdbtypes.c (make_reference_type): Preserve the type chain
4105 and set the length of all the variants of the pointer type.
4107 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4109 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4110 and set the length of all the variants of the pointer type.
4112 2007-05-17 Maciej W. Rozycki <macro@mips.com>
4114 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4116 (mips_o64_push_dummy_call): Reformat a comment.
4118 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4120 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4121 (score_prologue_frame_base_address): Return fp to keep gdb print
4122 local variables correctly when debugging information is stabs.
4124 (score_analyze_prologue): For software watchpoint, fetch all the
4125 instructions from range [startaddr, pc] once and identify them locally
4126 to reduce memory access.
4127 (score_malloc_and_get_memblock, score_free_memblock)
4128 (score_adjust_memblock_ptr): New functions.
4129 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4131 (score_target_can_use_watch, score_stopped_by_watch)
4132 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4133 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4134 New functions for remote & local hw-watchpoint and hw-breakpoint.
4136 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
4138 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4139 declarations as well.
4141 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4143 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4144 * config/arm/tm-embed.h: Delete file.
4146 * arm-tdep.h (arm_software_single_step): Declare.
4147 * arm-tdep.c (arm_software_single_step): Make global.
4148 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4150 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4151 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4152 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4153 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4155 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4156 allow defines to be overriden by TM file.
4157 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4158 change default to {0xbe,0xbe}.
4159 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4160 arm_obsd_thumb_be_breakpoint): New global variables.
4161 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4162 tdep->thumb_breakpoint_size.
4163 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4164 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4165 tdep->thumb_breakpoint_size.
4167 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4169 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4171 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4174 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4175 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4176 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4177 (mips_abi_regsize): Simplify.
4178 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4179 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4180 (mips_o32_return_value, mips_o64_push_dummy_call)
4181 (mips_o64_return_value): Propogate constant register sizes. Use the
4182 ABI register size instead of mips_stack_argsize.
4183 (mips_dump_tdep): Don't print mips_stack_argsize.
4184 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4187 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4189 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4190 * config/mips/tm-linux.h: Delete.
4191 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4192 (mips_linux_in_dynsym_resolve_code): Make static. Use
4193 svr4_in_dynsym_resolve_code.
4194 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4196 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4198 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4199 * Makefile.in (mips-linux-tdep.o): Update.
4200 * solib.c (set_solib_ops): New.
4201 (current_target_so_ops): Update comment.
4202 * solib.h (set_solib_ops): New prototype.
4204 2007-05-16 Chris Dearman <chris@mips.com>
4206 * printcmd.c (do_examine): Fix typos in a comment.
4208 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4210 * configure.ac: Allow sysroots to be relocated under $prefix as
4211 well as $exec_prefix.
4212 * configure: Regenerate.
4214 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4216 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4217 (offsetof): Do not define.
4218 (find_stub_with_shl_get): Use numerical value 3 instead of
4219 symbolic value TYPE_PROCEDURE.
4221 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4223 * gdb_proc_service.h (paddr_t): Delete typedef.
4224 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4225 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4226 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4227 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4228 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4229 * Makefile.in (proc-service.o): Update.
4231 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4233 * Makefile.in (mips-tdep.o): Update.
4234 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4237 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4239 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4240 instead of store_typed_address.
4241 * value.c (pack_long): New.
4242 (value_from_longest): Use it.
4243 * value.h (pack_long): New prototype.
4245 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4247 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4248 DW_EH_PE_signed if appropriate.
4250 2007-05-14 Paul Brook <paul@codesourcery.com>
4251 Daniel Jacobowitz <dan@codesourcery.com>
4253 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4255 (dwarf_decode_lines): Check for line info without a file.
4257 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4259 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4262 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4264 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4266 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4268 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4270 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4272 * gdbarch.sh (read_sp): Remove.
4273 * gdbarch.c, gdbarch.h: Regenerate.
4274 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4276 * avr-tdep.c (avr_read_sp): Remove.
4277 (avr_unwind_sp): New function.
4278 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4279 * mips-tdep.c (mips_read_sp): Remove.
4280 (mips_unwind_sp): New function.
4281 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4282 * score-tdep.c (score_read_unsigned_register): Remove.
4283 (score_read_sp): Remove.
4284 (score_unwind_sp): New function.
4285 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4287 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4289 * buildsym.c (start_subfile): Handle absolute pathnames
4290 while comparing subfile names.
4292 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4294 * hppa-hpux-tdep.c: Include "regcache.h".
4295 * hppa-linux-tdep.c: Likewise.
4296 * hppa-tdep.c: Include "gdb_stdint.h".
4297 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4299 * Makefile.in: Update dependencies.
4301 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4303 * blockframe.c: Remove obsolete comments.
4304 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4305 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4306 * hppa-tdep.h (enum hppa_regnum): Likewise.
4307 * mips-tdep.h: Likewise.
4308 * m68hc11-tdep.c: Likewise.
4310 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4312 * inferior.h (read_sp): Remove prototype.
4313 * regcache.c (read_sp): Remove.
4314 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4315 * infcall.c (call_function_by_hand): Likewise.
4316 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4318 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4320 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4322 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4323 instead of read_register and read_register_pid.
4325 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4326 argument instead of PTID. Use regcache functions instead of
4328 (ia64_linux_insert_watchpoint): Update call.
4329 (ia64_linux_stopped_data_address): Use regcache functions
4330 instead of read_register_pid and write_register_pid.
4332 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4334 * libunwind-frame.h (struct regcache): Add forward declaration.
4335 (libunwind_get_reg_special): Add REGCACHE argument.
4336 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4337 argument. Pass it to unw_init_remote_p.
4339 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4340 libunwind_get_reg_special.
4341 (ia64_access_reg): Remove "write" case.
4342 (ia64_access_fpreg): Likewise. Read from next_frame passed
4343 as callback argument instead of from current_regcache.
4344 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4345 passed as callback argument instead of from current_regcache.
4346 (ia64_access_rse_fpreg): New function.
4347 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4349 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4351 * NEWS: Mention SPU overlay support.
4353 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4355 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4357 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4359 * breakpoint.c (remove_breakpoint): Do not remove software
4360 breakpoints in unmapped overlay sections.
4362 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4364 * spu-tdep.c: Include "observer.h".
4365 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4366 (spu_overlay_data): New variable.
4367 (struct spu_overlay_table): New type.
4368 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4369 spu_overlay_new_objfile): New functions.
4370 (spu_gdbarch_init): Install spu_overlay_update.
4371 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4372 allocate spu_overlay_data objfile data.
4374 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4376 * gdbarch.sh (overlay_update): New gdbarch function.
4377 (struct obj_section): Add forward declaration.
4378 * gdbarch.c, gdbarch.h: Regenerate.
4380 * symfile.c (simple_overlay_update): Make global.
4381 (target_overlay_update): Remove variable.
4382 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4383 target_overlay_update.
4384 (overlay_load_command): Likewise.
4385 * symfile.h (struct obj_section): Add forward declaration.
4386 (simple_overlay_update): Add prototype.
4388 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4390 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4392 * observer.sh: Add "struct objfile" forward declaration.
4393 * target.h (deprecated_target_new_objfile_hook): Remove.
4394 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4395 (clear_symtab_users): Call observer_notify_new_objfile.
4396 (symbol_file_add_with_addrs_or_offsets): Likewise.
4397 * rs6000-nat.c: Include "observer.h".
4398 (vmap_ldinfo): Call observer_notify_new_objfile.
4399 (xcoff_relocate_core): Likewise.
4400 * remote.c (remote_new_objfile_chain): Remove.
4401 (remote_new_objfile): Do not call remote_new_objfile_chain.
4402 (_initialize_remote): Use observer_attach_new_objfile.
4403 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4404 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4405 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4406 * aix-thread.c: Include "observer.h".
4407 (target_new_objfile_chain): Remove.
4408 (new_objfile): Do not call target_new_objfile_chain.
4409 (_initialize_aix_thread): Use observer_attach_new_objfile.
4410 * hpux-thread.c: Include "observer.h"
4411 (target_new_objfile_chain): Remove.
4412 (hpux_thread_new_objfile): Make static. Do not call
4413 target_new_objfile_chain.
4414 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4415 * linux-thread-db.c: Include "observer.h".
4416 (target_new_objfile_chain): Remove.
4417 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4418 (_initialize_thread_db): Use observer_attach_new_objfile.
4419 * sol-thread.c: Include "observer.h".
4420 (target_new_objfile_chain): Remove.
4421 (sol_thread_new_objfile): Make static. Do not call
4422 target_new_objfile_chain.
4423 (_initialize_sol_thread): Use observer_attach_new_objfile.
4424 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4425 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4428 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4430 * gdbarch.sh (remote_translate_xfer_address): Remove.
4431 * gdbarch.h, gdbarch.c: Regenerate.
4432 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4433 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4434 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4435 call gdbarch_remote_translate_xfer_address.
4436 * frv-tdep.c (frv_gdbarch_init): Do not call
4437 set_gdbarch_remote_translate_xfer_address.
4438 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4439 (ia64_gdbarch_init): Do not install it.
4441 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4443 * NEWS: Mention change in handling the -tui option.
4445 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4447 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4450 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4452 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4453 (breakpoint_inserted_here_p): Call it.
4454 (software_breakpoint_inserted_here_p): Likewise.
4456 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4458 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4459 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4460 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4461 (inf_ptrace_store_register): Likewise.
4462 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4463 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4465 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4467 * linux-nat.c (linux_trad_target): Adapt parameter list.
4468 * linux-nat.h (linux_trad_target): Likewise.
4470 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4472 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4473 (mips_linux_cannot_store_register): Likewise.
4474 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4475 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4476 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4477 (mips64_linux_register_addr): Likewise.
4478 (mips_linux_register_u_offset): Adapt parameter list. Pass
4479 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4481 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4482 * config/mips/nm-linux.h: Delete file.
4484 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4486 * remote.c (remote_detach): Error out if remote can't detach.
4488 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
4490 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4491 instruction's opcode in the "opcode" variable and declares new
4492 variable "closing_insn".
4494 2007-05-10 Chris Dearman <chris@mips.com>
4495 Maciej W. Rozycki <macro@mips.com>
4497 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4498 whitespace when setting a var_filename.
4500 2007-05-09 Bob Wilson <bob.wilson@acm.org>
4502 * main.c (captured_main): Recognize -tui option and print an error
4503 message when the TUI is not configured.
4505 2007-05-09 Andreas Schwab <schwab@suse.de>
4507 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4508 set removed members.
4509 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4511 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4513 * gdbarch.sh (deprecated_store_struct_return): Remove.
4514 * gdbarch.c, gdbarch.h: Regenerate.
4515 * frv-tdep.c (frv_store_struct_return): Remove.
4516 (frv_gdbarch_init): Do not install it.
4518 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4520 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4521 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4522 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4524 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4526 * spu-linux-nat.c: Include "gdb_stdint.h".
4527 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4528 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4529 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4530 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4531 (spu_child_wait): Mark up string for translation.
4533 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4534 Luis Machado <luisgpm@br.ibm.com>
4536 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4537 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4538 BC_INSTRUCTION): Define.
4539 (deal_with_atomic_sequence): New function.
4540 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4541 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4542 gdbarch_software_single_step routine.
4544 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4546 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4547 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4548 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4549 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4550 spu_child_post_attach, spu_fetch_inferior_registers,
4551 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4552 memory addresses as ULONGEST, not CORE_ADDR.
4554 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4556 * gdbarch.sh: Add skip_permanent_breakpoint callback.
4557 * gdbarch.h, gdbarch.c: Regenerate.
4559 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4560 (resume): Call gdbarch_skip_permanent_breakpoint instead of
4561 SKIP_PERMANENT_BREAKPOINT. Inline default case.
4563 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4564 Add REGCACHE argument. Use it instead of read/write_register.
4565 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4567 * config/pa/tm-hppah.h: Delete file.
4568 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4569 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4571 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4573 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4574 * NEWS: Mention improved C++ thunk support.
4575 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4576 * cp-abi.c (cplus_skip_trampoline): New.
4577 * cp-abi.h (cplus_skip_trampoline): New prototype.
4578 (struct cp_abi_ops): Add skip_trampoline member.
4579 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4580 (init_gnuv3_ops): Set skip_trampoline.
4582 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4584 * rs6000-tdep.c (struct frame_extra_info): Delete.
4586 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4588 * linux-thread-db.c: Update some FIXME comments.
4589 (thread_db_xfer_partial): Delete.
4590 (init_thread_db_ops): Do not set to_xfer_partial.
4592 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4594 * inftarg.c, infptrace.c: Remove files.
4595 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4596 (inftarg.o, infptrace.o): Remove rules.
4597 * gdbcore.h (register_addr): Remove prototype.
4598 * inferior.h (kill_inferior, store_inferior_registers,
4599 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4600 call_ptrace, pre_fork_inferior): Remove prototypes.
4601 * target.h (child_xfer_memory, child_pid_to_exec_file,
4602 child_core_file_to_sym_file, child_post_attach,
4603 child_post_startup_inferior, child_acknowledge_created_inferior,
4604 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4605 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4606 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4607 child_follow_fork, child_reported_exec_events_per_exec_call,
4608 child_has_exited, child_thread_alive): Remove prototypes.
4610 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4612 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4613 (sparc_store_inferior_registers): Likewise.
4614 * sparc-nat.c (fetch_inferior_registers): Rename to ...
4615 (sparc_fetch_inferior_registers): ... this.
4616 (store_inferior_registers): Rename to ...
4617 (sparc_store_inferior_registers): ... this.
4618 (sparc_target): Update callback names.
4619 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
4620 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
4622 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4624 * linux-nat.c (child_post_attach): Rename to ...
4625 (linux_child_post_attach): ... this. Make static.
4626 (child_follow_fork): Rename to ...
4627 (linux_child_follow_fork): ... this. Make static.
4628 (child_insert_fork_catchpoint): Rename to ...
4629 (linux_child_insert_fork_catchpoint): ... this. Make static.
4630 (child_insert_vfork_catchpoint): Rename to ...
4631 (linux_child_insert_vfork_catchpoint): ... this. Make static.
4632 (child_insert_exec_catchpoint): Rename to ...
4633 (linux_child_insert_exec_catchpoint): ... this. Make static.
4634 (child_pid_to_exec_file): Rename to ...
4635 (linux_child_pid_to_exec_file): ... this. Make static.
4637 (linux_handle_extended_wait): Update call.
4638 (linux_xfer_partial): Update callback routine names.
4640 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4642 * configure.host (alpha*-*-osf[12]*): Remove support.
4643 * NEWS: Mention removed configurations.
4645 * config/alpha/alpha-osf1.mh: Delete file.
4646 * config/alpha/alpha-osf2.mh: Delete file.
4647 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
4649 * config/alpha/nm-osf.h: Delete file.
4650 * config/alpha/nm-osf2.h: Delete file.
4651 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
4652 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
4653 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
4655 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
4656 (register_addr, kernel_u_size): Remove.
4657 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
4659 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4661 * regcache.c (regcache_invalidate): New function.
4662 (register_cached): Remove.
4663 (set_register_cached): Remove.
4664 (deprecated_registers_fetched): Remove.
4665 (registers_changed): Use regcache_invalidate instead
4666 of set_register_cached.
4667 (regcache_raw_read): Update comment.
4669 * regcache.h (regcache_invalidate): Add prototype.
4670 (register_cached): Remove.
4671 (set_register_cached): Remove.
4672 (deprecated_registers_fetched): Remove.
4674 * findvar.c (value_of_register): Do not call register_cached.
4675 * frame.c (frame_register): Likewise.
4676 * tui/tui-regs.c (tui_get_register): Likewise.
4678 * remote.c (fetch_register_using_p): Do not call set_register_cached.
4679 (process_g_packet): Likewise.
4680 (remote_fetch_registers): Likewise.
4681 * remote-sim.c (gdbsim_fetch_register): Likewise.
4682 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
4683 by regcache_invalidate.
4684 (mt_pseudo_register_write): Likewise.
4685 * sh-tdep.c (sh_pseudo_register_write): Likewise.
4687 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
4688 call by loop over regcache_raw_supply (..., NULL).
4690 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4692 * target.h (struct target_ops): Add REGCACHE parameter to
4693 to_prepare_to_store.
4694 (target_prepare_to_store): Likewise.
4695 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
4696 (update_current_target): Adapt prepare_to_store de_fault rule.
4698 * regcache.c (regcache_raw_write): Pass regcache to
4699 target_prepare_to_store.
4701 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
4702 Do not call CHILD_PREPARE_TO_STORE.
4703 * gnu-nat.c (gnu_prepare_to_store): Likewise.
4704 * procfs.c (procfs_prepare_to_store): Likewise.
4706 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
4707 * go32-nat.c (go32_prepare_to_store): Likewise.
4708 * monitor.c (monitor_prepare_to_store): Likewise.
4709 * nto-procfs.c (procfs_prepare_to_store): Likewise.
4710 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
4711 * remote-mips.c (mips_prepare_to_store): Likewise.
4712 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
4713 * win32-nat.c (win32_prepare_to_store): Likewise.
4715 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
4716 Use it instead of current_regcache.
4718 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
4719 parameter. Pass it on to next target.
4720 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
4722 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4724 * target.h (struct regcache): Add forward declaration.
4725 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
4726 and to_store_registers target operations.
4727 (target_fetch_registers, target_store_registers): Update.
4729 * regcache.c (regcache_raw_read): Replace register_cached by
4730 regcache_valid_p. Pass regcache to target_fetch_registers.
4731 (regcache_raw_write): Pass regcache to target_store_registers.
4733 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
4734 store_regs, store_wmmx_regs): Replace register_cached by
4737 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
4738 to target_fetch_registers calls.
4739 * corelow.c (core_open): Likewise.
4740 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
4741 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4742 ps_lsetfpregs): Likewise.
4743 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4744 ps_lsetfpregs): Likewise.
4745 * win32-nat.c (win32_resume): Likewise.
4746 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
4747 to target_store_registers call.
4748 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4750 * inferior.h (store_inferior_registers): Update prototype.
4751 (fetch_inferior_registers): Likewise.
4752 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
4753 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
4754 Update function pointer signatures.
4756 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
4757 use it instead of current_regcache, update calls.
4758 (aix_thread_store_registers): Likewise.
4759 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4760 (alphabsd_store_inferior_registers): Likewise.
4761 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4762 (amd64bsd_store_inferior_registers): Likewise.
4763 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
4764 (amd64_linux_store_inferior_registers): Likewise.
4765 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
4766 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
4767 fetch_wmmx_regs, store_wmmx_regs): Likewise.
4768 (arm_linux_fetch_inferior_registers): Likewise.
4769 (arm_linux_store_inferior_registers): Likewise.
4770 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
4771 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
4772 (store_register, store_regs, store_fp_register, store_fp_regs,
4773 armnbsd_store_registers): Likewise.
4774 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
4775 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4776 (bsd_uthread_store_registers): Likewise.
4777 * corelow.c (get_core_registers): Likewise.
4778 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
4779 go32_store_registers): Likewise.
4780 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
4781 (hppabsd_store_registers): Likewise.
4782 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
4783 (hppa_hpux_fetch_inferior_registers): Likewise.
4784 (hppa_hpux_store_register): Likewise.
4785 (hppa_hpux_store_inferior_registers): Likewise.
4786 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4787 (hppa_linux_fetch_inferior_registers): Likewise.
4788 (hppa_linux_store_inferior_registers): Likewise.
4789 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
4790 (hpux_thread_store_registers): Likewise.
4791 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
4792 (i386bsd_store_inferior_registers): Likewise.
4793 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
4794 gnu_store_registers): Likewise.
4795 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
4796 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
4798 (i386_linux_fetch_inferior_registers): Likewise.
4799 (i386_linux_store_inferior_registers): Likewise.
4800 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
4801 (ia64_linux_fetch_registers): Likewise.
4802 (ia64_linux_store_register): Likewise.
4803 (ia64_linux_store_registers): Likewise.
4804 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4805 (inf_child_store_inferior_registers): Likewise.
4806 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4807 (inf_ptrace_fetch_registers): Likewise.
4808 (inf_ptrace_store_register): Likewise.
4809 (inf_ptrace_store_registers): Likewise.
4810 * infptrace.c (fetch_register, store_register): Likewise.
4811 (fetch_inferior_registers, store_inferior_registers): Likewise.
4812 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
4813 (m32r_linux_fetch_inferior_registers): Likewise.
4814 (m32r_linux_store_inferior_registers): Likewise.
4815 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
4816 (m68kbsd_store_inferior_registers): Likewise.
4817 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
4818 store_register, old_store_inferior_registers, fetch_regs, store_regs,
4819 fetch_fpregs, store_fpregs): Likewise.
4820 (m68k_linux_fetch_inferior_registers): Likewise.
4821 (m68k_linux_store_inferior_registers): Likewise.
4822 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
4823 (m88kbsd_store_inferior_registers): Likewise.
4824 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
4825 (mips64obsd_store_inferior_registers): Likewise.
4826 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
4827 (mips64_linux_regsets_store_registers): Likewise.
4828 (mips64_linux_fetch_registers): Likewise.
4829 (mips64_linux_store_registers): Likewise.
4830 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4831 (mipsnbsd_store_inferior_registers): Likewise.
4832 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
4833 (monitor_fetch_registers, monitor_store_registers): Likewise.
4834 * nto-procfs.c (procfs_fetch_registers): Likewise.
4835 (procfs_store_registers): Likewise.
4836 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
4837 fetch_register, supply_vrregset, fetch_altivec_registers,
4838 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
4839 (store_altivec_register, store_spe_register, store_register,
4840 fill_vrregset, store_altivec_registers, store_ppc_registers,
4841 ppc_linux_store_inferior_registers): Likewise.
4842 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
4843 (ppcnbsd_store_inferior_registers): Likewise.
4844 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
4845 (ppcobsd_store_registers): Likewise.
4846 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4847 * remote.c (fetch_register_using_p, process_g_packet,
4848 fetch_registers_using_g, remote_fetch_registers): Likewise.
4849 (store_register_using_P, store_registers_using_G,
4850 remote_store_registers): Likewise.
4851 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
4852 m32r_store_register, m32r_store_register): Likewise.
4853 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
4854 * remote-sim.c (gdbsim_fetch_register): Likewise.
4855 (gdbsim_store_register): Likewise.
4856 * rs6000-nat.c (fetch_register, store_register): Likewise.
4857 (rs6000_fetch_inferior_registers): Likewise.
4858 (rs6000_store_inferior_registers): Likewise.
4859 * s390-nat.c (fetch_regs, store_regs): Likewise.
4860 (fetch_fpregs, store_fpregs): Likewise.
4861 (s390_linux_fetch_inferior_registers): Likewise.
4862 (s390_linux_store_inferior_registers): Likewise.
4863 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4864 (shnbsd_store_inferior_registers): Likewise.
4865 * sol-thread.c (sol_thread_fetch_registers): Likewise.
4866 (sol_thread_store_registers): Likewise.
4867 * sparc-nat.c (fetch_inferior_registers): Likewise.
4868 (store_inferior_registers): Likewise.
4869 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4870 (spu_store_inferior_registers): Likewise.
4871 * target.c (debug_print_register): Likewise.
4872 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
4873 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
4874 (vaxbsd_store_inferior_registers): Likewise.
4875 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
4876 (win32_fetch_inferior_registers): Likewise.
4877 (win32_store_inferior_registers): Likewise.
4879 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4881 * gdbcore.h (struct regcache): Add forward declaration.
4882 (struct core_fns): Add REGCACHE argument to core_read_registers
4884 * corelow.c (get_core_register_section): Add REGCACHE argument,
4885 use it instead of current_regcache, pass it to core_read_registers
4887 (get_core_registers): Add current_regcache as parameter to
4888 get_core_register_section calls.
4890 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
4891 use it instead of current_regcache.
4892 * armnbsd-nat.c (fetch_core_registers): Likewise.
4893 (fetch_elfcore_registers): Likewise.
4894 * core-regset.c (fetch_core_registers): Likewise.
4895 * cris-tdep.c (fetch_core_registers): Likewise.
4896 * irix5-nat.c (fetch_core_registers): Likewise.
4897 * m68klinux-nat.c (fetch_core_registers): Likewise.
4898 * mips-linux-tdep.c (fetch_core_registers): Likewise.
4899 * win32-nat.c (fetch_elf_core_registers): Likewise.
4901 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4903 * gregset.h (struct regcache): Add forward declaration.
4904 (supply_gregset): Add REGCACHE parameter, make GREGS const.
4905 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
4906 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
4907 (fill_gregset): Add REGCACHE parameter.
4908 (fill_fpregset): Likewise.
4909 (fill_fpxregset): Likewise.
4911 Update all definitions accordingly:
4912 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
4913 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
4914 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
4915 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
4916 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
4917 (supply_gregset): Add REGCACHE parameter, use it instead of
4918 current_regcache. Make GREGSETP parameter const, adapt casts.
4919 (supply_fpregset): Add REGCACHE parameter, use it instead of
4920 current_regcache. Make FPREGSETP parameter const, adapt casts.
4921 (fill_gregset): Add REGCACHE parameter, use it instead of
4923 (fill_fpregset): Likewise.
4925 Update all callers to pass in current_regcache as the new argument:
4926 * core-regset.c: Include "regcache.h".
4927 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
4928 * procfs.c: Include "regcache.h".
4929 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
4930 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
4931 (procfs_do_thread_registers): Likewise.
4932 (procfs_make_note_section): Likewise.
4933 * proc-service.c: Include "regcache.h".
4934 (ps_lgetregs): Update fill_gregset call.
4935 (ps_lsetregs): Update supply_gregset call.
4936 (ps_lgetfpregs): Update fill_fpregset call.
4937 (ps_lsetfpregs): Update supply_fpregset call.
4938 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
4939 supply_fpregset calls.
4940 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
4941 (ps_lgetregs): Update fill_gregset call.
4942 (ps_lsetregs): Update supply_gregset call.
4943 (ps_lgetfpregs): Update fill_fpregset call.
4944 (ps_lsetfpregs): Update supply_fpregset call.
4946 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
4947 fill_fpregset, and fill_fpxregset calls.
4948 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
4949 (store_regs): Update fill_gregset call.
4950 (fetch_fpregs): Update supply_fpregset call.
4951 (store_fpregs): Update fill_fpregset call.
4952 (fetch_fpxregs): Update supply_fpxregset call.
4953 (store_fpxregs): Update fill_fpxregset call.
4954 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
4955 (store_regs): Update fill_gregset call.
4956 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
4957 (store_regs): Update fill_gregset call.
4958 (fetch_fpregs): Update supply_fpregset call.
4959 (store_fpregs): Update fill_fpregset call.
4960 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
4961 * s390-nat.c (fetch_regs): Update supply_gregset call.
4962 (store_regs): Update fill_gregset call.
4963 (fetch_fpregs): Update supply_fpregset call.
4964 (store_fpregs): Update fill_fpregset call.
4966 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
4969 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4971 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
4972 it instead of current_regcache.
4973 (parse_register_dump): Add REGCACHE parameter, pass it to
4974 supply_register callback.
4975 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
4976 parse_register_dump.
4977 (monitor_dump_regs): Add REGCACHE parameter, pass it to
4978 parse_register_dump and dumpregs callback.
4979 (monitor_wait): Pass current_regcache to parse_register_dump and
4981 (monitor_fetch_register): Pass current_regcache to
4982 monitor_supply_register.
4983 (monitor_fetch_registers): Pass current_regcache to
4985 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
4986 supply_register and dumpregs callbacks.
4987 (monitor_supply_register, monitor_dump_reg_block): Update
4989 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
4990 it to monitor_supply_register.
4991 * dink32-rom.c (dink32_supply_register): Likewise.
4992 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
4993 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
4994 instead of current_regcache.
4996 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4998 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
4999 Add REGCACHE parameter. Use it instead of current_regcache.
5000 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5001 i386nto_supply_gregset and i386nto_supply_fpregset.
5002 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5003 of current_regcache.
5005 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5006 nto_supply_ helper functions.
5007 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5009 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5011 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5012 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5013 and regset_fill member function pointers.
5014 (nto_dummy_supply_regset): Adapt prototype.
5016 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5018 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5019 instead of current_regcache. Make REGS const.
5020 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5021 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5023 * shnbsd-nat.c: Include "regcache.h".
5024 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5026 (shnbsd_store_inferior_registers): Pass current_regcache to
5028 * Makefile.in (shbsd-nat.o): Update dependencies.
5030 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5032 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5033 instead of current_regcache.
5034 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5035 Make GREGSETP const, remove superfluous casts.
5036 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5037 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5039 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5040 (supply_64bit_reg): Likewise
5041 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5042 Make GREGSETP const, adapt casts accordingly.
5043 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5044 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5046 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5047 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5049 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5050 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5051 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5053 * mips-linux-nat.c: Include "regcache.h".
5054 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5055 current_regcache to mips{64}_(supply|fill)_ helper routines.
5056 (mips64_linux_regsets_fetch_registers): Likewise.
5057 (mips64_linux_regsets_store_registers): Likewise.
5059 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5060 REGCACHE argument; replace current_regcache. Make REGS const.
5061 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5062 replace current_regcache.
5063 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5064 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5065 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5066 mipsnbsd_store_inferior_registers): Pass current_regcache to
5067 mipsnbsd_(supply|fill)_... helper routines.
5069 * Makefile.in (mips-linux-nat.o): Update dependencies.
5071 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5073 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5074 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5075 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5076 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5077 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5078 * i386gnu-nat.c (store_fpregs): Likewise.
5079 * i386v4-nat.c (fill_fpregset): Likewise.
5080 * go32-nat.c (store_register, go32_store_registers): Likewise.
5082 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5084 * cris-tdep.c (supply_gregset): Rename to ...
5085 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5086 instead of current_regcache.
5087 (fetch_core_registers): Update call. Pass current_regcache.
5089 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5091 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5092 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5093 Use it instead of current_regcache.
5094 (supply_fparegset): Rename to ...
5095 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5096 Use it instead of current_regcache.
5097 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5098 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5100 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5102 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5103 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5104 use it instead of current_regcache.
5105 * alpha-tdep.h (struct regcache): Add forward declaration.
5106 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5107 alpha_fill_fp_regs): Update prototypes.
5109 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5110 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5111 * alpha-linux-nat.c: Include "regcache.h".
5112 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5113 current_regcache to alpha_supply/fill_ routines.
5115 * alphabsd-tdep.c: Include "regcache.h".
5116 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5117 pass it to alpha_supply_ routines. Make REGS const.
5118 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5119 pass it to alpha_fill_ routines.
5120 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5121 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5122 alphabsd_fill_fpreg): Update prototypes.
5124 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5125 fill_fpregset, alphabsd_fetch_inferior_registers,
5126 alphabsd_store_inferior_registers): Pass current_regcache to
5127 alphabsd_supply/fill_ routines.
5129 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5132 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5134 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5135 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5136 instead of current_regcache.
5137 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5138 REGCACHE parameter, pass it to supply_ routines.
5139 (aix_thread_fetch_registers): Pass current_regcache to
5140 fetch_regs_user_thread and fetch_regs_kernel_thread.
5142 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5143 Add REGCACHE parameter, use it instead of current_regcache.
5144 Call regcache_valid_p instead of register_cached.
5145 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5146 Also, pass REGCACHE to fill_ routines.
5147 (aix_thread_store_registers): Pass current_regcache to
5148 store_regs_user_thread and store_regs_kernel_thread.
5150 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5152 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5153 pointed to by GREGSETP.
5155 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5157 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5158 of regcache_raw_read_signed.
5159 (fill_fpregset): Use regcache_raw_collect instead of
5162 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5164 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5165 point arguments, test explicitly for use of the EABI32 ABI
5166 instead of inferring this condition from tests on register
5169 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5171 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5172 prior to allocating its location.
5174 2007-05-02 Maciej W. Rozycki <macro@mips.com>
5176 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5177 based on mips_abi_regsize() whose result is known in advance.
5178 (mips_o64_push_dummy_call): Likewise.
5180 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5182 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5183 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5185 * mips-linux-nat.c: Include "gregset.h".
5186 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5187 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5188 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5189 fill_fpregset): Move to mips-linux-nat.c.
5191 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5193 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5195 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5196 (read_register): ... here.
5197 (deprecated_write_register_gen): Remove, inline ...
5198 (write_register): ... here.
5199 * regcache.h (deprecated_read_register_gen): Remove prototype.
5200 (deprecated_write_register_gen): Likewise.
5202 * remote-sim.c (gdbsim_store_register): Replace call to
5203 deprecated_read_register_gen with regcache_cooked_read.
5204 * target.c (debug_print_register): Replace calls to
5205 deprecated_read_register_gen and read_register with
5206 regcache_cooked_read.
5208 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5210 * hpux-thread.c (hpux_thread_store_registers): Use
5211 regcache_raw_collect, not regcache_raw_read.
5212 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5213 not regcache_raw_write.
5215 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5217 * gdbarch.sh: Remove deprecated_register_byte.
5218 * gdbarch.c, gdbarch.h: Regenerate.
5219 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5220 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5222 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5223 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5224 read-only register caches. Make REGCACHE parameter const.
5225 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5227 * mi/mi-main.c (old_regs): Remove.
5228 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5229 (register_changed_p): Reimplement to compare two register caches.
5230 (mi_cmd_data_list_changed_registers): Update caller.
5231 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5232 * mi/mi-interp.c (mi_interpreter_init): Do not call
5233 mi_setup_architecture_data.
5235 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5237 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5238 inline definition at the places the macros are used.
5239 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5241 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5243 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5245 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5246 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5247 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5248 (rs6000_aix_regset_from_core_section): New function.
5249 (rs6000_aix_init_osabi): Register it.
5250 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5251 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5252 * rs6000-nat.c (CoreRegs): Do not define type.
5253 (fetch_core_registers, rs6000_core_fns): Remove.
5254 (_initialize_core_rs6000): Do not register it. Rename to ...
5255 (_initialize_rs6000_nat): ... this.
5256 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5258 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5260 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5261 (dwarf2_read_address): Sign extend return address as required by
5262 target architecture.
5264 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5266 * solib-frv.c (lm_base): Bail out if the main executable has
5269 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5271 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5272 of FPCR register in fpregset.
5274 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5276 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5277 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5279 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5281 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5282 * rs6000-nat.c (rs6000_wait): New function.
5283 (_initialize_core_rs6000): Install it as to_wait target method.
5284 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5286 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5288 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5289 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5290 * rs6000-nat.c (super_create_inferior): New variable.
5291 (rs6000_create_inferior): Make static. Adapt argument list. Call
5292 original version of create_inferior via super_create_inferior.
5293 (_initialize_core_rs6000): Install to_create_inferior target method.
5295 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5297 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5298 (aix_thread_xfer_partial): ... this.
5299 (init_aix_thread_ops): Install to_xfer_partial instead
5300 of deprecated_xfer_memory target method.
5302 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5303 and inftarg.o, add inf-ptrace.o.
5304 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5305 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5306 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5307 (fetch_inferior_registers): Rename to ...
5308 (rs6000_fetch_inferior_registers): ... this. Make static.
5309 (store_inferior_registers): Rename to ...
5310 (rs6000_store_inferior_registers): ... this. Make static.
5311 (read_word, child_xfer_memory): Remove.
5312 (rs6000_xfer_partial): New function.
5313 (kernel_u_size): Remove.
5314 (_initialize_core_rs6000): Add inf_ptrace-based target.
5315 * Makefile.in (rs6000-nat.o): Update dependencies.
5317 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5319 * inf-ptrace.c: Include "gdb_stdint.h".
5320 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5321 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5322 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5323 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5324 (inf_ptrace_store_register): Likewise.
5325 * Makefile.in (inf-ptrace.o): Update dependencies.
5327 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5329 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5330 * configure.tgt (rs6000-*-*): Likewise.
5331 * config/rs6000/aix4.mh: Delete file.
5332 * config/rs6000/aix4.mt: Delete file.
5333 * config/rs6000/rs6000.mh: Delete file.
5334 * config/rs6000/rs6000.mt: Delete file.
5336 * config/powerpc/nm-aix.h: Delete file.
5337 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5339 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5341 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5342 Remove obsolete part of comment.
5343 (store_regs_user_thread): Use uint32_t temporaries when calling
5345 (store_regs_kernel_thread): Likewise. Add assertion to verify
5346 correct size of struct ptsprs members.
5347 (aix_thread_xfer_memory): Fix type of myaddr.
5348 (aix_thread_extra_thread_info): Fix compiler warning.
5349 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5350 (fetch_register, store_register): Adapt callers.
5352 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5354 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5356 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5358 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5360 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5361 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5362 (alpha_linux_regset_from_core_section): New function.
5363 (alpha_linux_init_abi): Install it.
5364 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5365 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5366 <sys/procfs.h>, and "gregset.h".
5367 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5368 Move from config/alpha/nm-linux.h.
5369 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5371 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5372 * alpha-nat.c: Remove #ifdef __linux__ section.
5373 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5374 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5375 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5376 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5377 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5378 (NATDEPFILES): Remove alpha-nat.o.
5379 * config/alpha/nm-linux.h: Delete file.
5380 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5381 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5382 (alpha-linux-tdep.o): Likewise.
5384 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5386 * mips-linux-nat.c: No longer include "gdbcore.h".
5387 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5388 (mips64_linux_register_addr): Likewise.
5389 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5390 mips64_linux_register_addr instead of register_addr.
5391 * mips-linux-tdep.c (mips_linux_register_addr,
5392 mips64_linux_register_addr): Move to mips-linux-nat.c.
5393 (register_addr): Remove.
5394 (register_addr_data, init_register_addr_data): Remove.
5395 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5396 (set_mips_linux_register_addr): Remove.
5397 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5398 * Makefile.in (mips-linux-nat.o): Update dependencies.
5400 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5402 * linux-nat.c (linux_register_u_offset): Remove.
5403 (linux_target_install_ops): New function.
5404 (linux_target): Use it.
5405 (linux_trad_target): New function.
5406 * linux-nat.h (linux_trad_target): Declare.
5408 * alpha-linux-nat.c: Include "gdbcore.h".
5409 (alpha_linux_register_u_offset): New function.
5410 (_initialize_alpha_linux_nat): Use linux_trad_target.
5412 * mips-linux-nat.c: Include "gdbcore.h".
5413 (mips_linux_register_u_offset): New function.
5414 (_initialize_mips_linux_nat): Use linux_trad_target.
5416 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5417 * config/arm/nm-linux.h: Delete file.
5419 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5420 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5422 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5423 * config/ia64/nm-linux.h: Delete file.
5425 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5426 * config/m32r/nm-linux.h: Delete file.
5428 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5429 * config/m68k/nm-linux.h: Delete file.
5431 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5432 * config/pa/nm-linux.h: Delete file.
5434 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5435 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5436 * config/powerpc/nm-linux.h: Delete file.
5438 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5439 * config/s390/nm-linux.h: Delete file.
5441 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5442 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5443 * config/sparc/nm-linux.h: Delete file.
5445 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5446 (mips-linux-nat.o): Likewise.
5448 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5450 * core-aout.c: Delete file.
5451 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5452 (core-aout.o): Delete rule.
5453 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5455 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5457 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5458 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5459 KERNEL_U_ADDR): Remove.
5461 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5462 (cannot_fetch_register, cannot_store_register): Remove.
5463 (fetch_register): Inline cannot_fetch_register and register_addr.
5464 (store_register): Inline cannot_store_register and register_addr.
5465 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5466 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5467 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5470 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5471 (fetch_register): Inline register_addr.
5472 (store_register): Inline register_addr.
5473 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5474 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5475 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5477 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5478 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5479 REGISTER_U_ADDR): Remove.
5481 * hppa-linux-nat.c (register_addr): Rename to ...
5482 (hppa_linux_register_addr): ... this. Make static.
5483 (fetch_register, store_register): Adapt callers.
5484 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5486 * ppc-linux-nat.c (kernel_u_size): Remove.
5487 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5489 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5490 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5492 * config/vax/nm-vax.h: Delete file.
5494 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5496 * MAINTAINERS (Write After Approval): Add myself.
5498 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5500 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5501 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5502 (m68k_linux_sigcontext_reg_offset): Fix typo.
5503 (target_is_uclinux): New.
5504 (m68k_linux_inferior_created): New.
5505 (m68k_linux_get_sigtramp_info): Check for uClinux or
5506 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5508 (_initialize_m68k_linux_tdep): Register
5509 m68k_linux_inferior_created.
5511 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5513 * win32-nat.c (win32_detach): Remove delete_command call.
5514 Resume inferior with win32_resume instead of win32_continue.
5516 2007-04-19 Jerome Guitton <guitton@adacore.com>
5518 * ser-mingw.c (fd_is_file): New function.
5519 (file_select_thread): New function.
5520 (ser_console_wait_handle): Add special handling for files.
5522 2007-04-18 Denis Pilat <denis.pilat@st.com>
5524 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5525 when missing from DW_TAG_subrange_type. Remove the handling of null
5526 return from die_type.
5528 2007-04-18 Maciej W. Rozycki <macro@mips.com>
5530 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5531 change to rearrange some brackets.
5532 (mips_n32n64_push_dummy_call): Likewise.
5533 (mips_o32_push_dummy_call): Likewise.
5534 (mips_o64_push_dummy_call): Likewise.
5536 2007-04-18 Denis Pilat <denis.pilat@st.com>
5538 * infcmd.c (post_create_inferior): Start with a call to
5539 target_terminal_ours.
5541 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5543 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5545 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5547 (mips_o32_push_dummy_call): Likewise.
5548 (mips_o64_push_dummy_call): Likewise.
5550 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5552 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5555 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5557 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5559 (mips_o32_push_dummy_call): Likewise.
5561 2007-04-17 Andreas Schwab <schwab@suse.de>
5563 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5564 sal to be bigger than the end of the function.
5566 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5567 Nigel Stephens <nigel@mips.com>
5569 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5570 argument alignment requirements when calculating stack space
5571 required. When aligning an arg register to eight bytes
5572 boundary, align stack_offset too. Write floating-point
5573 arguments to the appropriate integer register if need go there.
5574 (mips_o64_push_dummy_call): Likewise.
5576 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5578 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5579 "sig" arguments, add "regcache" argument.
5580 * gdbarch.c, gdbarch.h: Regenerate.
5582 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5583 (handle_inferior_event): Call remove_single_step_breakpoints directly
5584 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5586 * alpha-tdep.c (alpha_software_single_step): Update argument list.
5587 Remove handling of !insert_breakpoints_p case.
5588 * arm-tdep.c (arm_software_single_step): Likewise.
5589 * cris-tdep.c (cris_software_single_step): Likewise.
5590 * mips-tdep.c (mips_software_single_step): Likewise.
5591 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5592 * sparc-tdep.c (sparc_software_single_step): Likewise.
5593 * spu-tdep.c (spu_software_single_step): Likewise.
5595 * alpha-tdep.h (alpha_software_single_step): Update prototype.
5596 * mips-tdep.h (mips_software_single_step): Likewise.
5597 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5598 * sparc-tdep.h (sparc_software_single_step): Likewise.
5600 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5602 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5603 when removing single-step breakpoints.
5605 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
5607 * varobj.h (varobj_set_frozen): New
5608 (varobj_get_frozen): New.
5609 (varobj_update): New parameter explicit.
5610 * varobj.c (struct varobj): New fields frozen
5612 (varobj_set_frozen, varobj_get_frozen): New.
5613 (install_new_value): Don't fetch values for
5614 frozen variable object, or children thereof. Allow
5615 a frozen variable object to have non-fetched value.
5616 (varobj_update): Allow updating child variables.
5617 Don't traverse frozen children.
5618 (new_variable): Initialize the frozen field.
5619 (c_value_of_variable): Return NULL for frozen
5620 variable without any value yet.
5621 * mi/mi-cmd-var.c (varobj_update_one): New parameter
5623 (mi_cmd_var_create): Output the 'frozen' field,
5624 as soon as testsuite is adjusted to expect that field.
5625 (mi_cmd_var_set_frozen): New.
5626 (mi_cmd_var_update): Pass the 'explicit' parameter to
5628 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
5629 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
5631 2007-04-13 Paul Brook <paul@codesourcery.com>
5633 * target-descriptions.c (tdesc_named_type): Add ieee_single and
5635 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
5637 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5639 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
5640 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
5641 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
5642 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
5643 * Makefile.in: Remove references to deleted files.
5644 * README: Do not mention deleted ROM monitor interfaces.
5645 * defs.h (enum language): Delete language_scm.
5646 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
5647 (dump_subexp_body_standard): Likewise.
5648 * parse.c (operator_length_standard): Likewise.
5649 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
5650 * remote-mips.c: Do not include remote-utils.h.
5651 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
5653 * value.c: Do not include scm-lang.h.
5654 (unpack_long): Delete scm_unpack call.
5655 * config/h8300/h8300.mt, config/mips/embed.mt,
5656 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
5657 config/sh/embed.mt, config/sh/linux.mt: Remove references to
5659 * NEWS: Mention removed files.
5661 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5663 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
5664 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5666 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5668 * NEWS: Mention removal of HP aCC support.
5670 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5672 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
5673 first entry for static executables.
5674 (breakpoint_addr): Delete unused variable.
5675 (elf_locate_base): Search for _r_debug in static executables.
5676 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
5679 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5681 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
5682 (bpstat_what, print_one_breakpoint, allocate_bp_location)
5683 (mention): Remove bp_through_sigtramp support.
5684 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
5686 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5688 * breakpoint.c (bpstat_what): Give step-resume higher priority than
5691 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5693 * infrun.c: Doc fixes.
5694 (handle_inferior_event): Clarify debug message.
5695 (insert_step_resume_breakpoint_at_sal): Print a debug message.
5697 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5699 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
5701 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5703 * config/m68k/tm-monitor.h: Delete file.
5704 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
5705 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
5707 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
5708 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
5710 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
5712 * gdbarch.sh (software_single_step): Change the return type
5713 from void to int and reformatted some comments to <= 80
5715 * gdbarch.c, gdbarch.h: Regenerated.
5716 * alpha-tdep.c (alpha_software_single_step): Likewise.
5717 * alpha-tdep.h (alpha_software_single_step): Likewise.
5718 * arm-tdep.c (arm_software_single_step): Likewise.
5719 * cris-tdep.c (cris_software_single_step): Likewise.
5720 * mips-tdep.c (mips_software_single_step): Likewise.
5721 * mips-tdep.h (mips_software_single_step): Likewise.
5722 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5723 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5724 * sparc-tdep.c (sparc_software_single_step): Likewise.
5725 * sparc-tdep.h (sparc_software_single_step): Likewise.
5726 * spu-tdep.c (spu_software_single_step): Likewise.
5727 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
5728 and act accordingly.
5730 2007-04-11 Steve Ellcey <sje@cup.hp.com>
5732 * configure.ac (build_warnings): Add -Wno-char-subscripts.
5733 * configure: Regenerate.
5734 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
5736 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5738 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
5740 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5742 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
5744 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
5745 distinct on the TYPE_STUB_SUPPORTED debug targets.
5746 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
5748 2007-04-11 Joel Brobecker <brobecker@adacore.com>
5750 * sparc-tdep.c (X_RS2): New macro.
5751 (sparc_skip_stack_check): New function.
5752 (sparc_analyze_prologue): Adjust PC past stack probing
5753 sequence if necessary.
5755 2007-04-10 Andreas Schwab <schwab@suse.de>
5757 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
5760 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5762 * breakpoint.c (gdb_breakpoint_query): Really return an
5764 (gdb_breakpoint): Likewise.
5765 * thread.c (gdb_list_thread_ids): Likewise.
5766 (gdb_thread_select): Likewise.
5767 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
5768 (mi_cmd_thread_list_ids): Remove bogus initialization.
5770 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5772 * Makefile.in (SFILES): Remove hpacc-abi.c.
5773 (COMMON_OBS): Remove hpacc-abi.o.
5774 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
5775 (hpacc-abi.o, hpread.o): Delete rules.
5776 * somread.c: Delete extern declarations from hpread.c.
5777 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
5778 (som_symfile_finish): Do not call hpread_symfile_finish.
5779 (som_symfile_init): Do not call hpread_symfile_init.
5780 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
5781 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
5782 * hpacc-abi.c, hpread.c: Deleted.
5784 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5786 * solib-svr4.c (enable_break): Simplify return value.
5787 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
5789 2007-04-10 Andreas Schwab <schwab@suse.de>
5791 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
5792 l_ld_size, l_next_size, l_prev_size, l_name_size.
5794 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
5795 to extract addresses from link map.
5796 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
5797 (LM_NEXT): Likewise.
5798 (LM_NAME): Likewise.
5799 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
5800 (elf_locate_base): Likewise.
5801 (open_symbol_file_object): Likewise.
5802 (svr4_fetch_objfile_link_map): Likewise.
5803 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
5804 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
5806 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
5807 (svr4_lp64_fetch_link_map_offsets): Likewise.
5809 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
5810 removed members. Set l_ld_offset to -1 if not present.
5812 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
5814 Pass stderr of program run with "target remote |"
5816 * serial.c (serial_open): Set error_fd to -1.
5817 * serial.h (struct serial): New field error_fd.
5818 (struct serial_opts): New field avail.
5819 * ser-pipe.c (pipe_open): Create another pair
5820 of sockets. Pass stderr to gdb.
5821 * ser-mingw.c (pipe_windows_open): Pass
5822 PEX_STDERR_TO_PIPE to pex_run. Initialize
5825 (_initialize_ser_windows): Hook pipe_avail.
5826 * ser-base.c (generic_readchar): Check if there's
5827 anything in stderr channel and route that to gdb_stderr.
5829 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
5831 * dbxread.c (read_ofile_symtab): Move current_objfile
5832 clearing to after end_stabs.
5834 2007-04-01 Andreas Schwab <schwab@suse.de>
5836 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
5837 gdbarch instead of current_gdbarch.
5839 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
5841 * varobj.c (varobj_create): Keep varobj value
5842 NULL when evaluating the type.
5844 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
5846 * NEWS: Mention new Windows CE support.
5848 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
5850 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
5851 the obsoletion stanza.
5852 * NEWS: Mention deleted targets.
5854 * config/sh/tm-wince.h: Remove.
5855 * config/sh/wince.mt: Remove.
5856 * config/mips/tm-wince.h: Remove.
5857 * config/mips/wince.mt: Remove.
5860 * wince-stub.c: Remove.
5861 * wince-stub.h: Remove.
5862 * Makefile.in (wince.o): Remove rule.
5863 (wince-stub.o): Likewise.
5865 * mips-tdep.c (mips_next_pc): Make static.
5866 * mips-tdep.h (mips_next_pc): Remove declaration.
5867 * arm-tdep.c (arm_pc_is_thumb): Make static.
5868 (thumb_get_next_pc): Likewise.
5869 (arm_get_next_pc): Likewise.
5870 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
5871 (arm_pc_is_thumb): Likewise.
5872 (thumb_get_next_pc): Likewise.
5873 (arm_get_next_pc): Likewise.
5875 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5877 * MAINTAINERS: Remove d10v entry.
5878 * Makefile.in (SFILES): Remove dwarfread.c.
5879 (COMMON_OBS): Remove dwarfread.o.
5880 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
5881 (remote-est.o, rom68k-rom.o): Delete.
5882 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
5883 target est, target rom68k, and DWARF 1.
5884 * configure.tgt: Mark d10v as removed.
5885 * dwarf2read.c: Doc update.
5886 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
5888 (elf_locate_sections): Do not set them.
5889 (elf_symfile_read): Do not call dwarf_build_psymtabs.
5890 * symfile.h (dwarf_build_psymtabs): Delete prototype.
5891 * config/m68k/monitor.mt (TDEPFILES): Prune.
5892 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
5893 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
5895 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5897 * doublest.c (convert_floatformat_to_doublest): Use
5898 floatformat_classify.
5899 (floatformat_is_nan): Rename to...
5900 (floatformat_classify): ...this. Return more information.
5901 * doublest.h (enum float_kind): New.
5902 (floatformat_is_nan): Replace prototype...
5903 (floatformat_classify): ...with this one.
5904 * valprint.c (print_floating): Use floatformat_classify. Handle
5907 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5909 * README: Mention ISO C library requirement.
5911 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5913 * Makefile.in (SFILES): Remove nlmread.c.
5914 (COMMON_OBS): Remove nlmread.o.
5915 (nlmread.o): Delete rule.
5916 * README: Delete reference to remote-st.c.
5917 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
5918 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
5920 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
5921 (_initialize_i386_tdep): Do not reference them.
5922 * nlmread.c: Delete file.
5923 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
5924 * target.c: Doc update.
5925 * thread.c: Delete commented include.
5926 * config/alpha/tm-alpha.h: Doc update.
5928 2007-03-30 Chris Dearman <chris@mips.com>
5930 * utils.c (string_to_core_addr): Comment typo.
5932 2007-03-30 Chris Dearman <chris@mips.com>
5934 * mips-tdep.c: Comment typo.
5936 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
5938 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
5939 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5940 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5941 * config/powerpc/nm-ppc64-linux.h: Remove file.
5942 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
5943 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
5944 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
5945 * infptrace.c (call_ptrace): Likewise.
5946 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
5947 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
5948 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
5949 (store_register): Likewise.
5951 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5953 * Makefile.in (varobj.o): Add missing dependency.
5955 2007-03-29 Michael Snyder <msnyder@access-company.com>
5957 * MAINTAINERS: Update my email address.
5959 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5961 Add support for exception handling with multiple versions of
5963 * ada-lang.c: Update general comments on how Ada exception catchpoints
5965 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
5966 (__gnat_raise_nodefer_with_msg): Delete.
5967 (ada_unhandled_exception_name_addr_ftype): New type.
5968 (exception_support_info): New type.
5969 (ada_unhandled_exception_name_addr): Add forward declaration.
5970 (ada_unhandled_exception_name_addr_from_raise): Likewise.
5971 (default_exception_support_info): New constant.
5972 (exception_support_info_fallback): Likewise.
5973 (exception_info): New global variable.
5974 (ada_exception_support_info_sniffer): New function.
5975 (ada_executable_changed_observer): Likewise.
5976 (ada_unhandled_exception_name_addr_from_raise): Renamed from
5977 ada_unhandled_exception_name_addr.
5978 (ada_unhandled_exception_name_addr): Reimplement to match the
5979 latest Ada runtime implementation.
5980 (error_breakpoint_runtime_sym_not_found): Delete.
5981 (ada_exception_sym_name): Get the exception sym name from
5982 exception_info rather than hardcoding it.
5983 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
5984 Update error handling.
5985 * Makefile.in (ada-lang.o): Add dependency on observer.h.
5987 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
5989 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
5990 (remote-st.o, uw-thread.o): Delete.
5991 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
5992 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5993 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
5994 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
5995 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
5996 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
5997 rs6000-*-lynxos* to an obsoletion stanza.
5998 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5999 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6000 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6001 i[34567]86-*-netware*.
6002 * NEWS: Mention deleted targets.
6004 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6005 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6006 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6007 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6008 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6009 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6010 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6011 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6012 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6013 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6014 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6015 config/rs6000/tm-rs6000ly.h: Delete files.
6017 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6019 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6020 * interps.c (clear_interpreter_hooks): Do not clear
6021 deprecated_registers_changed_hook.
6022 * regcache.c (registers_changed): Do not call it.
6023 * top.c (deprecated_registers_changed_hook): Do not define it.
6024 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6025 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6026 (tui_remove_hooks): Do not remove it.
6027 (tui_selected_frame_level_changed_hook): Check for negative level.
6028 Use get_selected_frame.
6029 (tui_registers_changed_hook): Deleted.
6031 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6033 * stabsread.c (add_undefined_type): Add extra parameter.
6034 Now handles nameless types separately.
6035 (struct nat): New type.
6036 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6037 New static variables.
6038 (read_type): Update calls to add_undefined_type.
6039 (add_undefined_type_noname): New function.
6040 (add_undefined_type_1): Renames from add_undefined_type.
6041 (cleanup_undefined_types_noname): New function.
6042 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6043 (cleanup_undefined_types): New handles nameless types separately.
6044 (_initialize_stabsread): Initialize our new static constants.
6046 2007-03-29 Denis Pilat <denis.pilat@st.com>
6048 * configure.ac: Test for signal.h.
6049 * configure, config.in: Regenerate.
6051 2007-03-29 Denis Pilat <denis.pilat@st.com>
6053 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6054 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6056 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6058 * arm-wince-tdep.c: New.
6059 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6060 (MT_CFLAGS): Delete.
6062 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6063 solib-legacy.o, solib-svr4.o, and remove wince.o.
6064 * configure.tgt (arm*-*-mingw32ce*): Add.
6065 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6066 (do_target_signal_to_host): Silence 'not used' warning.
6067 * config/arm/tm-wince.h: Remove.
6069 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6071 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6072 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6074 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6075 * config/ia64/tm-linux.h: Remove file.
6076 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6077 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6078 legacy_pc_in_sigtramp.
6079 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6080 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6081 Remove func_name argument.
6082 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6084 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6085 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6086 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6087 (HAVE_STEPPABLE_WATCHPOINT): Define.
6089 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6090 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6091 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6092 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6093 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6094 target_insert_watchpoint, target_remove_watchpoint): Remove.
6095 (FETCH_INFERIOR_REGISTERS): Define.
6096 * ia64-linux-nat.c (ia64_register_addr): Make static.
6097 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6098 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6099 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6100 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6101 (ia64_linux_stopped_by_watchpoint): Make static.
6102 (ia64_linux_can_use_hw_breakpoint): New function.
6103 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6104 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6105 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6107 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6109 * linespec.c: Include language.h.
6110 (find_methods): Add language parameter. Call
6111 lookup_symbol_in_language. Pass language down.
6112 (add_matching_methods): Likewise. Call
6113 lookup_symbol_in_language.
6114 (add_constructors): Likewise.
6115 (find_method): Pass sym_class to collect_methods.
6116 (collect_methods): Add sym_class parameter. Pass language
6118 * symtab.c (lookup_symbol): Rename to ...
6119 (lookup_symbol_in_language): ... this. Add language
6120 parameter. Use passed language instead of current_language.
6121 (lookup_symbol): New as wrapper around
6122 lookup_symbol_in_language.
6123 (lookup_symbol_aux): Add language parameter. Use passed
6124 language instead of current_language.
6125 (search_symbols): Indent.
6126 * symtab.h (enum language): Forward declare.
6127 (lookup_symbol_in_language): Declare.
6128 (lookup_symbol): Update description.
6129 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6130 * ada-lang.c (restore_language): Remove.
6131 (lookup_symbol_in_language): Remove.
6133 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6135 * breakpoint.c (bpstat_num): Add int *num parameter.
6136 * breakpoint.h (bpstat_num): Likewise.
6137 * infcmd.c (continue_command): Adjust to new bpstat_num
6139 (program_info): Likewise.
6141 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6143 * config/sh/tm-sh.h: Remove file.
6144 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6145 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6146 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6147 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6149 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6151 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6152 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6153 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6154 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6155 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6156 sequence if target_shortname is "remote".
6158 2007-03-27 Anton Blanchard <anton@samba.org>
6160 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6161 instead of wordsize when looking for the LR in a stack frame.
6163 2007-03-27 Andreas Schwab <schwab@suse.de>
6164 Daniel Jacobowitz <dan@codesourcery.com>
6166 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6167 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6168 argument. Update all callers.
6169 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6170 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6171 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6172 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6173 (dwarf2_frame_set_adjust_regnum): ...this.
6174 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6175 * rs6000-tdep.c: Include "dwarf2-frame.h".
6176 (rs6000_adjust_frame_regnum): Define.
6177 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6178 Register rs6000_adjust_frame_regnum.
6180 * Makefile.in (rs6000-tdep.o): Update dependencies.
6182 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6184 * Makefile.in: Add support for a "pdf" target.
6186 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6188 * amd64-tdep.c (amd64_init_frame_cache): New function.
6189 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6191 2007-03-26 Nigel Stephens <nigel@mips.com>
6192 Maciej W. Rozycki <macro@mips.com>
6194 * ui-out.c (ui_out_field_core_addr): Truncate address to
6195 TARGET_ADDR_BIT size before printing.
6197 2007-03-22 Nigel Stephens <nigel@mips.com>
6198 Maciej W. Rozycki <macro@mips.com>
6200 * remote-mips.c (mips_xfer_memory): Update prototype.
6202 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6204 * symfile.h: #include "symtab.h"
6206 2007-03-22 Denis Pilat <denis.pilat@st.com>
6208 * utils.c (pagination_on_command, pagination_off_command):
6209 Remove useless prototypes.
6211 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6214 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6215 instead of TYPE_NAME for object base class name.
6218 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6220 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6221 Specify frame type in calls to frame_func_unwind().
6223 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6225 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6226 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6227 (refine_prologue_limit): Delete.
6228 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6229 Assume lim_pc is set. Correct check for incomplete prologues.
6230 Do not skip clobbers of the frame pointer.
6231 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6234 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6236 * frame.c (frame_pop): Check to see whether there's a frame to
6237 which we can pop first.
6239 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6241 * MAINTAINERS (Write After Approval): Add myself.
6243 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6245 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6246 (handle_inferior_event): Remove unnecessary braces.
6247 * breakpoint.c (bpstat_what): Remove wrong comment.
6249 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6251 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6252 (spu_gdbarch_init): Install it.
6254 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6256 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6257 object types, not 0.
6259 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6261 * spu-tdep.c (spu_frame_align): New function.
6262 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6264 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6266 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6267 (spu_software_single_step): Likewise.
6268 (spu_read_pc, spu_write_pc): New functions.
6269 (spu_gdbarch_init): Install them.
6271 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6273 * cli/cli-dump.c (struct callback_data): load_offset needs to
6274 have signed long type.
6276 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6278 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6279 Revert the previous change that had some unexpected side-effects
6281 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6282 function to get the address of the calling instruction.
6284 2007-03-07 Denis Pilat <denis.pilat@st.com>
6286 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6287 get_selected_frame by deprecated_safe_get_selected_frame.
6289 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6291 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6292 "gdb_string.h". Don't include "nbsd-tdep.h".
6293 (SIZEOF_STRUCT_REG): Remove.
6294 (SHNBSD_SIZEOF_GREGS): New.
6295 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6296 (shnbsd_regset_from_core_section): New functions.
6297 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6298 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6299 shnbsd_supply_gregset, shnbsd_collect_gregset.
6300 (shnbsd_gregset): New variable.
6301 (shnbsd_init_abi): Set regset_from_core_section.
6302 (GDB_OSABI_NETBSD_CORE): New define.
6303 (shnbsd_core_osabi_sniffer): New function.
6304 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6305 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6306 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6308 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6310 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6312 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6313 length of the types referenced by the new type CV ring.
6315 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6317 * frame.c (frame_pop, frame_observer_target_changed): Call
6319 (flush_cached_frames): Rename to reinit_frame_cache and delete
6321 * frame.h (flush_cached_frames): Delete prototype and update comment.
6323 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6324 reinit_frame_cache instead of flush_cached_frames. Do not call
6325 select_frame after reinit_frame_cache.
6326 * corelow.c (core_open): Likewise.
6327 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6328 * infrun.c (prepare_to_proceed, context_switch)
6329 (handle_inferior_event): Likewise.
6330 * linux-fork.c (fork_load_infrun_state): Likewise.
6331 * ocd.c (ocd_start_remote): Likewise.
6332 * remote-e7000.c (e7000_start_remote): Likewise.
6333 * remote-mips.c (device): Likewise.
6334 * thread.c (switch_to_thread): Likewise.
6335 * tracepoint.c (finish_tfind_command): Likewise.
6336 * gdbarch.c: Regenerated.
6338 2007-02-28 Jerome Guitton <guitton@adacore.com>
6339 Joel Brobecker <brobecker@adacore.com>
6341 * gdbtypes.c (check_typedef): Do not replace stub type if
6342 the resolved type is not defined in the same objfile.
6344 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6346 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6348 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6350 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6351 symbol for Ada units when the symbol is defined using 't' rather
6352 than 'Tt' as symbol descriptor.
6354 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6356 * config/mips/tm-nbsd.h: Delete file.
6357 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6358 * config/sh/tm-nbsd.h: Delete file.
6359 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6361 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6363 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6364 unused WRONG_PARAM value since it was recently deleted.
6366 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6368 * varobj.c (varobj_update): Free temporary vectors.
6370 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6372 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6373 * config/powerpc/tm-linux.h: Delete file.
6374 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6375 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6376 (TEXT_SEGMENT_BASE): Do not redefine.
6377 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6378 from config/rs6000/tm-rs6000.h.
6379 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6380 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6381 (TEXT_SEGMENT_BASE): Remove.
6382 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6383 (rs6000_in_solib_return_trampoline): Remove.
6384 (SKIP_TRAMPOLINE_CODE): Remove.
6385 (rs6000_skip_trampoline_code): Remove.
6386 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6387 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6388 (FP0_REGNUM): Remove.
6389 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6390 (rs6000_set_host_arch_hook): Remove.
6391 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6392 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6393 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6394 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6395 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6396 * rs6000-nat.c: Include "rs6000-tdep.h".
6397 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6398 (set_host_arch): Rename to ...
6399 (rs6000_create_inferior): ... this. Make public.
6400 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6401 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6402 (rs6000_create_inferior): Remove.
6403 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6404 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6405 set_gdbarch_in_solib_return_trampoline, and
6406 set_gdbarch_skip_trampoline_code.
6407 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6408 from config/rs6000/tm-rs6000.h.
6410 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6412 * buildsym.c (record_producer): Do nothing if no producer is provided.
6414 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6416 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6417 to check changelist is non-NULL. Call error if the frontend tries
6418 to update a non-root variable.
6420 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6422 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6424 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6425 (dwarf2_frame_sniffer): Update.
6426 (dwarf2_signal_frame_this_id): New function.
6427 (dwarf2_signal_frame_unwind): Use it.
6428 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6429 * frame.c (frame_func_unwind): Add this_type argument.
6430 (get_frame_func): Update.
6431 (frame_unwind_address_in_block): Add this_type argument and check it.
6433 (get_frame_address_in_block): Update.
6434 * frame.h (enum frame_type): Move higher in the file.
6435 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6438 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6439 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6440 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6441 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6442 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6443 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6444 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6445 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6446 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6447 frame_func_unwind and frame_unwind_address_in_block to specify
6448 the frame type. Use frame_unwind_address_in_block instead of
6449 frame_pc_unwind in sniffers.
6451 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6453 * frame.c (deprecated_selected_frame): Rename to...
6454 (selected_frame): ...this. Make static.
6455 (get_selected_frame, select_frame): Update.
6456 * frame.h (deprected_select_frame): Delete.
6457 (deprecated_safe_get_selected_frame): Update comments.
6459 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6460 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6461 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6462 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6463 tui/tui.c: Replace references to deprecated_selected_frame.
6465 2007-02-27 Fred Fish <fnf@specifix.com>
6467 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6468 directly decrement the stack pointer, accumulate their operand into
6469 the stack offset, and mark the function as not being frameless.
6471 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6473 * arch-utils.c (selected_byte_order): New.
6474 * arch-utils.h (selected_byte_order): New prototype.
6475 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6477 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6479 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6480 (default_symfile_offsets): Check VMA here. Update section VMAs.
6482 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6484 * remote.c (init_remote_state): Add special handling for placeholder
6487 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6489 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6490 (filenames_h): New variable.
6491 (clean): Clean up xml-builtin.c and stamp-xml.
6492 (arm-linux-nat.o): Update.
6493 * config/arm/linux.mh (TDEP_XML): Define.
6494 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6495 (arm_linux_has_wmmx_registers): New.
6496 (GET_THREAD_ID): Fix typo.
6497 (IWMMXT_REGS_SIZE): Define.
6498 (fetch_wmmx_regs, store_wmmx_regs): New.
6499 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6500 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6501 (super_xfer_partial, arm_linux_xfer_partial): New.
6502 (_initialize_arm_linux_nat): Use them.
6503 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6504 (xml_builtin_xfer_partial): New function.
6505 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6506 * NEWS: Update mention of iWMMXt support.
6508 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6510 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6511 if there are no FPA registers.
6512 (arm_dwarf_reg_to_regnum): New function.
6513 (arm_register_type, arm_register_name): Return minimal values for
6514 unsupported registers.
6515 (arm_register_sim_regno): Handle iWMMXt registers.
6516 (arm_gdbarch_init): Record missing FPA registers if indicated by
6517 a target description. Recognize iWMMXt registers. Only register
6518 "info float" for FPA. Use ARM_NUM_REGS. Register
6519 arm_dwarf_reg_to_regnum.
6520 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6522 (struct gdbarch_tdep): Add have_fpa_registers.
6523 * features/xscale-iwmmxt.xml: Update capitalization.
6524 * regformats/arm-with-iwmmxt.dat: Regenerated.
6526 2007-02-24 Kevin Buettner <kevinb@redhat.com>
6528 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6530 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6532 * MAINTAINERS (mep): New target.
6534 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6536 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6538 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6539 (mep-tdep.o): New rule.
6540 * configure.tgt (mep-*-*): New target.
6541 * mep-tdep.c: New file.
6542 * config/mep/mep.mt: New file.
6544 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6546 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6547 BREAKPOINT_HIT and STOP_UNKNOWN.
6549 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6551 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6553 2007-02-20 Joel Brobecker <brobecker@adacore.com>
6555 * gdb_expat.h (XMLCALL): Define if not already defined.
6557 2007-02-20 Andreas Schwab <schwab@suse.de>
6559 * Makefile.in (symfile.o): Update dependencies.
6561 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6563 * MAINTAINERS: Disable -Werror for cris simulator. Build
6564 sparc64-solaris2.10 instead of the broken sparc-elf.
6565 * solib-frv.c: Include "solib.h".
6566 * Makefile.in (solib-frv.o): Update.
6567 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6568 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6569 (xtensa_frame_this_id, xtensa_frame_prev_register)
6570 (xtensa_push_dummy_call): Use %p.
6572 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6574 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6575 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6576 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6577 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6578 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6579 (sparc-linux-tdep.o): Update.
6581 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
6583 * xtensa-tdep.h (xtensa_reg_mask_t): New.
6584 (xtensa_mask_t): Change mask field to be a separate array.
6585 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6586 (xtensa_pseudo_register_write, xtensa_unwind_pc)
6587 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6588 (xtensa_breakpoint_from_pc): Remove implicit type casting.
6589 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6590 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6591 (mask14, mask15): Rename to
6592 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6593 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6594 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6595 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6596 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6597 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6598 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6599 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6600 (xtensa_submask14, xtensa_submask15): New.
6601 (rmap): Follow strict aliasing rules doing static initialization.
6603 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
6605 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6606 handling from here...
6607 (tdesc_register_type): ...to here.
6608 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6609 * features/arm-core.xml: Use code_ptr and data_ptr.
6611 2007-02-13 Denis Pilat <denis.pilat@st.com>
6613 * varobj.h (enum varobj_update_error): New enum.
6614 * varobj.c (struct varobj_root): Add is_valid member.
6615 (varobj_get_type): Check for invalid varobj.
6616 (varobj_get_attributes): Likewise.
6617 (variable_editable):Likewise.
6618 (varobj_update): Likewise. Use varobj_update_error.
6619 (new_root_variable): Set root varobj as valid by default.
6620 (varobj_invalidate): New function.
6621 * symfile.c (clear_symtab_users): Use varobj_invalidate.
6622 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
6623 Use varobj_update_error.
6625 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
6628 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
6629 Pascal language marker.
6630 * dwarf2read.c (set_cu_language): Likewise.
6632 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
6634 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
6635 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
6636 instead of target_terminal_init since inferior_ptid isn't set yet.
6638 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
6640 * MAINTAINERS (Write After Approval): Add myself.
6642 2007-02-09 Fred Fish <fnf@specifix.com>
6644 Based on work by Apple Computer, Inc.
6645 * event-top.c (async_request_quit): Call quit() whenever either
6646 quit_flag is set or immediate_quit is set.
6648 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6650 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
6651 type to a pointer to const struct block.
6652 (ada_lookup_symbol_list): Don't cast away constness when calling
6653 remove_out_of_scope_renamings.
6655 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6657 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
6658 address of 'filename'; it is always non null.
6660 2007-02-09 Joel Brobecker <brobecker@adacore.com>
6662 * exec.c (add_to_section_table): Do not discard empty sections.
6664 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6666 * features/Makefile, features/arm-with-iwmmxt.xml,
6667 features/gdbserver-regs.xsl, features/number-regs.xsl,
6668 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
6669 * regformats/arm-with-iwmmxt.dat: Generate.
6670 * NEWS: Mention iWMMXt.
6672 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6674 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
6675 (xml-tdesc.o): Update.
6676 * xml-support.c: Add a comment.
6677 (gdb_xml_enums_boolean): New variable.
6678 (gdb_xml_parse_attr_enum): Use strcasecmp.
6679 * xml-support.h (gdb_xml_enums_boolean): Declare.
6680 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
6681 next_regnum, and current_union.
6682 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
6683 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
6684 (field_attributes, union_children, reg_attributes, union_attributes)
6685 (vector_attributes, feature_attributes, feature_children): New.
6686 (target_children): Make static. Add <feature>.
6687 (tdesc_elements): Make static.
6688 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
6689 (struct tdesc_feature, tdesc_feature_p): New types.
6690 (struct target_desc): Add features member.
6691 (struct tdesc_arch_data, tdesc_data): New.
6692 (target_find_description): Clarify error message. Warn about
6693 ignored register descriptions.
6694 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6695 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
6696 (tdesc_data_cleanup, tdesc_numbered_register)
6697 (tdesc_numbered_register_choices, tdesc_find_register)
6698 (tdesc_register_name, tdesc_register_type)
6699 (tdesc_remote_register_number, tdesc_register_reggroup_p)
6700 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
6701 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
6702 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
6703 (tdesc_create_feature, tdesc_record_type): New.
6704 (free_target_description): Free features.
6705 (_initialize_target_descriptions): Initialize tdesc_data.
6706 * arch-utils.c (default_remote_register_number): New.
6707 * arch-utils.h (default_remote_register_number): New prototype.
6708 * target-descriptions.h (set_tdesc_pseudo_register_name)
6709 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
6710 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
6711 (tdesc_numbered_register, tdesc_numbered_register_choices)
6712 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6713 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
6714 (tdesc_create_reg): Declare.
6715 * gdbarch.sh (remote_register_number): New entry.
6716 * gdbarch.c, gdbarch.h: Regenerate.
6717 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
6718 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
6720 * arm-tdep.c (arm_register_aliases): New.
6721 (arm_register_name_strings): Rename to...
6722 (arm_register_names): ...this. Make const. Delete the old version.
6723 (current_option, arm_register_byte): Delete.
6724 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
6725 (value_of_arm_user_reg): New.
6726 (arm_gdbarch_init): Verify any described registers. Call
6727 tdesc_use_registers. Don't use arm_register_byte. Create aliases
6728 for standard register names.
6729 (_initialize_arm_tdep): Do not adjust arm_register_names.
6730 * user-regs.c (struct user_reg): Add baton member.
6731 (append_user_reg, user_reg_add_builtin, user_regs_init)
6732 (user_reg_add, value_of_user_reg): Use a baton for user
6734 * std-regs.c: Update.
6735 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
6736 (user_reg_add): Add baton argument.
6737 * NEWS: Mention target description register support.
6738 * features/arm-core.xml, features/arm-fpa.xml: New.
6739 * eval.c (evaluate_subexp_standard): Allow ptype $register
6740 when the program is not running.
6742 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
6744 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
6746 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6748 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
6749 info->disassembler_options to "any".
6751 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6753 * varobj.c (install_new_value): Only call value_get_print_value
6756 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6758 Reported by timeless@gmail.com:
6759 * gdb/target.c (target_flash_erase): Do not return void value.
6760 (target_flash_done): Likewise.
6761 * gdb/cli/cli-cmds.c (source_command): Likewise.
6763 2007-02-08 Fred Fish <fnf@specifix.com>
6765 Based on work by Apple Computer, Inc.
6766 * event-top.c (handle_sigint): Set quit_flag.
6767 (async_request_quit): Don't set quit_flag. Avoid calling quit()
6768 if quit_flag has already been reset.
6770 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6772 * ser-mingw.c (pipe_windows_close): Move variable initialization back
6775 2007-02-08 Fred Fish <fnf@specifix.com>
6777 * defs.h (request_quit): Remove declaration.
6778 * utils.c (request_quit): Remove definition.
6780 2007-02-08 Joel Brobecker <brobecker@gnat.com>
6781 Jan Kratochvil <jan.kratochvil@redhat.com>
6782 Daniel Jacobowitz <dan@codesourcery.com>
6784 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
6785 (skip_prologue): Allow bl->blrl used by PIC code.
6787 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6788 Daniel Jacobowitz <dan@codesourcery.com>
6790 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
6791 initialize tmp_obstack.
6792 * p-valprint.c (pascal_object_print_value_fields)
6793 (pascal_object_print_value): Likewise.
6795 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6797 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
6799 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6801 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6802 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
6804 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6806 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
6808 (tdesc_parse_xml): Cache expanded descriptions.
6810 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6812 * Makefile.in (XMLFILES): New.
6813 (COMMON_OBS): Add xml-builtin.o.
6814 (xml-builtin.c, stamp-xml): New rules.
6815 (xml-tdesc.o): Update.
6816 * features/feature_to_c.sh: New file.
6817 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
6818 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
6819 (gdb_xml_start_element): Initialize scope after possibly reallocating
6820 scopes. Move cleanup later. Handle the XInclude description
6822 (gdb_xml_end_element): Only parse the body if there is a current element.
6823 Call XML_DefaultCurrent if there is no element.
6824 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
6825 (struct xinclude_parsing_data, xinclude_start_include)
6826 (xinclude_end_include, xml_xinclude_default)
6827 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
6828 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
6829 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
6830 * xml-support.h (xml_fetch_another, xml_process_xincludes)
6831 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
6832 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
6833 XInclude directives. Use the compiled in DTD.
6834 (fetch_xml_from_file): Add baton argument. Treat it as a containing
6835 directory name. Do not warn here.
6836 (file_read_description_xml): Update call. Warn here instead. Pass
6838 (fetch_available_features_from_target): New.
6839 (target_read_description_xml): Use it.
6840 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
6842 * features/xinclude.dtd: New file.
6844 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6846 * linux-thread-db.c (check_for_thread_db): Return early if we have
6847 no libthread_db support.
6849 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6851 * mi/mi-parse.h: Include <sys/time.h>.
6853 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
6855 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
6856 instead of print_variable_value to print values.
6858 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6860 * mi/mi-main.c: Numerous formatting changes.
6861 (mi_cmd_data_write_register_values): Replace clause inadvertantly
6862 removed in my previous change.
6864 2007-02-03 Eli Zaretskii <eliz@gnu.org>
6866 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
6867 Use 1000000L instead of 1000000.
6869 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6871 Based on work by Apple Computer, Inc.
6873 * configure.ac: Test for sys/resource.h and getrusage.
6874 * configure, config.in: Regenerate.
6876 * mi/mi-main.c: Include <sys/resource.h> if present.
6877 (rusage): Declare if HAVE_GETRUSAGE.
6878 (current_command_ts, do_timings): New static variables.
6879 (timestamp, print_diff_now, print_diff, timeval_diff):
6880 New static timing functions.
6881 (mi_cmd_enable_timings): New function for new MI command.
6882 (captured_mi_execute_command, mi_execute_async_cli_command):
6883 Call timing functions.
6885 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
6888 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
6890 * mi/mi-parse.h: (mi_timestamp): New structure.
6891 (mi_parse): Add mi_timestamp* member.
6893 2007-02-02 Denis Pilat <denis.pilat@st.com>
6895 * thread.c (make_cleanup_restore_current_thread): New function.
6896 (info_threads_command): Use of make_cleanup_restore_current_thread
6897 to restore the current thread and the selected frame.
6898 (restore_selected_frame): New function.
6899 (struct current_thread_cleanup): Add frame_id field.
6900 (do_restore_current_thread_cleanup): Add restoring of the selected
6902 (make_cleanup_restore_current_thread): Likewise.
6903 (thread_apply_all_command): backup the selected frame while
6904 entering the function and restore it at exit.
6905 (thread_apply_command): Likewise.
6907 2007-02-02 Denis Pilat <denis.pilat@st.com>
6909 * MAINTAINERS (Write After Approval): Add myself to the list.
6911 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6913 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
6914 (m32r_store_register): Ditto.
6916 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
6918 * ser-mingw.c (pipe_windows_open)
6919 (pipe_windows_read, pipe_windows_write): Declare
6920 variables at the top of the function.
6922 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6924 * doublest.c (floatformat_from_length): Use the right element from
6925 gdbarch floatformats.
6926 (floatformat_from_type, extract_typed_floating)
6927 (store_typed_floating): Likewise.
6928 * doublest.h: Remove declarations for undefined floatformat arrays.
6929 * gdbarch.sh (float_format, double_format, long_double_format): Change
6931 (pformat): Update for pairs.
6932 * gdbarch.c, gdbarch.h: Regenerated.
6933 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
6934 (floatformats_ieee_double_littlebyte_bigword)
6935 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
6936 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
6937 (floatformats_vax_d): New variables.
6938 (builtin_type_ieee_single, builtin_type_ieee_double)
6939 (builtin_type_arm_ext, builtin_type_ia64_spill)
6940 (builtin_type_ia64_quad): Replace arrays with individual types.
6941 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
6942 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
6943 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
6944 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
6945 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
6946 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
6947 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
6948 unused and endian-specific types.
6949 (recursive_dump_type): Update for floatformat pairs.
6950 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
6951 (build_gdbtypes): Use build_flt.
6952 (_initialize_gdbtypes): Update set of initialized types.
6953 * gdbtypes.h: Update declarations to match gdbtypes.c.
6954 (struct main_type): Store a pointer to two floatformats.
6955 * arch-utils.c (default_float_format, default_double_format): Delete.
6956 * arch-utils.h (default_float_format, default_double_format): Delete.
6958 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6959 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
6960 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
6961 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
6962 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
6964 2007-01-29 Joel Brobecker <brobecker@adacore.com>
6966 * target.c (maintenance_print_target_stack): New function.
6967 (initialize_targets): Add new "maintenance print target-stack"
6970 2007-01-28 Mark Kettenis <kettenis@gnu.org>
6972 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
6974 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
6976 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
6977 (struct dwarf2_loclist_baton): Likewise.
6979 2007-01-27 Eli Zaretskii <eliz@gnu.org>
6981 * cli/cli-script.c: Include breakpoint.h.
6982 (build_command_line): Require arguments only for if and while
6984 (get_command_line, execute_user_command, execute_control_command):
6985 Fix wording of warning messages.
6986 (print_command_lines): Print breakpoint commands.
6987 (execute_control_command): Call commands_from_control_command to
6988 handle the `commands' command inside a body of a flow-control
6990 (read_next_line): Recognize the `commands' command and build a
6991 command line structure for it.
6992 (recurse_read_control_structure, read_command_lines): Handle
6993 `commands' similarly to `if' and `while'.
6995 * breakpoint.c (get_number_trailer): Document the special meaning
6996 of NULL as the first argument PP.
6997 (commands_from_control_command): New function.
6999 * breakpoint.h (commands_from_control_command): Add prototype.
7001 * defs.h (commands_control): New enumerated value for enum
7002 command_control_type.
7004 2007-01-26 Joel Brobecker <brobecker@adacore.com>
7006 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7007 (ada_exception_sal): Update accordingly.
7009 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7011 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7012 * NEWS: Describe CHAR array vs. string identifcation rules.
7014 2007-01-25 Paul Brook <paul@codesourcery.com>
7016 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7018 2007-01-24 Jim Blandy <jimb@codesourcery.com>
7020 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7021 expression is empty, bother to return the 'optimized out' value we
7022 construct. (Thanks to Carl Burch.)
7024 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7026 * varobj.c (c_value_of_root, c_value_of_child)
7027 (cplus_describe_child): Don't call release_value.
7029 2007-01-24 Thiemo Seufer <ths@mips.com>
7031 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7034 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7036 Refactor getting children name, value and type access
7038 * varobj.c (get_type_deref): Remove.
7039 (adjust_value_for_child_access): New.
7040 (c_number_of_children): Use the above.
7041 (c_describe_child): Likewise.
7042 (enum accessibility): New.
7043 (match_accessibility): New function.
7044 (cplus_describe_child): New function.
7045 (cplus_name_of_child, cplus_value_of_child)
7046 (cplus_type_of_child): Reimplement in terms
7047 of cplus_describe_child.
7048 (cplus_number_of_children): Use
7049 adjust_value_for_child_access.
7051 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7053 Fix computation of the 'editable' attribute and
7054 value changeability for for references.
7055 * varobj.c (get_value_type): New function.
7056 (c_variable_editable): Use get_value_type.
7057 (varobj_value_is_changeable): Likewise.
7059 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7061 * source.c (find_and_open_source): Try rewriting the source
7062 path inside filename if dirname is NULL.
7064 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7066 * dwarf2read.c (add_partial_symbol): Create an extra partial
7067 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7068 (new_symbol): Likewise for symbols.
7070 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
7072 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7074 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7076 * value.c (value_primitive_field): Copy the full 'location'
7077 contents, instead of assuming that copying ADDRESS will
7078 bring over everything in the union. Remove obsolete comment.
7080 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
7082 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7083 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7084 (m32c_m16c_pointer_to_address): Separate code from declarations.
7086 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7088 * target.c (update_current_target): Correct typo.
7090 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
7092 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7095 2007-01-11 Andrew Cagney <cagney@redhat.com>
7096 Daniel Jacobowitz <dan@codesourcery.com>
7097 Jan Kratochvil <jan.kratochvil@redhat.com>
7099 * dwarf2-frame.c (execute_cfa_program): New support of
7100 `DW_CFA_GNU_negative_offset_extended'.
7102 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7104 * NEWS: Mention flash support for "load" and new remote packets.
7106 2007-01-21 Markus Deuling <deuling@de.ibm.com>
7108 * breakpoint.c (delete_command): Skip redundant loop iterations.
7110 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7112 * gdbarch.sh (register_type): Update comment.
7113 * gdbarch.h: Regenerated.
7114 * arch-utils.c (generic_register_size): Call register_type.
7115 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7116 * m32c-tdep.c (check_for_saved): Likewise.
7117 * mips-tdep.c (mips_print_register, print_gp_register_row)
7118 (mips_print_registers_info): Likewise.
7119 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7121 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7122 (sh64_do_register, sh64_print_register)
7123 (sh64_media_print_registers_info): Likewise.
7124 * tui/tui-regs.c (tui_register_format): Likewise.
7126 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7128 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7130 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7131 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7132 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7133 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7134 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7135 (make_symbol_completion_list): Likewise.
7137 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7138 Daniel Jacobowitz <dan@codesourcery.com>
7140 * buildsym.c (end_symtab): Use preallocated symtab if available.
7141 Fill in SYMBOL_SYMTAB.
7142 * buildsym.h (struct subfile): Add symtab member.
7143 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7144 (struct file_entry): Add symtab.
7145 (free_cu_line_header): New function.
7146 (read_file_scope): Use it. Save line_header in the cu. Process
7148 (add_file_name): Initialize new symtab member.
7149 (dwarf_decode_lines): Create symtabs for included files.
7150 (new_symbol): Set SYMBOL_SYMTAB.
7151 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7152 (search_symbols): Likewise.
7153 * symtab.h (struct symbol): Add symtab member.
7154 (SYMBOL_SYMTAB): Define.
7156 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7158 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7160 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7162 * arch-utils.c (show_endian): Correct reversed condition.
7164 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7166 * MAINTAINERS (Write After Approval): Add myself.
7168 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7169 Vladimir Prus <vladimir@codesourcery.com>
7171 Fix 'selected frame' varobjs.
7172 * varobj.c (struct varobj): Remove the error field.
7173 (varobj_set_value): Don't check var->error.
7174 (install_new_value): Don't set var->error.
7175 (varobj_update): Always pass the new value
7176 of the root via install_new_value.
7177 (create_child): Don't set error field.
7178 (new_variable): Likewise.
7179 (c_value_of_root): Always reevaluate the value
7180 of selected frame varobjs in the selected frame.
7181 Don't call reinit_frame_cache.
7183 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7185 * source.c (_initialize_source): Improve the help text of
7186 the substitute-path commands.
7188 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7190 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7191 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7192 (frv_skip_prologue): Remove prototypes.
7193 (frv_adjust_breakpoint_address): Renamed from
7194 frv_gdbarch_adjust_breakpoint_address.
7195 (frv_gdbarch_init): Adjust.
7197 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7199 * gdbarch.sh (deprecated_extract_return_value)
7200 (deprecated_store_return_value): Remove.
7201 (extract_return_value, store_return_value): Remove default values.
7202 * gdbarch.c, gdbarch.h: Regenerate.
7203 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7204 (legacy_store_return_value): Remove.
7205 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7208 * mi/mi-main.c: Remove obsolete comment.
7210 * regcache.c, regcache.h (deprecated_register_bytes)
7211 (deprecated_read_register_bytes)
7212 (deprecated_write_register_bytes): Remove.
7214 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7215 Don't forget to move destination pointer.
7217 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7219 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7221 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7223 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7224 past entry function with recent newlib.
7226 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7228 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7229 introduction. Specify -var-update more exactly.
7231 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7233 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7235 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7237 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7238 the Global Maintainers' invitation to be a global maintainer.
7240 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7242 * infrun.c (singlestep_pc): New variable.
7243 (resume): Set singlestep_pc.
7244 (context_switch): Add a debugging message. Flush the frame cache.
7245 (handle_inferior_event): Add debugging messages. Handle thread
7246 hops when a software single step has completed. Let context_switch
7247 handle flushing the frame cache.
7249 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7251 * NEWS: Mention target descriptions, "set tdesc filename",
7252 "unset tdesc filename", "show tdesc filename", and
7253 qXfer:features:read.
7254 * arch-utils.c (choose_architecture_for_target): New function.
7255 (gdbarch_info_fill): Call it.
7256 * target-descriptions.c (struct property): Make members non-const.
7257 (struct target_desc): Add arch member.
7258 (target_description_filename): New variable.
7259 (target_find_description): Try via XML first.
7260 (tdesc_architecture): New.
7261 (free_target_description, make_cleanup_free_target_description): New.
7262 (set_tdesc_property): Call xstrdup.
7263 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7264 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7265 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7266 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7267 * target-descriptions.h (tdesc_architecture)
7268 (make_cleanup_free_target_description, set_tdesc_architecture): New
7270 * Makefile.in (SFILES): Add xml-tdesc.c.
7271 (COMMON_OBS): Add xml-tdesc.o.
7272 (target-descriptions.o): Update.
7273 (xml-tdesc.o): New rule.
7274 * xml-tdesc.c, xml-tdesc.h: New files.
7275 * remote.c (PACKET_qXfer_features): New enum.
7276 (remote_protocol_features): Add qXfer:features:read.
7277 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7278 (_initialize_remote): Register qXfer:features:read.
7279 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7280 * features/gdb-target.dtd: New file.
7282 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7284 * copyright.sh: Clarify error.
7286 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7288 * symtab.c (matching_bfd_sections): Fix VMA matching for
7291 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7293 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7296 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7298 Updated copyright notices for most files.
7300 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7302 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7304 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7306 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7308 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7310 * configure, config.in: Regenerate.
7311 * defs.h (debug_file_directory): Declare.
7312 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7313 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7314 relocate it if DEBUGDIR_RELOCATABLE.
7315 * symfile.c (debug_file_directory): Make non-static.
7316 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7317 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7318 (_initialize_symfile): Don't initialize debug_file_directory here.
7320 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7322 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7325 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7327 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7328 frame_unwind_register to recurse.
7329 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7330 (alpha_heuristic_frame_prev_register): Likewise.
7331 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7332 * m32c-tdep.c (m32c_prev_register): Likewise.
7333 * frame.c (frame_register_unwind_location): Remove FIXME.
7335 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7336 Eli Zaretskii <eliz@gnu.org>
7338 * copyright.sh: New file.
7340 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7342 * configure.ac: Check for XML_StopParser.
7343 * xml-support.c (gdb_xml_body_text): Check for an error.
7344 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7345 (gdb_xml_end_element_wrapper): Likewise.
7346 * config.in, configure: Regenerated.
7348 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7350 * varobj.c (install_new_value): Always update print_value.
7351 (value_get_print_value): Immediately return NULL for missing
7354 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7356 * configure.ac: Tighten pattern for extracting value of
7357 DEPRECATED_TM_FILE from the target makefile fragment.
7358 * configure: Regenerated.
7360 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7362 * linux-nat.c (struct simple_pid_list): Add status.
7363 (add_to_pid_list): Record the PID's status.
7364 (linux_record_stopped_pid): Likewise. Make static.
7365 (pull_pid_from_list): Return the saved status.
7366 (linux_nat_handle_extended): Deleted.
7367 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7368 Make static. Handle non-SIGSTOP for a new thread's first signal.
7369 (flush_callback): Handle unexpected pending signals.
7370 (linux_nat_wait): Update calls to changed functions.
7371 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7372 Remove prototypes for newly static functions.
7374 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7376 * gdbarch.sh (value_from_register): New gdbarch function.
7377 * gdbarch.c, gdbarch.h: Regenerate.
7378 * findvar.c (default_value_from_register): New function.
7379 (value_from_register): Use gdbarch_value_from_register.
7380 * value.h (default_value_from_register): Declare.
7381 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7382 spu_value_to_register): Remove.
7383 (spu_value_from_register): New function.
7384 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7385 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7386 Call set_gdbarch_value_from_register.
7387 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7388 s390_value_to_register): Remove.
7389 (s390_value_from_register): New function.
7390 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7391 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7392 Call set_gdbarch_value_from_register.
7394 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7396 * NEWS: Add "set sysroot" and "show sysroot".
7397 * solib.c (solib_absolute_prefix): Delete. Replace
7398 all uses with gdb_sysroot.
7399 (_initialize_solib): Add "set sysroot" and "show sysroot".
7400 Make "solib-absolute-prefix" an alias to it.
7402 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7404 * frame.c (get_frame_register_bytes): New function.
7405 (put_frame_register_bytes): Likewise.
7406 * frame.h (get_frame_register_bytes): Declare.
7407 (put_frame_register_bytes): Likewise.
7408 * findvar.c (value_from_register): Always construct lval_register
7409 values. Use get_frame_register_bytes.
7410 * valops.c (value_assign): Use get_frame_register_bytes and
7411 put_frame_register_bytes.
7413 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7415 * MAINTAINERS: Update Stan Shebs' email address.
7417 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7419 * ada-lang.c (is_known_support_routine): Improve the implementation.
7421 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7423 * ada-lang.c: Add include of source.h.
7424 (is_known_support_routine): Improve the check verifying that the file
7425 associated to this frame exists.
7426 * Makefile.in (ada-lang.o): Add dependency on source.h.
7428 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7430 * ax-general.c (ax_const_l): Select proper opcode for the given
7433 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7435 * varobj.c (c_value_of_root): Don't select frame if variable
7436 object is out of scope.
7438 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7440 * varobj.c (struct varobj): New member print_value.
7441 (install_new_value): Compare last printed value with current one
7442 instead of contents.
7443 (new_variable): Initialize var->print_value to NULL.
7444 (free_variable): Free var->print_value.
7445 (value_get_print_value): New function derived from
7446 c_value_of_variable.
7447 (c_value_of_variable): Use value_get_print_value.
7449 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7451 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7453 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7455 * NEWS: Add entries for new catch commands.
7457 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7459 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7460 (add_partial_symbol): Correct identification of external references.
7461 (process_structure_scope): Likewise.
7462 (read_partial_die): Handle DW_AT_byte_size attribute.
7464 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7466 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7468 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7470 * varobj.c (get_type_deref): Fix variable objects for references to
7473 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7475 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7478 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7480 * memory-map.c (struct_memory_map_parsing_data): Remove most
7481 members. Make property_name an array.
7482 (free_memory_map_parsing_data, memory_map_start_element)
7483 (memory_map_end_element, memory_map_character_data): Delete.
7484 (memory_map_start_memory, memory_map_end_memory)
7485 (memory_map_start_property, memory_map_end_property): New functions.
7486 (property_attributes, memory_children, memory_type_enum)
7487 (memory_attributes, memory_map_children, memory_map_elements): New.
7488 (parse_memory_map): Rewrite.
7489 * xml-support.c (debug_xml): New.
7490 (xml_get_required_attribute, xml_get_integer_attribute)
7491 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7493 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7494 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7495 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7496 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7497 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7498 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7499 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7501 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7502 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7503 (enum gdb_xml_element_flag, struct gdb_xml_element)
7504 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7505 (struct gdb_xml_enum): New.
7506 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7507 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7508 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7509 (xml_get_required_attribute, xml_get_integer_attribute)
7510 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7511 * Makefile.in (xml_support_h, xml-support.o): Update.
7513 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7515 * Makefile.in (eval.o): Update dependencies.
7516 * eval.c: Include "ui-out.h" and "exceptions.h".
7517 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7518 Use value_zero if an error occurs when avoiding side effects.
7519 * varobj.c (c_value_of_root): Initialize new_val.
7521 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7523 * varobj.c (varobj_list_children): Stop if the number of children is
7525 (c_number_of_children):
7527 2007-01-04 Mark Kettenis <kettenis@gnu.org>
7529 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7530 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7531 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7532 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7533 sizeof, instead of hardcoded constants.
7535 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7537 * CONTRIBUTE: Use sourceware.org.
7539 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7541 * buildsym.c (start_subfile): Handle producer.
7542 (record_producer): New function.
7543 * buildsym.h (struct subfile): Include producer.
7544 (record_producer): New prototype.
7545 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7546 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7547 armcc_cfa_offsets_reversed.
7548 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7549 (dwarf2_frame_find_quirks): New function.
7550 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7551 (decode_frame_entry_1): Record the CIE version. Record the
7552 augmentation. Skip armcc augmentations.
7553 * dwarf2read.c (read_file_scope): Save the producer.
7554 * symtab.h (struct symtab): Rename unused version member to
7557 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7559 * configure.ac (build_warnings): Use -Wall and
7560 -Wdeclaration-after-statement.
7561 * configure: Regenerated.
7563 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7565 Simplify access to variours properties of child
7566 variable objects in C.
7567 * varobj.c (value_struct_element_index): New function.
7568 (c_describe_child): New function.
7569 (c_name_of_child, c_value_of_child)
7570 (c_type_of_child): Rewrite to use c_describe_child.
7572 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7575 * varobj.c: Include "vec.h".
7576 (varobj_p): New typedef, declare vector of those.
7577 (struct varobj): Use vector for the 'children' member.
7578 (child_exists): Remove.
7579 (save_child_in_parent): Remove.
7580 (remove_child_from_parent): Remove.
7581 (struct varobj_child): Remove.
7582 (struct vstack): Remove.
7583 (vpush, vpop): Remove.
7584 (varobj_list_children): Adjust to work work vector.
7585 (varobj_update): Likewise. Use vectors for
7586 working stack and result.
7587 (delete_variable_1): Likewise.
7588 * Makefile.in (varobj.o): Update dependencies.
7590 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7592 Port from Apple's version.
7594 * varobj.c (type_changeable): Rename to...
7595 (varobj_value_is_changeable_p): ...this. Adjust all callers.
7596 (is_root_p): New function. Use it everywhere.
7598 2007-01-04 Jim Blandy <jimb@codesourcery.com>
7600 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7603 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7605 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7607 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7609 * hpread.c (hpread_type_lookup): Fix compilation failure.
7611 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
7613 * NEWS: New port to S+core.
7614 * MAINTAINERS (Write After Approval, Responsible Maintainers):
7617 * Makefile.in: Add dependencies for S+core files.
7618 * configure.tgt (score*, score-*-*): Add S+core target.
7619 * config/score/embed.mt: New file.
7620 * score-tdep.c: New file.
7621 * score-tdep.h: New file.
7623 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7625 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
7626 the appropriate type rather than a bogus void type.
7628 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7630 * ada-lang.h (ada_find_printable_frame): Remove.
7631 (ada_exception_catchpoint_p, ada_decode_exception_location)
7632 (ada_decode_assert_location): Add declaration.
7633 * ada-lang.c: Add include of annotate.h and valprint.h.
7634 (exception_catchpoint_kind): New enum.
7635 (function_name_from_pc, is_known_support_routine)
7636 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
7637 (ada_exception_name_addr_1, ada_exception_name_addr)
7638 (print_it_exception, print_one_exception, print_mention_exception)
7639 (print_it_catch_exception, print_one_catch_exception)
7640 (print_mention_catch_exception, catch_exception_breakpoint_ops)
7641 (print_it_catch_exception_unhandled)
7642 (print_one_catch_exception_unhandled)
7643 (print_mention_catch_exception_unhandled, print_it_catch_assert)
7644 (print_one_catch_assert, print_mention_catch_assert)
7645 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
7646 (ada_get_next_arg, catch_ada_exception_command_split)
7647 (ada_exception_sym_name, ada_exception_sym_name)
7648 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
7649 (ada_parse_catchpoint_condition, ada_exception_sal)
7650 (ada_decode_exception_location)
7651 (ada_decode_assert_location): New function.
7652 (catch_exception_unhandled_breakpoint_ops): New global variable.
7653 (catch_assert_breakpoint_ops): New global variable.
7654 * breakpoint.c: Add include of ada-lang.h.
7655 (print_one_breakpoint): Do not print the condition for Ada
7656 exception catchpoints.
7657 (create_ada_exception_breakpoint): New function.
7658 (catch_ada_exception_command, catch_assert_command): New function.
7659 (catch_command_1): Add support for the new "catch exception" and
7660 "catch assert" commands.
7661 (_initialize_breakpoint): Add help description for the new catch
7663 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
7665 (breakpoint.o): Add dependency on ada-lang.h.
7667 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
7669 * coffread.c (cs_to_section): If bfd_section is found, always
7670 return its section index.
7671 (coff_symtab_read): Determine the minimal_symbol_type using the
7674 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7675 Daniel Jacobowitz <dan@codesourcery.com>
7677 * Makefile.in (top.o): Update.
7678 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
7679 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
7680 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
7682 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
7684 2007-01-03 Mark Kettenis <kettenis@gnu.org>
7686 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
7687 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
7689 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7691 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
7692 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
7693 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
7694 greater than or equal to zero.
7695 * m2-typeprint.c (m2_array): Likewise.
7696 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7697 * gdbtypes.c (copy_type_recursive): Correct == typo.
7698 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
7699 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
7701 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
7702 (default_macro_scope): Remove unused variable.
7703 * prologue-value.h (pv_area_find_reg): Don't name an argument
7705 * remote-fileio.c (remote_fio_func_map): Add missing braces.
7706 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
7708 (cleanup_sigint_signal_handler): Remove casts.
7709 * valprint.c (val_print): Use a volatile local for the modified
7711 * varobj.c (languages): Remove extra array dimension.
7712 (varobj_create): Correct access to languages array.
7713 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
7715 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
7716 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
7717 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
7718 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
7719 (mi_cmd_data_write_memory): Likewise.
7720 * signals/signals.c (target_signal_to_string): Cast to int before
7722 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
7725 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7727 * NEWS: Mention pointer to member improvements.
7728 * Makefile.in (gnu-v3-abi.o): Delete special rule.
7729 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
7730 * ada-valprint.c (ada_print_scalar): Update for new type codes.
7731 * c-typeprint.c (c_print_type): Update for new type codes.
7732 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
7733 (c_type_print_base): Likewise.
7734 (c_type_print_args): Rewrite.
7735 * c-valprint.c (c_val_print): Update for new type codes. Remove
7736 support for references to members. Treat methods like functions.
7737 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
7738 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
7739 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
7740 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
7741 (struct cp_abi_ops): Add corresponding members.
7742 * cp-valprint.c (cp_print_class_method): Delete.
7743 (cp_find_class_member): New function.
7744 (cp_print_class_member): Use it. Simplify support for bogus
7746 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
7747 lookup_methodptr_type.
7748 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
7749 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
7750 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
7752 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
7753 references returned by user defined operators.
7754 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
7755 (f_type_print_varspec_suffix): Remove support for member pointers.
7756 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
7758 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
7759 (lookup_methodptr_type): New.
7760 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
7761 (recursive_dump_type): Update for new types.
7762 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
7763 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
7764 (lookup_memberptr_type, lookup_methodptr_type)
7765 (smash_to_memberptr_type): New prototypes.
7766 (smash_to_method_type): Formatting fix.
7767 (lookup_member_type, smash_to_member_type): Delete prototypes.
7768 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
7769 Do not rely on debug information for the vptr or the method's
7770 enclosing type. Handle function descriptors for IA64.
7771 (gnuv3_virtual_fn_field): Rewrite using the new functions.
7772 (gnuv3_find_method_in, gnuv3_print_method_ptr)
7773 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
7774 (gnuv3_method_ptr_to_value): New.
7775 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
7776 * hpread.c (hpread_type_lookup): Update for new types.
7777 * infcall.c (value_arg_coerce): Likewise.
7778 * m2-typeprint.c (m2_print_type): Remove explicit support
7779 for member pointers.
7780 * m2-valprint.c (m2_val_print): Likewise.
7781 * p-typeprint.c (pascal_type_print_varspec_prefix)
7782 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
7783 * p-valprint.c (pascal_val_print): Likewise.
7784 (pascal_object_print_class_method, pascal_object_print_class_member):
7786 * p-lang.h (pascal_object_print_class_method)
7787 (pascal_object_print_class_member): Delete prototypes.
7788 * stabsread.c (read_type): Update for new types.
7789 * typeprint.c (print_type_scalar): Likewise.
7790 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
7791 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
7792 argument. Construct a pointer to member if the address of a
7793 function or data member is requested.
7794 (value_cast_pointers): Don't modify the input value.
7795 (value_cast): Adjust pointer to member handling for new types.
7796 Allow null pointer to member constants. Don't modify the input
7798 (value_ind): Remove pointer to member check. Handle function
7799 descriptors for function pointers.
7800 (value_struct_elt, value_find_oload_method_list, check_field):
7801 Remove pointer to member checks.
7802 * value.c (unpack_long): Allow pointers to data members.
7803 (value_from_longest): Allow member pointers.
7804 * value.h (value_aggregate_elt): Add want_address.
7805 * varobj.c (c_variable_editable): Remove check for members.
7806 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
7807 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
7809 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
7810 * c-lang.h (cp_print_class_method): Delete prototype.
7811 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
7812 * mips-tdep.c (mips_gdbarch_init): Likewise.
7813 * gdbarch.c, gdbarch.h: Regenerated.
7815 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7817 * rs6000-tdep.c (rs6000_use_struct_convention)
7818 (rs6000_extract_return_value, rs6000_store_return_value)
7819 (rs6000_extract_struct_value_address): Remove.
7820 (rs6000_return_value): New function.
7821 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
7822 store_return_value, deprecated_extract_struct_value_address and
7823 deprecated_use_struct_convention. Use rs6000_return_value
7826 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
7828 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
7829 -display-disable, -display-enable, -display-insert and
7832 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7834 * breakpoint.c (remove_breakpoint): Remove dead code.
7836 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
7838 * varobj.c: Include block.h.
7839 (c_value_of_root): Check scope within nested statements.
7841 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7843 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
7844 regcache_cooked_write_signed instead of
7845 deprecated_write_register_bytes.
7847 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7849 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
7851 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7853 Followed the Start of New Year Procedure:
7854 * ChangeLog-2006: New file, containing all the entries for 2006.
7855 * ChangeLog: Removed all 2006 entries, and changed the reference
7856 to the previous ChangeLog to point to ChangeLog 2006.
7857 * top.c (print_gdb_version): Update copyright year.
7859 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7861 * Makefile.in (remote-sds.o): Remove.
7862 * remote-sds.c: Delete.
7864 For older changes see ChangeLog-2006.
7870 version-control: never