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