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