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