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