1 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
3 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
4 (thumb_analyze_prologue): Move pv_area_store_would_trash call
5 out of loop. Do not set cache->frameoffset.
6 (arm_scan_prologue): Use prologue-value mechanism. Do not set
7 frameoffset. Simplify framesize.
8 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
10 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
12 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
14 * target.c (update_current_target): Call setup_target_debug.
15 (push_target): Do not call it here.
17 2007-10-09 Michael Snyder <msnyder@specifix.com>
19 * MAINTAINERS: Update my email address.
21 2007-10-09 Markus Deuling <deuling@de.ibm.com>
23 * xtensa-tdep.c: Replace following current-gdbarch based macros by
25 (xtensa_pseudo_register_read)
26 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
27 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
28 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
29 (xtensa_pseudo_register_read)
30 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
31 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
32 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
33 (xtensa_frame_prev_register): NUM_AREGS.
34 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
35 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
36 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
37 (xtensa_supply_gregset, xtensa_frame_cache)
38 (xtensa_frame_prev_register): WS_REGNUM.
39 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
40 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
41 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
42 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
43 (xtensa_register_reggroup_p): REGMAP.
44 (call0_track_op): LITBASE_REGNUM.
45 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
46 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
47 (xtensa_frame_prev_register, AREG_NUMBER)
48 (xtensa_register_type): AR_BASE.
49 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
50 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
51 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
52 (xtensa_frame_cache, xtensa_frame_prev_register)
53 (xtensa_extract_return_value, xtensa_store_return_value)
54 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
55 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
56 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
57 (xtensa_frame_prev_register, xtensa_push_dummy_call)
58 (call0_frame_cache): A1_REGNUM.
59 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
60 (xtensa_push_dummy_call): A4_REGNUM.
61 (ARGS_FIRST_REG): A6_REGNUM.
62 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
63 (xtensa_frame_prev_register): A15_REGNUM.
64 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
65 them in the appropriate source file:
66 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
67 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
68 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
69 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
70 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
71 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
72 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
73 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
74 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
75 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
76 A13_REGNUM, A14_REGNUM, A15_REGNUM.
78 2007-10-09 Markus Deuling <deuling@de.ibm.com>
80 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
81 the current architecture by frame_info.
82 (h8300_frame_prev_register
83 (h8300_print_register): Replace current_gdbarch by gdbarch.
84 (h8300_print_registers_info, h8300_register_type)
85 (h8300_register_type): Likewise.
87 2007-10-09 Markus Deuling <deuling@de.ibm.com>
89 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
90 the current architecture by regcache.
91 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
92 (i386_linux_fetch_inferior_registers)
93 (i386_linux_store_inferior_registers): Likewise.
94 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
95 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
96 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
97 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
98 (i386_extract_return_value, i386_store_return_value): Likewise.
99 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
100 the current architecture by frame_info.
101 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
102 (i386_register_to_value, i386_value_to_register): Likewise.
104 2007-10-09 Markus Deuling <deuling@de.ibm.com>
106 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
107 the current architecture by regcache.
108 (monitor_store_register, monitor_store_registers): Likewise.
110 2007-10-09 Markus Deuling <deuling@de.ibm.com>
112 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
113 the current architecture by regcache.
115 2007-10-09 Markus Deuling <deuling@de.ibm.com>
117 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
120 2007-10-09 Markus Deuling <deuling@de.ibm.com>
122 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
123 architecture by frame.
124 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
125 (inside_main_func, frame_sp_unwind): Likewise.
127 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
129 * solib-svr4.c (enable_break): Add the dynamic linker also if
132 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
134 * MAINTAINERS (Write After Approval): Add self.
136 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
138 * stabsread.c (read_huge_number): Initialize local variable to 0.
140 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
142 * p-lang.h (pascal_main_name): Add declaration.
143 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
144 (GPC_MAIN_PROGRAM_NAME_2): New constants.
145 (pascal_main_name): New function.
146 * symtab.c: Include p-lang.h.
147 (find_main_name): Add call to pascal_main_name.
148 * Makefile.in (symtab.o): Add dependency on p-lang.h.
150 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
152 * stabsread.c (read_huge_number): Fix handling of octal
153 representation when the bit width is known.
154 (read_range_type): Record unsigned integral types with their size,
155 when the type size is known.
157 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
159 * MAINTAINERS (Write After Approval): Add self.
161 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
163 * breakpoint.c (print_one_breakpoint_location): ARI fix:
164 Replace asprintf by xstrprintf.
166 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
168 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
169 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
171 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
173 * linux-fork.c: Move "gdb_wait.h" include back to the position of
174 <sys/wait.h> include before last commit.
176 2007-10-08 Maciej W. Rozycki <macro@mips.com>
178 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
180 2007-10-08 Markus Deuling <deuling@de.ibm.com>
182 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
183 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
184 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
185 (store_regs_user_thread, store_regs_kernel_thread): Use
186 get_regcache_arch or get_frame_arch to get at the current architecture
187 by regcache or by frame, respectively.
189 2007-10-08 Markus Deuling <deuling@de.ibm.com>
191 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
192 (sh64_pseudo_register_read, sh64_pseudo_register_write)
193 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
194 (sh64_print_register, sh64_media_print_registers_info)
195 (sh64_compact_print_registers_info, sh64_unwind_sp)
196 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
197 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
198 (sh64_frame_prev_register): Use FRAME to recognize current
201 2007-10-08 Markus Deuling <deuling@de.ibm.com>
203 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
204 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
205 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
206 current_gdbarch by gdbarch.
207 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
208 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
209 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
210 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
211 recognize current architecture.
213 2007-10-08 Markus Deuling <deuling@de.ibm.com>
215 * remote.c (init_remote_state, fetch_register_using_p)
216 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
217 (store_register_using_P, store_registers_using_G)
218 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
219 get at the current architecture by regcache or by frame, respectively.
221 2007-10-08 Markus Deuling <deuling@de.ibm.com>
223 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
224 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
225 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
226 get_regcache_arch or get_frame_arch to get at the current architecture
227 by regcache or by frame, respectively.
228 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
229 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
230 (store_register, old_store_inferior_registers, supply_gregset)
231 (supply_fpregset, fill_fpregset): Likewise.
232 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
233 Replace current_gdbarch by gdbarch.
235 2007-10-08 Markus Deuling <deuling@de.ibm.com>
237 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
238 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
239 get_frame_arch to get at the current architecture by regcache or by
242 2007-10-08 Markus Deuling <deuling@de.ibm.com>
244 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
245 Replace current_gdbarch by gdbarch.
246 * ia64-tdep.c (ia64_frame_prev_register
247 (ia64_sigtramp_frame_prev_register)
248 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
249 get_frame_arch to get at the current architecture by regcache or by
251 * ia64-linux-nat.c (ia64_linux_fetch_register)
252 (ia64_linux_fetch_registers, ia64_linux_store_register)
253 (ia64_linux_store_registers): Likewise.
255 2007-10-08 Markus Deuling <deuling@de.ibm.com>
257 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
258 current_gdbarch by gdbarch.
259 * hppa-linux-nat.c (fetch_register, store_register)
260 (hppa_linux_fetch_inferior_registers)
261 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
262 get_frame_arch to get at the current architecture by regcache or by
264 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
265 (hppa_hpux_unwind_adjust_stub): Likewise.
266 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
267 (hppa_hpux_fetch_inferior_registers)
268 (hppa_hpux_store_inferior_registers): Likewise.
270 2007-10-08 Markus Deuling <deuling@de.ibm.com>
272 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
273 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
274 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
275 or get_frame_arch to get at the current architecture by regcache or by
277 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
278 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
279 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
280 current_gdbarch by gdbarch.
282 2007-10-08 Markus Deuling <deuling@de.ibm.com>
284 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
285 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
286 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
287 get at the current architecture by regcache or by·frame, respectively.
288 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
291 2007-10-08 Markus Deuling <deuling@de.ibm.com>
293 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
294 Use get_regcache_arch or get_frame_arch to get at the current
295 architecture by regcache or by frame, respectively.
296 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
297 * amd64-nat.c (amd64_supply_native_gregset)
298 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
300 2007-10-08 Markus Deuling <deuling@de.ibm.com>
302 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
304 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
305 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
306 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
307 get_frame_arch to get at the current architecture by regcache or by
309 * alpha-nat.c (fetch_osf_core_registers): Likewise.
311 2007-10-08 Markus Deuling <deuling@de.ibm.com>
313 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
314 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
315 current_gdbarch by gdbarch.
316 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
318 2007-10-08 Markus Deuling <deuling@de.ibm.com>
320 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
321 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
322 * regcache.c (regcache_raw_write): Use get_regcache_arch or
323 get_frame_arch to get at the current architecture by regcache or by
326 2007-10-08 Markus Deuling <deuling@de.ibm.com>
328 * findvar.c (value_of_register, locate_var_value): Use
329 get_regcache_arch or get_frame_arch to get at the current architecture
330 by regcache or by frame, respectively.
331 * findvar.c (default_value_from_register, value_from_register): Replace
332 current_gdbarch by gdbarch.
334 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
336 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
338 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
340 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
341 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
343 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
345 * remote.c (get_offsets): Only call free_symfile_segment_data if
348 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
350 * objc-exp.y: ARI fix: remove 4 PARAMS.
352 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
354 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
355 news. Mention XML support for M68K in GDB 6.7.
357 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
359 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
361 (init_vector_type): Use builtin_type_int32.
363 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
365 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
366 size to enable bi-arch generate-core-file support.
368 2007-10-02 Markus Deuling <deuling@de.ibm.com>
370 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
372 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
374 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
376 * tui/tui-win.c (tui_initialize_win): New function for
377 initializing tui's SIGWINCH signal handler.
378 * tui/tui-win.h (tui_initialize_win): Declare.
380 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
382 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
383 pointer to uintptr_t before casting to CORE_ADDR.
385 2007-10-02 Markus Deuling <deuling@de.ibm.com>
387 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
389 2007-10-02 Mark Mitchell <mark@codesourcery.com>
391 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
392 * ser-mingw.c (enum select_thread_state): New type.
393 (struct ser_console_state): Add have_started and thread_state.
394 (select_thread_wait): New function.
395 (thread_fn_type): New type.
396 (create_select_thread): New function.
397 (destroy_select_thread): Likewise.
398 (start_select_thread): Likewise.
399 (stop_select_thread): Likewise.
400 (console_select_thread): Use new functions.
401 (pipe_select_thread): Likewise.
402 (file_select_thread): Likewise.
403 (ser_console_wait_handle): Likewise.
404 (ser_console_done_wait_handle): Likewise.
405 (ser_console_close): Likewise.
406 (free_pipe_state): Likewise.
407 (pipe_wait_handle): Likewise.
408 (pipe_done_wait_handle): Likewise.
409 (struct net_windows_state): Derive from ser_console_state.
410 (net_windows_select_thread): Use new functions.
411 (net_windows_wait_handle): Likewise.
412 (net_windows_done_wait_handle): Likewise.
413 (net_windows_close): Likewise.
415 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
417 * inflow.c (terminal_ours_1): Remove useless line.
419 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
421 * mips-tdep.c (mips_read_fp_register_double): Correct check for
423 (mips_print_fp_register): Correct check for even FP registers.
424 (mips_virtual_frame_pointer): New function.
425 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
427 2007-09-30 Mike Frysinger <vapier@gentoo.org>
429 * value.h (lookup_only_internalvar): New prototype.
430 (create_internalvar): Likewise.
431 * value.c (lookup_only_internalvar): New function.
432 (create_internalvar): Likewise.
433 (lookup_internalvar): Use new lookup_only_internalvar and
434 create_internalvar functions.
435 * parse.c (write_dollar_variable): Look up $ symbols in internal
436 table first rather than last.
438 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
440 * linux-nat.c (linux_nat_new_thread): New variable.
441 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
442 linux_nat_switch_fork.
443 (lwp_list): Make public.
444 (add_lwp): Call linux_nat_new_thread.
445 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
447 (resume_callback): Clear lp->siginfo. Remove unused variable.
448 (linux_nat_resume): Assert that the LWP list is already initialized.
451 (stop_wait_callback, linux_nat_wait): Call it.
452 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
453 * linux-nat.h (struct lwp_info): Add siginfo.
454 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
457 * amd64-linux-nat.c (amd64_linux_dr): New.
458 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
459 (amd64_linux_dr_set): Take a PTID argument.
460 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
461 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
462 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
463 (amd64_linux_new_thread): New.
464 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
465 * i386-linux-nat.c (i386_linux_dr): New.
466 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
467 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
468 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
469 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
470 (i386_linux_new_thread): New.
471 (i386_linux_resume): Remove unnecessary PID check.
472 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
473 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
474 (fetch_debug_register, fetch_debug_register_pair): Delete.
475 (debug_registers): New.
476 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
477 ALL_LWPS and debug_registers.
478 (ia64_linux_new_thread): New.
479 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
480 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
481 * ppc-linux-nat.c (last_stopped_data_address): Delete.
482 (saved_dabr_value): New.
483 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
485 (ppc_linux_new_thread): New.
486 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
487 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
488 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
489 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
491 (s390_fix_watch_points): Take a PTID argument.
492 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
493 (_initialize_s390_nat): Call linux_nat_set_new_thread.
495 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
496 Jeff Johnston <jjohnstn@redhat.com>
498 * breakpoint.c (watchpoints_triggered): New.
499 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
500 Check watchpoint_triggered instead. Combine handling for software
501 and hardware watchpoints. Do not use target_stopped_data_address
502 here. Always check a watchpoint if its scope breakpoint triggers.
503 Do not stop for thread or overlay events. Improve check for
504 triggered watchpoints without a value change.
505 (watch_command_1): Insert the scope breakpoint first. Link the
506 scope breakpoint to the watchpoint.
507 * breakpoint.h (enum watchpoint_triggered): New.
508 (struct breakpoint): Add watchpoint_triggered.
509 (bpstat_stop_status): Update prototype.
510 (watchpoints_triggered): Declare.
511 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
512 (stepped_after_stopped_by_watchpoint): Delete.
513 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
514 local. Handle infwait_step_watch_state. Update calls to
515 bpstat_stop_status. Use watchpoints_triggered to check
517 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
518 (remote_stopped_data_address): Do not check it.
520 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
522 * configure.ac: Add $LIBINTL when testing libbfd.
523 * configure: Regenerated.
525 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
527 * NEW: Mention pending breakpoint changes and
528 support for breakpoints at multiple locations.
530 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
532 * arm-linux-tdep.c (arm_linux_software_single_step): New.
533 (arm_linux_init_abi): Use it.
534 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
536 * arm-tdep.h (arm_get_next_pc): Declare.
537 * Makefile.in (arm-linux-tdep.o): Update.
539 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
541 * varobj.c (install_new_value): Don't
542 call value_get_print_value when a value is
543 lazy. Update the print_value member in a
546 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
548 * breakpoint.c (create_breakpoint): Set
549 condition on each location, not on the first
550 location of breakpoint.
552 2007-09-26 Jim Blandy <jimb@codesourcery.com>
554 * remote.c (getpkt_sane): Fix error message. No animals were
555 harmed in the making of this debugger.
557 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
559 * p-typeprint.c: Fix 11 ARI reported problems.
560 (pascal_print_type): Fix 4 operator at end of line.
561 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
562 using strncmp function.
563 (pascal_type_print_base): Fix 2 operator at end of line.
564 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
565 using strncmp function.
568 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
571 dwarf2read.c (read_subroutine_type):
572 All pascal functions are prototyped.
574 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
577 p-valprint.c (pascal_val_print): correct current language check.
578 Also print array of char as strings.
581 2007-09-26 David Ung <davidu@mips.com>
582 Maciej W. Rozycki <macro@mips.com>
584 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
586 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
588 * p-exp.y: Fix 12 ARI reported problems.
589 (name_not_typename): Fix 2 operator at end of line issues.
590 (yylex): Fix 3 operator at end of line issues.
591 Replace 7 DEPRECATED_STREQ macros using strcmp function.
593 2007-09-25 David Ung <davidu@mips.com>
594 Maciej W. Rozycki <macro@mips.com>
596 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
597 rules return composite types in registers as appropriate.
599 2007-09-24 Jim Blandy <jimb@codesourcery.com>
601 * symfile.h (struct symfile_segment_data): Doc fixes.
602 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
603 Assert that we were passed some loaded segment addresses,
604 and that sections' segment numbers are valid.
605 Simplify offset calculation.
606 * remote.c (get_offsets): Clarify selection of relocate-by-segment
607 strategy, and set num_segments correctly. Delete redundant
608 assignments to do_sections.
610 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
612 * frame.c (get_prev_frame_1): Also check for PC in the same register.
614 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
616 * breakpoint.c (remove_sal): New.
617 (expand_line_sal_maybe): New.
618 (create_breakpoints): Call expand_line_sal_maybe.
619 (clear_command): Add comment.
620 (breakpoint_re_set_one): Call expand_line_sal_maybe.
621 * linespec.c (decode_indirect): Set explicit_pc to 1.
622 (decode_all_digits): Set explicit_line to 1.
623 (append_expanded_sal): New.
624 (expand_line_sal): New.
625 * linespec.h (expand_line_sal): Declare.
626 * symtab.c (init_sal): Initialize explicit_pc
628 * symtab.h (struct symtab_and_line): New fields
629 explicit_pc and explicit_line.
631 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
633 * infcall.c (call_function_by_hand): Handle language-specific
634 pass and return by reference.
636 * cp-abi.c (cp_pass_by_reference): New.
637 * cp-abi.h (cp_pass_by_reference): Declare.
638 (struct cp_abi_ops): Add pass_by_reference.
639 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
640 (init_gnuv3_ops): Set pass_by_reference.
642 * language.c (language_pass_by_reference): New.
643 (default_pass_by_reference): New.
644 (unknown_language_defn, auto_language_defn, local_language_defn): Add
645 default_pass_by_reference.
646 * langauge.h (struct language_defn): Add la_pass_by_reference.
647 (language_pass_by_reference, default_pass_by_reference): Declare.
648 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
649 * c-lang.c (c_language_defn, asm_language_defn)
650 (minimal_language_defn): Likewise.
651 (cplus_language_defn): Add cp_pass_by_reference.
652 * f-lang.c (f_language_defn): Add default_pass_by_reference.
653 * jv-lang.c (java_language_defn): Likewise.
654 * m2-lang.c (m2_language_defn): Likewise.
655 * objc-lang.c (objc_language_defn): Likewise.
656 * p-lang.c (pascal_language_defn): Likewise.
657 * scm-lang.c (scm_language_defn): Likewise
659 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
661 Allow a code breakpoint to have several locations
663 * breakpoint.h (enum enable_state): Remove the
664 bp_shlib_disabled enumerator.
665 (struct bp_location): New members shlib_disabled,
666 global_next, enabled and function_name.
667 Rename pending to condition_not_parsed.
669 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
670 (ALL_BP_LOCATIONS_SAFE): Likewise.
671 (breakpoint_enabled): Don't check for pending.
672 (condition_command): Free and update all locations of
674 (insert_bp_location): Adjust.
675 (software_breakpoint_inserted_here_p): Don't care
676 if breakpoint is enabled, as soon as it's inserted.
677 (print_it_typical): Print bpstat's location, not
678 bpstat's breakpoint's location.
679 (bpstat_stop_status): Iterate over all locations, not
681 (print_breakpoint_location): New.
682 (print_one_breakpoint): Renamed to
683 (print_one_breakpoint_location): ...this. Take
684 parameters to describe which location is being
685 printed. Modify code to properly print header
686 for several locations and individual locations.
687 (print_one_breakpoint): Print all locations.
688 (breakpoint_has_pc): New.
689 (describe_other_breakpoints): Use the above.
690 (check_duplicates): Renamed to...
691 (check_duplicates_for): .. this.
692 (check_duplicates): Use check_duplicates_for.
693 (allocate_bp_location): Adjust.
694 (set_raw_breakpoint_without_location): New,
695 extracted from set_raw_breakpoint.
696 (set_breakpoint_location_function): New.
697 (set_raw_breakpoint): Use
698 set_raw_breakpoint_without_location.
699 (make_breakpoint_permanent): Mark all locations
701 (disable_breakpoints_in_shlibs): Iterate over
703 (disable_breakpoints_in_unloaded_shlib): Likewise.
704 (re_enable_breakpoints_in_shlibs): Likewise.
705 (mention): Say "pending" when breakpoint has
706 zero locations. If breakpoint has more than one
708 (add_location_to_breakpoint): New.
709 (create_breakpoint): Accept symtabs_and_lines, not
710 symtab_and_line. Pass extra sals to
711 add_location_to_breakpoint.
712 (create_breakpoints): Pass symtabs_and_lines to
714 (break_command_1): Make pending breakpoints
716 (do_captured_breakpoint): Remove wrong allocation.
717 (clear_command): Iterate over all locations.
718 (unlink_locations_from_global_list): Renamed
719 from unlink_location_from_global_list. Remove
721 (delete_breakpoint): Remove all locations.
722 Iterate over all locations when deciding which
723 other location to re-enable.
724 (all_locations_are_pending): New.
725 (update_breakpoint_locations): Renamed from
726 update_breakpoint_location. Try to match old
727 and new locations using names of containing
729 (breakpoint_re_set_one): Adjust.
730 (find_location_by_number): New.
731 (disable_command): Allow disabling individual location.
732 (enable_command): Allow enabling individual location.
733 * breakpoint.c: Adjust all uses of breakpoint's
734 enable state to for bp_shlib_disabled change.
736 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
738 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
739 (resolve_pending_breakpoint): Remove.
740 (re_enable_breakpoints_in_shlibs): Remove.
741 (unlink_locations_from_global_list): New.
742 (update_breakpoint_locations): New.
743 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
744 Use parse_condition and update_breakpoint_location to
745 reset breakpoint. Ignore 'symbol not found' error from
747 (breakpoint_re_set): Don't emit newline before the
748 reason why breakpoint is not reset.
749 (do_enable_breakpoint): Don't specially process pending
751 (free_bp_location): New.
752 (break_command_1): For pending breakpoints, initialize
753 all fields of a sal with zeroes.
754 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
755 * infcmd.c (post_create_inferior): Don't call
756 re_enable_breakpoints_in_shlibs.
757 * infrun.c (handle_inferior_event): Likewise.
758 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
759 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
760 * win32-nat.c (get_win32_debug_event): Likewise.
762 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
764 * breakpoint.c (create_breakpoint): Split from
765 create_breakpoints, implementing most of its logic.
766 Take just a single sal, single address string and
767 single condition. Do not take parsed condition at
769 (create_breakpoints): Just call create_breakpoint
771 (find_condition_and_thread): New.
772 (break_command_1): Use find_condition_and_thread.
773 Do not keep parsed conditions.
774 (do_captured_breakpoint): Don't convert
775 condition string to struct expression.
777 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
779 * breakpoint.h (struct breakpoint): Move the cond
781 (struct bp_location): Here.
782 * breakpoint.c (condition_command, bpstat_stop_status)
783 (print_one_breakpoint, allocate_bp_location)
784 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
785 (create_exec_event_catchpoint, create_breakpoints)
786 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
787 (create_ada_exception_breakpoint, set_breakpoint_sal)
788 (delete_breakpoint, breakpoint_re_set_one): Adjust.
789 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
791 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
793 Associate bp_stat with bp_location, not breakpoint.
794 * breakpoint.h (breakpoint_at): Change type
796 * breakpoint.c (bpstat_alloc): Take bp_location,
798 (bpstat_find_breakpoint): Look at bpstat's location's
799 owner, not at bpstat->breakpoint_at.
800 (bpstat_find_step_resume_breakpoint): Likewise.
801 (bpstat_num): Likewise.
802 (print_it_typical): Likewise.
803 (print_bp_stop_message): Likewise.
804 (watchpoint_check): Likewise.
805 (bpstat_what): Likewise.
806 (bpstat_get_triggered_catchpoints): Likewise.
807 (breakpoint_auto_delete): Likewise.
808 (delete_breakpoint): Likewise.
809 (bpstat_stop_status): Pass location, not breakpoint,
810 to bpstat_alloc. Look at bpstat's location's
811 owner, not at bpstat->breakpoint_at.
813 2007-09-21 Jim Blandy <jimb@codesourcery.com>
815 * macrotab.h (new_macro_table): Document that removing information
816 from an obstack/bcache-managed macro table leaks memory.
817 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
818 that data is never freed in obstack/bcache-managed macro tables,
819 just leak the storage.
820 (macro_undef): If we're undefining a macro at exactly the same
821 source location that we defined it, simply remove the definition
824 2007-09-21 Joel Brobecker <brobecker@adacore.com>
826 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
827 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
828 Adjust the struct sym_fns object accordingly by setting
829 the new field to NULL.
830 * xcoffread.c (aix_process_linenos): Make static.
831 (xcoff_sym_fns): Set new field to aix_process_linenos.
832 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
833 by call to new the new sym_fns sym_read_linetable function.
834 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
835 * config/rs6000/tm-rs6000.h: Delete.
837 2007-09-21 David Ung <davidu@mips.com>
838 Maciej W. Rozycki <macro@mips.com>
840 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
841 rules do not treat composite types specially.
843 2007-09-20 Maciej W. Rozycki <macro@mips.com>
845 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
846 (mips16_in_function_epilogue_p): Likewise.
847 (mips_in_function_epilogue_p): Likewise.
848 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
850 2007-09-19 Joel Brobecker <brobecker@adacore.com>
852 * configure.ac: Add check for "etext".
853 * configure, config.in: Regenerate.
854 * maint.c (TEXTEND): Only define if either _etext or etext
856 Disable the profiling functionality if TEXTEND is not defined.
858 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
860 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
861 address register. Correct the call to frame_id_build.
862 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
865 2007-09-18 Joel Brobecker <brobecker@adacore.com>
867 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
868 the linetable past the function end.
870 2007-09-18 James E. Wilson <wilson@specifix.com>
872 * MAINTAINERS: Update my email address.
874 2007-09-18 Jerome Guitton <guitton@adacore.com>
876 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
877 (inf_ttrace_delete_dying_threads_callback): New function.
878 (inf_ttrace_resume): After resuming the execution, iterate over
879 the dying threads to delete them for the thread list.
880 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
881 mark the corresponding thread as dying instead of removing it
882 from the thread list.
883 (inf_ttrace_thread_alive): return 0 for dying threads.
885 2007-09-17 Joel Brobecker <brobecker@adacore.com>
887 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
888 that return_frame is not null.
890 2007-09-17 Joel Brobecker <brobecker@adacore.com>
892 * solib-svr4.c: Add include of "auxv.h".
893 (enable_break): Use the AT_BASE auxiliary entry if available.
894 * Makefile.in (solib-svr4.o): Update dependencies.
896 2007-09-17 Joel Brobecker <brobecker@adacore.com>
898 * NEWS: Create a new section for the next release branch.
899 Rename the section of the current branch, now that it has
902 2007-09-17 Jerome Guitton <guitton@adacore.com>
904 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
905 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
907 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
909 * mi/mi-cmds.c (mi_cmds): Register -list-features.
910 * mi/mi-cmds.h (mi_cmd_list_features): New.
911 * mi/mi-main.c (mi_cmd_list_features): New.
913 2007-09-11 Joel Brobecker <brobecker@adacore.com>
915 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
916 * version.in: Bump version to 6.7.50-20070911-cvs.
918 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
920 * thread.c (free_thread): Do not delete the step resume breakpoint
923 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
925 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
926 * corelow.c (core_read_description): New.
927 (init_core_ops): Set to_read_description.
928 * gdbarch.sh: Add gdbarch_core_read_description.
929 * mips-linux-tdep.c (mips_linux_core_read_description): New.
930 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
931 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
932 (mips_register_g_packet_guesses): Use them.
933 (_initialize_mips_tdep): Initialize them.
934 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
935 * gdbarch.h, gdbarch.c: Regenerated.
937 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
939 * infrun.c (stepping_past_breakpoint): New global variable.
940 (stepping_past_breakpoint_ptid): Likewise.
941 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
942 Only switch threads if we need to single-step over a breakpoint hit
943 in the previously selected thread. If stepping, remember previous
944 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
945 switch_to_thread instead of copying its contents.
946 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
947 prepare_to_proceed returns true.
948 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
949 (context_switch): Call switch_to_thread.
950 (handle_inferior_event): Switch back to previous thread if requested
951 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
952 * gdbthread.h (switch_to_thread): Add prototype.
953 * thread.c (switch_to_thread): Make global.
955 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
957 * p-valprint.c: Fix 7 ARI reported problems.
958 (pascal_val_print): Fix one operator at end of line issue.
959 Use paddress function to remove use of
960 deprecated_print_address_numeric function (2 times).
961 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
962 (pascal_value_print): Fix 3 operator at end of line issues.
964 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
967 * arm-tdep.c (arm_in_call_stub): Delete.
968 (arm_skip_stub): Handle from_arm and from_thumb stubs.
970 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
972 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
975 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
976 Jim Blandy <jimb@codesourcery.com>
978 * NEWS: Update description of string changes. Mention print/s.
979 * c-valprint.c (textual_element_type): New.
980 (c_val_print): Use it. Do not skip address printing for pointers
981 with a string format.
982 (c_value_print): Doc update.
983 * dwarf2read.c (read_array_type): Use make_vector_type.
984 * gdbtypes.c (make_vector_type): New.
985 (init_vector_type): Use it.
986 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
987 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
988 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
989 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
990 (make_vector_type): New.
991 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
992 Call the language print routine for string format.
993 (print_scalar_formatted): Call val_print for string format. Handle
994 unsigned original types for char format.
995 (validate_format): Do not reject string format.
996 * stabsread.c (read_type): Use make_vector_type.
997 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
999 2007-09-04 Michael Snyder <msnyder@access-company.com>
1001 * expprint.c (print_subexp_standard): Check strchr for null.
1002 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1004 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1006 * stabsread.c (patch_block_status): Guard against null.
1007 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1009 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1011 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1012 in internal error message.
1014 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1015 Daniel Jacobowitz <dan@codesourcery.com>
1017 * infcmd.c (post_create_inferior): Update comment.
1018 (run_command_1): Always call post_create_inferior with 0 as
1021 * i386-cygwin-tdep.h: New.
1022 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1023 (win32_xfer_shared_library): Make it extern.
1025 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1027 (win32_so_ops): Delete.
1028 (get_relocated_section_addrs): Delete.
1029 (solib_symbols_add): Delete.
1030 (register_loaded_dll): Delete.
1031 (win32_make_so): New.
1032 (handle_load_dll): Use win32_make_so.
1033 (win32_free_so): Free the passed in so.
1034 (win32_relocate_section_addresses): Delete.
1035 (win32_solib_create_inferior_hook): Delete.
1036 (handle_unload_dll): Don't add PE offset here. Free so with
1037 win32_free_so instead of free_so.
1038 (win32_special_symbol_handling): Delete.
1039 (get_win32_debug_event): Remove unneeded calls. Set state to
1040 TARGET_WAITKIND_LOADED on a dll unload.
1041 (do_initial_win32_stuff): Clear cygwin_load_start and
1043 (map_code_section_args): Delete.
1044 (dll_code_sections_add): Delete.
1045 (core_section_load_dll_symbols): Delete.
1046 (win32_xfer_shared_libraries): New.
1047 (win32_current_sos): Delete.
1048 (win32_xfer_partial): New.
1049 (open_symbol_file_object): Delete.
1050 (in_dynsym_resolve_code): Delete.
1051 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1052 of win32_ops. Remove win32_so_ops settings. Don't set
1053 current_target_so_ops here.
1055 * Makefile.in (i386_cygwin_tdep_h): New variable.
1056 (i386-cygwin-tdep.o): Update dependencies.
1057 (win32-nat.o): Update dependencies.
1059 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1060 Daniel Jacobowitz <dan@codesourcery.com>
1062 * gdbarch.sh (core_xfer_shared_libraries): New.
1064 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1066 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1068 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1069 (xml_escape_text): New.
1070 * xml-support.h (xml_escape_text): Declare.
1072 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1073 * config/i386/cygwin.mt (TDEPFILES): ... here.
1075 * win32-nat.c: (fetch_elf_core_registers): Delete.
1076 (win32_elf_core_fn): Delete.
1077 (_initialize_core_win32): Delete.
1079 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1080 "xml-support.h" and "gdbcore.h".
1081 (i386_win32_gregset_reg_offset): New.
1082 (I386_WIN32_SIZEOF_GREGSET): New.
1083 (i386_win32_regset_from_core_section): New.
1084 (win32_xfer_shared_library): New.
1085 (struct cpms_data): New.
1086 (core_process_module_section): New.
1087 (win32_core_xfer_shared_libraries): New.
1088 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1089 gregset_num_regs, sizeof_gregset members of tdep. Register
1090 regset_from_core_section and core_xfer_shared_libraries callbacks.
1092 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1093 * gdbarch.h, gdbarch.c: Regenerate.
1095 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1097 * corelow.c (core_xfer_partial): Pass writebuf to
1098 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1100 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1102 * arm-tdep.h (arm_skip_stub): Declare.
1103 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1105 (arm_pe_skip_trampoline_code): New function.
1106 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1107 gdbarch_skip_trampoline_code callback.
1108 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1110 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1112 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1114 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1116 * configure.ac: Add --with-expat.
1117 * configure: Regenerated.
1119 2007-09-03 Andreas Schwab <schwab@suse.de>
1121 * configure.ac: Accept --with-system-readline.
1122 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1123 * configure: Regenerate.
1124 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1126 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1128 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1129 Daniel Jacobowitz <dan@codesourcery.com>
1131 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1133 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1135 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1137 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1139 * top.c (print_gdb_version): Update for GPL version 3.
1141 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1143 * NEWS: Mention the build-id .debug files verification.
1145 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1147 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1149 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1151 * Makefile.in (symfile.o): Update dependencies.
1152 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1153 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1154 (struct build_id): New structure.
1155 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1156 (find_separate_debug_file): New variable BUILD_ID.
1157 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1159 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1161 * varobj.c (struct varobj): Fix comment
1162 for the type member not to lie when it can be
1165 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1167 Implement -var-info-path-expression.
1169 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1171 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1172 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1173 * varobj.c (struct varobj): New field 'path_expr'.
1174 (c_path_expr_of_child, cplus_path_expr_of_child)
1175 (java_path_expr_of_child): New.
1176 (struct language_specific): New field path_expr_of_child.
1177 (varobj_create): Initialize the path_expr field.
1178 (varobj_get_path_expr): New.
1179 (new_variable): Initialize the path_expr field.
1180 (free_variable): Free the path_expr field.
1181 (adjust_value_for_children_access): New parameter
1183 (c_number_of_children): Adjust.
1184 (c_describe_child): New parameter CFULL_EXPRESSION.
1185 Compute full expression.
1186 (c_value_of_child, c_type_of_child): Adjust.
1187 (cplus_number_of_children): Adjust.
1188 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1189 Compute full expression.
1190 (cplus_name_of_child, cplus_value_of_child)
1191 (cplus_type_of_child): Adjust.
1192 * varobj.h (varobj_get_path_expr): Declare.
1194 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1196 * mi/mi-cmd-var.c (print_varobj): If a varobj
1197 type is NULL, don't try to print it.
1199 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1201 * ppc-linux-nat.c (right_fill_reg): Delete.
1202 (supply_gregset): Use ppc_supply_gregset.
1203 (supply_fpregset): Use ppc_supply_fpregset.
1204 (fill_gregset): Use ppc_collect_gregset.
1205 (fill_fpregset): Use ppc_collect_fpregset.
1206 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1207 (right_supply_register, ppc_linux_supply_gregset): Delete.
1208 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1209 (ppc_linux_supply_fpregset): Delete.
1210 (ppc_linux_collect_gregset): New function.
1211 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1212 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1213 ppc_linux_supply_gregset, and ppc_collect_gregset.
1214 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1215 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1216 (ppc_linux_regset_from_core_section): Update.
1217 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1218 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1219 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1220 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1221 (ppcobsd_collect_gregset): Likewise.
1222 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1223 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1224 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1225 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1226 (rs6000_aix64_reg_offsets): Likewise.
1227 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1228 ppc_floating_point_unit_p.
1229 (rs6000_aix_collect_regset): Similarly.
1230 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1231 when regsize is larger than regcache register size.
1232 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1233 regcache register size.
1234 (ppc_greg_offset): New function, split out from..
1235 (ppc_supply_gregset): ..here. Separate code handling all regs from
1236 single reg case. Correct xer offset.
1237 (ppc_fpreg_offset): New function, split out from..
1238 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1240 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1241 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1242 a fp unit, instead return if no fp.
1244 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1246 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1247 this code has not been compiled for two years.
1249 2007-08-29 Michael Snyder <msnyder@access-company.com>
1251 * event-top.c (gdb_readline2): Return after EOF.
1253 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1255 * symtab.c: Remove a function that has been commented out 3 years ago.
1257 2007-08-29 Randolph Chung <tausq@debian.org>
1259 * hppa-tdep.c (hppa32_cannot_fetch_register)
1260 (hppa64_cannot_fetch_register): New functions.
1261 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1262 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1264 2007-08-28 Michael Snyder <msnyder@access-company.com>
1266 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1267 check for null before calling check_typedef.
1269 * NEWS: Mention Coverity bug fixes.
1271 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1273 * spu-tdep.c (spu_pointer_to_address): New function.
1274 (spu_integer_to_address): Likewise.
1275 (spu_gdbarch_init): Add spu_pointer_to_address and
1276 spu_integer_to_address to gdbarch.
1278 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1280 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1282 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1284 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1285 that contains the GDB license.
1286 * copying.awk: Adjust to the GPLv3 wording.
1287 * copying.c: Regenerate.
1289 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1291 * copying.awk: Protoization, and i18n markup.
1293 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1295 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1296 * copyright.sh: Likewise.
1297 * gdb-events.sh: Likewise.
1298 * gdb_gcore.sh: Likewise.
1299 * gdb_mbuild.sh: Likewise.
1300 * gdbarch.sh: Likewise.
1301 * observer.sh: Likewise.
1302 * features/feature_to_c.sh: Likewise.
1303 * regformats/regdat.sh: Likewise.
1305 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1307 Switch the license of all .c files to GPLv3.
1308 Switch the license of all .h files to GPLv3.
1309 Switch the license of all .cc files to GPLv3.
1311 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1313 * configure.ac: Switch license to GPLv3.
1315 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1317 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1318 determine the file's FPU type.
1320 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1322 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1323 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1324 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1326 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1328 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1330 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1331 (elf_lookup_lib_symbol): Fix formatting.
1333 2007-08-21 Michael Snyder <msnyder@access-company.com>
1335 * dbxread.c (read_dbx_symtab): Guard null deref.
1338 * valops.c (find_overload_match): Guard against NULL.
1340 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1342 * MAINTAINERS (Patch Champions): Remove self.
1344 2007-08-21 Chris Smith <chris.smith@st.com>
1346 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1349 2007-08-18 Michael Snyder <msnyder@access-company.com>
1351 * stabsread.c (dbx_lookup_type): Memory leak.
1353 * event-loop.c (delete_async_signal_handler): Move pointer null
1354 test to before pointer dereference.
1356 * ui-out.c (append_header_to_list): Possible cut and paste error.
1358 * MAINTAINERS: white space tweak.
1360 2007-08-17 Michael Snyder <msnyder@access-company.com>
1362 * stack.c (print_frame): Memory leak.
1364 * completer.c (filename_completer): Avoid memory leak.
1365 Remove unnecessary nested block.
1367 * c-exp.y (parse_number): Memory leak.
1369 * completer.c (location_completer): Must free 'fn_list', except
1370 in the one case where it is returned (as 'list').
1372 * varobj.c (value_of_root): Memory leak.
1374 * gdbtypes.h (virtual_base_list): Remove export decl.
1375 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1376 (virtual_base_index): Memory leak.
1377 (virtual_base_index_skip_primaries): Ditto.
1379 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1381 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1382 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1383 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1384 (xtensa_read_register): New function.
1385 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1386 (xtensa_insn_kind): New types.
1387 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1388 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1389 (xtensa_verify_config, xtensa_pseudo_register_read)
1390 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1391 (xtensa_store_return_value)
1392 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1393 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1394 (xtensa_frame_this_id, xtensa_frame_prev_register)
1395 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1396 (call0_frame_cache, call0_frame_get_reg_at_entry)
1397 (call0_classify_opcode, call0_track_op)
1398 (call0_analyze_prologue, call0_frame_cache): New functions.
1400 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1402 * breakpoint.c (bpstat_free): New.
1403 (bpstat_clear): Use bpstat_free.
1404 (delete_breakpoint): Document why we cannot
1405 remove bpstats from stop_bpstat.
1406 * breakpoint.h (bpstat_free): Declare.
1408 2007-08-16 Michael Snyder <msnyder@access-company.com>
1410 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1412 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1413 Joel Brobecker <brobecker@adacore.com>
1415 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1417 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1418 Joel Brobecker <brobecker@adacore.com>
1420 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1421 checkin guarding against NULL.
1423 2007-08-14 Michael Snyder <msnyder@access-company.com>
1425 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1426 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1427 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1428 go at beginning of new line.
1430 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1431 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1432 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1433 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1434 tui-winsource.h, tui.c, tui.h: Function declarations and
1435 definitions, wrap long lines.
1437 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1438 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1439 Reformat block comments to GNU standard.
1441 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1442 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1443 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1444 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1445 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1446 spaces after periods, etc).
1448 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1449 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1450 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1451 tui-winsource.h: Whitespace changes, fix pointer declarations
1454 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1455 Michael Snyder <msnyder@access-company.com>
1457 * ada-lang.c (field_alignment): Guard against NULL.
1459 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1461 * MAINTAINERS (Global Maintainers): Add self.
1463 2007-08-14 Michael Snyder <msnyder@access-company.com>
1465 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1467 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1469 * varobj.c (cplus_describe_child): Guard against null.
1470 Use "NULL" instead of "0" to initialize pointers.
1472 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1474 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1475 to match any gdbarch with matching OSABI. Set default ABI and FPU
1476 after running the OSABI handler.
1478 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1480 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1481 * config/i386/linux.mt (TDEPFILES): ...to here.
1483 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1485 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1486 the 'silent' parameter and code to implement that.
1487 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1489 * win32-nat.c: Adjust.
1492 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1494 * breakpoint.c (update_breakpoints_after_exec): Don't
1495 set address to zero.
1497 2007-08-13 Michael Snyder <msnyder@access-company.com>
1499 * valops.c: Whitespace clean-up.
1501 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1503 * event-top.c (command_line_handler): Memory leak.
1505 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1506 No need to make copy.
1508 * source.c (find_source_lines): Require symtab 's'.
1510 2007-08-11 Michael Snyder <msnyder@access-company.com>
1512 * completer.c: Spelling fix in comments.
1514 2007-08-10 Michael Snyder <msnyder@access-company.com>
1516 * gdbtypes.c: Coding standard cleanup.
1517 * gdbtypes.c: Comment/whitespace cleanup.
1519 * stabsread.c (read_huge_number): Attempt to compute value before
1520 values that it depends on.
1522 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1523 (decode_objc): Use "NULL" instead of 0.
1524 (find_method): Ditto.
1525 (decode_all_digits): Ditto.
1526 (decode_dollar): Ditto.
1528 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1530 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1532 * solib-svr4.c (enable_break): Don't free tmp_pathname until
1535 * completer.c: Comment/whitespace cleanup.
1537 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1539 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1541 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
1543 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1544 allocated file descriptors.
1546 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1548 * Makefile.in: Minor cleanup throughout; add some missing variables,
1549 add some missing rules, remove some rules that are no longer needed,
1550 and fix the dependencies in several rules.
1552 2007-08-10 Ludovic Courtès <ludo@gnu.org>
1554 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
1555 (scm_lang_h, scm_tags_h): New.
1556 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
1557 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
1558 * defs.h (enum language): Add `language_scm'.
1560 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
1563 2007-08-09 Ludovic Courtès <ludo@gnu.org>
1565 * MAINTAINERS (Write After Approval): Add myself.
1567 2007-08-09 Michael Snyder <msnyder@access-company.com>
1569 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
1571 2007-08-09 Joel Brobecker <brobecker@adacore.com>
1573 * solib-som.c (som_relocate_section_addresses): Stop saving
1574 the $CODE$ section in the so_list structure.
1576 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
1578 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
1579 (xtensa_register_group_t): Add entries for coprocessors.
1580 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
1581 (xtensa_add_reggroups): Likewise.
1582 (xtensa_register_reggroup_p): Likewise.
1583 (xtensa_coprocessor_register_group): New function.
1586 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1588 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
1590 2007-08-08 Michael Snyder <msnyder@access-company.com>
1592 * target.c (target_read_string): Guard against null.
1594 * varobj.c (value_of_root): Move alloc after return to avoid leak.
1596 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
1597 (tui_set_layout_for_display_command): Mem leak.
1599 * top.c (command_line_input): Memory leak.
1601 * solib-svr4.c (open_symbol_file_object): Memory leak.
1602 (svr4_current_sos): Ditto.
1603 (enable_break): Ditto.
1605 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
1607 * dwarf2read.c (add_partial_symbol): Memory leak.
1609 2007-08-06 Michael Snyder <msnyder@access-company.com>
1611 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
1613 2007-08-05 Jim Blandy <jimb@codesourcery.com>
1615 * macroexp.c (init_buffer): Remove testing code that overrides the
1616 caller's length guess.
1617 (gather_arguments): Use a larger initial size, now that the vector
1618 growth code has been exercised.
1620 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
1622 * solib-target.c (solib_target_relocate_section_addresses): Add
1623 orig_delta to addr_high.
1625 2007-08-04 Michael Snyder <msnyder@access-company.com>
1627 * remote-fileio.c (remote_fileio_func_write): Memory leak.
1629 * breakpoint.c (print_one_breakpoint): Off by one error.
1631 * tracepoint.c (add_register): Off by one error.
1632 (stringify_collection_list): Free malloc buffer.
1634 2007-08-03 Michael Snyder <msnyder@access-company.com>
1636 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
1637 stop memory leak, straighten out cleanups.
1639 * jv-lang.c (java_link_class_type): Guard against NULL.
1641 2007-08-02 Michael Snyder <msnyder@access-company.com>
1643 * gdbtypes.c (create_set_type): Test should only be done within
1644 the preceeding if block. Otherwise, variable is uninitialized.
1646 * gdbtypes.c (check_typedef): Guard NULL.
1648 2007-08-01 Michael Snyder <msnyder@access-company.com>
1650 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
1651 avoid dereference in lookup_cmd_1.
1653 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
1654 clean up long lines.
1655 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
1656 (tui_alloc_win_info): Ditto.
1657 (tui_add_content_elements): Ditto.
1658 * tui/tui-file.c (tui_file_magic): Ditto.
1660 2007-07-31 Michael Snyder <msnyder@access-company.com>
1662 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
1663 True and false paths are mutually exclusive.
1665 * event-top.c (command_line_handler): Add pedantic return.
1667 * f-valprint.c (info_common_command): Bail out to prevent null
1668 pointer deref. Break up a long line.
1670 * exec.c (xfer_memory): Remove redundant condition from 'if'.
1672 * symfile.c (reread_separate_symbols): Free xmalloced memory.
1674 * printcmd.c (build_address_symbolic): Remove dead code and dead
1677 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
1679 * linespec.c (minsym_found): Advance to the next line if possible.
1681 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
1683 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
1684 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
1685 solib-svr4.o, and add solib-target.o
1687 2007-07-27 Michael Snyder <msnyder@access-company.com>
1689 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
1691 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
1693 * MAINTAINERS (Write After Approval): Add myself.
1695 2007-07-26 Maciej W. Rozycki <macro@mips.com>
1697 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
1700 2007-07-25 Maciej W. Rozycki <macro@mips.com>
1702 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
1704 2007-07-24 Michael Snyder <msnyder@access-company.com>
1706 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
1707 'buffer' must cover both branches that call strcmp (Coverity).
1709 * stack.c (print_frame_args): Check return value of lookup_symbol.
1711 * ax-gdb.c (find_field): Guard against null ptr.
1713 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1715 * regformats/reg-spu.dat: Fix order of npc, id registers.
1717 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1719 * target.c (memory_xfer_partial): Accesses to unmapped overlay
1720 sections should always go to the executable file.
1722 2004-07-20 Chris Dearman <chris@mips.com>
1724 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
1725 prologue instructions.
1727 2007-07-20 Maciej W. Rozycki <macro@mips.com>
1729 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
1732 2007-07-20 Chris Dearman <chris@mips.com>
1733 Maciej W. Rozycki <macro@mips.com>
1735 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
1738 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
1739 Daniel Jacobowitz <dan@codesourcery.com>
1741 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
1742 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
1744 * NEWS: Mention gdbserver DLL support.
1746 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
1748 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
1750 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
1752 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
1755 2007-07-13 Kevin Buettner <kevinb@redhat.com>
1757 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
1760 2007-07-12 Kevin Buettner <kevinb@redhat.com>
1762 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
1763 (mep_analyze_prologue): Add case for BRA instruction.
1765 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
1767 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
1769 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
1771 * breakpoint.c: Include "top.h".
1772 (breakpoint_1): Don't set convenience variable $_ if server prefix
1774 (_initialize_breakpoint): Describe this behaviour in command help.
1776 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
1778 * solib-target.c (library_list_start_segment): Cast address to
1781 2007-07-06 Mark Kettenis <kettenis@gnu.org>
1783 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
1784 for terminated processes.
1786 2007-07-05 Michael Snyder <msnyder@access-company.com>
1788 * event-top.c (cli_command_loop): Prompt string can (and should)
1789 be freed after call to readline (Coverity). Also move local var
1790 declarations into block where they are used.
1792 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
1793 should) be freed after call to readline (Coverity). Also move
1794 local var declarations into block where they are used.
1796 2007-07-03 Andreas Schwab <schwab@suse.de>
1798 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
1801 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
1802 Thiago Bauermann <bauerman@br.ibm.com>
1803 Joseph S. Myers <joseph@codesourcery.com>
1804 Daniel Jacobowitz <dan@codesourcery.com>
1806 * remote.c (remote_check_symbols): Use
1807 gdbarch_convert_from_func_ptr_addr.
1808 * infcall.c (find_function_addr): Handle function descriptors
1809 without debugging information.
1810 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
1811 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
1812 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
1813 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
1814 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
1815 allow SEC_CODE and SEC_DATA.
1816 (enable_break): Update calls. Pass current_target to solib_add.
1817 Use gdbarch_convert_from_func_ptr_addr.
1819 2007-07-03 Ilko Iliev <iliev@ronetix.at>
1820 Daniel Jacobowitz <dan@codesourcery.com>
1822 * symfile.c (print_transfer_performance): Avoid integer overflow.
1825 2007-07-03 Markus Deuling <deuling@de.ibm.com>
1827 * cp-namespace.c (lookup_symbol_file): Add block to
1828 lookup_symbol_global call.
1829 * Makefile.in (solist_h): Add dependency on symtab header.
1830 (symtab.o): Add dependency on solist header.
1831 * solib.c (solib_global_lookup): New function.
1832 * solib-svr4.c (scan_dyntag): Likewise.
1833 (elf_locate_base): Call helper routine scan_dyntag.
1834 (elf_lookup_lib_symbol): New function.
1835 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
1836 * solist.h (symtab.h): New include.
1837 (struct target_so_ops): New member lookup_lib_global_symbol.
1838 (solib_global_lookup): New prototype.
1839 * symtab.c: New include solist.h.
1840 (lookup_objfile_from_block): New function.
1841 (lookup_global_symbol_from_objfile): New function.
1842 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
1843 (lookup_symbol_global): Call library-specific lookup procedure.
1844 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
1846 * NEWS: Document framework.
1848 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1850 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
1853 * cli/cli-script.c (build_command_line): Update NULL check.
1855 2007-07-02 Michael Snyder <msnyder@access-company.com>
1857 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
1859 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1861 * Makefile.in (XMLFILES): Add library-list.dtd.
1862 (ALLDEPFILES): Add solib-target.o.
1863 (solib-target.o): New rule.
1864 * remote.c (PACKET_qXfer_libraries): New constant.
1865 (remote_protocol_features): Add qXfer:libraries:read.
1866 (remote_wait): Recognize library stop replies.
1867 (remote_async_wait): Likewise. Fix typo.
1868 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1869 (init_remote_async_ops): Fix typo.
1870 (_initialize_remote): Register "set remote library-info-packet".
1871 * solib-som.c (som_current_sos): Set addr_low and addr_high.
1872 * solib-target.c: New file.
1873 * solib.c (solib_map_sections): Use addr_low and addr_high instead
1875 (info_sharedlibrary_command): Likewise.
1876 (solib_add_library, solib_remove_library): New.
1877 * solist.h (struct so_list): Replace textsection with addr_low and
1879 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
1880 * NEWS: Describe new qXfer:libraries:read and shared library
1882 * features/library-list.dtd: New.
1884 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1886 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
1887 (start_remote): Use STOP_QUIETLY_REMOTE.
1888 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
1889 support on a SOLIB_ADD definition. Update breakpoints_inserted.
1890 Update to match shared library event breakpoint support. Only
1891 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
1892 (normal_stop): Handle TARGET_WAITKIND_LOADED.
1893 * fork-child.c (startup_inferior): Do not set
1894 inferior_ignoring_startup_exec_events
1895 * inferior.h (inferior_ignoring_startup_exec_events): Delete
1897 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
1899 2007-07-02 Markus Deuling <deuling@de.ibm.com>
1901 * breakpoint.c (insert_bp_location): Remove dead code
1902 (DISABLE_UNSETTABLE_BREAK).
1903 (disable_breakpoints_in_shlibs)
1904 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
1906 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1908 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
1909 Call insert_bp_location.
1911 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
1913 * core-regset.c (fetch_core_registers): Work around gcc 3.4
1916 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1918 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
1921 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1923 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
1924 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
1925 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
1926 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
1927 to display_gdb_prompt.
1929 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1932 * target.c (memory_xfer_partial): Do not continue past targets with
1935 2007-06-30 Andreas Schwab <schwab@suse.de>
1937 * m68k-tdep.c (m68k_ps_type): New.
1938 (m68k_init_types): New.
1939 (m68k_register_type): Use m68k_ps_type for PS register.
1940 (_initialize_m68k_tdep): Call m68k_init_types.
1942 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
1943 from the generic m68k arch.
1945 2007-06-28 Michael Snyder <msnyder@access-company.com>
1947 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
1950 * linux-thread-db.c (thread_db_get_thread_local_address): Add
1951 gdb_assert before using return value of find_thread_pid (Coverity).
1953 * source.c (unset_substitute_path_command): Plug leak (Coverity).
1955 * cli/cli-script.c (build_command_line): Add null pointer guard
1958 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
1960 * linux-thread-db.c (thread_db_attach): Delete.
1961 (thread_db_detach): Typo fix. Call target_mourn_inferior
1962 instead of fixing up proc_handle.
1963 (have_threads_callback, have_threads): New functions.
1964 (thread_db_wait): Remove dead proc_handle.pid check. Only
1965 translate PTIDs if we have registered threads. Check for new
1966 threads if we have none.
1967 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
1968 (find_new_threads_callback): Only enable event reporting if TID == 0.
1969 (same_ptid_callback): New.
1970 (thread_db_get_thread_local_address): Check for new threads.
1971 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
1972 or to_post_startup_inferior.
1974 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1976 * infrun.c (adjust_pc_after_break): Do not assume software single-step
1977 is always active if SOFTWARE_SINGLE_STEP_P is true.
1978 (resume): Use gdbarch_software_single_step[_p] instead of
1979 SOFTWARE_SINGLE_STEP[_P].
1980 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
1982 * gdbarch.sh (software_single_step): Remove target macro.
1983 * gdbarch.h, gdbarch.c: Regenerate.
1985 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1987 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
1988 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
1989 (struct gdbarch_swap, struct gdbarch_swap_registration,
1990 struct gdbarch_swap_registry, gdbarch_swap_registry,
1991 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
1992 current_gdbarch_swap_in_hack): Remove.
1993 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
1994 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
1995 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
1996 (deprecated_current_gdbarch_select_hack): Likewise.
1997 * gdbarch.h, gdbarch.c: Regenerate.
1999 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2001 * infrun.c (clear_proceed_status): Clean up stop_registers.
2002 (normal_stop): Allocate regcache for stop_registers.
2003 (struct inferior_status): Remove stop_registers member.
2004 (save_inferior_status): Do not save stop_registers.
2005 (restore_inferior_status): Do not restore stop_registers.
2006 (discard_inferior_status): Do not discard stop_registers.
2007 (build_infrun): Remove.
2008 (_initialize_infrun): Do not swap stop_registers.
2010 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2012 * remote.c (remote_address_masked): If remote_address_size is zero,
2013 default to target address size.
2014 (build_remote_gdbarch_data): Remove.
2015 (_initialize_remote): Do not swap remote_address_size.
2017 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2019 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2020 builtin_type_char, builtin_type_short, builtin_type_int,
2021 builtin_type_long, builtin_type_signed_char,
2022 builtin_type_unsigned_char, builtin_type_unsigned_short,
2023 builtin_type_unsigned_int, builtin_type_unsigned_long,
2024 builtin_type_float, builtin_type_double, builtin_type_long_double,
2025 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2026 builtin_type_bool, builtin_type_long_long,
2027 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2028 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2029 variable declaration with compatibility macro.
2030 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2031 builtin_type_char, builtin_type_short, builtin_type_int,
2032 builtin_type_long, builtin_type_signed_char,
2033 builtin_type_unsigned_char, builtin_type_unsigned_short,
2034 builtin_type_unsigned_int, builtin_type_unsigned_long,
2035 builtin_type_float, builtin_type_double, builtin_type_long_double,
2036 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2037 builtin_type_bool, builtin_type_long_long,
2038 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2039 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2040 (build_gdbtypes): Remove.
2041 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2042 opaque-type-resolution command here. Do not call
2043 deprecated_register_gdbarch_swap.
2045 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2047 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2048 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2049 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2051 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2052 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2053 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2054 (build_parse): Remove.
2055 (_initialize_parse): Do not call build_parse. Do not register
2056 msym_ types for gdbarch-swapping.
2058 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2059 instead of creating private type.
2061 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2062 (_initialize_xcoffread): Do not initialized them.
2063 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2065 * mdebugread.c (nodebug_func_symbol_type): Remove.
2066 (nodebug_var_symbol_type): Remove.
2067 (_initialize_mdebugread): Do not initialize them.
2068 (parse_symbol): Use builtin nodebug_ type instead of them.
2069 (parse_procedure): Likewise.
2071 2007-06-21 Chris Dearman <chris@mips.com>
2073 * printcmd.c (do_one_display): If display/i, start with an initial
2074 line feed to avoid bad layout if there is a branch delay slot.
2076 2007-06-21 Nigel Stephens <nigel@mips.com>
2077 Maciej W. Rozycki <macro@mips.com>
2079 * disasm.c (gdb_print_insn): Return the number of branch delay
2080 slot instructions too.
2081 * disasm.h (gdb_print_insn): Update prototype.
2082 * printcmd.c (branch_delay_insns): New variable to record the
2083 number of delay slot instructions after disassembling a branch.
2084 (print_formatted): Record the number of branch delay slot
2086 (do_examine): When disassembling, if the last instruction
2087 disassembled has any branch delay slots, then bump the count so
2088 that they get disassembled too.
2089 * tui/tui-disasm.c (tui_disassemble): Update the call to
2091 * NEWS: Document the new behaviour.
2093 2007-06-21 Andreas Schwab <schwab@suse.de>
2095 * regcache.c (write_pc_pid): Restore missing else.
2097 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2099 * regcache.c (regcache_print): Use get_current_regcache ()
2100 instead of current_regcache.
2102 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2105 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2106 instead of bfd_make_section_anyway.
2107 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2108 when clearing SEC_LOAD.
2110 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2112 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2113 registers for big-endian.
2115 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2117 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2118 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2119 * gdbarch.c, gdbarch.h: Regenerate.
2121 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2123 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2124 gdbarch_believe_pcc_promotion.
2125 * stabsread.c (define_symbol): Likewise.
2126 Remove unnecessary definition.
2127 * coffread.c (process_coff_symbol): Remove unnecessary code.
2128 * gdbarch.c, gdbarch.h: Regenerate.
2130 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2132 * configure.ac: Do not use ${objdir}.
2133 * configure: Regenerated.
2135 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2137 * gdbarch.sh (deprecated_register_size): Remove.
2138 * gdbarch.h, gdbarch.c: Regenerate.
2140 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2141 by INT_REGISTER_SIZE.
2142 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2143 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2144 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2145 set_gdbarch_deprecated_register_size.
2147 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2149 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2150 gdbarch_deprecated_fp_regnum.
2151 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2152 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2153 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2154 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2156 * gdbarch.c, gdbarch.h: Regenerate.
2158 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2160 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2161 gdbarch_extract_return_value.
2162 * value.c (generic_use_struct_convention): Likewise (comment).
2163 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2164 * arch-utils.c (legacy_return_value): Likewise.
2165 * arch-utils.h (legacy_return_value): Likewise (comment).
2166 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2167 gdbarch_store_return_value.
2168 * stack.c (return_command): Likewise (comment).
2169 * arch-utils.h (legacy_return_value): Likewise (comment).
2170 * arch-utils.c (legacy_return_value): Likewise.
2171 * gdbarch.c, gdbarch.h: Regenerate.
2173 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2175 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2176 gdbarch_deprecated_use_struct_convention.
2177 * arch-utils.c (legacy_return_value): Likewise.
2178 * gdbarch.c, gdbarch.h: Regenerate.
2180 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2182 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2183 gdbarch_deprecated_function_start_offset.
2184 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2185 * linespec.c (minsym_found): Likewise.
2186 * infrun.c (handle_inferior_event): Likewise.
2187 * infcall.c (find_function_addr): Likewise.
2188 * cli/cli-cmds.c (disassemble_command): Likewise.
2189 * gdbarch.c, gdbarch.h: Regenerate.
2191 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2193 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2194 gdbarch_deprecated_reg_struct_has_addr.
2195 * infcall.c (call_function_by_hand): Likewise.
2196 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2197 * gdbarch_deprecated_reg_struct_has_addr_p.
2198 * infcall.c (call_function_by_hand): Likewise.
2199 * gdbarch.c, gdbarch.h: Regenerate.
2201 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2203 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2204 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2205 (sh_gdbarch_init): Remove
2206 set_gdbarch_deprecated_extract_struct_value_address.
2207 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2208 (sh64_gdbarch_init): Remove
2209 set_gdbarch_deprecated_extract_struct_value_address.
2210 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2211 (ia64_gdbarch_init): Remove
2212 set_gdbarch_deprecated_extract_struct_value_address.
2213 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2214 (frv_gdbarch_init): Remove
2215 set_gdbarch_deprecated_extract_struct_value_address.
2216 * gdbarch.c, gdbarch.h: Regenerate.
2218 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2220 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2221 * v850-tdep.c (v850_unwind_sp): Likewise.
2222 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2223 * stack.c (frame_info): Likewise.
2224 * stabsread.c (define_symbol): Likewise.
2225 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2226 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2227 (sh_unwind_sp): Likewise.
2228 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2229 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2230 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2231 (rs6000_frame_cache): Likewise.
2232 * rs6000-nat.c (store_register): Likewise.
2233 * remote-mips.c (mips_wait): Likewise.
2234 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2235 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2236 (ppc64_sysv_abi_push_dummy_call): Likewise.
2237 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2238 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2239 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2240 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2241 * m32r-rom.c (m32r_supply_register): Likewise.
2242 * frame.c (frame_sp_unwind): Likewise.
2243 * mips-tdep.c (mips_insn16_frame_cache)
2244 (mips_insn32_frame_cache): Likewise (comment).
2245 * m68klinux-nat.c (supply_gregset): Likewise.
2246 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2247 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2248 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2249 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2250 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2251 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2252 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2253 (cris_register_type, crisv32_register_type)
2254 (cris_dwarf2_frame_init_reg): Likewise.
2255 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2256 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2257 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2258 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2260 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2261 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2262 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2263 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2264 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2265 * v850-tdep.c (v850_unwind_pc): Likewise.
2266 * stack.c (frame_info): Likewise.
2267 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2268 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2269 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2270 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2271 (sh_dsp_show_regs): Likewise.
2272 * shnbsd-tdep.c (shnbsd_supply_gregset)
2273 (shnbsd_collect_gregset): Likewise.
2274 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2275 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2276 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2277 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2278 (6000_register_reggroup_p, rs6000_unwind_pc)
2279 (rs6000_frame_cache): Likewise.
2280 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2281 (rs6000_store_inferior_registers): Likewise.
2282 * remote-mips.c (mips_wait, mips_load): Likewise.
2283 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2284 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2285 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2286 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2287 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2288 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2289 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2290 (store_ppc_registers, fill_gregset): Likewise.
2291 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2292 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2293 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2294 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2295 * m68klinux-nat.c (supply_gregset): Likewise.
2296 * irix5-nat.c (fill_gregset): Likewise.
2297 * i386-tdep.c (i386_unwind_pc): Likewise.
2298 * i386-linux-nat.c (i386_linux_resume): Likewise.
2299 * frame.c (get_prev_frame_1): Likewise.
2300 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2301 * dbug-rom.c (dbug_supply_register): Likewise.
2302 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2303 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2304 (cris_register_type, crisv32_register_type, crisv32_register_name)
2305 (cris_dwarf2_frame_init_reg, find_step_target)
2306 (cris_software_single_step, cris_supply_gregset)
2307 (cris_regnums): Likewise.
2308 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2309 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2310 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2311 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2312 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2314 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2315 * dbug-rom.c (dbug_supply_register): Likewise.
2316 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2317 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2318 * win32-nat.c (win32_resume): Likewise.
2319 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2320 * m68k-tdep.c (m68k_register_type): Likewise.
2321 * m68klinux-nat.c (supply_gregset): Likewise.
2323 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2324 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2325 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2326 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2327 (fv_reg_base_num, dr_reg_base_num): Likewise.
2328 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2329 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2330 (sh64_extract_return_value, sh64_store_return_value)
2331 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2332 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2333 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2334 (invalidate_cache): Likewise.
2335 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2336 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2337 (mipsnbsd_fill_fpreg): Likewise.
2338 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2339 (mipsnbsd_store_inferior_registers): Likewise.
2340 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2341 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2342 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2343 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2344 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2345 (fill_fpregset): Likewise.
2346 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2347 * i386-tdep.h (struct_return): Likewise (comment).
2348 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2349 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2350 (go32_store_registers): Likewise.
2351 * alpha-tdep.c (alpha_next_pc): Likewise.
2352 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2353 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2354 (alphabsd_store_inferior_registers): Likewise.
2355 * core-regset.c (fetch_core_registers): Likewise.
2356 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2358 * gdbarch.c, gdbarch.h: Regenerate.
2360 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2362 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2363 * dbxread.c (start_psymtab): Check HAVE_ELF.
2364 (aout_sym_fns): Likewise.
2365 * elfread.c (elf_symfile_segments): New.
2366 (elf_sym_fns): Add elf_symfile_segments.
2367 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2368 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2369 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2370 * somread.c (som_sym_fns): Use default_symfile_segments.
2371 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2372 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2373 (default_symfile_segments): New function.
2374 (syms_from_objfile): Update call to find_sym_fns.
2375 (symfile_get_segment_data, free_symfile_segment_data): New.
2376 (symfile_map_offsets_to_segments): New.
2377 (symfile_find_segment_sections): New.
2378 * symfile.h (struct symfile_segment_data): New.
2379 (struct sym_fns): Add sym_segments.
2380 (default_symfile_segments, symfile_get_segment_data)
2381 (free_symfile_segment_data): New prototypes.
2382 (symfile_map_offsets_to_segments): Likewise.
2383 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2384 * Makefile.in (COMMON_OBS): Remove elfread.o.
2385 (elf_internal_h): New.
2386 (elfread.o): Update.
2387 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2389 * config.in, configure: Regenerated.
2390 * NEWS: Mention qOffsets changes.
2392 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2394 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2395 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2396 Replace global variable declaration with compatibility macro.
2397 (struct builtin_m2_type): New data type.
2398 (builtin_m2_type): Add prototype.
2399 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2400 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2401 Remove global variables.
2402 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2403 (build_m2_types): New function.
2404 (m2_type_data): New variable.
2405 (builtin_m2_type): New function.
2406 (_initialize_m2_language): Do not build data types. Register
2407 m2_type_data per-gdbarch data.
2409 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2411 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2412 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2413 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2414 builtin_type_f_real_s8, builtin_type_f_real_s16,
2415 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2416 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2417 variable declaration with compatibility macro.
2418 (struct builtin_f_type): New data type.
2419 (builtin_f_type): Add prototype.
2420 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2421 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2422 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2423 builtin_type_f_real_s8, builtin_type_f_real_s16,
2424 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2425 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2426 (f_language_arch_info): Use builtin_f_type instead of variables.
2427 (build_fortran_types): Build builtin_f_type structure instead of
2428 setting global type variables.
2429 (f_type_data): New variable.
2430 (builtin_f_type): New function.
2431 (_initialize_f_language): Do not call build_fortran_types. Do not
2432 swap global type variables. Register f_type_data per-gdbarch data.
2434 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2436 * f-lang.c (_initialize_f_language): Do not initialize or
2437 swap builtin_type_string.
2439 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2441 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2442 value_of_builtin_frame_reg): Remove.
2443 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2444 inactive call to value_of_builtin_frame_reg.
2446 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2448 * gdbarch.sh (bfd_vma_bit): Remove.
2449 * gdbarch.c, gdbarch.h: Regenerate.
2451 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2452 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2453 (build_gdbtypes): Do not initialize it.
2454 (_initialize_gdbtypes): Do not swap it.
2456 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2458 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2459 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2460 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2461 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2462 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2463 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2464 builtin_type_vec64, builtin_type_vec128): Remove.
2465 (init_simd_type): Remove.
2466 (init_vector_type): Make global.
2467 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2468 (build_gdbtypes): Do not build vector types.
2469 (_initialize_gdbtypes): Do not swap vector types.
2470 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2471 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2472 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2473 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2474 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2475 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2476 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2477 (init_vector_type): Add prototype.
2479 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2480 i386_sse_type members.
2481 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2482 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2483 (i386_init_types): Do not build vector types.
2484 (i386_mmx_type, i386_sse_type): New functions.
2485 (i386_register_type): Call them instead of using global variables.
2486 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2487 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2488 of using global variable.
2490 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2491 and ppc_builtin_type_vec128 members.
2492 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2493 (rs6000_builtin_type_vec128): Likewise.
2494 (rs6000_register_type): Call them instead of using builtin_type_vec64
2495 and builtin_type_vec128.
2496 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2498 * spu-tdep.c (struct gdbarch_tdep): New data type.
2499 (spu_builtin_type_vec128): Remove variable.
2500 (spu_builtin_type_vec128): New function.
2501 (spu_register_type): Call it instead of using global variable.
2502 (spu_gdbarch_init): Allocate tdep structure.
2503 (spu_init_vector_type): Remove function.
2504 (_initialize_spu_tdep): Do not call it.
2506 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2508 * amd64-tdep.c (struct amd64_register_info): Remove.
2509 (amd64_register_info): Remove.
2510 (amd64_register_names): New static variable.
2511 (AMD64_NUM_REGS): Use amd64_register_names instead of
2512 amd64_register_info.
2513 (amd64_register_name): Likewise.
2514 (amd64_register_type): Do not refer to amd64_register_info.
2516 * s390-tdep.c (struct s390_register_info): Remove.
2517 (s390_register_info): Remove.
2518 (s390_register_name): Do not refer to s390_register_info.
2519 (s390_register_type): Likewise.
2521 * sparc64-tdep.c (struct sparc64_register_info): Remove.
2522 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2523 (sparc64_register_names, sparc64_pseudo_register_names): New.
2524 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2525 sparc64_register_names and sparc64_pseudo_register_names instead of
2526 sparc64_register_info and sparc64_pseudo_register_info.
2527 (sparc64_register_name): Likewise.
2528 (sparc64_register_type): Do not refer to sparc64_register_info
2529 and sparc64_pseudo_register_info.
2531 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2533 * c-lang.c (cplus_builtin_types): Remove.
2534 (enum cplus_primitive_types): New data type.
2535 (cplus_language_arch_info): New function.
2536 (cplus_language_defn): Set la_language_arch_info member. Do not set
2537 la_builtin_type_vector and string_char_type members.
2539 * f-lang.c (f_builtin_types): Remove.
2540 (enum f_primitive_types): New data type.
2541 (f_language_arch_info): New function.
2542 (f_language_de): Set la_language_arch_info member. Do not set
2543 la_builtin_type_vector and string_char_type members.
2545 * m2-lang.c (m2_builtin_types): Remove.
2546 (enum m2_primitive_types): New data type.
2547 (m2_language_arch_info): New function.
2548 (m2_language_defn): Set la_language_arch_info member. Do not set
2549 la_builtin_type_vector and string_char_type members.
2551 * objc-lang.c (objc_builtin_types): Remove.
2552 (objc_language): Set la_language_arch_info member. Do not set
2553 la_builtin_type_vector and string_char_type members.
2555 * p-lang.c (pascal_builtin_types): Remove.
2556 (enum pascal_primitive_types): New data type.
2557 (pascal_language_arch_info): New function.
2558 (pascal_language_defn): Set la_language_arch_info member. Do not set
2559 la_builtin_type_vector and string_char_type members.
2561 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2563 * regcache.c (struct regcache): Add ptid_t member.
2564 (regcache_xmalloc): Initialize it.
2565 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
2566 (regcache_dup): Likewise.
2567 (regcache_dup_no_passthrough): Likewise.
2568 (current_regcache): Make static.
2569 (registers_ptid): Remove variable.
2570 (get_thread_regcache): New function.
2571 (get_current_regcache): New function.
2572 (registers_changed): Implement by freeing current regcache.
2573 (regcache_raw_read): Do not refer to current_regcache. Set
2574 inferior_ptid to regcache->ptid while calling target routines.
2575 (regcache_raw_write): Likewise.
2576 (regcache_raw_supply): Do not refer to current_regcache.
2577 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
2578 (write_pc_pid): Likewise.
2579 (build_regcache): Remove.
2580 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
2581 or deprecated_register_gdbarch_swap. Do not initialize
2583 * regcache.h (get_current_regcache): Add prototype.
2584 (get_thread_regcache): Likewise.
2585 (current_regcache): Remove declaration.
2587 * corelow.c (core_open): Replace current_regcache by
2588 get_current_regcache ().
2589 * frame.c (frame_pop): Likewise.
2590 (put_frame_register): Likewise.
2591 (get_current_frame, create_new_frame): Likewise.
2592 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
2593 * stack.c (return_command): Likewise.
2594 * infcall.c (call_function_by_hand): Likewise.
2595 * infrun.c (resume): Likewise.
2596 (save_inferior_status, restore_inferior_status): Likewise.
2597 * linux-fork.c (fork_load_infrun_state): Likewise.
2598 (fork_save_infrun_state): Likewise.
2599 * win32-nat.c (win32_resume): Likewise.
2600 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
2601 * monitor.c (monitor_wait): Likewise.
2602 * remote.c (remote_wait): Likewise.
2603 * remote-mips.c (mips_wait): Likewise.
2605 * bsd-kvm.c (bsd_kvm_open): Likewise
2606 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
2607 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
2608 * i386-linux-nat.c (i386_linux_resume): Likewise.
2609 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2610 (ia64_linux_stopped_data_address): Likewise.
2612 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
2613 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2614 * mep-tdep.c (current_me_module, current_options): Likewise.
2615 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
2617 * linux-nat.c (linux_nat_do_thread_registers): Use thread
2618 regcache instead of current_regcache. Call target_fetch_registers.
2619 (linux_nat_corefile_thread_callback): Update call site.
2620 (linux_nat_do_registers): Likewise.
2621 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
2622 of current_regcache.
2623 (procfs_make_note_section): Likewise.
2624 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
2625 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2626 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
2627 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2629 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2631 * regcache.c (read_register, read_register_pid): Remove.
2632 (write_register, write_register_pid): Likewise.
2633 * regcache.h (read_register, read_register_pid): Remove prototype.
2634 (write_register, write_register_pid): Likewise.
2636 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2638 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
2639 (write_pc): Likewise. Remove default implementation, add predicate.
2640 * gdbarch.c, gdbarch.h: Regenerate.
2641 * regcache.c (read_pc_pid): Use current regcache instead of calling
2643 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
2645 (generic_target_write_pc): Remove.
2646 * inferior.h (generic_target_write_pc): Remove.
2647 * frv-tdep.c (frv_gdbarch_init): Do not install it.
2648 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2649 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2650 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2651 * sh-tdep.c (sh_gdbarch_init): Likewise.
2652 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2654 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
2655 argument. Use REGCACHE instead of calling read_register_pid.
2656 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
2657 * hppa-tdep.c (hppa_read_pc): Likewise.
2658 * hppa-tdep.h (hppa_read_pc): Likewise.
2659 * ia64-tdep.c (ia64_read_pc): Likewise.
2660 * m32r-tdep.c (m32r_read_pc): Likewise.
2661 * mep-tdep.c (mep_read_pc): Likewise.
2662 * mn10300-tdep.c (mn10300_read_pc): Likewise.
2663 * spu-tdep.c (spu_read_pc): Likewise.
2665 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
2666 argument. Use REGCACHE instead of calling write_register_pid.
2667 * avr-tdep.c (avr_write_pc): Likewise.
2668 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
2669 * hppa-tdep.c (hppa_write_pc): Likewise.
2670 * hppa-tdep.h (hppa_write_pc): Likewise.
2671 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
2672 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
2673 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
2674 * ia64-tdep.c (ia64_write_pc): Likewise.
2675 * ia64-tdep.h (ia64_write_pc): Likewise.
2676 * m32r-tdep.c (m32r_write_pc): Likewise.
2677 * m88k-tdep.c (m88k_write_pc): Likewise.
2678 * mep-tdep.c (mep_write_pc): Likewise.
2679 * mips-tdep.c (mips_write_pc): Likewise.
2680 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2681 * mn10300-tdep.c (mn10300_write_pc): Likewise.
2682 * sparc-tdep.c (sparc_write_pc): Likewise.
2683 * spu-tdep.c (spu_write_pc): Likewise.
2685 * mips-tdep.c (read_signed_register): Remove.
2686 (read_signed_register_pid): Likewise.
2687 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
2688 Use REGCACHE instead of calling read_signed_register_pid.
2690 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2692 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
2693 * gdbarch.c, gdbarch.h: Regenerate.
2694 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
2695 (push_dummy_code): Likewise. Pass it to callee.
2696 (call_function_by_hand): Pass current regcache to push_dummy_code.
2698 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
2699 argument. Use it instead of current_regcache.
2701 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
2702 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2704 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2706 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
2707 * gdbarch.c, gdbarch.h: Regenerate.
2708 * infrun.c (handle_inferior_event): Pass current frame to
2709 gdbarch_get_longjmp_target.
2711 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
2712 Read registers from FRAME instead of using read_register.
2713 Use get_frame_arch instead of current_gdbarch.
2714 * arm-tdep.c (arm_get_longjmp_target): Likewise.
2715 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2716 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2717 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
2718 (mips64_linux_get_longjmp_target): Likewise.
2719 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2721 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2723 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
2724 * gdbarch.c, gdbarch.h: Regenerate.
2725 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
2726 * arch-utils.h (generic_skip_trampoline_code): Likewise.
2727 * infrun.c (handle_inferior_event): Pass current frame to
2728 gdbarch_skip_trampoline_code and skip_language_trampoline.
2730 * language.c (unk_lang_trampoline): Add FRAME argument.
2731 (skip_language_trampoline): Add FRAME argument. Pass it to
2732 skip_trampoline callback.
2733 * language.h: Add forward declaration of struct frame_info.
2734 (struct language_defn): Add FRAME argument to skip_trampoline.
2735 (skip_language_trampoline): Add FRAME argument.
2736 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
2737 to skip_trampoline callback.
2738 * cp-abi.h: Add forward declaration of struct frame_info.
2739 (cplus_skip_trampoline): Add FRAME argument.
2740 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
2741 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
2742 to gdbarch_skip_trampoline_code.
2743 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
2744 to gdbarch_skip_trampoline_code.
2746 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
2747 * symtab.h (find_solib_trampoline_target): Likewise.
2748 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
2749 find_solib_trampoline_target.
2751 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
2752 from FRAME instead of calling read_register.
2754 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
2755 argument. Read registers from FRAME instead of using read_register.
2756 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
2757 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
2759 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
2762 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
2764 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
2765 registers from FRAME instead of using read_signed_register.
2767 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
2769 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
2770 instead of using read_register.
2771 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
2772 ppc64_standard_linkage_target.
2773 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
2774 Pass it to find_solib_trampoline_target. Read registers from FRAME
2775 instead of using read_register.
2777 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
2780 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2782 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
2784 * gdbarch.c, gdbarch.h: Regenerate.
2785 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
2787 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
2788 registers from FRAME instead of using read_register.
2789 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2790 to alpha_next_pc. Use get_frame_pc instead of read_pc.
2791 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
2794 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
2795 from FRAME instead of using read_register.
2796 (thumb_get_next_pc): Likewise.
2797 (arm_get_next_pc): Likewise.
2798 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2799 to arm_get_next_pc. Use get_frame_pc instead of read_register.
2800 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
2803 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
2804 from FRAME instead of using read_register.
2805 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2806 to find_step_target.
2808 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
2809 from FRAME instead of using read_register / read_signed_register.
2810 (extended_mips16_next_pc): Likewise.
2811 (mips16_next_pc): Likewise.
2812 (mips_next_pc): Likewise.
2813 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2814 to mips_next_pc. Use get_frame_pc instead of read_pc.
2815 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
2818 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
2819 of current frame. Read registers from FRAME.
2820 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
2821 branch_dest. Use get_frame_pc instead of read_pc.
2822 (rs6000_software_single_step): Likewise.
2823 (bl_to_blrl_insn_p): Do not call branch_dest.
2824 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
2827 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
2828 Read registers from FRAME instead of current regcache.
2829 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
2830 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
2831 * sparc-tdep.c (sparc_address_from_register): Remove.
2832 (sparc_analyze_control_transfer): Pass FRAME argument instead of
2833 GDBARCH. Pass FRAME to step_trap callback.
2834 (sparc_step_trap): Add FRAME argument.
2835 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2836 to sparc_analyze_control_transfer. Read registers from FRAME instead
2837 of calling sparc_address_from_register.
2838 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
2840 (sparc_address_from_register): Remove prototype.
2841 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
2842 (sparcnbsd_step_trap): Add FRAME argument.
2844 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
2845 by FRAME. Read registers from FRAME instead of REGCACHE.
2847 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2849 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
2850 instead of calling read_register.
2852 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
2853 calling write_register.
2855 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
2856 calling write_register.
2858 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
2859 instead of calling read_register.
2860 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
2861 instead of calling read_register and write_register.
2863 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
2864 instead of current_regcache.
2866 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
2867 of calling write_register.
2868 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
2869 parameter instead of current_regcache.
2871 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
2872 instead of calling read_register.
2873 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
2874 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
2875 (mips_n32n64_push_dummy_call): Likewise.
2876 (mips_o32_push_dummy_call): Likewise.
2877 (mips_o64_push_dummy_call): Likewise.
2879 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
2880 parameter instead of current_regcache.
2882 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
2883 Use it instead of read_register and write_register.
2884 (xtensa_register_read_masked): Likewise.
2885 (xtensa_pseudo_register_read): Update call.
2886 (xtensa_pseudo_register_write): Likewise.
2887 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
2888 instead of calling read_register.
2889 (xtensa_push_dummy_call): Update comment.
2891 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2893 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
2894 by frame_unwind_register_signed calls.
2895 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
2896 frame allocations when called with NULL NEXT_FRAME parameter.
2897 (read_next_frame_reg): Remove.
2899 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
2900 instead of reading the FPSCR register.
2901 (sh_frame_cache): Pass unwound FPSCR register value to
2902 sh_analyze_prologue.
2903 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
2905 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
2906 instead of reading the CTBP register.
2907 (v850_frame_cache): Pass unwound CTBP register value to
2908 v850_analyze_prologue.
2910 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2912 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
2913 * sh-tdep.c (sh_show_regs): Likewise.
2914 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
2915 (sh_generic_show_regs): Add FRAME parameter. Use register
2916 values from that frame instead of calling read_register.
2917 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
2918 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
2919 sh_dsp_show_regs): Likewise.
2920 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
2921 sh64_show_regs): Likewise.
2923 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2925 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
2926 current regcache instead of calling read_register.
2928 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2930 * mep-tdep.c (current_me_module): Read from current regcache
2931 instead of calling read_register.
2932 (current_options): Likewise.
2934 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2936 * cris-tdep.c (cris_stopped_data_address): Read register values
2937 from current frame instead of calling read_register.
2938 * frv-tdep.c (frv_stopped_data_address): Likewise.
2940 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2942 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
2943 instead of write_register (PC_REGNUM, ...).
2945 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2947 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
2948 explaining why the PC adjustment code is necessary.
2950 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
2952 * m68k-tdep.h (enum m68k_flavour): New.
2953 (struct gdbarch_tdep): New fields
2954 float_return, flavour and fpregs_present.
2955 * m68k-tdep.c (m68k_register_type): Use
2956 fpregs_present and conditionalize floating
2957 registers type on flavour.
2958 (m68k_register_names): New.
2959 (m68k_register_name): Use the above.
2960 (m68k_convert_register_p): Consult fpregs_present.
2961 (m68k_register_to_value, m68k_value_to_register):
2962 Use register_type to obtain the type of floating
2964 (m68k_svr4_extract_return_value): Check tdep->float_return.
2965 Use register_type to get the type of floating
2967 (m68k_svr4_store_return_value): Likewise.
2968 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
2969 (m68k_analyze_register_saves): Likewise.
2970 (m68k_gdbarch_init): Extract infromation
2971 from XML description, if present. Guess coldfire by
2972 looking at the file, if present. Conditionalize
2973 setting of long double format. Set decr_pc_after_break
2974 to 2 on coldfire and fido. Enable XML-driven
2975 register description.
2976 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
2977 size of tdep->fpreg_type, as opposed to hardcoded value.
2978 * Makefile.in (m68k-tdep.o): Update dependencies.
2980 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2982 * NEWS: Mention "info spu" commands and qXfer:spu:read and
2983 qXfer:spu:write remote packet types.
2985 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2987 * xml-tdesc.c (tdesc_start_target): New.
2988 (target_attributes): New.
2989 (tdesc_elements): Use it.
2990 * features/gdb-target.dtd: Add #FIXED version attribute for
2993 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
2995 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
2997 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
2999 * fork-child.c (fork_inferior): Update comment.
3001 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3003 * features/Makefile: Generate regformats for mips-linux and
3005 * features/sort-regs.xsl: Correct typo.
3006 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3007 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3010 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3012 * config/mips/linux.mh (TDEP_XML): New.
3013 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3014 * mips-linux-nat.c (mips_linux_register_addr): Handle
3015 MIPS_RESTART_REGNUM.
3016 (mips64_linux_register_addr): Likewise.
3017 (super_xfer_partial, mips_linux_xfer_partial): New.
3018 (_initialize_mips_linux_nat): Add them to the target_ops.
3019 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3020 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3021 (mips_linux_o32_sigframe_init)
3022 (mips_linux_n32n64_sigframe_init): Likewise.
3023 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3024 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3025 "org.gnu.gdb.mips.linux" feature.
3026 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3027 (mips_linux_restart_reg_p): New prototype.
3028 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3029 initialization routine.
3030 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3032 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3034 * Makefile.in (mips-tdep.o): Update.
3035 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3036 (mips_n32_n64_aliases, mips_register_aliases): New.
3037 (mips_register_name): Call tdesc_register_name.
3038 (mips_tdesc_register_reggroup_p): New.
3039 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3040 (mips_gdbarch_init): Add target-described register support.
3041 Register aliases for register names.
3042 * target-descriptions.c (tdesc_register_name): Make global.
3043 (tdesc_register_in_reggroup_p): New function, broken out from
3044 tdesc_register_reggroup_p.
3045 (tdesc_register_reggroup_p): Use it.
3046 * target-descriptions.h (tdesc_register_name)
3047 (tdesc_register_in_reggroup_p): New prototypes.
3048 * NEWS: Correct formatting. Mention MIPS register support.
3049 * features/mips-cp0.xml, features/mips-fpu.xml,
3050 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3051 features/mips64-cpu.xml: New files.
3053 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3055 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3056 * valops.c (value_cast): Likewise.
3057 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3058 * ui-out.c (ui_out_field_core_addr): Likewise.
3059 * tracepoint.c (tracepoints_info): Likewise.
3060 * symtab.c (print_msymbol_info): Likewise.
3061 * solib-irix.c (irix_current_sos)
3062 (irix_open_symbol_file_object): Likewise.
3063 * remote.c (build_remote_gdbarch_data): Likewise.
3064 * prologue-value.c (make_pv_area): Likewise.
3065 * procfs.c (info_mappings_callback): Likewise.
3066 * printcmd.c (print_scalar_formatted)
3067 (deprecated_print_address_numeric): Likewise.
3068 * memattr.c (mem_info_command): Likewise.
3069 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3070 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3071 * exec.c (print_section_info): Likewise.
3072 * dwarf2read.c (read_subrange_type): Likewise.
3073 * dwarf2loc.c (find_location_expression): Likewise.
3074 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3075 (signed_address_type, execute_stack_op): Likewise.
3076 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3077 * gdbarch.c, gdbarch.h: Regenerate.
3079 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3081 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3082 * arch-utils.c (show_architecture): Likewise.
3083 * remote-mips.c (mips_open): Likewise
3084 * nto-tdep.c (nto_find_and_open_solib)
3085 (nto_init_solib_absolute_prefix): Likewise.
3086 * nto-procfs (procfs_open): Likewise.
3087 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3088 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3089 * gdbarch.c, gdbarch.h: Regenerate.
3091 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3093 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3094 * gdbtypes.c (build_flt): Likewise.
3095 * gdbarch.c, gdbarch.h: Regenerate.
3097 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3099 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3100 gdbarch_breakpoint_from_pc.
3101 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3102 * remote.c (remote_insert_breakpoint)
3103 (remote_insert_hw_breakpoint): Likewise.
3104 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3105 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3106 * breakpoint.h (bp_target_info): Likewise (comment).
3107 * breakpoint.c (read_memory_nobpt): Likewise.
3108 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3109 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3110 * gdbarch.c, gdbarch.h: Regenerate.
3112 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3114 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3115 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3116 * solib-pa64.c (read_dynamic_info): Likewise.
3117 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3118 * solib.c (info_sharedlibrary_command): Likewise.
3119 * s390-nat.c (SUBOFF): Likewise.
3120 * p-valprint.c (pascal_val_print): Likewise.
3121 * procfs.c (info_proc_mappings): Likewise.
3122 * printcmd.c (decode_format): Likewise.
3123 * nto-tdep.c (nto_truncate_ptr): Likewise.
3124 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3125 (mips64_linux_get_longjmp_target): Likewise.
3126 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3127 * jv-valprint.c (java_value_print): Likewise.
3128 * jv-lang.c (get_java_object_header_size): Likewise.
3129 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3130 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3131 (hppa_hpux_unwind_adjust_stub): Likewise.
3132 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3133 * gdbtypes.c (make_pointer_type, make_reference_type)
3134 (smash_to_memberptr_type): Likewise.
3135 * gdbarch.c, gdbarch.h: Regenerate.
3137 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3139 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3140 (print_gp_register_row): Stop before printing a register bigger
3141 than the ABI register size.
3142 (mips_print_registers_info): Update call to mips_print_register.
3144 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3146 * expression.h (enum exp_opcode): Document a register name for
3148 * parse.c (write_dollar_variable): Write the register name for
3150 (operator_length_standard): Expect the register name following
3152 * ada-lang.c (resolve_subexp): Likewise.
3153 * ax-gdb.c (gen_expr): Likewise.
3154 * eval.c (evaluate_subexp_standard): Likewise.
3155 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3157 * tracepoint.c (encode_actions): Likewise.
3159 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3161 * utils.c (set_screen_size): Use INT_MAX for default columns.
3163 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3165 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3166 qXfer:spu:write packet types.
3168 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3170 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3171 * gdbarch.c, gdbarch.h: Regenerate.
3173 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3175 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3176 gdbarch_stab_reg_to_regnum.
3177 * stabsread.c (define_symbol): Likewise.
3178 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3179 gdbarch_ecoff_reg_to_regnum.
3180 * mdebugread.c (parse_symbol): Likewise.
3181 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3182 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3183 gdbarch_dwarf_reg_to_regnum.
3184 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3185 * coffread.c (process_coff_symbol): Likewise.
3186 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3187 gdbarch_dwarf2_reg_to_regnum.
3188 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3189 (locexpr_describe_location): Likewise.
3190 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3191 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3192 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3193 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3194 * gdbarch.c, gdbarch.h: Regenerate.
3196 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3198 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3199 gdbarch_smash_text_address.
3200 * somread.c (som_symtab_read): Likewise.
3201 * elfread.c (record_minimal_symbol): Likewise.
3202 * dbxread.c (process_one_symbol): Likewise.
3203 * coffread.c (coff_symtab_read): Likewise.
3204 * gdbarch.c, gdbarch.h: Regenerate.
3206 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3208 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3209 * findvar.c (value_from_register): Likewise.
3210 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3211 * valops.c (value_assign): Likewise.
3212 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3213 gdbarch_convert_register_p.
3214 * findvar.c (value_from_register): Likewise.
3215 * valops.c (value_assign): Likewise.
3216 * gdbarch.c, gdbarch.h: Regenerate.
3218 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3220 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3221 gdbarch_register_sim_regno.
3222 * sim-regno.h (sim_regno): Likewise (comment).
3223 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3224 * gdbarch.c, gdbarch.h: Regenerate.
3226 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3228 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3229 gdbarch_virtual_frame_pointer.
3230 * tracepoint.c (encode_actions): Likewise.
3231 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3232 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3233 * gdbarch.c, gdbarch.h: Regenerate.
3235 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3237 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3238 * p-lang.c (pascal_create_fundamental_type): Likewise.
3239 * objc-lang.c (objc_create_fundamental_type): Likewise.
3240 * mdebugread.c (_initialize_mdebugread): Likewise.
3241 * m2-lang.c (m2_create_fundamental_type)
3242 (_initialize_m2_language): Likewise.
3243 * gdbtypes.c (build_gdbtypes): Likewise.
3244 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3245 * doublest.c (floatformat_from_length): Likewise.
3246 * c-lang.c (c_create_fundamental_type): Likewise.
3247 * ada-lang.c (ada_create_fundamental_type)
3248 (ada_language_arch_info): Likewise.
3249 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3250 * value.c (unpack_double): Likewise (comment).
3251 * gdbtypes.c (build_gdbtypes): Likewise.
3252 * doublest.c (floatformat_from_length): Likewise.
3253 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3254 * valarith.c (value_binop): Likewise.
3255 * p-lang.c (pascal_create_fundamental_type): Likewise.
3256 * objc-lang.c (objc_create_fundamental_type): Likewise.
3257 * mdebugread.c (_initialize_mdebugread): Likewise.
3258 * m2-lang.c (m2_create_fundamental_type): Likewise.
3259 * gdbtypes.c (build_gdbtypes): Likewise.
3260 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3261 * doublest.c (floatformat_from_length): Likewise.
3262 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3263 * c-lang.c (c_create_fundamental_type): Likewise.
3264 * ada-lex.l (processReal): Likewise.
3265 * ada-lang.c (ada_create_fundamental_type)
3266 (ada_language_arch_info): Likewise.
3267 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3268 * value.c (unpack_double): Likewise (comment).
3269 * gdbtypes.c (build_gdbtypes): Likewise.
3270 * doublest.c (floatformat_from_length): Likewise.
3271 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3272 gdbarch_long_double_bit.
3273 * p-lang.c (pascal_create_fundamental_type): Likewise.
3274 * objc-lang.c (objc_create_fundamental_type): Likewise.
3275 * m2-lang.c (m2_create_fundamental_type): Likewise.
3276 * gdbtypes.c (build_gdbtypes): Likewise.
3277 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3278 * doublest.c (floatformat_from_length): Likewise.
3279 * c-lang.c (c_create_fundamental_type): Likewise.
3280 * ada-lex.l (processReal): Likewise.
3281 * ada-lang.c (ada_create_fundamental_type)
3282 (ada_language_arch_info): Likewise.
3283 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3284 gdbarch_long_double_format.
3285 * gdbtypes.c (build_gdbtypes): Likewise.
3286 * doublest.c (floatformat_from_length): Likewise.
3287 * gdbarch.c, gdbarch.h: Regenerate.
3289 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3291 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3292 * ada-lang.c (ada_create_fundamental_type)
3293 (ada_language_arch_info): Likewise.
3294 * c-lang.c (c_create_fundamental_type): Likewise.
3295 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3296 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3297 * m2-lang.c (m2_create_fundamental_type): Likewise.
3298 * objc-lang.c (objc_create_fundamental_type): Likewise.
3299 * p-lang.c (pascal_create_fundamental_type): Likewise.
3300 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3301 * c-exp.y (parse_number): Likewise.
3302 * objc-exp.y (parse_number): Likewise.
3303 * ada-lex.l (processInt): Likewise.
3304 * f-exp.y (parse_number): Likewise.
3305 * p-exp.y (parse_number): Likewise.
3306 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3307 (gdbtypes_post_init, build_gdbtypes): Likewise.
3308 * p-lang.c (pascal_create_fundamental_type): Likewise.
3309 * parse.c (build_parse): Likewise.
3310 * xcoffread.c (_initialize_xcoffread): Likewise.
3311 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3312 (read_range_type): Likewise.
3313 * objc-lang.c (objc_create_fundamental_type): Likewise.
3314 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3315 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3316 (m2_create_fundamental_type): Likewise.
3317 * c-lang.c (c_create_fundamental_type): Likewise.
3318 * coffread.c (coff_read_enum_type): Likewise.
3319 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3320 * dwarf2read.c (new_symbol): Likewise.
3321 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3322 * c-exp.y (parse_number): Likewise.
3323 * objc-exp.y (parse_number): Likewise.
3324 * ada-lex.l (processInt): Likewise.
3325 * f-exp.y (parse_number): Likewise.
3326 * p-exp.y (parse_number): Likewise.
3327 * valarith.c (value_binop): Likewise.
3328 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3329 * ada-lang.c (ada_create_fundamental_type)
3330 (ada_language_arch_info): Likewise.
3331 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3332 * symfile.c (TARGET_LONG_BYTES): Likewise.
3333 * p-lang.c (pascal_create_fundamental_type): Likewise.
3334 * objc-lang.c (objc_create_fundamental_type): Likewise.
3335 * m2-lang.c (m2_create_fundamental_type): Likewise.
3336 * f-lang.c (f_create_fundamental_type): Likewise.
3337 * c-lang.c (c_create_fundamental_type): Likewise.
3338 * coffread.c (decode_base_type): Likewise.
3339 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3340 * c-exp.y (parse_number): Likewise.
3341 * objc-exp.y (parse_number): Likewise.
3342 * p-exp.y (parse_number): Likewise.
3343 * ada-lang.c (ada_create_fundamental_type)
3344 (ada_language_arch_info): Likewise.
3345 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3346 * stabsread.c (read_range_type): Likewise.
3347 * p-lang.c (pascal_create_fundamental_type): Likewise.
3348 * objc-lang.c (objc_create_fundamental_type): Likewise.
3349 * m2-lang.c (m2_create_fundamental_type): Likewise.
3350 * f-lang.c (f_create_fundamental_type): Likewise.
3351 * c-lang.c (c_create_fundamental_type): Likewise.
3352 * gdbarch.c, gdbarch.h: Regenerate.
3354 2007-06-12 Andreas Schwab <schwab@suse.de>
3356 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3357 (struct frame_unwind): Add dealloc_cache.
3358 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3360 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3361 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3362 (libunwind_frame_unwind): Set dealloc_cache.
3363 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3365 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3366 Markus Deuling <deuling@de.ibm.com>
3368 * remote.c (remote_write_qxfer): New function.
3369 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3370 (remote_read_qxfer): Do not cache empty objects.
3371 (_initialize_remote): Add PACKET_qXfer_spu_read and
3372 PACKET_qXfer_spu_write.
3374 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3376 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3377 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3379 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3380 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3381 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3382 * spu-tdep.c (infospucmdlist): New variable.
3383 (spu_register_name): Handle additional pseudo registers.
3384 (spu_register_type): Likewise.
3385 (spu_pseudo_register_read): Likewise.
3386 (spu_pseudo_register_write): Likewise.
3387 (spu_pseudo_register_read_spu): New function.
3388 (spu_pseudo_register_write_spu): Likewise.
3389 (info_spu_event_command): New function.
3390 (info_spu_signal_command): Likewise.
3391 (info_spu_mailbox_list): Likewise.
3392 (info_spu_mailbox_command): Likewise.
3393 (spu_mfc_get_bitfield): Likewise.
3394 (info_spu_dma_cmdlist): Likewise.
3395 (info_spu_dma_command): Likewise.
3396 (info_spu_proxydma_command): Likewise.
3397 (info_spu_command): Likewise.
3398 (_initialize_spu_tdep): Install "info spu" commands.
3400 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3402 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3403 accessing non-seekable spufs files.
3405 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3407 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3408 gdbarch_skip_trampoline_code.
3409 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3410 * objc-lang.c (objc_skip_trampoline)
3411 (objc_submethod_helper_data): Likewise.
3412 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3413 * infrun.c (handle_inferior_event): Likewise.
3414 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3415 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3416 gdbarch_in_solib_return_trampoline.
3417 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3418 * infrun.c (handle_inferior_event): Likewise.
3419 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3420 * gdbarch.c, gdbarch.h: Regenerate.
3422 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3424 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3425 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3426 * linespec.c (minsym_found): Likewise.
3427 * infrun.c (step_into_function): Likewise.
3428 * gdbarch.c, gdbarch.h: Regenerate.
3430 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3432 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3433 * valops.c (value_allocate_space_in_inferior): Likewise.
3434 * gdbarch.c, gdbarch.h: Regenerate.
3436 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3438 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3439 gdbarch_memory_insert_breakpoint.
3440 * mem-break.c (memory_insert_breakpoint): Likewise.
3441 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3442 gdbarch_memory_remove_breakpoint.
3443 * mem-break.c (memory_remove_breakpoint): Likewise.
3444 * gdbarch.c, gdbarch.h: Regenerate.
3446 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3448 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3449 gdbarch_fetch_tls_load_module_address.
3450 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3451 gdbarch_fetch_tls_load_module_address_p.
3452 * gdbarch.c, gdbarch.h: Regenerate.
3454 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3456 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3457 gdbarch_decr_pc_after_break.
3458 * tracepoint.c (trace_dump_command): Likewise.
3459 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3460 * linux-thread-db.c (check_event): Likewise.
3461 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3462 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3463 * frame.h: Likewise (comment).
3464 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3465 * aix-thread.c (aix_thread_wait): Likewise.
3466 * gdbarch.c, gdbarch.h: Regenerate.
3468 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3470 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3471 gdbarch_address_class_type_flags.
3472 * dwarf2read.c (read_tag_pointer_type): Likewise.
3473 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3474 gdbarch_address_class_type_flags_p.
3475 * dwarf2read.c (read_tag_pointer_type): Likewise.
3476 * gdbarch.c, gdbarch.h: Regenerate.
3478 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3480 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3481 * value.c (value_as_address): Likewise (comment).
3482 * remote-mips.c (common_breakpoint): Likewise.
3483 * regcache.c (read_pc_pid): Likewise.
3484 * printcmd.c (do_one_display): Likewise.
3485 * monitor.c (monitor_write_memory, monitor_read_memory)
3486 (monitor_insert_breakpoint): Likewise.
3487 * mips-tdep.c (heuristic_proc_start): Likewise.
3488 * infrun.c (insert_step_resume_breakpoint_at_frame)
3489 (insert_step_resume_breakpoint_at_caller): Likewise.
3490 * buildsym.c (record_line): Likewise.
3491 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3492 (arm_get_next_pc): Likewise.
3493 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3494 (store_regs): Likewise.
3495 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3496 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3497 * gdbarch.c, gdbarch.h: Regenerate.
3499 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3501 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3502 * tracepoint.c (scope_info): Likewise.
3503 * target.c (debug_print_register): Likewise.
3504 * stack.c (frame_info): Likewise.
3505 * sh-tdep.c (sh_register_reggroup_p): Likewise.
3506 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3507 (sh64_media_print_registers_info)
3508 (sh64_compact_print_registers_info): Likewise.
3509 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3510 * remote-sim.c (gdbsim_fetch_register): Likewise.
3511 * remote.c (packet_reg): Likewise (comment).
3512 * reggroups.c (default_register_reggroup_p): Likewise.
3513 * regcache.c (regcache_dump): Likewise.
3514 * printcmd.c (address_info): Likewise.
3515 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3516 * mt-dep.c (mt_registers_info): Likewise.
3517 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3518 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3519 (mips_read_fp_register_double, mips_print_fp_register)
3520 (mips_print_register, print_gp_register_row, mips_print_registers_info)
3521 (mips_register_sim_regno): Likewise.
3522 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3523 * inf-ptrace.c (inf_ptrace_fetch_register)
3524 (inf_ptrace_store_register): Likewise.
3525 * infcmd.c (default_print_registers_info): Likewise.
3526 * ia64-linux-nat.c (ia64_linux_fetch_register)
3527 (ia64_linux_store_register): Likewise.
3528 * i386-linux-nat.c (fetch_register, store_register): Likewise.
3529 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3530 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3531 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3532 (hppa_hpux_store_register): Likewise.
3533 * findvar.c (locate_var_value): Likewise.
3534 * dwarf2loc.c (locexpr_describe_location): Likewise.
3535 * dwarf2-frame.c (execute_cfa_program): Likewise.
3536 * arm-tdep.c (arm_push_dummy_call): Likewise.
3537 * arch-utils.c (legacy_register_sim_regno): Likewise.
3538 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3539 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3540 * mi/mi-main.c (mi_cmd_data_list_register_names)
3541 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3542 (mi_cmd_data_write_register_values): Likewise.
3543 * gdbarch.c, gdbarch.h: Regenerate.
3545 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3547 * target-memory.c (blocks_to_erase): Correct off-by-one error.
3549 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
3551 * remote.c (process_g_packet): Don't check size.
3552 * gdbarch.sh: Remove register_bytes_ok.
3553 * gdbarch.c: Regenerated.
3554 * gdbarch.h: Regenerated.
3555 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
3556 (m68k_register_bytes_ok): Remove.
3557 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
3559 2007-06-06 Andreas Schwab <schwab@suse.de>
3561 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
3562 (destroy_addr_space_name): Define.
3563 (libunwind_load): Get address of destroy_addr_space function.
3564 (libunwind_frame_cache): Destroy unw_addr_space_t object before
3565 returning unsuccessfully.
3566 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
3568 (libunwind_sigtramp_frame_sniffer): Likewise.
3569 (libunwind_get_reg_special): Likewise.
3571 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3573 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
3574 gdbarch_fetch_pointer_argument.
3575 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
3576 * gdbarch.c, gdbarch.h: Regenerate.
3578 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3580 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
3581 gdbarch_have_nonsteppable_watchpoint.
3582 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
3583 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
3584 gdbarch_cannot_step_breakpoint.
3585 * infrun.c (resume): Likewise.
3586 * gdbarch.c, gdbarch.h: Regenerate.
3588 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3590 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
3591 * stack.c (print_frame_args): Likewise.
3592 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
3593 * stack.c (print_args_stub, frame_info): Likewise.
3594 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
3595 * stack.c (print_args_stub, frame_info): Likewise.
3596 * gdbarch.c, gdbarch.h: Regenerate.
3598 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3600 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
3601 gdbarch_coff_make_msymbol_special.
3602 * coffread.c (coff_symtab_read): Likewise.
3603 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
3604 gdbarch_elf_make_msymbol_special.
3605 * elfread.c (elf_symtab_read): Likewise.
3606 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
3607 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
3608 * gdbarch.c, gdbarch.h: Regenerate.
3610 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3612 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
3613 gdbarch_frame_red_zone_size.
3614 * gdbarch.c, gdbarch.h: Regenerate.
3616 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3618 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
3619 * infcall.c (call_function_by_hand): Likewise.
3620 * gcore.c (derive_stack_segment): Likewise.
3621 * frame.c (frame_id_inner): Likewise.
3622 * arch-utils.c (core_addr_lessthan): Likewise (comment).
3623 * ada-lang.c (ensure_lval): Likewise.
3624 * gdbarch.c, gdbarch.h: Regenerate.
3626 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3628 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
3629 gdbarch_address_to_pointer.
3630 * findvar.c (store_typed_address): Likewise.
3631 * gdbtypes.c (make_pointer_type): Likewise (comment).
3632 * procfs.c (procfs_address_to_host_pointer): Likewise.
3633 * std-regs.c (value_of_builtin_frame_reg): Likewise.
3634 (value_of_builtin_frame_fp_reg): Likewise.
3635 (value_of_builtin_frame_pc_reg): Likewise.
3636 * utils.c (paddress): Likewise (comment).
3637 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
3638 gdbarch_pointer_to_address.
3639 * findvar.c (extract_typed_address): Likewise.
3640 * gdbtypes.c (make_pointer_type): Likewise (comment).
3641 * valops.c (value_cast): Likewise (comment).
3642 * gdbarch.c, gdbarch.h: Regenerate.
3644 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3646 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
3647 * infrun.c (handle_inferior_event): Likewise.
3648 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
3649 gdbarch_get_longjmp_target_p.
3650 * breakpoint.c (breakpoint_re_set): Likewise.
3651 * infrun.c (handle_inferior_event): Likewise.
3652 * gdbarch.c, gdbarch.h: Regenerate.
3654 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3656 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
3657 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
3658 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
3659 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
3660 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
3661 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
3662 find_stub_with_shl_get, cover_find_stub_with_shl_get,
3663 initialize_hp_cxx_exception_support, child_enable_exception_callback,
3664 current_ex_event, child_get_current_exception_event): Remove.
3665 (hppa_hpux_inferior_created): Remove.
3666 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
3668 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
3669 (deprecated_exception_support_initialized): Remove.
3670 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
3671 (deprecated_exception_support_initialized): Remove.
3672 (breakpoint_init_inferior): Remove handling of non-zero
3673 deprecated_exception_catchpoints_are_fragile.
3675 * symtab.h (deprecated_hp_som_som_object_present): Remove.
3676 * symtab.c (deprecated_hp_som_som_object_present): Remove.
3677 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
3678 deprecated_hp_som_som_object_present.
3679 * eval.c (evaluate_subexp_standard): Likewise.
3680 * valops.c (value_cast): Likewise.
3682 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
3683 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
3684 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
3686 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3688 * objfiles.h (ImportEntry, ExportEntry): Remove types.
3689 (struct objfile): Remove import_list, import_list_size,
3690 export_list, export_list_size members.
3691 (is_in_import_list): Remove prototype.
3692 * objfiles.c (is_in_import_list): Remove.
3693 * somread.c (init_import_symbols, init_export_symbols): Remove.
3694 (som_symfile_read): Do not call init_import_symbols. Do not
3695 set objfile->export_list and objfile->export_list_size.
3697 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
3699 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
3700 Use the original objfile if necessary.
3702 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
3704 * defs.h (ldirname): New prototype.
3705 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
3707 * utils.c (ldirname): New function.
3708 * xml-tdesc.c (file_read_description_xml): Use ldirname.
3710 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3712 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
3714 2007-06-01 Joel Brobecker <brobecker@adacore.com>
3716 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
3718 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3720 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
3722 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3724 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
3725 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
3726 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
3727 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
3728 (ppc_linux_in_sigtramp, insn_is_sigreturn,
3729 ppc_linux_at_sigtramp_return_path): Remove.
3731 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3733 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
3734 (xtensa_register_write_masked, xtensa_register_read_masked)
3735 (xtensa_extract_return_value, xtensa_store_return_value
3736 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
3737 TARGET_BYTE_ORDER by gdbarch_byte_order.
3738 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
3739 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
3740 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
3741 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
3742 (sh64_push_dummy_call, sh64_extract_return_value)
3743 (sh64_store_return_value, sh64_register_convert_to_virtual)
3744 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
3745 (sh64_pseudo_register_write, sh64_do_fp_register)
3746 (sh64_frame_prev_register): Likewise.
3747 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
3748 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
3749 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
3750 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
3751 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3752 * ppc-linux-nat.c (store_register): Likewise.
3753 * nto-tdep.c (nto_find_and_open_solib)
3754 (nto_init_solib_absolute_prefix): Likewise.
3755 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
3756 (mips_convert_register_p, mips_eabi_push_dummy_call)
3757 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
3758 (mips_o32_push_dummy_call, mips_o32_return_value)
3759 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
3760 (mips_read_fp_register_single, mips_read_fp_register_double)
3761 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
3762 (mips_breakpoint_from_pc): Likewise.
3763 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
3764 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
3765 (mips_linux_o32_sigframe_init): Likewise.
3766 * m32r-tdep.c (m32r_memory_insert_breakpoint)
3767 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
3768 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
3769 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
3770 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
3771 * coffread.c (process_coff_symbol): Likewise.
3772 * arm-tdep.c (convert_from_extended, convert_to_extended)
3773 (gdb_print_insn_arm): Likewise.
3775 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3777 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
3778 * i386-tdep.c (i386_dbx_reg_to_regnum)
3779 (i386_svr4_reg_to_regnum): Likewise.
3780 * inf-ptrace.c (inf_ptrace_fetch_registers)
3781 (inf_ptrace_store_registers): Likewise.
3782 * corelow.c (get_core_registers): Likewise.
3783 * i386-linux-nat.c (supply_gregset, fill_gregset)
3784 (i386_linux_fetch_inferior_registers)
3785 (i386_linux_store_inferior_registers): Likewise.
3786 * remote.c (init_remote_state,packet_reg_from_regnum)
3787 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
3788 (remote_prepare_to_store,store_registers_using_G)
3789 (remote_store_registers,remote_arch_state): Likewise.
3790 * tracepoint.c (encode_actions): Likewise.
3791 * mi/mi-main.c (mi_cmd_data_list_register_names)
3792 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3793 (mi_cmd_data_write_register_values): Likewise.
3794 * tui/tui-regs.c (tui_show_register_group)
3795 (tui_show_register_group): Likewise.
3796 * xtensa-tdep.h (FP_ALIAS): Likewise.
3797 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
3798 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
3799 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
3800 * win32-nat.c (do_win32_fetch_inferior_registers)
3801 (do_win32_store_inferior_registers,fetch_elf_core_registers
3802 * user-regs.h: Likewise (comment).
3803 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3804 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3805 * target-descriptions.h: Likewise (comment).
3806 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
3807 * target.c (debug_print_register): Likewise.
3808 * stack.c (frame_info): Likewise.
3809 * stabsread.c (define_symbol): Likewise.
3810 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
3811 (sh64_media_print_registers_info)
3812 (sh64_compact_print_registers_info): Likewise.
3813 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3814 * rs6000-nat.c (fetch_register,store_register): Likewise.
3815 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
3816 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
3817 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
3818 * remote-m32r-sdi.c (m32r_fetch_registers)
3819 (m32r_store_registers): Likewise.
3820 * reggroups.c (default_register_reggroup_p): Likewise.
3821 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
3822 (regcache_restore,regcache_dump): Likewise.
3823 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
3824 * mips-tdep.c (mips_xfer_register,mips_register_name)
3825 (mips_register_reggroup_p,mips_pseudo_register_read)
3826 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
3827 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
3828 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
3829 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
3830 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
3831 (print_gp_register_row,mips_print_registers_info)
3832 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3833 (mips_register_sim_regno): Likewise.
3834 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
3835 (mips_linux_n32n64_sigframe_init): Likewise.
3836 * mips-linux-nat.c (mips_linux_register_addr)
3837 (mips64_linux_register_addr): Likewise.
3838 * findvar.c (value_of_register): Likewise.
3839 * infcmd.c (default_print_registers_info,registers_info)
3840 (print_vector_info,print_float_info): Likewise.
3841 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
3842 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3843 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3844 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
3845 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3846 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
3847 (ia64_cannot_store_register,ia64_linux_fetch_registers)
3848 (ia64_linux_store_registers): Likewise.
3849 * hpux-thread.c (hpux_thread_fetch_registers)
3850 (hpux_thread_store_registers): Likewise.
3851 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
3852 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
3853 (h8300_register_type): Likewise.
3854 * dwarf2-frame.c (dwarf2_frame_cache)
3855 (dwarf2_frame_state_alloc_regs): Likewise.
3856 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
3857 (cris_cannot_store_register,crisv32_cannot_fetch_register)
3858 (crisv32_cannot_store_register,cris_register_name): Likewise.
3859 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
3860 * arch-utils.c (legacy_register_sim_regno)
3861 (legacy_virtual_frame_pointer): Likewise.
3862 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
3863 * arm-tdep.h: Likewise (comment).
3864 * frv-tdep.c (frv_register_sim_regno): Likewise.
3865 * m68klinux-nat.c (old_fetch_inferior_registers)
3866 (old_store_inferior_registers): Likewise.
3867 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3868 * irix5-nat.c (fetch_core_registers): Likewise.
3869 * hppa-tdep.c (hppa_frame_cache): Likewise.
3870 * hppa-linux-nat.c (hppa_linux_register_addr)
3871 (hppa_linux_fetch_inferior_registers)
3872 (hppa_linux_store_inferior_registers): Likewise.
3873 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
3874 (hppa_hpux_store_inferior_registers): Likewise.
3875 * amd64-nat.c (amd64_native_gregset_reg_offset)
3876 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
3877 * dbug-rom.c (dbug_regname): Likewise.
3878 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
3879 (HARD_PAGE_REGNUM (comment)): Likewise.
3880 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
3881 * i386-tdep.c (i386_dbx_reg_to_regnum)
3882 (i386_svr4_reg_to_regnum): Likewise.
3883 * mi/mi-main.c (mi_cmd_data_list_register_names)
3884 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3885 (mi_cmd_data_write_register_values): Likewise.
3886 * gdbarch.c, gdbarch.h: Regenerate.
3887 * tui/tui-regs.c (tui_show_register_group): Likewise.
3888 * xtensa-tdep.h (FP_ALIAS): Likewise.
3889 * user-regs.h: Likewise (comment).
3890 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3891 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3892 * target-descriptions.h: Likewise (comment).
3893 * target.c (debug_print_register): Likewise.
3894 * stack.c (frame_info): Likewise.
3895 * stabsread.c (define_symbol): Likewise.
3896 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
3897 (sh64_compact_print_registers_info): Likewise.
3898 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3899 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
3900 (regcache_restore,regcache_dump): Likewise.
3901 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
3902 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3903 (mips_stab_reg_to_regnum): Likewise.
3904 * findvar.c (value_of_register): Likewise.
3905 * infcmd.c (default_print_registers_info,registers_info)
3906 (print_vector_info,print_float_info): Likewise.
3907 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3908 * h8300-tdep.c (h8300_register_type): Likewise.
3909 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3910 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
3911 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
3912 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
3913 * parse.c: Remove comment.
3914 * gdbarch.c, gdbarch.h: Regenerate
3916 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3918 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
3919 gdbarch_cannot_fetch_register.
3920 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3921 * hppa-linux-nat.c (fetch_register): Likewise.
3922 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3923 * m68klinux-nat.c (fetch_register): Likewise.
3924 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
3926 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
3927 gdbarch_cannot_store_register.
3928 * hppa-linux-nat.c (store_register): Likewise.
3929 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
3930 * regcache.c (regcache_raw_write): Likewise.
3931 * m68klinux-nat.c (store_register): Likewise.
3932 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
3933 * gdbarch.c, gdbarch.h: Regenerate.
3935 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3937 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
3938 * gdbarch.c, gdbarch.h: Regenerate.
3940 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3942 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
3943 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3944 * gdbarch.c, gdbarch.h: Regenerate.
3946 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3948 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
3949 * ax-gdb.c (gen_bitfield_ref): Likewise.
3950 * mi/mi-main.c (get_register): Likewise.
3951 * findvar.c (default_value_from_register, extract_signed_integer)
3952 (extract_unsigned_integer, extract_long_unsigned_integer)
3953 (store_signed_integer, store_unsigned_integer): Likewise.
3954 * regcache.c (regcache_dump): Likewise.
3955 * value.c (lookup_internalvar, value_of_internalvar)
3956 (set_internalvar): Likewise.
3958 * valprint.c (print_binary_chars, print_octal_chars)
3959 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
3960 * infcmd.c (default_print_registers_info): Likewise.
3961 * arch-utils.c (selected_byte_order, show_endian): Likewise.
3962 * stabsread.c (define_symbol): Likewise.
3963 * doublest.c (floatformat_from_length, floatformat_from_type)
3964 (extract_typed_floating, store_typed_floating): Likewise.
3965 * gdbarch.c, gdbarch.h: Regenerate.
3967 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3969 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
3970 gdbarch_call_dummy_location.
3971 * infcall.c (call_function_by_hand): Likewise.
3972 * inferior.h: Change comment.
3973 * arch-utils.c: Change comment.
3974 * gdbarch.c, gdbarch.h: Regenerate.
3976 2007-05-28 Joel Brobecker <brobecker@adacore.com>
3978 * solib-aix5.c: Delete.
3979 * Makefile.in (solib-aix5.o): Delete rule.
3981 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
3983 * breakpoint.h (enum bpstat_what_main_action): Remove
3984 BPSTAT_WHAT_THROUGH_SIGTRAMP.
3985 * infrun.c (process_event_stop_test): Do not check for it.
3987 2007-05-22 Chris Dearman <chris@mips.com>
3988 Maciej W. Rozycki <macro@mips.com>
3990 * ser-unix.c (show_serial_hwflow): New function.
3991 (hardwire_raw): Add hardware flow control support.
3992 (_initialize_ser_hardwire): Add "set/show remoteflow".
3993 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
3994 * NEWS: Document the new command.
3996 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
3998 * config/i386/tm-linux.h (sys_quotactl): Do not define.
3999 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4000 define for i[[3456]]86-*-linux* native configurations.
4001 * config.in, configure: Regenerate.
4003 2007-05-19 Joel Brobecker <brobecker@adacore.com>
4005 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4006 a core file. Add comment in the function description.
4008 2007-05-18 Caroline Tice <ctice@apple.com>
4010 * c-valprint.c (c_value_print): If the initialized field of the
4011 value struct is 0, print out "[uninitialized]" before the value.
4012 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4013 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4014 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4015 ctx->initialized appropriately. Verify no location op follows
4017 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4018 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4019 set_value_initialized.
4020 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4021 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4022 * value.c (struct value): New field, initialized.
4023 (allocate_value): Initialize new field.
4024 (set_value_initialized): New function.
4025 (value_initialized): New function.
4026 * value.h (value_initialized): New extern declaration.
4027 (set_value_initialized): Likewise.
4029 2007-05-18 Caroline Tice <ctice@apple.com>
4031 * MAINTAINERS (Write After Approval): Add self.
4033 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4035 * gdbtypes.c (make_reference_type): Preserve the type chain
4036 and set the length of all the variants of the pointer type.
4038 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4040 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4041 and set the length of all the variants of the pointer type.
4043 2007-05-17 Maciej W. Rozycki <macro@mips.com>
4045 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4047 (mips_o64_push_dummy_call): Reformat a comment.
4049 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4051 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4052 (score_prologue_frame_base_address): Return fp to keep gdb print
4053 local variables correctly when debugging information is stabs.
4055 (score_analyze_prologue): For software watchpoint, fetch all the
4056 instructions from range [startaddr, pc] once and identify them locally
4057 to reduce memory access.
4058 (score_malloc_and_get_memblock, score_free_memblock)
4059 (score_adjust_memblock_ptr): New functions.
4060 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4062 (score_target_can_use_watch, score_stopped_by_watch)
4063 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4064 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4065 New functions for remote & local hw-watchpoint and hw-breakpoint.
4067 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
4069 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4070 declarations as well.
4072 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4074 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4075 * config/arm/tm-embed.h: Delete file.
4077 * arm-tdep.h (arm_software_single_step): Declare.
4078 * arm-tdep.c (arm_software_single_step): Make global.
4079 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4081 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4082 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4083 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4084 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4086 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4087 allow defines to be overriden by TM file.
4088 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4089 change default to {0xbe,0xbe}.
4090 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4091 arm_obsd_thumb_be_breakpoint): New global variables.
4092 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4093 tdep->thumb_breakpoint_size.
4094 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4095 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4096 tdep->thumb_breakpoint_size.
4098 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4100 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4102 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4105 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4106 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4107 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4108 (mips_abi_regsize): Simplify.
4109 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4110 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4111 (mips_o32_return_value, mips_o64_push_dummy_call)
4112 (mips_o64_return_value): Propogate constant register sizes. Use the
4113 ABI register size instead of mips_stack_argsize.
4114 (mips_dump_tdep): Don't print mips_stack_argsize.
4115 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4118 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4120 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4121 * config/mips/tm-linux.h: Delete.
4122 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4123 (mips_linux_in_dynsym_resolve_code): Make static. Use
4124 svr4_in_dynsym_resolve_code.
4125 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4127 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4129 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4130 * Makefile.in (mips-linux-tdep.o): Update.
4131 * solib.c (set_solib_ops): New.
4132 (current_target_so_ops): Update comment.
4133 * solib.h (set_solib_ops): New prototype.
4135 2007-05-16 Chris Dearman <chris@mips.com>
4137 * printcmd.c (do_examine): Fix typos in a comment.
4139 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4141 * configure.ac: Allow sysroots to be relocated under $prefix as
4142 well as $exec_prefix.
4143 * configure: Regenerate.
4145 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4147 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4148 (offsetof): Do not define.
4149 (find_stub_with_shl_get): Use numerical value 3 instead of
4150 symbolic value TYPE_PROCEDURE.
4152 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4154 * gdb_proc_service.h (paddr_t): Delete typedef.
4155 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4156 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4157 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4158 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4159 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4160 * Makefile.in (proc-service.o): Update.
4162 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4164 * Makefile.in (mips-tdep.o): Update.
4165 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4168 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4170 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4171 instead of store_typed_address.
4172 * value.c (pack_long): New.
4173 (value_from_longest): Use it.
4174 * value.h (pack_long): New prototype.
4176 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4178 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4179 DW_EH_PE_signed if appropriate.
4181 2007-05-14 Paul Brook <paul@codesourcery.com>
4182 Daniel Jacobowitz <dan@codesourcery.com>
4184 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4186 (dwarf_decode_lines): Check for line info without a file.
4188 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4190 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4193 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4195 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4197 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4199 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4201 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4203 * gdbarch.sh (read_sp): Remove.
4204 * gdbarch.c, gdbarch.h: Regenerate.
4205 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4207 * avr-tdep.c (avr_read_sp): Remove.
4208 (avr_unwind_sp): New function.
4209 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4210 * mips-tdep.c (mips_read_sp): Remove.
4211 (mips_unwind_sp): New function.
4212 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4213 * score-tdep.c (score_read_unsigned_register): Remove.
4214 (score_read_sp): Remove.
4215 (score_unwind_sp): New function.
4216 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4218 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4220 * buildsym.c (start_subfile): Handle absolute pathnames
4221 while comparing subfile names.
4223 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4225 * hppa-hpux-tdep.c: Include "regcache.h".
4226 * hppa-linux-tdep.c: Likewise.
4227 * hppa-tdep.c: Include "gdb_stdint.h".
4228 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4230 * Makefile.in: Update dependencies.
4232 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4234 * blockframe.c: Remove obsolete comments.
4235 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4236 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4237 * hppa-tdep.h (enum hppa_regnum): Likewise.
4238 * mips-tdep.h: Likewise.
4239 * m68hc11-tdep.c: Likewise.
4241 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4243 * inferior.h (read_sp): Remove prototype.
4244 * regcache.c (read_sp): Remove.
4245 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4246 * infcall.c (call_function_by_hand): Likewise.
4247 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4249 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4251 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4253 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4254 instead of read_register and read_register_pid.
4256 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4257 argument instead of PTID. Use regcache functions instead of
4259 (ia64_linux_insert_watchpoint): Update call.
4260 (ia64_linux_stopped_data_address): Use regcache functions
4261 instead of read_register_pid and write_register_pid.
4263 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4265 * libunwind-frame.h (struct regcache): Add forward declaration.
4266 (libunwind_get_reg_special): Add REGCACHE argument.
4267 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4268 argument. Pass it to unw_init_remote_p.
4270 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4271 libunwind_get_reg_special.
4272 (ia64_access_reg): Remove "write" case.
4273 (ia64_access_fpreg): Likewise. Read from next_frame passed
4274 as callback argument instead of from current_regcache.
4275 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4276 passed as callback argument instead of from current_regcache.
4277 (ia64_access_rse_fpreg): New function.
4278 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4280 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4282 * NEWS: Mention SPU overlay support.
4284 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4286 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4288 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4290 * breakpoint.c (remove_breakpoint): Do not remove software
4291 breakpoints in unmapped overlay sections.
4293 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4295 * spu-tdep.c: Include "observer.h".
4296 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4297 (spu_overlay_data): New variable.
4298 (struct spu_overlay_table): New type.
4299 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4300 spu_overlay_new_objfile): New functions.
4301 (spu_gdbarch_init): Install spu_overlay_update.
4302 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4303 allocate spu_overlay_data objfile data.
4305 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4307 * gdbarch.sh (overlay_update): New gdbarch function.
4308 (struct obj_section): Add forward declaration.
4309 * gdbarch.c, gdbarch.h: Regenerate.
4311 * symfile.c (simple_overlay_update): Make global.
4312 (target_overlay_update): Remove variable.
4313 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4314 target_overlay_update.
4315 (overlay_load_command): Likewise.
4316 * symfile.h (struct obj_section): Add forward declaration.
4317 (simple_overlay_update): Add prototype.
4319 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4321 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4323 * observer.sh: Add "struct objfile" forward declaration.
4324 * target.h (deprecated_target_new_objfile_hook): Remove.
4325 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4326 (clear_symtab_users): Call observer_notify_new_objfile.
4327 (symbol_file_add_with_addrs_or_offsets): Likewise.
4328 * rs6000-nat.c: Include "observer.h".
4329 (vmap_ldinfo): Call observer_notify_new_objfile.
4330 (xcoff_relocate_core): Likewise.
4331 * remote.c (remote_new_objfile_chain): Remove.
4332 (remote_new_objfile): Do not call remote_new_objfile_chain.
4333 (_initialize_remote): Use observer_attach_new_objfile.
4334 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4335 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4336 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4337 * aix-thread.c: Include "observer.h".
4338 (target_new_objfile_chain): Remove.
4339 (new_objfile): Do not call target_new_objfile_chain.
4340 (_initialize_aix_thread): Use observer_attach_new_objfile.
4341 * hpux-thread.c: Include "observer.h"
4342 (target_new_objfile_chain): Remove.
4343 (hpux_thread_new_objfile): Make static. Do not call
4344 target_new_objfile_chain.
4345 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4346 * linux-thread-db.c: Include "observer.h".
4347 (target_new_objfile_chain): Remove.
4348 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4349 (_initialize_thread_db): Use observer_attach_new_objfile.
4350 * sol-thread.c: Include "observer.h".
4351 (target_new_objfile_chain): Remove.
4352 (sol_thread_new_objfile): Make static. Do not call
4353 target_new_objfile_chain.
4354 (_initialize_sol_thread): Use observer_attach_new_objfile.
4355 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4356 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4359 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4361 * gdbarch.sh (remote_translate_xfer_address): Remove.
4362 * gdbarch.h, gdbarch.c: Regenerate.
4363 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4364 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4365 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4366 call gdbarch_remote_translate_xfer_address.
4367 * frv-tdep.c (frv_gdbarch_init): Do not call
4368 set_gdbarch_remote_translate_xfer_address.
4369 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4370 (ia64_gdbarch_init): Do not install it.
4372 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4374 * NEWS: Mention change in handling the -tui option.
4376 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4378 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4381 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4383 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4384 (breakpoint_inserted_here_p): Call it.
4385 (software_breakpoint_inserted_here_p): Likewise.
4387 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4389 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4390 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4391 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4392 (inf_ptrace_store_register): Likewise.
4393 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4394 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4396 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4398 * linux-nat.c (linux_trad_target): Adapt parameter list.
4399 * linux-nat.h (linux_trad_target): Likewise.
4401 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4403 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4404 (mips_linux_cannot_store_register): Likewise.
4405 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4406 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4407 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4408 (mips64_linux_register_addr): Likewise.
4409 (mips_linux_register_u_offset): Adapt parameter list. Pass
4410 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4412 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4413 * config/mips/nm-linux.h: Delete file.
4415 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4417 * remote.c (remote_detach): Error out if remote can't detach.
4419 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
4421 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4422 instruction's opcode in the "opcode" variable and declares new
4423 variable "closing_insn".
4425 2007-05-10 Chris Dearman <chris@mips.com>
4426 Maciej W. Rozycki <macro@mips.com>
4428 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4429 whitespace when setting a var_filename.
4431 2007-05-09 Bob Wilson <bob.wilson@acm.org>
4433 * main.c (captured_main): Recognize -tui option and print an error
4434 message when the TUI is not configured.
4436 2007-05-09 Andreas Schwab <schwab@suse.de>
4438 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4439 set removed members.
4440 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4442 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4444 * gdbarch.sh (deprecated_store_struct_return): Remove.
4445 * gdbarch.c, gdbarch.h: Regenerate.
4446 * frv-tdep.c (frv_store_struct_return): Remove.
4447 (frv_gdbarch_init): Do not install it.
4449 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4451 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4452 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4453 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4455 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4457 * spu-linux-nat.c: Include "gdb_stdint.h".
4458 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4459 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4460 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4461 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4462 (spu_child_wait): Mark up string for translation.
4464 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4465 Luis Machado <luisgpm@br.ibm.com>
4467 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4468 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4469 BC_INSTRUCTION): Define.
4470 (deal_with_atomic_sequence): New function.
4471 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4472 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4473 gdbarch_software_single_step routine.
4475 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4477 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4478 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4479 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4480 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4481 spu_child_post_attach, spu_fetch_inferior_registers,
4482 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4483 memory addresses as ULONGEST, not CORE_ADDR.
4485 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4487 * gdbarch.sh: Add skip_permanent_breakpoint callback.
4488 * gdbarch.h, gdbarch.c: Regenerate.
4490 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4491 (resume): Call gdbarch_skip_permanent_breakpoint instead of
4492 SKIP_PERMANENT_BREAKPOINT. Inline default case.
4494 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4495 Add REGCACHE argument. Use it instead of read/write_register.
4496 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4498 * config/pa/tm-hppah.h: Delete file.
4499 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4500 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4502 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4504 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4505 * NEWS: Mention improved C++ thunk support.
4506 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4507 * cp-abi.c (cplus_skip_trampoline): New.
4508 * cp-abi.h (cplus_skip_trampoline): New prototype.
4509 (struct cp_abi_ops): Add skip_trampoline member.
4510 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4511 (init_gnuv3_ops): Set skip_trampoline.
4513 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4515 * rs6000-tdep.c (struct frame_extra_info): Delete.
4517 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4519 * linux-thread-db.c: Update some FIXME comments.
4520 (thread_db_xfer_partial): Delete.
4521 (init_thread_db_ops): Do not set to_xfer_partial.
4523 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4525 * inftarg.c, infptrace.c: Remove files.
4526 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4527 (inftarg.o, infptrace.o): Remove rules.
4528 * gdbcore.h (register_addr): Remove prototype.
4529 * inferior.h (kill_inferior, store_inferior_registers,
4530 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4531 call_ptrace, pre_fork_inferior): Remove prototypes.
4532 * target.h (child_xfer_memory, child_pid_to_exec_file,
4533 child_core_file_to_sym_file, child_post_attach,
4534 child_post_startup_inferior, child_acknowledge_created_inferior,
4535 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4536 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4537 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4538 child_follow_fork, child_reported_exec_events_per_exec_call,
4539 child_has_exited, child_thread_alive): Remove prototypes.
4541 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4543 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4544 (sparc_store_inferior_registers): Likewise.
4545 * sparc-nat.c (fetch_inferior_registers): Rename to ...
4546 (sparc_fetch_inferior_registers): ... this.
4547 (store_inferior_registers): Rename to ...
4548 (sparc_store_inferior_registers): ... this.
4549 (sparc_target): Update callback names.
4550 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
4551 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
4553 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4555 * linux-nat.c (child_post_attach): Rename to ...
4556 (linux_child_post_attach): ... this. Make static.
4557 (child_follow_fork): Rename to ...
4558 (linux_child_follow_fork): ... this. Make static.
4559 (child_insert_fork_catchpoint): Rename to ...
4560 (linux_child_insert_fork_catchpoint): ... this. Make static.
4561 (child_insert_vfork_catchpoint): Rename to ...
4562 (linux_child_insert_vfork_catchpoint): ... this. Make static.
4563 (child_insert_exec_catchpoint): Rename to ...
4564 (linux_child_insert_exec_catchpoint): ... this. Make static.
4565 (child_pid_to_exec_file): Rename to ...
4566 (linux_child_pid_to_exec_file): ... this. Make static.
4568 (linux_handle_extended_wait): Update call.
4569 (linux_xfer_partial): Update callback routine names.
4571 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4573 * configure.host (alpha*-*-osf[12]*): Remove support.
4574 * NEWS: Mention removed configurations.
4576 * config/alpha/alpha-osf1.mh: Delete file.
4577 * config/alpha/alpha-osf2.mh: Delete file.
4578 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
4580 * config/alpha/nm-osf.h: Delete file.
4581 * config/alpha/nm-osf2.h: Delete file.
4582 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
4583 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
4584 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
4586 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
4587 (register_addr, kernel_u_size): Remove.
4588 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
4590 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4592 * regcache.c (regcache_invalidate): New function.
4593 (register_cached): Remove.
4594 (set_register_cached): Remove.
4595 (deprecated_registers_fetched): Remove.
4596 (registers_changed): Use regcache_invalidate instead
4597 of set_register_cached.
4598 (regcache_raw_read): Update comment.
4600 * regcache.h (regcache_invalidate): Add prototype.
4601 (register_cached): Remove.
4602 (set_register_cached): Remove.
4603 (deprecated_registers_fetched): Remove.
4605 * findvar.c (value_of_register): Do not call register_cached.
4606 * frame.c (frame_register): Likewise.
4607 * tui/tui-regs.c (tui_get_register): Likewise.
4609 * remote.c (fetch_register_using_p): Do not call set_register_cached.
4610 (process_g_packet): Likewise.
4611 (remote_fetch_registers): Likewise.
4612 * remote-sim.c (gdbsim_fetch_register): Likewise.
4613 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
4614 by regcache_invalidate.
4615 (mt_pseudo_register_write): Likewise.
4616 * sh-tdep.c (sh_pseudo_register_write): Likewise.
4618 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
4619 call by loop over regcache_raw_supply (..., NULL).
4621 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4623 * target.h (struct target_ops): Add REGCACHE parameter to
4624 to_prepare_to_store.
4625 (target_prepare_to_store): Likewise.
4626 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
4627 (update_current_target): Adapt prepare_to_store de_fault rule.
4629 * regcache.c (regcache_raw_write): Pass regcache to
4630 target_prepare_to_store.
4632 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
4633 Do not call CHILD_PREPARE_TO_STORE.
4634 * gnu-nat.c (gnu_prepare_to_store): Likewise.
4635 * procfs.c (procfs_prepare_to_store): Likewise.
4637 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
4638 * go32-nat.c (go32_prepare_to_store): Likewise.
4639 * monitor.c (monitor_prepare_to_store): Likewise.
4640 * nto-procfs.c (procfs_prepare_to_store): Likewise.
4641 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
4642 * remote-mips.c (mips_prepare_to_store): Likewise.
4643 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
4644 * win32-nat.c (win32_prepare_to_store): Likewise.
4646 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
4647 Use it instead of current_regcache.
4649 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
4650 parameter. Pass it on to next target.
4651 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
4653 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4655 * target.h (struct regcache): Add forward declaration.
4656 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
4657 and to_store_registers target operations.
4658 (target_fetch_registers, target_store_registers): Update.
4660 * regcache.c (regcache_raw_read): Replace register_cached by
4661 regcache_valid_p. Pass regcache to target_fetch_registers.
4662 (regcache_raw_write): Pass regcache to target_store_registers.
4664 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
4665 store_regs, store_wmmx_regs): Replace register_cached by
4668 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
4669 to target_fetch_registers calls.
4670 * corelow.c (core_open): Likewise.
4671 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
4672 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4673 ps_lsetfpregs): Likewise.
4674 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4675 ps_lsetfpregs): Likewise.
4676 * win32-nat.c (win32_resume): Likewise.
4677 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
4678 to target_store_registers call.
4679 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4681 * inferior.h (store_inferior_registers): Update prototype.
4682 (fetch_inferior_registers): Likewise.
4683 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
4684 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
4685 Update function pointer signatures.
4687 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
4688 use it instead of current_regcache, update calls.
4689 (aix_thread_store_registers): Likewise.
4690 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4691 (alphabsd_store_inferior_registers): Likewise.
4692 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4693 (amd64bsd_store_inferior_registers): Likewise.
4694 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
4695 (amd64_linux_store_inferior_registers): Likewise.
4696 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
4697 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
4698 fetch_wmmx_regs, store_wmmx_regs): Likewise.
4699 (arm_linux_fetch_inferior_registers): Likewise.
4700 (arm_linux_store_inferior_registers): Likewise.
4701 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
4702 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
4703 (store_register, store_regs, store_fp_register, store_fp_regs,
4704 armnbsd_store_registers): Likewise.
4705 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
4706 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4707 (bsd_uthread_store_registers): Likewise.
4708 * corelow.c (get_core_registers): Likewise.
4709 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
4710 go32_store_registers): Likewise.
4711 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
4712 (hppabsd_store_registers): Likewise.
4713 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
4714 (hppa_hpux_fetch_inferior_registers): Likewise.
4715 (hppa_hpux_store_register): Likewise.
4716 (hppa_hpux_store_inferior_registers): Likewise.
4717 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4718 (hppa_linux_fetch_inferior_registers): Likewise.
4719 (hppa_linux_store_inferior_registers): Likewise.
4720 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
4721 (hpux_thread_store_registers): Likewise.
4722 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
4723 (i386bsd_store_inferior_registers): Likewise.
4724 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
4725 gnu_store_registers): Likewise.
4726 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
4727 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
4729 (i386_linux_fetch_inferior_registers): Likewise.
4730 (i386_linux_store_inferior_registers): Likewise.
4731 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
4732 (ia64_linux_fetch_registers): Likewise.
4733 (ia64_linux_store_register): Likewise.
4734 (ia64_linux_store_registers): Likewise.
4735 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4736 (inf_child_store_inferior_registers): Likewise.
4737 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4738 (inf_ptrace_fetch_registers): Likewise.
4739 (inf_ptrace_store_register): Likewise.
4740 (inf_ptrace_store_registers): Likewise.
4741 * infptrace.c (fetch_register, store_register): Likewise.
4742 (fetch_inferior_registers, store_inferior_registers): Likewise.
4743 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
4744 (m32r_linux_fetch_inferior_registers): Likewise.
4745 (m32r_linux_store_inferior_registers): Likewise.
4746 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
4747 (m68kbsd_store_inferior_registers): Likewise.
4748 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
4749 store_register, old_store_inferior_registers, fetch_regs, store_regs,
4750 fetch_fpregs, store_fpregs): Likewise.
4751 (m68k_linux_fetch_inferior_registers): Likewise.
4752 (m68k_linux_store_inferior_registers): Likewise.
4753 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
4754 (m88kbsd_store_inferior_registers): Likewise.
4755 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
4756 (mips64obsd_store_inferior_registers): Likewise.
4757 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
4758 (mips64_linux_regsets_store_registers): Likewise.
4759 (mips64_linux_fetch_registers): Likewise.
4760 (mips64_linux_store_registers): Likewise.
4761 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4762 (mipsnbsd_store_inferior_registers): Likewise.
4763 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
4764 (monitor_fetch_registers, monitor_store_registers): Likewise.
4765 * nto-procfs.c (procfs_fetch_registers): Likewise.
4766 (procfs_store_registers): Likewise.
4767 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
4768 fetch_register, supply_vrregset, fetch_altivec_registers,
4769 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
4770 (store_altivec_register, store_spe_register, store_register,
4771 fill_vrregset, store_altivec_registers, store_ppc_registers,
4772 ppc_linux_store_inferior_registers): Likewise.
4773 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
4774 (ppcnbsd_store_inferior_registers): Likewise.
4775 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
4776 (ppcobsd_store_registers): Likewise.
4777 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4778 * remote.c (fetch_register_using_p, process_g_packet,
4779 fetch_registers_using_g, remote_fetch_registers): Likewise.
4780 (store_register_using_P, store_registers_using_G,
4781 remote_store_registers): Likewise.
4782 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
4783 m32r_store_register, m32r_store_register): Likewise.
4784 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
4785 * remote-sim.c (gdbsim_fetch_register): Likewise.
4786 (gdbsim_store_register): Likewise.
4787 * rs6000-nat.c (fetch_register, store_register): Likewise.
4788 (rs6000_fetch_inferior_registers): Likewise.
4789 (rs6000_store_inferior_registers): Likewise.
4790 * s390-nat.c (fetch_regs, store_regs): Likewise.
4791 (fetch_fpregs, store_fpregs): Likewise.
4792 (s390_linux_fetch_inferior_registers): Likewise.
4793 (s390_linux_store_inferior_registers): Likewise.
4794 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4795 (shnbsd_store_inferior_registers): Likewise.
4796 * sol-thread.c (sol_thread_fetch_registers): Likewise.
4797 (sol_thread_store_registers): Likewise.
4798 * sparc-nat.c (fetch_inferior_registers): Likewise.
4799 (store_inferior_registers): Likewise.
4800 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4801 (spu_store_inferior_registers): Likewise.
4802 * target.c (debug_print_register): Likewise.
4803 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
4804 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
4805 (vaxbsd_store_inferior_registers): Likewise.
4806 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
4807 (win32_fetch_inferior_registers): Likewise.
4808 (win32_store_inferior_registers): Likewise.
4810 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4812 * gdbcore.h (struct regcache): Add forward declaration.
4813 (struct core_fns): Add REGCACHE argument to core_read_registers
4815 * corelow.c (get_core_register_section): Add REGCACHE argument,
4816 use it instead of current_regcache, pass it to core_read_registers
4818 (get_core_registers): Add current_regcache as parameter to
4819 get_core_register_section calls.
4821 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
4822 use it instead of current_regcache.
4823 * armnbsd-nat.c (fetch_core_registers): Likewise.
4824 (fetch_elfcore_registers): Likewise.
4825 * core-regset.c (fetch_core_registers): Likewise.
4826 * cris-tdep.c (fetch_core_registers): Likewise.
4827 * irix5-nat.c (fetch_core_registers): Likewise.
4828 * m68klinux-nat.c (fetch_core_registers): Likewise.
4829 * mips-linux-tdep.c (fetch_core_registers): Likewise.
4830 * win32-nat.c (fetch_elf_core_registers): Likewise.
4832 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4834 * gregset.h (struct regcache): Add forward declaration.
4835 (supply_gregset): Add REGCACHE parameter, make GREGS const.
4836 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
4837 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
4838 (fill_gregset): Add REGCACHE parameter.
4839 (fill_fpregset): Likewise.
4840 (fill_fpxregset): Likewise.
4842 Update all definitions accordingly:
4843 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
4844 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
4845 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
4846 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
4847 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
4848 (supply_gregset): Add REGCACHE parameter, use it instead of
4849 current_regcache. Make GREGSETP parameter const, adapt casts.
4850 (supply_fpregset): Add REGCACHE parameter, use it instead of
4851 current_regcache. Make FPREGSETP parameter const, adapt casts.
4852 (fill_gregset): Add REGCACHE parameter, use it instead of
4854 (fill_fpregset): Likewise.
4856 Update all callers to pass in current_regcache as the new argument:
4857 * core-regset.c: Include "regcache.h".
4858 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
4859 * procfs.c: Include "regcache.h".
4860 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
4861 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
4862 (procfs_do_thread_registers): Likewise.
4863 (procfs_make_note_section): Likewise.
4864 * proc-service.c: Include "regcache.h".
4865 (ps_lgetregs): Update fill_gregset call.
4866 (ps_lsetregs): Update supply_gregset call.
4867 (ps_lgetfpregs): Update fill_fpregset call.
4868 (ps_lsetfpregs): Update supply_fpregset call.
4869 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
4870 supply_fpregset calls.
4871 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
4872 (ps_lgetregs): Update fill_gregset call.
4873 (ps_lsetregs): Update supply_gregset call.
4874 (ps_lgetfpregs): Update fill_fpregset call.
4875 (ps_lsetfpregs): Update supply_fpregset call.
4877 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
4878 fill_fpregset, and fill_fpxregset calls.
4879 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
4880 (store_regs): Update fill_gregset call.
4881 (fetch_fpregs): Update supply_fpregset call.
4882 (store_fpregs): Update fill_fpregset call.
4883 (fetch_fpxregs): Update supply_fpxregset call.
4884 (store_fpxregs): Update fill_fpxregset call.
4885 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
4886 (store_regs): Update fill_gregset call.
4887 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
4888 (store_regs): Update fill_gregset call.
4889 (fetch_fpregs): Update supply_fpregset call.
4890 (store_fpregs): Update fill_fpregset call.
4891 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
4892 * s390-nat.c (fetch_regs): Update supply_gregset call.
4893 (store_regs): Update fill_gregset call.
4894 (fetch_fpregs): Update supply_fpregset call.
4895 (store_fpregs): Update fill_fpregset call.
4897 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
4900 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4902 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
4903 it instead of current_regcache.
4904 (parse_register_dump): Add REGCACHE parameter, pass it to
4905 supply_register callback.
4906 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
4907 parse_register_dump.
4908 (monitor_dump_regs): Add REGCACHE parameter, pass it to
4909 parse_register_dump and dumpregs callback.
4910 (monitor_wait): Pass current_regcache to parse_register_dump and
4912 (monitor_fetch_register): Pass current_regcache to
4913 monitor_supply_register.
4914 (monitor_fetch_registers): Pass current_regcache to
4916 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
4917 supply_register and dumpregs callbacks.
4918 (monitor_supply_register, monitor_dump_reg_block): Update
4920 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
4921 it to monitor_supply_register.
4922 * dink32-rom.c (dink32_supply_register): Likewise.
4923 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
4924 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
4925 instead of current_regcache.
4927 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4929 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
4930 Add REGCACHE parameter. Use it instead of current_regcache.
4931 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
4932 i386nto_supply_gregset and i386nto_supply_fpregset.
4933 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
4934 of current_regcache.
4936 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
4937 nto_supply_ helper functions.
4938 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
4940 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
4942 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
4943 supply_greget, supply_fpregset, supply_altregset, supply_regset,
4944 and regset_fill member function pointers.
4945 (nto_dummy_supply_regset): Adapt prototype.
4947 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4949 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
4950 instead of current_regcache. Make REGS const.
4951 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
4952 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
4954 * shnbsd-nat.c: Include "regcache.h".
4955 (shnbsd_fetch_inferior_registers): Pass current_regcache to
4957 (shnbsd_store_inferior_registers): Pass current_regcache to
4959 * Makefile.in (shbsd-nat.o): Update dependencies.
4961 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4963 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
4964 instead of current_regcache.
4965 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
4966 Make GREGSETP const, remove superfluous casts.
4967 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4968 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
4970 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4971 (supply_64bit_reg): Likewise
4972 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
4973 Make GREGSETP const, adapt casts accordingly.
4974 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4975 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
4977 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4978 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
4980 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
4981 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
4982 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
4984 * mips-linux-nat.c: Include "regcache.h".
4985 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4986 current_regcache to mips{64}_(supply|fill)_ helper routines.
4987 (mips64_linux_regsets_fetch_registers): Likewise.
4988 (mips64_linux_regsets_store_registers): Likewise.
4990 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
4991 REGCACHE argument; replace current_regcache. Make REGS const.
4992 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
4993 replace current_regcache.
4994 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
4995 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
4996 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
4997 mipsnbsd_store_inferior_registers): Pass current_regcache to
4998 mipsnbsd_(supply|fill)_... helper routines.
5000 * Makefile.in (mips-linux-nat.o): Update dependencies.
5002 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5004 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5005 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5006 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5007 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5008 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5009 * i386gnu-nat.c (store_fpregs): Likewise.
5010 * i386v4-nat.c (fill_fpregset): Likewise.
5011 * go32-nat.c (store_register, go32_store_registers): Likewise.
5013 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5015 * cris-tdep.c (supply_gregset): Rename to ...
5016 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5017 instead of current_regcache.
5018 (fetch_core_registers): Update call. Pass current_regcache.
5020 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5022 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5023 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5024 Use it instead of current_regcache.
5025 (supply_fparegset): Rename to ...
5026 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5027 Use it instead of current_regcache.
5028 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5029 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5031 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5033 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5034 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5035 use it instead of current_regcache.
5036 * alpha-tdep.h (struct regcache): Add forward declaration.
5037 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5038 alpha_fill_fp_regs): Update prototypes.
5040 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5041 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5042 * alpha-linux-nat.c: Include "regcache.h".
5043 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5044 current_regcache to alpha_supply/fill_ routines.
5046 * alphabsd-tdep.c: Include "regcache.h".
5047 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5048 pass it to alpha_supply_ routines. Make REGS const.
5049 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5050 pass it to alpha_fill_ routines.
5051 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5052 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5053 alphabsd_fill_fpreg): Update prototypes.
5055 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5056 fill_fpregset, alphabsd_fetch_inferior_registers,
5057 alphabsd_store_inferior_registers): Pass current_regcache to
5058 alphabsd_supply/fill_ routines.
5060 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5063 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5065 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5066 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5067 instead of current_regcache.
5068 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5069 REGCACHE parameter, pass it to supply_ routines.
5070 (aix_thread_fetch_registers): Pass current_regcache to
5071 fetch_regs_user_thread and fetch_regs_kernel_thread.
5073 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5074 Add REGCACHE parameter, use it instead of current_regcache.
5075 Call regcache_valid_p instead of register_cached.
5076 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5077 Also, pass REGCACHE to fill_ routines.
5078 (aix_thread_store_registers): Pass current_regcache to
5079 store_regs_user_thread and store_regs_kernel_thread.
5081 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5083 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5084 pointed to by GREGSETP.
5086 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5088 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5089 of regcache_raw_read_signed.
5090 (fill_fpregset): Use regcache_raw_collect instead of
5093 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5095 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5096 point arguments, test explicitly for use of the EABI32 ABI
5097 instead of inferring this condition from tests on register
5100 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5102 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5103 prior to allocating its location.
5105 2007-05-02 Maciej W. Rozycki <macro@mips.com>
5107 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5108 based on mips_abi_regsize() whose result is known in advance.
5109 (mips_o64_push_dummy_call): Likewise.
5111 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5113 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5114 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5116 * mips-linux-nat.c: Include "gregset.h".
5117 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5118 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5119 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5120 fill_fpregset): Move to mips-linux-nat.c.
5122 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5124 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5126 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5127 (read_register): ... here.
5128 (deprecated_write_register_gen): Remove, inline ...
5129 (write_register): ... here.
5130 * regcache.h (deprecated_read_register_gen): Remove prototype.
5131 (deprecated_write_register_gen): Likewise.
5133 * remote-sim.c (gdbsim_store_register): Replace call to
5134 deprecated_read_register_gen with regcache_cooked_read.
5135 * target.c (debug_print_register): Replace calls to
5136 deprecated_read_register_gen and read_register with
5137 regcache_cooked_read.
5139 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5141 * hpux-thread.c (hpux_thread_store_registers): Use
5142 regcache_raw_collect, not regcache_raw_read.
5143 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5144 not regcache_raw_write.
5146 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5148 * gdbarch.sh: Remove deprecated_register_byte.
5149 * gdbarch.c, gdbarch.h: Regenerate.
5150 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5151 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5153 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5154 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5155 read-only register caches. Make REGCACHE parameter const.
5156 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5158 * mi/mi-main.c (old_regs): Remove.
5159 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5160 (register_changed_p): Reimplement to compare two register caches.
5161 (mi_cmd_data_list_changed_registers): Update caller.
5162 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5163 * mi/mi-interp.c (mi_interpreter_init): Do not call
5164 mi_setup_architecture_data.
5166 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5168 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5169 inline definition at the places the macros are used.
5170 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5172 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5174 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5176 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5177 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5178 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5179 (rs6000_aix_regset_from_core_section): New function.
5180 (rs6000_aix_init_osabi): Register it.
5181 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5182 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5183 * rs6000-nat.c (CoreRegs): Do not define type.
5184 (fetch_core_registers, rs6000_core_fns): Remove.
5185 (_initialize_core_rs6000): Do not register it. Rename to ...
5186 (_initialize_rs6000_nat): ... this.
5187 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5189 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5191 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5192 (dwarf2_read_address): Sign extend return address as required by
5193 target architecture.
5195 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5197 * solib-frv.c (lm_base): Bail out if the main executable has
5200 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5202 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5203 of FPCR register in fpregset.
5205 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5207 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5208 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5210 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5212 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5213 * rs6000-nat.c (rs6000_wait): New function.
5214 (_initialize_core_rs6000): Install it as to_wait target method.
5215 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5217 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5219 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5220 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5221 * rs6000-nat.c (super_create_inferior): New variable.
5222 (rs6000_create_inferior): Make static. Adapt argument list. Call
5223 original version of create_inferior via super_create_inferior.
5224 (_initialize_core_rs6000): Install to_create_inferior target method.
5226 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5228 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5229 (aix_thread_xfer_partial): ... this.
5230 (init_aix_thread_ops): Install to_xfer_partial instead
5231 of deprecated_xfer_memory target method.
5233 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5234 and inftarg.o, add inf-ptrace.o.
5235 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5236 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5237 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5238 (fetch_inferior_registers): Rename to ...
5239 (rs6000_fetch_inferior_registers): ... this. Make static.
5240 (store_inferior_registers): Rename to ...
5241 (rs6000_store_inferior_registers): ... this. Make static.
5242 (read_word, child_xfer_memory): Remove.
5243 (rs6000_xfer_partial): New function.
5244 (kernel_u_size): Remove.
5245 (_initialize_core_rs6000): Add inf_ptrace-based target.
5246 * Makefile.in (rs6000-nat.o): Update dependencies.
5248 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5250 * inf-ptrace.c: Include "gdb_stdint.h".
5251 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5252 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5253 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5254 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5255 (inf_ptrace_store_register): Likewise.
5256 * Makefile.in (inf-ptrace.o): Update dependencies.
5258 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5260 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5261 * configure.tgt (rs6000-*-*): Likewise.
5262 * config/rs6000/aix4.mh: Delete file.
5263 * config/rs6000/aix4.mt: Delete file.
5264 * config/rs6000/rs6000.mh: Delete file.
5265 * config/rs6000/rs6000.mt: Delete file.
5267 * config/powerpc/nm-aix.h: Delete file.
5268 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5270 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5272 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5273 Remove obsolete part of comment.
5274 (store_regs_user_thread): Use uint32_t temporaries when calling
5276 (store_regs_kernel_thread): Likewise. Add assertion to verify
5277 correct size of struct ptsprs members.
5278 (aix_thread_xfer_memory): Fix type of myaddr.
5279 (aix_thread_extra_thread_info): Fix compiler warning.
5280 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5281 (fetch_register, store_register): Adapt callers.
5283 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5285 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5287 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5289 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5291 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5292 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5293 (alpha_linux_regset_from_core_section): New function.
5294 (alpha_linux_init_abi): Install it.
5295 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5296 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5297 <sys/procfs.h>, and "gregset.h".
5298 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5299 Move from config/alpha/nm-linux.h.
5300 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5302 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5303 * alpha-nat.c: Remove #ifdef __linux__ section.
5304 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5305 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5306 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5307 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5308 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5309 (NATDEPFILES): Remove alpha-nat.o.
5310 * config/alpha/nm-linux.h: Delete file.
5311 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5312 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5313 (alpha-linux-tdep.o): Likewise.
5315 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5317 * mips-linux-nat.c: No longer include "gdbcore.h".
5318 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5319 (mips64_linux_register_addr): Likewise.
5320 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5321 mips64_linux_register_addr instead of register_addr.
5322 * mips-linux-tdep.c (mips_linux_register_addr,
5323 mips64_linux_register_addr): Move to mips-linux-nat.c.
5324 (register_addr): Remove.
5325 (register_addr_data, init_register_addr_data): Remove.
5326 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5327 (set_mips_linux_register_addr): Remove.
5328 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5329 * Makefile.in (mips-linux-nat.o): Update dependencies.
5331 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5333 * linux-nat.c (linux_register_u_offset): Remove.
5334 (linux_target_install_ops): New function.
5335 (linux_target): Use it.
5336 (linux_trad_target): New function.
5337 * linux-nat.h (linux_trad_target): Declare.
5339 * alpha-linux-nat.c: Include "gdbcore.h".
5340 (alpha_linux_register_u_offset): New function.
5341 (_initialize_alpha_linux_nat): Use linux_trad_target.
5343 * mips-linux-nat.c: Include "gdbcore.h".
5344 (mips_linux_register_u_offset): New function.
5345 (_initialize_mips_linux_nat): Use linux_trad_target.
5347 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5348 * config/arm/nm-linux.h: Delete file.
5350 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5351 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5353 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5354 * config/ia64/nm-linux.h: Delete file.
5356 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5357 * config/m32r/nm-linux.h: Delete file.
5359 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5360 * config/m68k/nm-linux.h: Delete file.
5362 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5363 * config/pa/nm-linux.h: Delete file.
5365 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5366 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5367 * config/powerpc/nm-linux.h: Delete file.
5369 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5370 * config/s390/nm-linux.h: Delete file.
5372 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5373 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5374 * config/sparc/nm-linux.h: Delete file.
5376 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5377 (mips-linux-nat.o): Likewise.
5379 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5381 * core-aout.c: Delete file.
5382 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5383 (core-aout.o): Delete rule.
5384 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5386 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5388 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5389 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5390 KERNEL_U_ADDR): Remove.
5392 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5393 (cannot_fetch_register, cannot_store_register): Remove.
5394 (fetch_register): Inline cannot_fetch_register and register_addr.
5395 (store_register): Inline cannot_store_register and register_addr.
5396 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5397 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5398 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5401 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5402 (fetch_register): Inline register_addr.
5403 (store_register): Inline register_addr.
5404 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5405 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5406 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5408 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5409 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5410 REGISTER_U_ADDR): Remove.
5412 * hppa-linux-nat.c (register_addr): Rename to ...
5413 (hppa_linux_register_addr): ... this. Make static.
5414 (fetch_register, store_register): Adapt callers.
5415 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5417 * ppc-linux-nat.c (kernel_u_size): Remove.
5418 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5420 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5421 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5423 * config/vax/nm-vax.h: Delete file.
5425 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5427 * MAINTAINERS (Write After Approval): Add myself.
5429 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5431 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5432 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5433 (m68k_linux_sigcontext_reg_offset): Fix typo.
5434 (target_is_uclinux): New.
5435 (m68k_linux_inferior_created): New.
5436 (m68k_linux_get_sigtramp_info): Check for uClinux or
5437 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5439 (_initialize_m68k_linux_tdep): Register
5440 m68k_linux_inferior_created.
5442 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5444 * win32-nat.c (win32_detach): Remove delete_command call.
5445 Resume inferior with win32_resume instead of win32_continue.
5447 2007-04-19 Jerome Guitton <guitton@adacore.com>
5449 * ser-mingw.c (fd_is_file): New function.
5450 (file_select_thread): New function.
5451 (ser_console_wait_handle): Add special handling for files.
5453 2007-04-18 Denis Pilat <denis.pilat@st.com>
5455 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5456 when missing from DW_TAG_subrange_type. Remove the handling of null
5457 return from die_type.
5459 2007-04-18 Maciej W. Rozycki <macro@mips.com>
5461 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5462 change to rearrange some brackets.
5463 (mips_n32n64_push_dummy_call): Likewise.
5464 (mips_o32_push_dummy_call): Likewise.
5465 (mips_o64_push_dummy_call): Likewise.
5467 2007-04-18 Denis Pilat <denis.pilat@st.com>
5469 * infcmd.c (post_create_inferior): Start with a call to
5470 target_terminal_ours.
5472 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5474 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5476 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5478 (mips_o32_push_dummy_call): Likewise.
5479 (mips_o64_push_dummy_call): Likewise.
5481 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5483 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5486 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5488 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5490 (mips_o32_push_dummy_call): Likewise.
5492 2007-04-17 Andreas Schwab <schwab@suse.de>
5494 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5495 sal to be bigger than the end of the function.
5497 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5498 Nigel Stephens <nigel@mips.com>
5500 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5501 argument alignment requirements when calculating stack space
5502 required. When aligning an arg register to eight bytes
5503 boundary, align stack_offset too. Write floating-point
5504 arguments to the appropriate integer register if need go there.
5505 (mips_o64_push_dummy_call): Likewise.
5507 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5509 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5510 "sig" arguments, add "regcache" argument.
5511 * gdbarch.c, gdbarch.h: Regenerate.
5513 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5514 (handle_inferior_event): Call remove_single_step_breakpoints directly
5515 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5517 * alpha-tdep.c (alpha_software_single_step): Update argument list.
5518 Remove handling of !insert_breakpoints_p case.
5519 * arm-tdep.c (arm_software_single_step): Likewise.
5520 * cris-tdep.c (cris_software_single_step): Likewise.
5521 * mips-tdep.c (mips_software_single_step): Likewise.
5522 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5523 * sparc-tdep.c (sparc_software_single_step): Likewise.
5524 * spu-tdep.c (spu_software_single_step): Likewise.
5526 * alpha-tdep.h (alpha_software_single_step): Update prototype.
5527 * mips-tdep.h (mips_software_single_step): Likewise.
5528 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5529 * sparc-tdep.h (sparc_software_single_step): Likewise.
5531 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5533 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5534 when removing single-step breakpoints.
5536 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
5538 * varobj.h (varobj_set_frozen): New
5539 (varobj_get_frozen): New.
5540 (varobj_update): New parameter explicit.
5541 * varobj.c (struct varobj): New fields frozen
5543 (varobj_set_frozen, varobj_get_frozen): New.
5544 (install_new_value): Don't fetch values for
5545 frozen variable object, or children thereof. Allow
5546 a frozen variable object to have non-fetched value.
5547 (varobj_update): Allow updating child variables.
5548 Don't traverse frozen children.
5549 (new_variable): Initialize the frozen field.
5550 (c_value_of_variable): Return NULL for frozen
5551 variable without any value yet.
5552 * mi/mi-cmd-var.c (varobj_update_one): New parameter
5554 (mi_cmd_var_create): Output the 'frozen' field,
5555 as soon as testsuite is adjusted to expect that field.
5556 (mi_cmd_var_set_frozen): New.
5557 (mi_cmd_var_update): Pass the 'explicit' parameter to
5559 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
5560 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
5562 2007-04-13 Paul Brook <paul@codesourcery.com>
5564 * target-descriptions.c (tdesc_named_type): Add ieee_single and
5566 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
5568 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5570 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
5571 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
5572 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
5573 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
5574 * Makefile.in: Remove references to deleted files.
5575 * README: Do not mention deleted ROM monitor interfaces.
5576 * defs.h (enum language): Delete language_scm.
5577 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
5578 (dump_subexp_body_standard): Likewise.
5579 * parse.c (operator_length_standard): Likewise.
5580 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
5581 * remote-mips.c: Do not include remote-utils.h.
5582 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
5584 * value.c: Do not include scm-lang.h.
5585 (unpack_long): Delete scm_unpack call.
5586 * config/h8300/h8300.mt, config/mips/embed.mt,
5587 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
5588 config/sh/embed.mt, config/sh/linux.mt: Remove references to
5590 * NEWS: Mention removed files.
5592 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5594 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
5595 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5597 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5599 * NEWS: Mention removal of HP aCC support.
5601 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5603 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
5604 first entry for static executables.
5605 (breakpoint_addr): Delete unused variable.
5606 (elf_locate_base): Search for _r_debug in static executables.
5607 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
5610 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5612 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
5613 (bpstat_what, print_one_breakpoint, allocate_bp_location)
5614 (mention): Remove bp_through_sigtramp support.
5615 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
5617 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5619 * breakpoint.c (bpstat_what): Give step-resume higher priority than
5622 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5624 * infrun.c: Doc fixes.
5625 (handle_inferior_event): Clarify debug message.
5626 (insert_step_resume_breakpoint_at_sal): Print a debug message.
5628 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5630 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
5632 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5634 * config/m68k/tm-monitor.h: Delete file.
5635 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
5636 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
5638 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
5639 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
5641 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
5643 * gdbarch.sh (software_single_step): Change the return type
5644 from void to int and reformatted some comments to <= 80
5646 * gdbarch.c, gdbarch.h: Regenerated.
5647 * alpha-tdep.c (alpha_software_single_step): Likewise.
5648 * alpha-tdep.h (alpha_software_single_step): Likewise.
5649 * arm-tdep.c (arm_software_single_step): Likewise.
5650 * cris-tdep.c (cris_software_single_step): Likewise.
5651 * mips-tdep.c (mips_software_single_step): Likewise.
5652 * mips-tdep.h (mips_software_single_step): Likewise.
5653 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5654 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5655 * sparc-tdep.c (sparc_software_single_step): Likewise.
5656 * sparc-tdep.h (sparc_software_single_step): Likewise.
5657 * spu-tdep.c (spu_software_single_step): Likewise.
5658 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
5659 and act accordingly.
5661 2007-04-11 Steve Ellcey <sje@cup.hp.com>
5663 * configure.ac (build_warnings): Add -Wno-char-subscripts.
5664 * configure: Regenerate.
5665 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
5667 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5669 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
5671 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5673 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
5675 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
5676 distinct on the TYPE_STUB_SUPPORTED debug targets.
5677 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
5679 2007-04-11 Joel Brobecker <brobecker@adacore.com>
5681 * sparc-tdep.c (X_RS2): New macro.
5682 (sparc_skip_stack_check): New function.
5683 (sparc_analyze_prologue): Adjust PC past stack probing
5684 sequence if necessary.
5686 2007-04-10 Andreas Schwab <schwab@suse.de>
5688 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
5691 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5693 * breakpoint.c (gdb_breakpoint_query): Really return an
5695 (gdb_breakpoint): Likewise.
5696 * thread.c (gdb_list_thread_ids): Likewise.
5697 (gdb_thread_select): Likewise.
5698 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
5699 (mi_cmd_thread_list_ids): Remove bogus initialization.
5701 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5703 * Makefile.in (SFILES): Remove hpacc-abi.c.
5704 (COMMON_OBS): Remove hpacc-abi.o.
5705 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
5706 (hpacc-abi.o, hpread.o): Delete rules.
5707 * somread.c: Delete extern declarations from hpread.c.
5708 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
5709 (som_symfile_finish): Do not call hpread_symfile_finish.
5710 (som_symfile_init): Do not call hpread_symfile_init.
5711 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
5712 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
5713 * hpacc-abi.c, hpread.c: Deleted.
5715 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5717 * solib-svr4.c (enable_break): Simplify return value.
5718 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
5720 2007-04-10 Andreas Schwab <schwab@suse.de>
5722 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
5723 l_ld_size, l_next_size, l_prev_size, l_name_size.
5725 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
5726 to extract addresses from link map.
5727 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
5728 (LM_NEXT): Likewise.
5729 (LM_NAME): Likewise.
5730 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
5731 (elf_locate_base): Likewise.
5732 (open_symbol_file_object): Likewise.
5733 (svr4_fetch_objfile_link_map): Likewise.
5734 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
5735 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
5737 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
5738 (svr4_lp64_fetch_link_map_offsets): Likewise.
5740 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
5741 removed members. Set l_ld_offset to -1 if not present.
5743 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
5745 Pass stderr of program run with "target remote |"
5747 * serial.c (serial_open): Set error_fd to -1.
5748 * serial.h (struct serial): New field error_fd.
5749 (struct serial_opts): New field avail.
5750 * ser-pipe.c (pipe_open): Create another pair
5751 of sockets. Pass stderr to gdb.
5752 * ser-mingw.c (pipe_windows_open): Pass
5753 PEX_STDERR_TO_PIPE to pex_run. Initialize
5756 (_initialize_ser_windows): Hook pipe_avail.
5757 * ser-base.c (generic_readchar): Check if there's
5758 anything in stderr channel and route that to gdb_stderr.
5760 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
5762 * dbxread.c (read_ofile_symtab): Move current_objfile
5763 clearing to after end_stabs.
5765 2007-04-01 Andreas Schwab <schwab@suse.de>
5767 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
5768 gdbarch instead of current_gdbarch.
5770 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
5772 * varobj.c (varobj_create): Keep varobj value
5773 NULL when evaluating the type.
5775 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
5777 * NEWS: Mention new Windows CE support.
5779 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
5781 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
5782 the obsoletion stanza.
5783 * NEWS: Mention deleted targets.
5785 * config/sh/tm-wince.h: Remove.
5786 * config/sh/wince.mt: Remove.
5787 * config/mips/tm-wince.h: Remove.
5788 * config/mips/wince.mt: Remove.
5791 * wince-stub.c: Remove.
5792 * wince-stub.h: Remove.
5793 * Makefile.in (wince.o): Remove rule.
5794 (wince-stub.o): Likewise.
5796 * mips-tdep.c (mips_next_pc): Make static.
5797 * mips-tdep.h (mips_next_pc): Remove declaration.
5798 * arm-tdep.c (arm_pc_is_thumb): Make static.
5799 (thumb_get_next_pc): Likewise.
5800 (arm_get_next_pc): Likewise.
5801 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
5802 (arm_pc_is_thumb): Likewise.
5803 (thumb_get_next_pc): Likewise.
5804 (arm_get_next_pc): Likewise.
5806 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5808 * MAINTAINERS: Remove d10v entry.
5809 * Makefile.in (SFILES): Remove dwarfread.c.
5810 (COMMON_OBS): Remove dwarfread.o.
5811 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
5812 (remote-est.o, rom68k-rom.o): Delete.
5813 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
5814 target est, target rom68k, and DWARF 1.
5815 * configure.tgt: Mark d10v as removed.
5816 * dwarf2read.c: Doc update.
5817 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
5819 (elf_locate_sections): Do not set them.
5820 (elf_symfile_read): Do not call dwarf_build_psymtabs.
5821 * symfile.h (dwarf_build_psymtabs): Delete prototype.
5822 * config/m68k/monitor.mt (TDEPFILES): Prune.
5823 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
5824 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
5826 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5828 * doublest.c (convert_floatformat_to_doublest): Use
5829 floatformat_classify.
5830 (floatformat_is_nan): Rename to...
5831 (floatformat_classify): ...this. Return more information.
5832 * doublest.h (enum float_kind): New.
5833 (floatformat_is_nan): Replace prototype...
5834 (floatformat_classify): ...with this one.
5835 * valprint.c (print_floating): Use floatformat_classify. Handle
5838 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5840 * README: Mention ISO C library requirement.
5842 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5844 * Makefile.in (SFILES): Remove nlmread.c.
5845 (COMMON_OBS): Remove nlmread.o.
5846 (nlmread.o): Delete rule.
5847 * README: Delete reference to remote-st.c.
5848 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
5849 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
5851 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
5852 (_initialize_i386_tdep): Do not reference them.
5853 * nlmread.c: Delete file.
5854 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
5855 * target.c: Doc update.
5856 * thread.c: Delete commented include.
5857 * config/alpha/tm-alpha.h: Doc update.
5859 2007-03-30 Chris Dearman <chris@mips.com>
5861 * utils.c (string_to_core_addr): Comment typo.
5863 2007-03-30 Chris Dearman <chris@mips.com>
5865 * mips-tdep.c: Comment typo.
5867 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
5869 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
5870 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5871 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5872 * config/powerpc/nm-ppc64-linux.h: Remove file.
5873 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
5874 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
5875 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
5876 * infptrace.c (call_ptrace): Likewise.
5877 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
5878 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
5879 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
5880 (store_register): Likewise.
5882 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5884 * Makefile.in (varobj.o): Add missing dependency.
5886 2007-03-29 Michael Snyder <msnyder@access-company.com>
5888 * MAINTAINERS: Update my email address.
5890 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5892 Add support for exception handling with multiple versions of
5894 * ada-lang.c: Update general comments on how Ada exception catchpoints
5896 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
5897 (__gnat_raise_nodefer_with_msg): Delete.
5898 (ada_unhandled_exception_name_addr_ftype): New type.
5899 (exception_support_info): New type.
5900 (ada_unhandled_exception_name_addr): Add forward declaration.
5901 (ada_unhandled_exception_name_addr_from_raise): Likewise.
5902 (default_exception_support_info): New constant.
5903 (exception_support_info_fallback): Likewise.
5904 (exception_info): New global variable.
5905 (ada_exception_support_info_sniffer): New function.
5906 (ada_executable_changed_observer): Likewise.
5907 (ada_unhandled_exception_name_addr_from_raise): Renamed from
5908 ada_unhandled_exception_name_addr.
5909 (ada_unhandled_exception_name_addr): Reimplement to match the
5910 latest Ada runtime implementation.
5911 (error_breakpoint_runtime_sym_not_found): Delete.
5912 (ada_exception_sym_name): Get the exception sym name from
5913 exception_info rather than hardcoding it.
5914 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
5915 Update error handling.
5916 * Makefile.in (ada-lang.o): Add dependency on observer.h.
5918 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
5920 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
5921 (remote-st.o, uw-thread.o): Delete.
5922 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
5923 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5924 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
5925 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
5926 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
5927 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
5928 rs6000-*-lynxos* to an obsoletion stanza.
5929 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5930 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
5931 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
5932 i[34567]86-*-netware*.
5933 * NEWS: Mention deleted targets.
5935 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
5936 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
5937 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
5938 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
5939 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
5940 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
5941 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
5942 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
5943 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
5944 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
5945 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
5946 config/rs6000/tm-rs6000ly.h: Delete files.
5948 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
5950 * defs.h (deprecated_registers_changed_hook): Delete declaration.
5951 * interps.c (clear_interpreter_hooks): Do not clear
5952 deprecated_registers_changed_hook.
5953 * regcache.c (registers_changed): Do not call it.
5954 * top.c (deprecated_registers_changed_hook): Do not define it.
5955 * mi/mi-interp.c (mi_command_loop): Do not clear it.
5956 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
5957 (tui_remove_hooks): Do not remove it.
5958 (tui_selected_frame_level_changed_hook): Check for negative level.
5959 Use get_selected_frame.
5960 (tui_registers_changed_hook): Deleted.
5962 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5964 * stabsread.c (add_undefined_type): Add extra parameter.
5965 Now handles nameless types separately.
5966 (struct nat): New type.
5967 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
5968 New static variables.
5969 (read_type): Update calls to add_undefined_type.
5970 (add_undefined_type_noname): New function.
5971 (add_undefined_type_1): Renames from add_undefined_type.
5972 (cleanup_undefined_types_noname): New function.
5973 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
5974 (cleanup_undefined_types): New handles nameless types separately.
5975 (_initialize_stabsread): Initialize our new static constants.
5977 2007-03-29 Denis Pilat <denis.pilat@st.com>
5979 * configure.ac: Test for signal.h.
5980 * configure, config.in: Regenerate.
5982 2007-03-29 Denis Pilat <denis.pilat@st.com>
5984 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
5985 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
5987 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
5989 * arm-wince-tdep.c: New.
5990 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
5991 (MT_CFLAGS): Delete.
5993 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
5994 solib-legacy.o, solib-svr4.o, and remove wince.o.
5995 * configure.tgt (arm*-*-mingw32ce*): Add.
5996 * signals/signals.c [HAVE_SIGNAL_H]: Check.
5997 (do_target_signal_to_host): Silence 'not used' warning.
5998 * config/arm/tm-wince.h: Remove.
6000 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6002 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6003 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6005 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6006 * config/ia64/tm-linux.h: Remove file.
6007 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6008 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6009 legacy_pc_in_sigtramp.
6010 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6011 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6012 Remove func_name argument.
6013 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6015 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6016 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6017 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6018 (HAVE_STEPPABLE_WATCHPOINT): Define.
6020 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6021 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6022 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6023 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6024 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6025 target_insert_watchpoint, target_remove_watchpoint): Remove.
6026 (FETCH_INFERIOR_REGISTERS): Define.
6027 * ia64-linux-nat.c (ia64_register_addr): Make static.
6028 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6029 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6030 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6031 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6032 (ia64_linux_stopped_by_watchpoint): Make static.
6033 (ia64_linux_can_use_hw_breakpoint): New function.
6034 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6035 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6036 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6038 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6040 * linespec.c: Include language.h.
6041 (find_methods): Add language parameter. Call
6042 lookup_symbol_in_language. Pass language down.
6043 (add_matching_methods): Likewise. Call
6044 lookup_symbol_in_language.
6045 (add_constructors): Likewise.
6046 (find_method): Pass sym_class to collect_methods.
6047 (collect_methods): Add sym_class parameter. Pass language
6049 * symtab.c (lookup_symbol): Rename to ...
6050 (lookup_symbol_in_language): ... this. Add language
6051 parameter. Use passed language instead of current_language.
6052 (lookup_symbol): New as wrapper around
6053 lookup_symbol_in_language.
6054 (lookup_symbol_aux): Add language parameter. Use passed
6055 language instead of current_language.
6056 (search_symbols): Indent.
6057 * symtab.h (enum language): Forward declare.
6058 (lookup_symbol_in_language): Declare.
6059 (lookup_symbol): Update description.
6060 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6061 * ada-lang.c (restore_language): Remove.
6062 (lookup_symbol_in_language): Remove.
6064 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6066 * breakpoint.c (bpstat_num): Add int *num parameter.
6067 * breakpoint.h (bpstat_num): Likewise.
6068 * infcmd.c (continue_command): Adjust to new bpstat_num
6070 (program_info): Likewise.
6072 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6074 * config/sh/tm-sh.h: Remove file.
6075 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6076 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6077 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6078 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6080 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6082 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6083 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6084 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6085 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6086 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6087 sequence if target_shortname is "remote".
6089 2007-03-27 Anton Blanchard <anton@samba.org>
6091 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6092 instead of wordsize when looking for the LR in a stack frame.
6094 2007-03-27 Andreas Schwab <schwab@suse.de>
6095 Daniel Jacobowitz <dan@codesourcery.com>
6097 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6098 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6099 argument. Update all callers.
6100 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6101 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6102 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6103 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6104 (dwarf2_frame_set_adjust_regnum): ...this.
6105 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6106 * rs6000-tdep.c: Include "dwarf2-frame.h".
6107 (rs6000_adjust_frame_regnum): Define.
6108 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6109 Register rs6000_adjust_frame_regnum.
6111 * Makefile.in (rs6000-tdep.o): Update dependencies.
6113 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6115 * Makefile.in: Add support for a "pdf" target.
6117 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6119 * amd64-tdep.c (amd64_init_frame_cache): New function.
6120 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6122 2007-03-26 Nigel Stephens <nigel@mips.com>
6123 Maciej W. Rozycki <macro@mips.com>
6125 * ui-out.c (ui_out_field_core_addr): Truncate address to
6126 TARGET_ADDR_BIT size before printing.
6128 2007-03-22 Nigel Stephens <nigel@mips.com>
6129 Maciej W. Rozycki <macro@mips.com>
6131 * remote-mips.c (mips_xfer_memory): Update prototype.
6133 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6135 * symfile.h: #include "symtab.h"
6137 2007-03-22 Denis Pilat <denis.pilat@st.com>
6139 * utils.c (pagination_on_command, pagination_off_command):
6140 Remove useless prototypes.
6142 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6145 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6146 instead of TYPE_NAME for object base class name.
6149 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6151 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6152 Specify frame type in calls to frame_func_unwind().
6154 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6156 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6157 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6158 (refine_prologue_limit): Delete.
6159 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6160 Assume lim_pc is set. Correct check for incomplete prologues.
6161 Do not skip clobbers of the frame pointer.
6162 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6165 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6167 * frame.c (frame_pop): Check to see whether there's a frame to
6168 which we can pop first.
6170 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6172 * MAINTAINERS (Write After Approval): Add myself.
6174 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6176 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6177 (handle_inferior_event): Remove unnecessary braces.
6178 * breakpoint.c (bpstat_what): Remove wrong comment.
6180 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6182 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6183 (spu_gdbarch_init): Install it.
6185 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6187 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6188 object types, not 0.
6190 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6192 * spu-tdep.c (spu_frame_align): New function.
6193 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6195 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6197 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6198 (spu_software_single_step): Likewise.
6199 (spu_read_pc, spu_write_pc): New functions.
6200 (spu_gdbarch_init): Install them.
6202 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6204 * cli/cli-dump.c (struct callback_data): load_offset needs to
6205 have signed long type.
6207 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6209 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6210 Revert the previous change that had some unexpected side-effects
6212 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6213 function to get the address of the calling instruction.
6215 2007-03-07 Denis Pilat <denis.pilat@st.com>
6217 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6218 get_selected_frame by deprecated_safe_get_selected_frame.
6220 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6222 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6223 "gdb_string.h". Don't include "nbsd-tdep.h".
6224 (SIZEOF_STRUCT_REG): Remove.
6225 (SHNBSD_SIZEOF_GREGS): New.
6226 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6227 (shnbsd_regset_from_core_section): New functions.
6228 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6229 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6230 shnbsd_supply_gregset, shnbsd_collect_gregset.
6231 (shnbsd_gregset): New variable.
6232 (shnbsd_init_abi): Set regset_from_core_section.
6233 (GDB_OSABI_NETBSD_CORE): New define.
6234 (shnbsd_core_osabi_sniffer): New function.
6235 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6236 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6237 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6239 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6241 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6243 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6244 length of the types referenced by the new type CV ring.
6246 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6248 * frame.c (frame_pop, frame_observer_target_changed): Call
6250 (flush_cached_frames): Rename to reinit_frame_cache and delete
6252 * frame.h (flush_cached_frames): Delete prototype and update comment.
6254 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6255 reinit_frame_cache instead of flush_cached_frames. Do not call
6256 select_frame after reinit_frame_cache.
6257 * corelow.c (core_open): Likewise.
6258 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6259 * infrun.c (prepare_to_proceed, context_switch)
6260 (handle_inferior_event): Likewise.
6261 * linux-fork.c (fork_load_infrun_state): Likewise.
6262 * ocd.c (ocd_start_remote): Likewise.
6263 * remote-e7000.c (e7000_start_remote): Likewise.
6264 * remote-mips.c (device): Likewise.
6265 * thread.c (switch_to_thread): Likewise.
6266 * tracepoint.c (finish_tfind_command): Likewise.
6267 * gdbarch.c: Regenerated.
6269 2007-02-28 Jerome Guitton <guitton@adacore.com>
6270 Joel Brobecker <brobecker@adacore.com>
6272 * gdbtypes.c (check_typedef): Do not replace stub type if
6273 the resolved type is not defined in the same objfile.
6275 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6277 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6279 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6281 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6282 symbol for Ada units when the symbol is defined using 't' rather
6283 than 'Tt' as symbol descriptor.
6285 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6287 * config/mips/tm-nbsd.h: Delete file.
6288 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6289 * config/sh/tm-nbsd.h: Delete file.
6290 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6292 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6294 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6295 unused WRONG_PARAM value since it was recently deleted.
6297 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6299 * varobj.c (varobj_update): Free temporary vectors.
6301 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6303 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6304 * config/powerpc/tm-linux.h: Delete file.
6305 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6306 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6307 (TEXT_SEGMENT_BASE): Do not redefine.
6308 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6309 from config/rs6000/tm-rs6000.h.
6310 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6311 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6312 (TEXT_SEGMENT_BASE): Remove.
6313 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6314 (rs6000_in_solib_return_trampoline): Remove.
6315 (SKIP_TRAMPOLINE_CODE): Remove.
6316 (rs6000_skip_trampoline_code): Remove.
6317 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6318 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6319 (FP0_REGNUM): Remove.
6320 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6321 (rs6000_set_host_arch_hook): Remove.
6322 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6323 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6324 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6325 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6326 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6327 * rs6000-nat.c: Include "rs6000-tdep.h".
6328 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6329 (set_host_arch): Rename to ...
6330 (rs6000_create_inferior): ... this. Make public.
6331 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6332 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6333 (rs6000_create_inferior): Remove.
6334 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6335 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6336 set_gdbarch_in_solib_return_trampoline, and
6337 set_gdbarch_skip_trampoline_code.
6338 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6339 from config/rs6000/tm-rs6000.h.
6341 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6343 * buildsym.c (record_producer): Do nothing if no producer is provided.
6345 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6347 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6348 to check changelist is non-NULL. Call error if the frontend tries
6349 to update a non-root variable.
6351 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6353 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6355 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6356 (dwarf2_frame_sniffer): Update.
6357 (dwarf2_signal_frame_this_id): New function.
6358 (dwarf2_signal_frame_unwind): Use it.
6359 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6360 * frame.c (frame_func_unwind): Add this_type argument.
6361 (get_frame_func): Update.
6362 (frame_unwind_address_in_block): Add this_type argument and check it.
6364 (get_frame_address_in_block): Update.
6365 * frame.h (enum frame_type): Move higher in the file.
6366 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6369 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6370 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6371 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6372 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6373 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6374 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6375 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6376 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6377 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6378 frame_func_unwind and frame_unwind_address_in_block to specify
6379 the frame type. Use frame_unwind_address_in_block instead of
6380 frame_pc_unwind in sniffers.
6382 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6384 * frame.c (deprecated_selected_frame): Rename to...
6385 (selected_frame): ...this. Make static.
6386 (get_selected_frame, select_frame): Update.
6387 * frame.h (deprected_select_frame): Delete.
6388 (deprecated_safe_get_selected_frame): Update comments.
6390 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6391 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6392 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6393 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6394 tui/tui.c: Replace references to deprecated_selected_frame.
6396 2007-02-27 Fred Fish <fnf@specifix.com>
6398 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6399 directly decrement the stack pointer, accumulate their operand into
6400 the stack offset, and mark the function as not being frameless.
6402 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6404 * arch-utils.c (selected_byte_order): New.
6405 * arch-utils.h (selected_byte_order): New prototype.
6406 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6408 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6410 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6411 (default_symfile_offsets): Check VMA here. Update section VMAs.
6413 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6415 * remote.c (init_remote_state): Add special handling for placeholder
6418 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6420 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6421 (filenames_h): New variable.
6422 (clean): Clean up xml-builtin.c and stamp-xml.
6423 (arm-linux-nat.o): Update.
6424 * config/arm/linux.mh (TDEP_XML): Define.
6425 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6426 (arm_linux_has_wmmx_registers): New.
6427 (GET_THREAD_ID): Fix typo.
6428 (IWMMXT_REGS_SIZE): Define.
6429 (fetch_wmmx_regs, store_wmmx_regs): New.
6430 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6431 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6432 (super_xfer_partial, arm_linux_xfer_partial): New.
6433 (_initialize_arm_linux_nat): Use them.
6434 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6435 (xml_builtin_xfer_partial): New function.
6436 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6437 * NEWS: Update mention of iWMMXt support.
6439 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6441 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6442 if there are no FPA registers.
6443 (arm_dwarf_reg_to_regnum): New function.
6444 (arm_register_type, arm_register_name): Return minimal values for
6445 unsupported registers.
6446 (arm_register_sim_regno): Handle iWMMXt registers.
6447 (arm_gdbarch_init): Record missing FPA registers if indicated by
6448 a target description. Recognize iWMMXt registers. Only register
6449 "info float" for FPA. Use ARM_NUM_REGS. Register
6450 arm_dwarf_reg_to_regnum.
6451 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6453 (struct gdbarch_tdep): Add have_fpa_registers.
6454 * features/xscale-iwmmxt.xml: Update capitalization.
6455 * regformats/arm-with-iwmmxt.dat: Regenerated.
6457 2007-02-24 Kevin Buettner <kevinb@redhat.com>
6459 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6461 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6463 * MAINTAINERS (mep): New target.
6465 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6467 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6469 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6470 (mep-tdep.o): New rule.
6471 * configure.tgt (mep-*-*): New target.
6472 * mep-tdep.c: New file.
6473 * config/mep/mep.mt: New file.
6475 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6477 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6478 BREAKPOINT_HIT and STOP_UNKNOWN.
6480 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6482 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6484 2007-02-20 Joel Brobecker <brobecker@adacore.com>
6486 * gdb_expat.h (XMLCALL): Define if not already defined.
6488 2007-02-20 Andreas Schwab <schwab@suse.de>
6490 * Makefile.in (symfile.o): Update dependencies.
6492 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6494 * MAINTAINERS: Disable -Werror for cris simulator. Build
6495 sparc64-solaris2.10 instead of the broken sparc-elf.
6496 * solib-frv.c: Include "solib.h".
6497 * Makefile.in (solib-frv.o): Update.
6498 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6499 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6500 (xtensa_frame_this_id, xtensa_frame_prev_register)
6501 (xtensa_push_dummy_call): Use %p.
6503 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6505 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6506 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6507 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6508 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6509 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6510 (sparc-linux-tdep.o): Update.
6512 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
6514 * xtensa-tdep.h (xtensa_reg_mask_t): New.
6515 (xtensa_mask_t): Change mask field to be a separate array.
6516 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6517 (xtensa_pseudo_register_write, xtensa_unwind_pc)
6518 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6519 (xtensa_breakpoint_from_pc): Remove implicit type casting.
6520 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6521 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6522 (mask14, mask15): Rename to
6523 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6524 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6525 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6526 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6527 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6528 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6529 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6530 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6531 (xtensa_submask14, xtensa_submask15): New.
6532 (rmap): Follow strict aliasing rules doing static initialization.
6534 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
6536 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6537 handling from here...
6538 (tdesc_register_type): ...to here.
6539 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6540 * features/arm-core.xml: Use code_ptr and data_ptr.
6542 2007-02-13 Denis Pilat <denis.pilat@st.com>
6544 * varobj.h (enum varobj_update_error): New enum.
6545 * varobj.c (struct varobj_root): Add is_valid member.
6546 (varobj_get_type): Check for invalid varobj.
6547 (varobj_get_attributes): Likewise.
6548 (variable_editable):Likewise.
6549 (varobj_update): Likewise. Use varobj_update_error.
6550 (new_root_variable): Set root varobj as valid by default.
6551 (varobj_invalidate): New function.
6552 * symfile.c (clear_symtab_users): Use varobj_invalidate.
6553 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
6554 Use varobj_update_error.
6556 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
6559 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
6560 Pascal language marker.
6561 * dwarf2read.c (set_cu_language): Likewise.
6563 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
6565 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
6566 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
6567 instead of target_terminal_init since inferior_ptid isn't set yet.
6569 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
6571 * MAINTAINERS (Write After Approval): Add myself.
6573 2007-02-09 Fred Fish <fnf@specifix.com>
6575 Based on work by Apple Computer, Inc.
6576 * event-top.c (async_request_quit): Call quit() whenever either
6577 quit_flag is set or immediate_quit is set.
6579 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6581 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
6582 type to a pointer to const struct block.
6583 (ada_lookup_symbol_list): Don't cast away constness when calling
6584 remove_out_of_scope_renamings.
6586 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6588 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
6589 address of 'filename'; it is always non null.
6591 2007-02-09 Joel Brobecker <brobecker@adacore.com>
6593 * exec.c (add_to_section_table): Do not discard empty sections.
6595 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6597 * features/Makefile, features/arm-with-iwmmxt.xml,
6598 features/gdbserver-regs.xsl, features/number-regs.xsl,
6599 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
6600 * regformats/arm-with-iwmmxt.dat: Generate.
6601 * NEWS: Mention iWMMXt.
6603 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6605 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
6606 (xml-tdesc.o): Update.
6607 * xml-support.c: Add a comment.
6608 (gdb_xml_enums_boolean): New variable.
6609 (gdb_xml_parse_attr_enum): Use strcasecmp.
6610 * xml-support.h (gdb_xml_enums_boolean): Declare.
6611 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
6612 next_regnum, and current_union.
6613 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
6614 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
6615 (field_attributes, union_children, reg_attributes, union_attributes)
6616 (vector_attributes, feature_attributes, feature_children): New.
6617 (target_children): Make static. Add <feature>.
6618 (tdesc_elements): Make static.
6619 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
6620 (struct tdesc_feature, tdesc_feature_p): New types.
6621 (struct target_desc): Add features member.
6622 (struct tdesc_arch_data, tdesc_data): New.
6623 (target_find_description): Clarify error message. Warn about
6624 ignored register descriptions.
6625 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6626 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
6627 (tdesc_data_cleanup, tdesc_numbered_register)
6628 (tdesc_numbered_register_choices, tdesc_find_register)
6629 (tdesc_register_name, tdesc_register_type)
6630 (tdesc_remote_register_number, tdesc_register_reggroup_p)
6631 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
6632 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
6633 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
6634 (tdesc_create_feature, tdesc_record_type): New.
6635 (free_target_description): Free features.
6636 (_initialize_target_descriptions): Initialize tdesc_data.
6637 * arch-utils.c (default_remote_register_number): New.
6638 * arch-utils.h (default_remote_register_number): New prototype.
6639 * target-descriptions.h (set_tdesc_pseudo_register_name)
6640 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
6641 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
6642 (tdesc_numbered_register, tdesc_numbered_register_choices)
6643 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6644 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
6645 (tdesc_create_reg): Declare.
6646 * gdbarch.sh (remote_register_number): New entry.
6647 * gdbarch.c, gdbarch.h: Regenerate.
6648 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
6649 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
6651 * arm-tdep.c (arm_register_aliases): New.
6652 (arm_register_name_strings): Rename to...
6653 (arm_register_names): ...this. Make const. Delete the old version.
6654 (current_option, arm_register_byte): Delete.
6655 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
6656 (value_of_arm_user_reg): New.
6657 (arm_gdbarch_init): Verify any described registers. Call
6658 tdesc_use_registers. Don't use arm_register_byte. Create aliases
6659 for standard register names.
6660 (_initialize_arm_tdep): Do not adjust arm_register_names.
6661 * user-regs.c (struct user_reg): Add baton member.
6662 (append_user_reg, user_reg_add_builtin, user_regs_init)
6663 (user_reg_add, value_of_user_reg): Use a baton for user
6665 * std-regs.c: Update.
6666 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
6667 (user_reg_add): Add baton argument.
6668 * NEWS: Mention target description register support.
6669 * features/arm-core.xml, features/arm-fpa.xml: New.
6670 * eval.c (evaluate_subexp_standard): Allow ptype $register
6671 when the program is not running.
6673 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
6675 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
6677 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6679 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
6680 info->disassembler_options to "any".
6682 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6684 * varobj.c (install_new_value): Only call value_get_print_value
6687 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6689 Reported by timeless@gmail.com:
6690 * gdb/target.c (target_flash_erase): Do not return void value.
6691 (target_flash_done): Likewise.
6692 * gdb/cli/cli-cmds.c (source_command): Likewise.
6694 2007-02-08 Fred Fish <fnf@specifix.com>
6696 Based on work by Apple Computer, Inc.
6697 * event-top.c (handle_sigint): Set quit_flag.
6698 (async_request_quit): Don't set quit_flag. Avoid calling quit()
6699 if quit_flag has already been reset.
6701 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6703 * ser-mingw.c (pipe_windows_close): Move variable initialization back
6706 2007-02-08 Fred Fish <fnf@specifix.com>
6708 * defs.h (request_quit): Remove declaration.
6709 * utils.c (request_quit): Remove definition.
6711 2007-02-08 Joel Brobecker <brobecker@gnat.com>
6712 Jan Kratochvil <jan.kratochvil@redhat.com>
6713 Daniel Jacobowitz <dan@codesourcery.com>
6715 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
6716 (skip_prologue): Allow bl->blrl used by PIC code.
6718 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6719 Daniel Jacobowitz <dan@codesourcery.com>
6721 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
6722 initialize tmp_obstack.
6723 * p-valprint.c (pascal_object_print_value_fields)
6724 (pascal_object_print_value): Likewise.
6726 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6728 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
6730 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6732 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6733 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
6735 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6737 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
6739 (tdesc_parse_xml): Cache expanded descriptions.
6741 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6743 * Makefile.in (XMLFILES): New.
6744 (COMMON_OBS): Add xml-builtin.o.
6745 (xml-builtin.c, stamp-xml): New rules.
6746 (xml-tdesc.o): Update.
6747 * features/feature_to_c.sh: New file.
6748 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
6749 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
6750 (gdb_xml_start_element): Initialize scope after possibly reallocating
6751 scopes. Move cleanup later. Handle the XInclude description
6753 (gdb_xml_end_element): Only parse the body if there is a current element.
6754 Call XML_DefaultCurrent if there is no element.
6755 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
6756 (struct xinclude_parsing_data, xinclude_start_include)
6757 (xinclude_end_include, xml_xinclude_default)
6758 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
6759 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
6760 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
6761 * xml-support.h (xml_fetch_another, xml_process_xincludes)
6762 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
6763 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
6764 XInclude directives. Use the compiled in DTD.
6765 (fetch_xml_from_file): Add baton argument. Treat it as a containing
6766 directory name. Do not warn here.
6767 (file_read_description_xml): Update call. Warn here instead. Pass
6769 (fetch_available_features_from_target): New.
6770 (target_read_description_xml): Use it.
6771 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
6773 * features/xinclude.dtd: New file.
6775 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6777 * linux-thread-db.c (check_for_thread_db): Return early if we have
6778 no libthread_db support.
6780 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6782 * mi/mi-parse.h: Include <sys/time.h>.
6784 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
6786 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
6787 instead of print_variable_value to print values.
6789 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6791 * mi/mi-main.c: Numerous formatting changes.
6792 (mi_cmd_data_write_register_values): Replace clause inadvertantly
6793 removed in my previous change.
6795 2007-02-03 Eli Zaretskii <eliz@gnu.org>
6797 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
6798 Use 1000000L instead of 1000000.
6800 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6802 Based on work by Apple Computer, Inc.
6804 * configure.ac: Test for sys/resource.h and getrusage.
6805 * configure, config.in: Regenerate.
6807 * mi/mi-main.c: Include <sys/resource.h> if present.
6808 (rusage): Declare if HAVE_GETRUSAGE.
6809 (current_command_ts, do_timings): New static variables.
6810 (timestamp, print_diff_now, print_diff, timeval_diff):
6811 New static timing functions.
6812 (mi_cmd_enable_timings): New function for new MI command.
6813 (captured_mi_execute_command, mi_execute_async_cli_command):
6814 Call timing functions.
6816 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
6819 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
6821 * mi/mi-parse.h: (mi_timestamp): New structure.
6822 (mi_parse): Add mi_timestamp* member.
6824 2007-02-02 Denis Pilat <denis.pilat@st.com>
6826 * thread.c (make_cleanup_restore_current_thread): New function.
6827 (info_threads_command): Use of make_cleanup_restore_current_thread
6828 to restore the current thread and the selected frame.
6829 (restore_selected_frame): New function.
6830 (struct current_thread_cleanup): Add frame_id field.
6831 (do_restore_current_thread_cleanup): Add restoring of the selected
6833 (make_cleanup_restore_current_thread): Likewise.
6834 (thread_apply_all_command): backup the selected frame while
6835 entering the function and restore it at exit.
6836 (thread_apply_command): Likewise.
6838 2007-02-02 Denis Pilat <denis.pilat@st.com>
6840 * MAINTAINERS (Write After Approval): Add myself to the list.
6842 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6844 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
6845 (m32r_store_register): Ditto.
6847 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
6849 * ser-mingw.c (pipe_windows_open)
6850 (pipe_windows_read, pipe_windows_write): Declare
6851 variables at the top of the function.
6853 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6855 * doublest.c (floatformat_from_length): Use the right element from
6856 gdbarch floatformats.
6857 (floatformat_from_type, extract_typed_floating)
6858 (store_typed_floating): Likewise.
6859 * doublest.h: Remove declarations for undefined floatformat arrays.
6860 * gdbarch.sh (float_format, double_format, long_double_format): Change
6862 (pformat): Update for pairs.
6863 * gdbarch.c, gdbarch.h: Regenerated.
6864 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
6865 (floatformats_ieee_double_littlebyte_bigword)
6866 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
6867 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
6868 (floatformats_vax_d): New variables.
6869 (builtin_type_ieee_single, builtin_type_ieee_double)
6870 (builtin_type_arm_ext, builtin_type_ia64_spill)
6871 (builtin_type_ia64_quad): Replace arrays with individual types.
6872 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
6873 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
6874 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
6875 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
6876 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
6877 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
6878 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
6879 unused and endian-specific types.
6880 (recursive_dump_type): Update for floatformat pairs.
6881 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
6882 (build_gdbtypes): Use build_flt.
6883 (_initialize_gdbtypes): Update set of initialized types.
6884 * gdbtypes.h: Update declarations to match gdbtypes.c.
6885 (struct main_type): Store a pointer to two floatformats.
6886 * arch-utils.c (default_float_format, default_double_format): Delete.
6887 * arch-utils.h (default_float_format, default_double_format): Delete.
6889 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6890 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
6891 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
6892 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
6893 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
6895 2007-01-29 Joel Brobecker <brobecker@adacore.com>
6897 * target.c (maintenance_print_target_stack): New function.
6898 (initialize_targets): Add new "maintenance print target-stack"
6901 2007-01-28 Mark Kettenis <kettenis@gnu.org>
6903 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
6905 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
6907 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
6908 (struct dwarf2_loclist_baton): Likewise.
6910 2007-01-27 Eli Zaretskii <eliz@gnu.org>
6912 * cli/cli-script.c: Include breakpoint.h.
6913 (build_command_line): Require arguments only for if and while
6915 (get_command_line, execute_user_command, execute_control_command):
6916 Fix wording of warning messages.
6917 (print_command_lines): Print breakpoint commands.
6918 (execute_control_command): Call commands_from_control_command to
6919 handle the `commands' command inside a body of a flow-control
6921 (read_next_line): Recognize the `commands' command and build a
6922 command line structure for it.
6923 (recurse_read_control_structure, read_command_lines): Handle
6924 `commands' similarly to `if' and `while'.
6926 * breakpoint.c (get_number_trailer): Document the special meaning
6927 of NULL as the first argument PP.
6928 (commands_from_control_command): New function.
6930 * breakpoint.h (commands_from_control_command): Add prototype.
6932 * defs.h (commands_control): New enumerated value for enum
6933 command_control_type.
6935 2007-01-26 Joel Brobecker <brobecker@adacore.com>
6937 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
6938 (ada_exception_sal): Update accordingly.
6940 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6942 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
6943 * NEWS: Describe CHAR array vs. string identifcation rules.
6945 2007-01-25 Paul Brook <paul@codesourcery.com>
6947 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
6949 2007-01-24 Jim Blandy <jimb@codesourcery.com>
6951 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
6952 expression is empty, bother to return the 'optimized out' value we
6953 construct. (Thanks to Carl Burch.)
6955 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6957 * varobj.c (c_value_of_root, c_value_of_child)
6958 (cplus_describe_child): Don't call release_value.
6960 2007-01-24 Thiemo Seufer <ths@mips.com>
6962 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
6965 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6967 Refactor getting children name, value and type access
6969 * varobj.c (get_type_deref): Remove.
6970 (adjust_value_for_child_access): New.
6971 (c_number_of_children): Use the above.
6972 (c_describe_child): Likewise.
6973 (enum accessibility): New.
6974 (match_accessibility): New function.
6975 (cplus_describe_child): New function.
6976 (cplus_name_of_child, cplus_value_of_child)
6977 (cplus_type_of_child): Reimplement in terms
6978 of cplus_describe_child.
6979 (cplus_number_of_children): Use
6980 adjust_value_for_child_access.
6982 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6984 Fix computation of the 'editable' attribute and
6985 value changeability for for references.
6986 * varobj.c (get_value_type): New function.
6987 (c_variable_editable): Use get_value_type.
6988 (varobj_value_is_changeable): Likewise.
6990 2007-01-24 Joel Brobecker <brobecker@adacore.com>
6992 * source.c (find_and_open_source): Try rewriting the source
6993 path inside filename if dirname is NULL.
6995 2007-01-24 Joel Brobecker <brobecker@adacore.com>
6997 * dwarf2read.c (add_partial_symbol): Create an extra partial
6998 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
6999 (new_symbol): Likewise for symbols.
7001 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
7003 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7005 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7007 * value.c (value_primitive_field): Copy the full 'location'
7008 contents, instead of assuming that copying ADDRESS will
7009 bring over everything in the union. Remove obsolete comment.
7011 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
7013 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7014 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7015 (m32c_m16c_pointer_to_address): Separate code from declarations.
7017 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7019 * target.c (update_current_target): Correct typo.
7021 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
7023 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7026 2007-01-11 Andrew Cagney <cagney@redhat.com>
7027 Daniel Jacobowitz <dan@codesourcery.com>
7028 Jan Kratochvil <jan.kratochvil@redhat.com>
7030 * dwarf2-frame.c (execute_cfa_program): New support of
7031 `DW_CFA_GNU_negative_offset_extended'.
7033 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7035 * NEWS: Mention flash support for "load" and new remote packets.
7037 2007-01-21 Markus Deuling <deuling@de.ibm.com>
7039 * breakpoint.c (delete_command): Skip redundant loop iterations.
7041 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7043 * gdbarch.sh (register_type): Update comment.
7044 * gdbarch.h: Regenerated.
7045 * arch-utils.c (generic_register_size): Call register_type.
7046 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7047 * m32c-tdep.c (check_for_saved): Likewise.
7048 * mips-tdep.c (mips_print_register, print_gp_register_row)
7049 (mips_print_registers_info): Likewise.
7050 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7052 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7053 (sh64_do_register, sh64_print_register)
7054 (sh64_media_print_registers_info): Likewise.
7055 * tui/tui-regs.c (tui_register_format): Likewise.
7057 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7059 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7061 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7062 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7063 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7064 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7065 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7066 (make_symbol_completion_list): Likewise.
7068 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7069 Daniel Jacobowitz <dan@codesourcery.com>
7071 * buildsym.c (end_symtab): Use preallocated symtab if available.
7072 Fill in SYMBOL_SYMTAB.
7073 * buildsym.h (struct subfile): Add symtab member.
7074 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7075 (struct file_entry): Add symtab.
7076 (free_cu_line_header): New function.
7077 (read_file_scope): Use it. Save line_header in the cu. Process
7079 (add_file_name): Initialize new symtab member.
7080 (dwarf_decode_lines): Create symtabs for included files.
7081 (new_symbol): Set SYMBOL_SYMTAB.
7082 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7083 (search_symbols): Likewise.
7084 * symtab.h (struct symbol): Add symtab member.
7085 (SYMBOL_SYMTAB): Define.
7087 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7089 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7091 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7093 * arch-utils.c (show_endian): Correct reversed condition.
7095 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7097 * MAINTAINERS (Write After Approval): Add myself.
7099 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7100 Vladimir Prus <vladimir@codesourcery.com>
7102 Fix 'selected frame' varobjs.
7103 * varobj.c (struct varobj): Remove the error field.
7104 (varobj_set_value): Don't check var->error.
7105 (install_new_value): Don't set var->error.
7106 (varobj_update): Always pass the new value
7107 of the root via install_new_value.
7108 (create_child): Don't set error field.
7109 (new_variable): Likewise.
7110 (c_value_of_root): Always reevaluate the value
7111 of selected frame varobjs in the selected frame.
7112 Don't call reinit_frame_cache.
7114 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7116 * source.c (_initialize_source): Improve the help text of
7117 the substitute-path commands.
7119 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7121 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7122 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7123 (frv_skip_prologue): Remove prototypes.
7124 (frv_adjust_breakpoint_address): Renamed from
7125 frv_gdbarch_adjust_breakpoint_address.
7126 (frv_gdbarch_init): Adjust.
7128 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7130 * gdbarch.sh (deprecated_extract_return_value)
7131 (deprecated_store_return_value): Remove.
7132 (extract_return_value, store_return_value): Remove default values.
7133 * gdbarch.c, gdbarch.h: Regenerate.
7134 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7135 (legacy_store_return_value): Remove.
7136 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7139 * mi/mi-main.c: Remove obsolete comment.
7141 * regcache.c, regcache.h (deprecated_register_bytes)
7142 (deprecated_read_register_bytes)
7143 (deprecated_write_register_bytes): Remove.
7145 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7146 Don't forget to move destination pointer.
7148 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7150 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7152 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7154 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7155 past entry function with recent newlib.
7157 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7159 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7160 introduction. Specify -var-update more exactly.
7162 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7164 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7166 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7168 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7169 the Global Maintainers' invitation to be a global maintainer.
7171 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7173 * infrun.c (singlestep_pc): New variable.
7174 (resume): Set singlestep_pc.
7175 (context_switch): Add a debugging message. Flush the frame cache.
7176 (handle_inferior_event): Add debugging messages. Handle thread
7177 hops when a software single step has completed. Let context_switch
7178 handle flushing the frame cache.
7180 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7182 * NEWS: Mention target descriptions, "set tdesc filename",
7183 "unset tdesc filename", "show tdesc filename", and
7184 qXfer:features:read.
7185 * arch-utils.c (choose_architecture_for_target): New function.
7186 (gdbarch_info_fill): Call it.
7187 * target-descriptions.c (struct property): Make members non-const.
7188 (struct target_desc): Add arch member.
7189 (target_description_filename): New variable.
7190 (target_find_description): Try via XML first.
7191 (tdesc_architecture): New.
7192 (free_target_description, make_cleanup_free_target_description): New.
7193 (set_tdesc_property): Call xstrdup.
7194 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7195 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7196 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7197 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7198 * target-descriptions.h (tdesc_architecture)
7199 (make_cleanup_free_target_description, set_tdesc_architecture): New
7201 * Makefile.in (SFILES): Add xml-tdesc.c.
7202 (COMMON_OBS): Add xml-tdesc.o.
7203 (target-descriptions.o): Update.
7204 (xml-tdesc.o): New rule.
7205 * xml-tdesc.c, xml-tdesc.h: New files.
7206 * remote.c (PACKET_qXfer_features): New enum.
7207 (remote_protocol_features): Add qXfer:features:read.
7208 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7209 (_initialize_remote): Register qXfer:features:read.
7210 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7211 * features/gdb-target.dtd: New file.
7213 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7215 * copyright.sh: Clarify error.
7217 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7219 * symtab.c (matching_bfd_sections): Fix VMA matching for
7222 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7224 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7227 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7229 Updated copyright notices for most files.
7231 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7233 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7235 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7237 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7239 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7241 * configure, config.in: Regenerate.
7242 * defs.h (debug_file_directory): Declare.
7243 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7244 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7245 relocate it if DEBUGDIR_RELOCATABLE.
7246 * symfile.c (debug_file_directory): Make non-static.
7247 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7248 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7249 (_initialize_symfile): Don't initialize debug_file_directory here.
7251 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7253 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7256 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7258 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7259 frame_unwind_register to recurse.
7260 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7261 (alpha_heuristic_frame_prev_register): Likewise.
7262 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7263 * m32c-tdep.c (m32c_prev_register): Likewise.
7264 * frame.c (frame_register_unwind_location): Remove FIXME.
7266 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7267 Eli Zaretskii <eliz@gnu.org>
7269 * copyright.sh: New file.
7271 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7273 * configure.ac: Check for XML_StopParser.
7274 * xml-support.c (gdb_xml_body_text): Check for an error.
7275 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7276 (gdb_xml_end_element_wrapper): Likewise.
7277 * config.in, configure: Regenerated.
7279 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7281 * varobj.c (install_new_value): Always update print_value.
7282 (value_get_print_value): Immediately return NULL for missing
7285 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7287 * configure.ac: Tighten pattern for extracting value of
7288 DEPRECATED_TM_FILE from the target makefile fragment.
7289 * configure: Regenerated.
7291 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7293 * linux-nat.c (struct simple_pid_list): Add status.
7294 (add_to_pid_list): Record the PID's status.
7295 (linux_record_stopped_pid): Likewise. Make static.
7296 (pull_pid_from_list): Return the saved status.
7297 (linux_nat_handle_extended): Deleted.
7298 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7299 Make static. Handle non-SIGSTOP for a new thread's first signal.
7300 (flush_callback): Handle unexpected pending signals.
7301 (linux_nat_wait): Update calls to changed functions.
7302 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7303 Remove prototypes for newly static functions.
7305 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7307 * gdbarch.sh (value_from_register): New gdbarch function.
7308 * gdbarch.c, gdbarch.h: Regenerate.
7309 * findvar.c (default_value_from_register): New function.
7310 (value_from_register): Use gdbarch_value_from_register.
7311 * value.h (default_value_from_register): Declare.
7312 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7313 spu_value_to_register): Remove.
7314 (spu_value_from_register): New function.
7315 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7316 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7317 Call set_gdbarch_value_from_register.
7318 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7319 s390_value_to_register): Remove.
7320 (s390_value_from_register): New function.
7321 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7322 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7323 Call set_gdbarch_value_from_register.
7325 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7327 * NEWS: Add "set sysroot" and "show sysroot".
7328 * solib.c (solib_absolute_prefix): Delete. Replace
7329 all uses with gdb_sysroot.
7330 (_initialize_solib): Add "set sysroot" and "show sysroot".
7331 Make "solib-absolute-prefix" an alias to it.
7333 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7335 * frame.c (get_frame_register_bytes): New function.
7336 (put_frame_register_bytes): Likewise.
7337 * frame.h (get_frame_register_bytes): Declare.
7338 (put_frame_register_bytes): Likewise.
7339 * findvar.c (value_from_register): Always construct lval_register
7340 values. Use get_frame_register_bytes.
7341 * valops.c (value_assign): Use get_frame_register_bytes and
7342 put_frame_register_bytes.
7344 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7346 * MAINTAINERS: Update Stan Shebs' email address.
7348 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7350 * ada-lang.c (is_known_support_routine): Improve the implementation.
7352 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7354 * ada-lang.c: Add include of source.h.
7355 (is_known_support_routine): Improve the check verifying that the file
7356 associated to this frame exists.
7357 * Makefile.in (ada-lang.o): Add dependency on source.h.
7359 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7361 * ax-general.c (ax_const_l): Select proper opcode for the given
7364 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7366 * varobj.c (c_value_of_root): Don't select frame if variable
7367 object is out of scope.
7369 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7371 * varobj.c (struct varobj): New member print_value.
7372 (install_new_value): Compare last printed value with current one
7373 instead of contents.
7374 (new_variable): Initialize var->print_value to NULL.
7375 (free_variable): Free var->print_value.
7376 (value_get_print_value): New function derived from
7377 c_value_of_variable.
7378 (c_value_of_variable): Use value_get_print_value.
7380 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7382 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7384 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7386 * NEWS: Add entries for new catch commands.
7388 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7390 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7391 (add_partial_symbol): Correct identification of external references.
7392 (process_structure_scope): Likewise.
7393 (read_partial_die): Handle DW_AT_byte_size attribute.
7395 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7397 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7399 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7401 * varobj.c (get_type_deref): Fix variable objects for references to
7404 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7406 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7409 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7411 * memory-map.c (struct_memory_map_parsing_data): Remove most
7412 members. Make property_name an array.
7413 (free_memory_map_parsing_data, memory_map_start_element)
7414 (memory_map_end_element, memory_map_character_data): Delete.
7415 (memory_map_start_memory, memory_map_end_memory)
7416 (memory_map_start_property, memory_map_end_property): New functions.
7417 (property_attributes, memory_children, memory_type_enum)
7418 (memory_attributes, memory_map_children, memory_map_elements): New.
7419 (parse_memory_map): Rewrite.
7420 * xml-support.c (debug_xml): New.
7421 (xml_get_required_attribute, xml_get_integer_attribute)
7422 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7424 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7425 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7426 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7427 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7428 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7429 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7430 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7432 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7433 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7434 (enum gdb_xml_element_flag, struct gdb_xml_element)
7435 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7436 (struct gdb_xml_enum): New.
7437 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7438 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7439 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7440 (xml_get_required_attribute, xml_get_integer_attribute)
7441 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7442 * Makefile.in (xml_support_h, xml-support.o): Update.
7444 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7446 * Makefile.in (eval.o): Update dependencies.
7447 * eval.c: Include "ui-out.h" and "exceptions.h".
7448 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7449 Use value_zero if an error occurs when avoiding side effects.
7450 * varobj.c (c_value_of_root): Initialize new_val.
7452 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7454 * varobj.c (varobj_list_children): Stop if the number of children is
7456 (c_number_of_children):
7458 2007-01-04 Mark Kettenis <kettenis@gnu.org>
7460 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7461 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7462 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7463 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7464 sizeof, instead of hardcoded constants.
7466 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7468 * CONTRIBUTE: Use sourceware.org.
7470 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7472 * buildsym.c (start_subfile): Handle producer.
7473 (record_producer): New function.
7474 * buildsym.h (struct subfile): Include producer.
7475 (record_producer): New prototype.
7476 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7477 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7478 armcc_cfa_offsets_reversed.
7479 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7480 (dwarf2_frame_find_quirks): New function.
7481 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7482 (decode_frame_entry_1): Record the CIE version. Record the
7483 augmentation. Skip armcc augmentations.
7484 * dwarf2read.c (read_file_scope): Save the producer.
7485 * symtab.h (struct symtab): Rename unused version member to
7488 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7490 * configure.ac (build_warnings): Use -Wall and
7491 -Wdeclaration-after-statement.
7492 * configure: Regenerated.
7494 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7496 Simplify access to variours properties of child
7497 variable objects in C.
7498 * varobj.c (value_struct_element_index): New function.
7499 (c_describe_child): New function.
7500 (c_name_of_child, c_value_of_child)
7501 (c_type_of_child): Rewrite to use c_describe_child.
7503 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7506 * varobj.c: Include "vec.h".
7507 (varobj_p): New typedef, declare vector of those.
7508 (struct varobj): Use vector for the 'children' member.
7509 (child_exists): Remove.
7510 (save_child_in_parent): Remove.
7511 (remove_child_from_parent): Remove.
7512 (struct varobj_child): Remove.
7513 (struct vstack): Remove.
7514 (vpush, vpop): Remove.
7515 (varobj_list_children): Adjust to work work vector.
7516 (varobj_update): Likewise. Use vectors for
7517 working stack and result.
7518 (delete_variable_1): Likewise.
7519 * Makefile.in (varobj.o): Update dependencies.
7521 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7523 Port from Apple's version.
7525 * varobj.c (type_changeable): Rename to...
7526 (varobj_value_is_changeable_p): ...this. Adjust all callers.
7527 (is_root_p): New function. Use it everywhere.
7529 2007-01-04 Jim Blandy <jimb@codesourcery.com>
7531 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7534 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7536 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7538 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7540 * hpread.c (hpread_type_lookup): Fix compilation failure.
7542 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
7544 * NEWS: New port to S+core.
7545 * MAINTAINERS (Write After Approval, Responsible Maintainers):
7548 * Makefile.in: Add dependencies for S+core files.
7549 * configure.tgt (score*, score-*-*): Add S+core target.
7550 * config/score/embed.mt: New file.
7551 * score-tdep.c: New file.
7552 * score-tdep.h: New file.
7554 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7556 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
7557 the appropriate type rather than a bogus void type.
7559 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7561 * ada-lang.h (ada_find_printable_frame): Remove.
7562 (ada_exception_catchpoint_p, ada_decode_exception_location)
7563 (ada_decode_assert_location): Add declaration.
7564 * ada-lang.c: Add include of annotate.h and valprint.h.
7565 (exception_catchpoint_kind): New enum.
7566 (function_name_from_pc, is_known_support_routine)
7567 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
7568 (ada_exception_name_addr_1, ada_exception_name_addr)
7569 (print_it_exception, print_one_exception, print_mention_exception)
7570 (print_it_catch_exception, print_one_catch_exception)
7571 (print_mention_catch_exception, catch_exception_breakpoint_ops)
7572 (print_it_catch_exception_unhandled)
7573 (print_one_catch_exception_unhandled)
7574 (print_mention_catch_exception_unhandled, print_it_catch_assert)
7575 (print_one_catch_assert, print_mention_catch_assert)
7576 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
7577 (ada_get_next_arg, catch_ada_exception_command_split)
7578 (ada_exception_sym_name, ada_exception_sym_name)
7579 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
7580 (ada_parse_catchpoint_condition, ada_exception_sal)
7581 (ada_decode_exception_location)
7582 (ada_decode_assert_location): New function.
7583 (catch_exception_unhandled_breakpoint_ops): New global variable.
7584 (catch_assert_breakpoint_ops): New global variable.
7585 * breakpoint.c: Add include of ada-lang.h.
7586 (print_one_breakpoint): Do not print the condition for Ada
7587 exception catchpoints.
7588 (create_ada_exception_breakpoint): New function.
7589 (catch_ada_exception_command, catch_assert_command): New function.
7590 (catch_command_1): Add support for the new "catch exception" and
7591 "catch assert" commands.
7592 (_initialize_breakpoint): Add help description for the new catch
7594 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
7596 (breakpoint.o): Add dependency on ada-lang.h.
7598 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
7600 * coffread.c (cs_to_section): If bfd_section is found, always
7601 return its section index.
7602 (coff_symtab_read): Determine the minimal_symbol_type using the
7605 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7606 Daniel Jacobowitz <dan@codesourcery.com>
7608 * Makefile.in (top.o): Update.
7609 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
7610 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
7611 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
7613 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
7615 2007-01-03 Mark Kettenis <kettenis@gnu.org>
7617 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
7618 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
7620 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7622 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
7623 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
7624 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
7625 greater than or equal to zero.
7626 * m2-typeprint.c (m2_array): Likewise.
7627 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7628 * gdbtypes.c (copy_type_recursive): Correct == typo.
7629 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
7630 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
7632 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
7633 (default_macro_scope): Remove unused variable.
7634 * prologue-value.h (pv_area_find_reg): Don't name an argument
7636 * remote-fileio.c (remote_fio_func_map): Add missing braces.
7637 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
7639 (cleanup_sigint_signal_handler): Remove casts.
7640 * valprint.c (val_print): Use a volatile local for the modified
7642 * varobj.c (languages): Remove extra array dimension.
7643 (varobj_create): Correct access to languages array.
7644 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
7646 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
7647 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
7648 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
7649 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
7650 (mi_cmd_data_write_memory): Likewise.
7651 * signals/signals.c (target_signal_to_string): Cast to int before
7653 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
7656 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7658 * NEWS: Mention pointer to member improvements.
7659 * Makefile.in (gnu-v3-abi.o): Delete special rule.
7660 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
7661 * ada-valprint.c (ada_print_scalar): Update for new type codes.
7662 * c-typeprint.c (c_print_type): Update for new type codes.
7663 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
7664 (c_type_print_base): Likewise.
7665 (c_type_print_args): Rewrite.
7666 * c-valprint.c (c_val_print): Update for new type codes. Remove
7667 support for references to members. Treat methods like functions.
7668 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
7669 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
7670 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
7671 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
7672 (struct cp_abi_ops): Add corresponding members.
7673 * cp-valprint.c (cp_print_class_method): Delete.
7674 (cp_find_class_member): New function.
7675 (cp_print_class_member): Use it. Simplify support for bogus
7677 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
7678 lookup_methodptr_type.
7679 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
7680 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
7681 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
7683 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
7684 references returned by user defined operators.
7685 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
7686 (f_type_print_varspec_suffix): Remove support for member pointers.
7687 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
7689 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
7690 (lookup_methodptr_type): New.
7691 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
7692 (recursive_dump_type): Update for new types.
7693 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
7694 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
7695 (lookup_memberptr_type, lookup_methodptr_type)
7696 (smash_to_memberptr_type): New prototypes.
7697 (smash_to_method_type): Formatting fix.
7698 (lookup_member_type, smash_to_member_type): Delete prototypes.
7699 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
7700 Do not rely on debug information for the vptr or the method's
7701 enclosing type. Handle function descriptors for IA64.
7702 (gnuv3_virtual_fn_field): Rewrite using the new functions.
7703 (gnuv3_find_method_in, gnuv3_print_method_ptr)
7704 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
7705 (gnuv3_method_ptr_to_value): New.
7706 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
7707 * hpread.c (hpread_type_lookup): Update for new types.
7708 * infcall.c (value_arg_coerce): Likewise.
7709 * m2-typeprint.c (m2_print_type): Remove explicit support
7710 for member pointers.
7711 * m2-valprint.c (m2_val_print): Likewise.
7712 * p-typeprint.c (pascal_type_print_varspec_prefix)
7713 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
7714 * p-valprint.c (pascal_val_print): Likewise.
7715 (pascal_object_print_class_method, pascal_object_print_class_member):
7717 * p-lang.h (pascal_object_print_class_method)
7718 (pascal_object_print_class_member): Delete prototypes.
7719 * stabsread.c (read_type): Update for new types.
7720 * typeprint.c (print_type_scalar): Likewise.
7721 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
7722 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
7723 argument. Construct a pointer to member if the address of a
7724 function or data member is requested.
7725 (value_cast_pointers): Don't modify the input value.
7726 (value_cast): Adjust pointer to member handling for new types.
7727 Allow null pointer to member constants. Don't modify the input
7729 (value_ind): Remove pointer to member check. Handle function
7730 descriptors for function pointers.
7731 (value_struct_elt, value_find_oload_method_list, check_field):
7732 Remove pointer to member checks.
7733 * value.c (unpack_long): Allow pointers to data members.
7734 (value_from_longest): Allow member pointers.
7735 * value.h (value_aggregate_elt): Add want_address.
7736 * varobj.c (c_variable_editable): Remove check for members.
7737 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
7738 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
7740 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
7741 * c-lang.h (cp_print_class_method): Delete prototype.
7742 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
7743 * mips-tdep.c (mips_gdbarch_init): Likewise.
7744 * gdbarch.c, gdbarch.h: Regenerated.
7746 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7748 * rs6000-tdep.c (rs6000_use_struct_convention)
7749 (rs6000_extract_return_value, rs6000_store_return_value)
7750 (rs6000_extract_struct_value_address): Remove.
7751 (rs6000_return_value): New function.
7752 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
7753 store_return_value, deprecated_extract_struct_value_address and
7754 deprecated_use_struct_convention. Use rs6000_return_value
7757 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
7759 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
7760 -display-disable, -display-enable, -display-insert and
7763 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7765 * breakpoint.c (remove_breakpoint): Remove dead code.
7767 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
7769 * varobj.c: Include block.h.
7770 (c_value_of_root): Check scope within nested statements.
7772 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7774 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
7775 regcache_cooked_write_signed instead of
7776 deprecated_write_register_bytes.
7778 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7780 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
7782 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7784 Followed the Start of New Year Procedure:
7785 * ChangeLog-2006: New file, containing all the entries for 2006.
7786 * ChangeLog: Removed all 2006 entries, and changed the reference
7787 to the previous ChangeLog to point to ChangeLog 2006.
7788 * top.c (print_gdb_version): Update copyright year.
7790 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7792 * Makefile.in (remote-sds.o): Remove.
7793 * remote-sds.c: Delete.
7795 For older changes see ChangeLog-2006.
7801 version-control: never