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