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