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