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