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