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