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