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