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