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