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