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