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