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