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