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