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