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