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