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