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