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