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