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