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