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