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