e54fd1336d9756ea2f9184a2fd333dc48b7f216f
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>
2
3 * python/python-value.c (valpy_getitem): Remove incorrect assert.
4
5 2009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>
6
7 * python/python-value.c (valpy_getitem): Don't return from TRY_CATCH.
8
9 2009-07-07 Sami Wagiaalla <swagiaal@redhat.com>
10
11 * cp-support.h (struct using_direct): Rename members inner and
12 outer to import_src, and import_dest respectively.
13 * cp-namespace.c (cp_add_using_directive): Update.
14 (cp_add_using): Update.
15 (cp_copy_usings): Update.
16 (cp_lookup_symbol_namespace): Update.
17 (cp_scan_for_anonymous_namespaces): Update.
18 * cp-support.c (make_symbol_overload_list_using): Update.
19 * cp-support.h (cp_add_using_directive, cp_add_using): Rename
20 arguments from inner and outer to src and dest respectively.
21 * cp-namespace.c (cp_add_using_directive): Ditto.
22 (cp_add_using): Ditto.
23
24 2009-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
25
26 * mi/mi-cmd-var.c (mi_cmd_var_update): Replace a while loop by for loop.
27 * varobj.c (varobj_invalidate): Replace a while loop by for loop.
28
29 2009-07-07 Vladimir Prus <vladimir@codesourcery.com>
30
31 Fix hang in floating varobjs.
32
33 * varob.c (varobj_invalidate): Advance to next
34 element when processing floating varobj.
35
36 2009-07-07 Vladimir Prus <vladimir@codesourcery.com>
37
38 * varobj.c: Remove unnecessary include.
39
40 2009-07-07 Tristan Gingold <gingold@adacore.com>
41
42 * config/i386/darwin.mh (NATDEPFILES): Remove excServer.o.
43 Remove excServer.c target. Remove _all target.
44 * darwin.defs: Removed.
45
46 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
47
48 * configure.tgt (i[34567]86-*-nto*): Add build_gdbserver=yes.
49
50 2009-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
51
52 * source.c (find_and_open_source): Remove the `objfile' parameter.
53 Update the function comment.
54 (open_source_file, symtab_to_fullname, psymtab_to_fullname): Update the
55 find_and_open_source callers.
56
57 2009-07-05 Pedro Alves <pedro@codesourcery.com>
58
59 * coff-pe-read.c (read_pe_exported_syms): Recognize
60 "pe-arm-wince-little" and "pei-arm-wince-little" bfd targets as PE
61 targets.
62
63 2009-07-05 Pedro Alves <pedro@codesourcery.com>
64
65 * arm-wince-tdep.c (arm_wince_skip_main_prologue): New.
66 (arm_wince_init_abi): Register it as gdbarch_skip_main_prologue
67 callback.
68
69 2009-06-29 Tristan Gingold <gingold@adacore.com>
70
71 * i386-darwin-tdep.c (amd64_darwin_thread_state_reg_offset)
72 (amd64_darwin_thread_state_num_regs)
73 (amd64_darwin_sigcontext_addr, x86_darwin_init_abi_64): Moved to
74 amd64-darwin-tdep.c
75 (_initialize_i386_darwin_tdep): Remove 64 bits parts.
76 (darwin_dwarf_signal_frame_p): Make public.
77 * amd64-darwin-tdep.c: New file with most chunks from
78 i386-darwin-tdep.c
79 * i386-darwin-tdep.h: Add a prototype for darwin_dwarf_signal_frame_p.
80 (amd64_darwin_thread_state_reg_offset)
81 (amd64_darwin_thread_state_num_regs): Moved to amd64-darwin-tdep.h
82 * amd64-darwin-tdep.h: New file.
83 * i386-darwin-nat.c: Only includes amd64-nat.h and amd64-darwin-tdep.h
84 if BFD64 is defined.
85 (i386_darwin_fetch_inferior_registers): Add #ifdef BFD64/#endif around
86 64 bits parts.
87 (i386_darwin_store_inferior_registers): Ditto.
88 (darwin_set_sstep): Ditto.
89 (darwin_complete_target): Ditto.
90 (amd64_darwin_sstep_at_sigreturn): Ditto.
91 * configure.tgt: Create a separate entry for x86_64-*-darwin.
92 Add 64 bits support for i386-*-darwin if --enable-64-bit-bfd.
93 * Makefile.in (ALLDEPFILES): Add amd64-darwin-tdep.c, darwin-nat.c,
94 i386-darwin-tdep.c i386-darwin-nat.c
95 (ALL_64_TARGET_OBS): Add amd64-darwin-tdep.o
96
97 2009-07-02 Pedro Alves <pedro@codesourcery.com>
98
99 * linux-fork.c (forks_exist_p): Drop unnecessary extern.
100 (add_fork, linux_fork_killall, linux_fork_mourn_inferior)
101 (linux_fork_detach): Ditto.
102 (delete_fork_command): Rename to ...
103 (delete_checkpoint_command): ... this.
104 (detach_fork_command): Rename to ...
105 (detach_checkpoint_command): ... this.
106 (info_forks_command): Rename to ...
107 (info_checkpoints_command): ... this.
108 (_initialize_linux_fork): Remove stale comments. Adjust.
109
110 2009-07-02 Pedro Alves <pedro@codesourcery.com>
111
112 * linux-nat.c (linux_child_follow_fork): If we're staying attached
113 to the child process, enable event reporting on it. Don't handle
114 checkpoints here. Instead, add the child fork to the lwp thread
115 and inferior lists without clobbering the previous inferior. Let
116 the thread_db layer learn about a new child process, even if
117 following the parent.
118 (linux_nat_switch_fork): Delete lwps of the current inferior only,
119 instead of clearing the whole list. Use thread_change_ptid to
120 give the core the illusion the new checkpoint is still the same
121 inferior. Clear the register cache.
122 (linux_handle_extended_wait): Handle checkpoints here.
123 (linux_multi_process): Turn on.
124 * linux-fork.c (struct fork_info) <pc>: Remove field.
125 (init_fork_list): Do not delete the checkpoint from the inferior
126 list (it is not there).
127 (fork_load_infrun_state): Don't switch inferior_ptid here. Pass
128 the new checkpoint's ptid to linux_nat_switch_fork.
129 (fork_save_infrun_state): Make static. Don't stop the pc field of
130 fork_info, it's gone.
131 (linux_fork_mourn_inferior): Don't delete the checkpoint from the
132 inferior list, it's not there.
133 (linux_fork_detach): Ditto.
134 (delete_fork_command): Replace mention of fork/checkpoint by
135 checkpoint only.
136 (detach_fork_command): Likewise. Don't delete the checkpoint from
137 the inferior list.
138 (info_forks_command): Adjust.
139 (restore_detach_fork): Delete.
140 (checkpointing_pid): New.
141 (linux_fork_checkpointing_p): New.
142 (save_detach_fork): Delete.
143 (checkpoint_command): Delete temp_detach_fork. Don't remove
144 breakpoints, that's a nop. Store the pid of the process we're
145 checkpointing, and use make_cleanup_restore_integer to restore it.
146 Don't reinsert breakpoints here.
147 (process_command, fork_command): Delete.
148 (restart_command): Update comments to only mention checkpoints,
149 not forks.
150 (_initialize_linux_fork): Delete "fork", "process", "info forks"
151 commands.
152 * linux-fork.h (fork_save_infrun_state, fork_list): Delete
153 declarations.
154 (linux_fork_checkpointing_p): Declare.
155 * cli/cli-cmds.c (killlist): New.
156 * cli/cli-cmds.h (killlist): Declare.
157 * gdbcmd.h (killlist): Declare.
158 * inferior.c: Include "gdbthread.h".
159 (detach_inferior_command, kill_inferior_command)
160 (inferior_command): New.
161 (info_inferiors_command): Allow specifying a specific inferior id.
162 (_initialize_inferiors): Register "inferior", "kill inferior" and
163 "detach inferior" commands.
164 * infcmd.c (_initialize_infcmd): Make "kill" a prefix command.
165 * gdbthread.h (any_thread_of_process): Declare.
166 * thread.c (any_thread_of_process): New.
167
168 * NEWS: Mention multi-inferior debugging. Mention 'info
169 inferiors', 'inferior', 'detach inferior' and 'kill inferior' as
170 new commands.
171 (Removed commands): New section, mentioning that 'info forks',
172 'fork', 'process', 'delete fork' and 'detach fork' are now gone.
173
174 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
175
176 * gdbarch.sh (current_gdbarch): Remove global variable.
177 (find_arch_by_info): Remove, inline into ...
178 (gdbarch_find_by_info): ... this. Remove current_gdbarch swapping.
179 (deprecated_current_gdbarch_select_hack): Rename to ...
180 (deprecated_target_gdbarch_select_hack): ... this. Do not set
181 or access current_gdbarch.
182 * gdbarch.c, gdbarch.h: Regenerate.
183
184 * arch-utils.c (gdbarch_update_p): Update call.
185 (set_gdbarch_from_file): Likewise.
186
187 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
188
189 * defs.h (extract_signed_integer, extract_unsigned_integer,
190 extract_long_unsigned_integer, store_signed_integer,
191 store_unsigned_integer): Add BYTE_ORDER parameter.
192 * findvar.c (extract_signed_integer, extract_unsigned_integer,
193 extract_long_unsigned_integer, store_signed_integer,
194 store_unsigned_integer): Add BYTE_ORDER parameter. Use it
195 instead of current_gdbarch.
196
197 * gdbcore.h (read_memory_integer, safe_read_memory_integer,
198 read_memory_unsigned_integer, write_memory_signed_integer,
199 write_memory_unsigned_integer): Add BYTE_ORDER parameter.
200 * corefile.c (struct captured_read_memory_integer_arguments): Add
201 BYTE_ORDER member.
202 (safe_read_memory_integer): Add BYTE_ORDER parameter. Store it into
203 struct captured_read_memory_integer_arguments.
204 (do_captured_read_memory_integer): Pass it to read_memory_integer.
205 (read_memory_integer): Add BYTE_ORDER parameter. Pass it to
206 extract_signed_integer.
207 (read_memory_unsigned_integer): Add BYTE_ORDER parameter. Pass it to
208 extract_unsigned_integer.
209 (write_memory_signed_integer): Add BYTE_ORDER parameter. Pass it
210 to store_signed_integer.
211 (write_memory_unsigned_integer): Add BYTE_ORDER parameter. Pass it
212 to store_unsigned_integer.
213
214 * target.h (get_target_memory_unsigned): Add BYTE_ORDER parameter.
215 * target.c (get_target_memory_unsigned): Add BYTE_ORDER parameter.
216 Pass it to extract_unsigned_integer.
217
218
219 Update calls to extract_signed_integer, extract_unsigned_integer,
220 extract_long_unsigned_integer, store_signed_integer,
221 store_unsigned_integer, read_memory_integer,
222 read_memory_unsigned_integer, safe_read_memory_integer,
223 write_memory_signed_integer, write_memory_unsigned_integer, and
224 get_target_memory_unsigned to pass byte order:
225 * ada-lang.c (ada_value_binop): Update.
226 * ada-valprint.c (char_at): Update.
227 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Update.
228 * alpha-tdep.c (alpha_lds, alpha_sts, alpha_push_dummy_call,
229 alpha_extract_return_value, alpha_read_insn,
230 alpha_get_longjmp_target): Update.
231 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Update.
232 * amd64obsd-tdep.c (amd64obsd_supply_uthread,
233 amd64obsd_collect_uthread, amd64obsd_trapframe_cache): Update.
234 * amd64-tdep.c (amd64_push_dummy_call, amd64_analyze_prologue,
235 amd64_frame_cache, amd64_sigtramp_frame_cache, fixup_riprel,
236 amd64_displaced_step_fixup): Update.
237 * arm-linux-tdep.c (arm_linux_sigreturn_init,
238 arm_linux_rt_sigreturn_init, arm_linux_supply_gregset): Update.
239 * arm-tdep.c (thumb_analyze_prologue, arm_skip_prologue,
240 arm_scan_prologue, arm_push_dummy_call, thumb_get_next_pc,
241 arm_get_next_pc, arm_extract_return_value, arm_store_return_value,
242 arm_return_value): Update.
243 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
244 * auxv.c (default_auxv_parse): Update.
245 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address,
246 avr_scan_prologue, avr_extract_return_value,
247 avr_frame_prev_register, avr_push_dummy_call): Update.
248 * bsd-uthread.c (bsd_uthread_check_magic, bsd_uthread_lookup_offset,
249 bsd_uthread_wait, bsd_uthread_thread_alive,
250 bsd_uthread_extra_thread_info): Update.
251 * c-lang.c (c_printstr, print_wchar): Update.
252 * cp-valprint.c (cp_print_class_member): Update.
253 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache,
254 cris_push_dummy_call, cris_scan_prologue, cris_store_return_value,
255 cris_extract_return_value, find_step_target, dip_prefix,
256 sixteen_bit_offset_branch_op, none_reg_mode_jump_op,
257 move_mem_to_reg_movem_op, get_data_from_address): Update.
258 * dwarf2expr.c (dwarf2_read_address, execute_stack_op): Update.
259 * dwarf2-frame.c (execute_cfa_program): Update.
260 * dwarf2loc.c (find_location_expression): Update.
261 * dwarf2read.c (dwarf2_const_value): Update.
262 * expprint.c (print_subexp_standard): Update.
263 * findvar.c (unsigned_pointer_to_address, signed_pointer_to_address,
264 unsigned_address_to_pointer, address_to_signed_pointer,
265 read_var_value): Update.
266 * frame.c (frame_unwind_register_signed,
267 frame_unwind_register_unsigned, get_frame_memory_signed,
268 get_frame_memory_unsigned): Update.
269 * frame-unwind.c (frame_unwind_got_constant): Update.
270 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp,
271 frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
272 Update.
273 * frv-tdep.c (frv_analyze_prologue, frv_skip_main_prologue,
274 frv_extract_return_value, find_func_descr,
275 frv_convert_from_func_ptr_addr, frv_push_dummy_call): Update.
276 * f-valprint.c (f_val_print): Update.
277 * gnu-v3-abi.c (gnuv3_decode_method_ptr, gnuv3_make_method_ptr):
278 Update.
279 * h8300-tdep.c (h8300_is_argument_spill, h8300_analyze_prologue,
280 h8300_push_dummy_call, h8300_extract_return_value,
281 h8300h_extract_return_value, h8300_store_return_value,
282 h8300h_store_return_value): Update.
283 * hppabsd-tdep.c (hppabsd_find_global_pointer): Update.
284 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register):
285 Update.
286 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline,
287 hppa64_hpux_in_solib_call_trampoline,
288 hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code,
289 hppa_hpux_sigtramp_frame_unwind_cache,
290 hppa_hpux_sigtramp_unwind_sniffer, hppa32_hpux_find_global_pointer,
291 hppa64_hpux_find_global_pointer, hppa_hpux_search_pattern,
292 hppa32_hpux_search_dummy_call_sequence,
293 hppa64_hpux_search_dummy_call_sequence, hppa_hpux_supply_save_state,
294 hppa_hpux_unwind_adjust_stub): Update.
295 * hppa-linux-tdep.c (insns_match_pattern,
296 hppa_linux_find_global_pointer): Update.
297 * hppa-tdep.c (hppa_in_function_epilogue_p, hppa32_push_dummy_call,
298 hppa64_convert_code_addr_to_fptr, hppa64_push_dummy_call,
299 skip_prologue_hard_way, hppa_frame_cache, hppa_fallback_frame_cache,
300 hppa_pseudo_register_read, hppa_frame_prev_register_helper,
301 hppa_match_insns): Update.
302 * hpux-thread.c (hpux_thread_fetch_registers): Update.
303 * i386-tdep.c (i386bsd_sigcontext_addr): Update.
304 * i386-cygwin-tdep.c (core_process_module_section): Update.
305 * i386-darwin-nat.c (i386_darwin_sstep_at_sigreturn,
306 amd64_darwin_sstep_at_sigreturn): Update.
307 * i386-darwin-tdep.c (i386_darwin_sigcontext_addr,
308 amd64_darwin_sigcontext_addr): Likewise.
309 * i386-linux-nat.c (i386_linux_sigcontext_addr): Update.
310 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Update.
311 * i386-nto-tdep.c (i386nto_sigcontext_addr): Update.
312 * i386obsd-nat.c (i386obsd_supply_pcb): Update.
313 * i386obsd-tdep.c (i386obsd_supply_uthread, i386obsd_collect_uthread,
314 i386obsd_trapframe_cache): Update.
315 * i386-tdep.c (i386_displaced_step_fixup, i386_follow_jump,
316 i386_analyze_frame_setup, i386_analyze_prologue,
317 i386_skip_main_prologue, i386_frame_cache, i386_sigtramp_frame_cache,
318 i386_get_longjmp_target, i386_push_dummy_call,
319 i386_pe_skip_trampoline_code, i386_svr4_sigcontext_addr,
320 i386_fetch_pointer_argument): Update.
321 * i387-tdep.c (i387_supply_fsave): Update.
322 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Update.
323 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write,
324 examine_prologue, ia64_frame_cache, ia64_frame_prev_register,
325 ia64_sigtramp_frame_cache, ia64_sigtramp_frame_prev_register,
326 ia64_access_reg, ia64_access_rse_reg, ia64_libunwind_frame_this_id,
327 ia64_libunwind_frame_prev_register,
328 ia64_libunwind_sigtramp_frame_this_id,
329 ia64_libunwind_sigtramp_frame_prev_register, ia64_find_global_pointer,
330 find_extant_func_descr, find_func_descr,
331 ia64_convert_from_func_ptr_addr, ia64_push_dummy_call, ia64_dummy_id,
332 ia64_unwind_pc): Update.
333 * iq2000-tdep.c (iq2000_pointer_to_address, iq2000_address_to_pointer,
334 iq2000_scan_prologue, iq2000_extract_return_value,
335 iq2000_push_dummy_call): Update.
336 * irix5nat.c (fill_gregset): Update.
337 * jv-lang.c (evaluate_subexp_java): Update.
338 * jv-valprint.c (java_value_print): Update.
339 * lm32-tdep.c (lm32_analyze_prologue, lm32_push_dummy_call,
340 lm32_extract_return_value, lm32_store_return_value): Update.
341 * m32c-tdep.c (m32c_push_dummy_call, m32c_return_value,
342 m32c_skip_trampoline_code, m32c_m16c_address_to_pointer,
343 m32c_m16c_pointer_to_address): Update.
344 * m32r-tdep.c (m32r_store_return_value, decode_prologue,
345 m32r_skip_prologue, m32r_push_dummy_call, m32r_extract_return_value):
346 Update.
347 * m68hc11-tdep.c (m68hc11_pseudo_register_read,
348 m68hc11_pseudo_register_write, m68hc11_analyze_instruction,
349 m68hc11_push_dummy_call): Update.
350 * m68linux-tdep.c (m68k_linux_pc_in_sigtramp,
351 m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
352 Update.
353 * m68k-tdep.c (m68k_push_dummy_call, m68k_analyze_frame_setup,
354 m68k_analyze_register_saves, m68k_analyze_prologue, m68k_frame_cache,
355 m68k_get_longjmp_target): Update.
356 * m88k-tdep.c (m88k_fetch_instruction): Update.
357 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_csr_write,
358 mep_pseudo_cr32_write, mep_get_insn, mep_push_dummy_call): Update.
359 * mi/mi-main.c (mi_cmd_data_write_memory): Update.
360 * mips-linux-tdep.c (mips_linux_get_longjmp_target, supply_32bit_reg,
361 mips64_linux_get_longjmp_target, mips64_fill_gregset,
362 mips64_fill_fpregset, mips_linux_in_dynsym_stub): Update.
363 * mipsnbdsd-tdep.c (mipsnbsd_get_longjmp_target): Update.
364 * mips-tdep.c (mips_fetch_instruction, fetch_mips_16,
365 mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call,
366 mips_o32_push_dummy_call, mips_o64_push_dummy_call,
367 mips_single_step_through_delay, mips_skip_pic_trampoline_code,
368 mips_integer_to_address): Update.
369 * mn10300-tdep.c (mn10300_analyze_prologue, mn10300_push_dummy_call):
370 Update.
371 * monitor.c (monitor_supply_register, monitor_write_memory,
372 monitor_read_memory_single): Update.
373 * moxie-tdep.c (moxie_store_return_value, moxie_extract_return_value,
374 moxie_analyze_prologue): Update.
375 * mt-tdep.c (mt_return_value, mt_skip_prologue, mt_select_coprocessor,
376 mt_pseudo_register_read, mt_pseudo_register_write, mt_registers_info,
377 mt_push_dummy_call): Update.
378 * objc-lang.c (read_objc_method, read_objc_methlist_nmethods,
379 read_objc_methlist_method, read_objc_object, read_objc_super,
380 read_objc_class, find_implementation_from_class): Update.
381 * ppc64-linux-tdep.c (ppc64_desc_entry_point,
382 ppc64_linux_convert_from_func_ptr_addr, ppc_linux_sigtramp_cache):
383 Update.
384 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_sniffer,
385 ppcobsd_sigtramp_frame_cache): Update.
386 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
387 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
388 ppc64_sysv_abi_return_value): Update.
389 * ppc-linux-nat.c (ppc_linux_auxv_parse): Update.
390 * procfs.c (procfs_auxv_parse): Update.
391 * p-valprint.c (pascal_val_print): Update.
392 * regcache.c (regcache_raw_read_signed, regcache_raw_read_unsigned,
393 regcache_raw_write_signed, regcache_raw_write_unsigned,
394 regcache_cooked_read_signed, regcache_cooked_read_unsigned,
395 regcache_cooked_write_signed, regcache_cooked_write_unsigned): Update.
396 * remote-m32r-sdi.c (m32r_fetch_register): Update.
397 * remote-mips.c (mips_wait, mips_fetch_registers, mips_xfer_memory):
398 Update.
399 * rs6000-aix-tdep.c (rs6000_push_dummy_call, rs6000_return_value,
400 rs6000_convert_from_func_ptr_addr, branch_dest,
401 rs6000_software_single_step): Update.
402 * rs6000-tdep.c (rs6000_in_function_epilogue_p,
403 ppc_displaced_step_fixup, ppc_deal_with_atomic_sequence,
404 bl_to_blrl_insn_p, rs6000_fetch_instruction, skip_prologue,
405 rs6000_skip_main_prologue, rs6000_skip_trampoline_code,
406 rs6000_frame_cache): Update.
407 * s390-tdep.c (s390_pseudo_register_read, s390_pseudo_register_write,
408 s390x_pseudo_register_read, s390x_pseudo_register_write, s390_load,
409 s390_backchain_frame_unwind_cache, s390_sigtramp_frame_unwind_cache,
410 extend_simple_arg, s390_push_dummy_call, s390_return_value): Update.
411 * scm-exp.c (scm_lreadr): Update.
412 * scm-lang.c (scm_get_field, scm_unpack): Update.
413 * scm-valprint.c (scm_val_print): Update.
414 * score-tdep.c (score_breakpoint_from_pc, score_push_dummy_call,
415 score_fetch_inst): Update.
416 * sh64-tdep.c (look_for_args_moves, sh64_skip_prologue_hard_way,
417 sh64_analyze_prologue, sh64_push_dummy_call, sh64_extract_return_value,
418 sh64_pseudo_register_read, sh64_pseudo_register_write,
419 sh64_frame_prev_register): Update:
420 * sh-tdep.c (sh_analyze_prologue, sh_push_dummy_call_fpu,
421 sh_push_dummy_call_nofpu, sh_extract_return_value_nofpu,
422 sh_store_return_value_nofpu, sh_in_function_epilogue_p): Update.
423 * solib-darwin.c (darwin_load_image_infos): Update.
424 * solib-frv.c (fetch_loadmap, lm_base, frv_current_sos, enable_break2,
425 find_canonical_descriptor_in_load_object): Update.
426 * solib-irix.c (extract_mips_address, fetch_lm_info, irix_current_sos,
427 irix_open_symbol_file_object): Update.
428 * solib-som.c (som_solib_create_inferior_hook, link_map_start,
429 som_current_sos, som_open_symbol_file_object): Update.
430 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS, LM_ADDR, LM_NEXT, LM_NAME):
431 Update.
432 * solib-svr4.c (read_program_header, scan_dyntag_auxv,
433 solib_svr4_r_ldsomap): Update.
434 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Update.
435 * sparc64obsd-tdep.c (sparc64obsd_supply_uthread,
436 sparc64obsd_collect_uthread): Update.
437 * sparc64-tdep.c (sparc64_pseudo_register_read,
438 sparc64_pseudo_register_write, sparc64_supply_gregset,
439 sparc64_collect_gregset): Update.
440 * sparc-linux-tdep.c (sparc32_linux_step_trap): Update.
441 * sparcobsd-tdep.c (sparc32obsd_supply_uthread,
442 sparc32obsd_collect_uthread): Update.
443 * sparc-tdep.c (sparc_fetch_wcookie, sparc32_push_dummy_code,
444 sparc32_store_arguments, sparc32_return_value, sparc_supply_rwindow,
445 sparc_collect_rwindow): Update.
446 * spu-linux-nat.c (parse_spufs_run): Update.
447 * spu-tdep.c (spu_pseudo_register_read_spu,
448 spu_pseudo_register_write_spu, spu_pointer_to_address,
449 spu_analyze_prologue, spu_in_function_epilogue_p,
450 spu_frame_unwind_cache, spu_push_dummy_call, spu_software_single_step,
451 spu_get_longjmp_target, spu_get_overlay_table, spu_overlay_update_osect,
452 info_spu_signal_command, info_spu_mailbox_list, info_spu_dma_cmdlist,
453 info_spu_dma_command, info_spu_proxydma_command): Update.
454 * stack.c (print_frame_nameless_args, frame_info): Update.
455 * symfile.c (read_target_long_array, simple_read_overlay_table,
456 simple_read_overlay_region_table): Update.
457 * target.c (debug_print_register): Update.
458 * tramp-frame.c (tramp_frame_start): Update.
459 * v850-tdep.c (v850_analyze_prologue, v850_push_dummy_call,
460 v850_extract_return_value, v850_store_return_value,
461 * valarith.c (value_binop, value_bit_index): Update.
462 * valops.c (value_cast): Update.
463 * valprint.c (val_print_type_code_int, val_print_string,
464 read_string): Update.
465 * value.c (unpack_long, unpack_double, unpack_field_as_long,
466 modify_field, pack_long): Update.
467 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call,
468 vax_skip_prologue): Update.
469 * xstormy16-tdep.c (xstormy16_push_dummy_call,
470 xstormy16_analyze_prologue, xstormy16_in_function_epilogue_p,
471 xstormy16_resolve_jmp_table_entry, xstormy16_find_jmp_table_entry,
472 xstormy16_pointer_to_address, xstormy16_address_to_pointer): Update.
473 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read,
474 xtensa_pseudo_register_write, xtensa_frame_cache,
475 xtensa_push_dummy_call, call0_track_op, call0_frame_cache): Update.
476
477
478 * dfp.h (decimal_to_string, decimal_from_string, decimal_from_integral,
479 decimal_from_floating, decimal_to_doublest, decimal_is_zero): Add
480 BYTE_ORDER parameter.
481 (decimal_binop): Add BYTE_ORDER_X, BYTE_ORDER_Y, and BYTE_ORDER_RESULT
482 parameters.
483 (decimal_compare): Add BYTE_ORDER_X and BYTE_ORDER_Y parameters.
484 (decimal_convert): Add BYTE_ORDER_FROM and BYTE_ORDER_TO parameters.
485 * dfp.c (match_endianness): Add BYTE_ORDER parameter. Use it
486 instead of current_gdbarch.
487 (decimal_to_string, decimal_from_integral, decimal_from_floating,
488 decimal_to_doublest, decimal_is_zero): Add BYTE_ORDER parameter.
489 Pass it to match_endianness.
490 (decimal_binop): Add BYTE_ORDER_X, BYTE_ORDER_Y, and BYTE_ORDER_RESULT
491 parameters. Pass them to match_endianness.
492 (decimal_compare): Add BYTE_ORDER_X and BYTE_ORDER_Y parameters.
493 Pass them to match_endianness.
494 (decimal_convert): Add BYTE_ORDER_FROM and BYTE_ORDER_TO parameters.
495 Pass them to match_endianness.
496 * valarith.c (value_args_as_decimal): Add BYTE_ORDER_X and
497 BYTE_ORDER_Y output parameters.
498 (value_binop): Update call to value_args_as_decimal.
499
500 Update calls to decimal_to_string, decimal_from_string,
501 decimal_from_integral, decimal_from_floating, decimal_to_doublest,
502 decimal_is_zero, decimal_binop, decimal_compare and decimal_convert
503 to pass/receive byte order:
504 * c-exp.y (parse_number): Update.
505 * printcmd.c (printf_command): Update.
506 * valarith.c (value_args_as_decimal, value_binop, value_logical_not,
507 value_equal, value_less): Update.
508 * valops.c (value_cast, value_one): Update.
509 * valprint.c (print_decimal_floating): Update.
510 * value.c (unpack_long, unpack_double): Update.
511 * python/python-value.c (valpy_nonzero): Update.
512
513
514 * ada-valprint.c (char_at): Add BYTE_ORDER parameter.
515 (printstr): Update calls to char_at.
516 (ada_val_print_array): Likewise.
517 * valprint.c (read_string): Add BYTE_ORDER parameter.
518 (val_print_string): Update call to read_string.
519 * c-lang.c (c_get_string): Likewise.
520 * charset.h (target_wide_charset): Add BYTE_ORDER parameter.
521 * charset.c (target_wide_charset): Add BYTE_ORDER parameter.
522 Use it instead of current_gdbarch.
523 * printcmd.c (printf_command): Update calls to target_wide_charset.
524 * c-lang.c (charset_for_string_type): Add BYTE_ORDER parameter.
525 Pass to target_wide_charset. Use it instead of current_gdbarch.
526 (classify_type): Add BYTE_ORDER parameter. Pass to
527 charset_for_string_type. Allow NULL encoding pointer.
528 (print_wchar): Add BYTE_ORDER parameter.
529 (c_emit_char): Update calls to classify_type and print_wchar.
530 (c_printchar, c_printstr): Likewise.
531
532
533 * gdbarch.sh (in_solib_return_trampoline): Convert to type "m".
534 * gdbarch.c, gdbarch.h: Regenerate.
535 * arch-utils.h (generic_in_solib_return_trampoline): Add GDBARCH
536 parameter.
537 * arch-utils.c (generic_in_solib_return_trampoline): Likewise.
538 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Likewise.
539 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise.
540 (rs6000_skip_trampoline_code): Update call.
541
542 * alpha-tdep.h (struct gdbarch_tdep): Add GDBARCH parameter to
543 dynamic_sigtramp_offset and pc_in_sigtramp callbacks.
544 (alpha_read_insn): Add GDBARCH parameter.
545 * alpha-tdep.c (alpha_lds, alpha_sts): Add GDBARCH parameter.
546 (alpha_register_to_value): Pass architecture to alpha_sts.
547 (alpha_extract_return_value): Likewise.
548 (alpha_value_to_register): Pass architecture to alpha_lds.
549 (alpha_store_return_value): Likewise.
550 (alpha_read_insn): Add GDBARCH parameter.
551 (alpha_skip_prologue): Pass architecture to alpha_read_insn.
552 (alpha_heuristic_proc_start): Likewise.
553 (alpha_heuristic_frame_unwind_cache): Likewise.
554 (alpha_next_pc): Likewise.
555 (alpha_sigtramp_frame_this_id): Pass architecture to
556 tdep->dynamic_sigtramp_offset callback.
557 (alpha_sigtramp_frame_sniffer): Pass architecture to
558 tdep->pc_in_sigtramp callback.
559 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): Add GDBARCH parameter.
560 (alphafbsd_sigtramp_offset): Likewise.
561 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): Add GDBARCH
562 parameter. Pass to alpha_read_insn.
563 (alpha_linux_sigtramp_offset): Add GDBARCH parameter. Pass to
564 alpha_linux_sigtramp_offset_1.
565 (alpha_linux_pc_in_sigtramp): Add GDBARCH parameter. Pass to
566 alpha_linux_sigtramp_offset.
567 (alpha_linux_sigcontext_addr): Pass architecture to alpha_read_insn
568 and alpha_linux_sigtramp_offset.
569 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Add GDBARCH parameter.
570 (alphanbsd_pc_in_sigtramp): Add GDBARCH parameter. Pass to
571 alphanbsd_sigtramp_offset.
572 * alphaobsd-tdep.c (alphaobsd_sigtramp_offset): Add GDBARCH parameter.
573 (alphaobsd_pc_in_sigtramp): Add GDBARCH parameter. Pass to
574 alpha_read_insn.
575 (alphaobsd_sigcontext_addr): Pass architecture to
576 alphaobsd_sigtramp_offset.
577 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): Add GDBARCH
578 parameter.
579
580 * amd64-tdep.c (amd64_analyze_prologue): Add GDBARCH parameter.
581 (amd64_skip_prologue): Pass architecture to amd64_analyze_prologue.
582 (amd64_frame_cache): Likewise.
583
584 * arm-tdep.c (SWAP_SHORT, SWAP_INT): Remove.
585 (thumb_analyze_prologue, arm_skip_prologue, arm_scan_prologue,
586 thumb_get_next_pc, arm_get_next_pc): Do not use SWAP_ macros.
587 * arm-wince-tdep.c: Include "frame.h".
588
589 * avr-tdep.c (EXTRACT_INSN): Remove.
590 (avr_scan_prologue): Add GDBARCH argument, inline EXTRACT_INSN.
591 (avr_skip_prologue): Pass architecture to avr_scan_prologue.
592 (avr_frame_unwind_cache): Likewise.
593
594 * cris-tdep.c (struct instruction_environment): Add BYTE_ORDER member.
595 (find_step_target): Initialize it.
596 (get_data_from_address): Add BYTE_ORDER parameter.
597 (bdap_prefix): Pass byte order to get_data_from_address.
598 (handle_prefix_assign_mode_for_aritm_op): Likewise.
599 (three_operand_add_sub_cmp_and_or_op): Likewise.
600 (handle_inc_and_index_mode_for_aritm_op): Likewise.
601
602 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Add GDBARCH parameter.
603 (frv_linux_sigcontext_reg_addr): Pass architecture to
604 frv_linux_pc_in_sigtramp.
605 (frv_linux_sigtramp_frame_sniffer): Likewise.
606
607 * h8300-tdep.c (h8300_is_argument_spill): Add GDBARCH parameter.
608 (h8300_analyze_prologue): Add GDBARCH parameter. Pass to
609 h8300_is_argument_spill.
610 (h8300_frame_cache, h8300_skip_prologue): Pass architecture
611 to h8300_analyze_prologue.
612
613 * hppa-tdep.h (struct gdbarch_tdep): Add GDBARCH parameter to
614 in_solib_call_trampoline callback.
615 (hppa_in_solib_call_trampoline): Add GDBARCH parameter.
616 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Add GDBARCH
617 parameter.
618 (hppa64_push_dummy_call): Pass architecture to
619 hppa64_convert_code_addr_to_fptr.
620 (hppa_match_insns): Add GDBARCH parameter.
621 (hppa_match_insns_relaxed): Add GDBARCH parameter. Pass to
622 hppa_match_insns.
623 (hppa_skip_trampoline_code): Pass architecture to hppa_match_insns.
624 (hppa_in_solib_call_trampoline): Add GDBARCH parameter. Pass to
625 hppa_match_insns_relaxed.
626 (hppa_stub_unwind_sniffer): Pass architecture to
627 tdep->in_solib_call_trampoline callback.
628 * hppa-hpux-tdep.c (hppa_hpux_search_pattern): Add GDBARCH parameter.
629 (hppa32_hpux_search_dummy_call_sequence): Pass architecture to
630 hppa_hpux_search_pattern.
631 * hppa-linux-tdep.c (insns_match_pattern): Add GDBARCH parameter.
632 (hppa_linux_sigtramp_find_sigcontext): Add GDBARCH parameter.
633 Pass to insns_match_pattern.
634 (hppa_linux_sigtramp_frame_unwind_cache): Pass architecture to
635 hppa_linux_sigtramp_find_sigcontext.
636 (hppa_linux_sigtramp_frame_sniffer): Likewise.
637 (hppa32_hpux_in_solib_call_trampoline): Add GDBARCH parameter.
638 (hppa64_hpux_in_solib_call_trampoline): Likewise.
639
640 * i386-tdep.c (i386_follow_jump): Add GDBARCH parameter.
641 (i386_analyze_frame_setup): Add GDBARCH parameter.
642 (i386_analyze_prologue): Add GDBARCH parameter. Pass to
643 i386_follow_jump and i386_analyze_frame_setup.
644 (i386_skip_prologue): Pass architecture to i386_analyze_prologue
645 and i386_follow_jump.
646 (i386_frame_cache): Pass architecture to i386_analyze_prologue.
647 (i386_pe_skip_trampoline_code): Add FRAME parameter.
648 * i386-tdep.h (i386_pe_skip_trampoline_code): Add FRAME parameter.
649 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Pass
650 frame to i386_pe_skip_trampoline_code.
651
652 * ia64-tdep.h (struct gdbarch_tdep): Add GDBARCH parameter
653 to sigcontext_register_address callback.
654 * ia64-tdep.c (ia64_find_global_pointer): Add GDBARCH parameter.
655 (ia64_find_unwind_table): Pass architecture to
656 ia64_find_global_pointer.
657 (find_extant_func_descr): Add GDBARCH parameter.
658 (find_func_descr): Pass architecture to find_extant_func_descr
659 and ia64_find_global_pointer.
660 (ia64_sigtramp_frame_init_saved_regs): Pass architecture to
661 tdep->sigcontext_register_address callback.
662 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Add
663 GDBARCH parameter.
664
665 * iq2000-tdep.c (iq2000_scan_prologue): Add GDBARCH parameter.
666 (iq2000_frame_cache): Pass architecture to iq2000_scan_prologue.
667
668 * lm32-tdep.c (lm32_analyze_prologue): Add GDBARCH parameter.
669 (lm32_skip_prologue, lm32_frame_cache): Pass architecture to
670 lm32_analyze_prologue.
671
672 * m32r-tdep.c (decode_prologue): Add GDBARCH parameter.
673 (m32r_skip_prologue): Pass architecture to decode_prologue.
674
675 * m68hc11-tdep.c (m68hc11_analyze_instruction): Add GDBARCH parameter.
676 (m68hc11_scan_prologue): Pass architecture to
677 m68hc11_analyze_instruction.
678
679 * m68k-tdep.c (m68k_analyze_frame_setup): Add GDBARCH parameter.
680 (m68k_analyze_prologue): Pass architecture to
681 m68k_analyze_frame_setup.
682
683 * m88k-tdep.c (m88k_fetch_instruction): Add BYTE_ORDER parameter.
684 (m88k_analyze_prologue): Add GDBARCH parameter. Pass byte order
685 to m88k_fetch_instruction.
686 (m88k_skip_prologue): Pass architecture to m88k_analyze_prologue.
687 (m88k_frame_cache): Likewise.
688
689 * mep-tdep.c (mep_get_insn): Add GDBARCH parameter.
690 (mep_analyze_prologue): Pass architecture to mep_get_insn.
691
692 * mips-tdep.c (mips_fetch_instruction): Add GDBARCH parameter.
693 (mips32_next_pc): Pass architecture to mips_fetch_instruction.
694 (deal_with_atomic_sequence): Likewise.
695 (unpack_mips16): Add GDBARCH parameter, pass to mips_fetch_instruction.
696 (mips16_scan_prologue): Likewise.
697 (mips32_scan_prologue): Likewise.
698 (mips16_in_function_epilogue_p): Likewise.
699 (mips32_in_function_epilogue_p): Likewise.
700 (mips_about_to_return): Likewise.
701 (mips_insn16_frame_cache): Pass architecture to mips16_scan_prologue.
702 (mips_insn32_frame_cache): Pass architecture to mips32_scan_prologue.
703 (mips_skip_prologue): Pass architecture to mips16_scan_prologue
704 and mips32_scan_prologue.
705 (mips_in_function_epilogue_p): Pass architecture to
706 mips16_in_function_epilogue_p and
707 mips32_in_function_epilogue_p.
708 (heuristic_proc_start): Pass architecture to mips_fetch_instruction
709 and mips_about_to_return.
710 (mips_skip_mips16_trampoline_code): Pass architecture to
711 mips_fetch_instruction.
712 (fetch_mips_16): Add GDBARCH parameter.
713 (mips16_next_pc): Pass architecture to fetch_mips_16.
714 (extended_mips16_next_pc): Pass architecture to unpack_mips16 and
715 fetch_mips_16.
716
717 * objc-lang.c (read_objc_method, read_objc_methlist_nmethods,
718 read_objc_methlist_method, read_objc_object, read_objc_super,
719 read_objc_class): Add GDBARCH parameter.
720 (find_implementation_from_class): Add GDBARCH parameter, pass
721 to read_objc_class, read_objc_methlist_nmethods, and
722 read_objc_methlist_method.
723 (find_implementation): Add GDBARCH parameter, pass to
724 read_objc_object and find_implementation_from_class.
725 (resolve_msgsend, resolve_msgsend_stret): Pass architecture
726 to find_implementation.
727 (resolve_msgsend_super, resolve_msgsend_super_stret): Pass
728 architecture to read_objc_super and find_implementation_from_class.
729
730 * ppc64-linux-tdep.c (ppc64_desc_entry_point): Add GDBARCH parameter.
731 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target,
732 ppc64_standard_linkage3_target): Pass architecture to
733 ppc64_desc_entry_point.
734 * rs6000-tdep.c (bl_to_blrl_insn_p): Add BYTE_ORDER parameter.
735 (skip_prologue): Pass byte order to bl_to_blrl_insn_p.
736 (rs6000_fetch_instruction): Add GDBARCH parameter.
737 (rs6000_skip_stack_check): Add GDBARCH parameter, pass to
738 rs6000_fetch_instruction.
739 (skip_prologue): Pass architecture to rs6000_fetch_instruction.
740
741 * remote-mips.c (mips_store_word): Return old_contents as host
742 integer value instead of target bytes.
743
744 * s390-tdep.c (struct s390_prologue_data): Add BYTE_ORDER member.
745 (s390_analyze_prologue): Initialize it.
746 (extend_simple_arg): Add GDBARCH parameter.
747 (s390_push_dummy_call): Pass architecture to extend_simple_arg.
748
749 * scm-lang.c (scm_get_field): Add BYTE_ORDER parameter.
750 * scm-lang.h (scm_get_field): Add BYTE_ORDER parameter.
751 (SCM_CAR, SCM_CDR): Pass SCM_BYTE_ORDER to scm_get_field.
752 * scm-valprint.c (scm_scmval_print): Likewise.
753 (scm_scmlist_print, scm_ipruk, scm_scmval_print): Define
754 SCM_BYTE_ORDER.
755
756 * sh64-tdep.c (look_for_args_moves): Add GDBARCH parameter.
757 (sh64_skip_prologue_hard_way): Add GDBARCH parameter, pass to
758 look_for_args_moves.
759 (sh64_skip_prologue): Pass architecture to
760 sh64_skip_prologue_hard_way.
761 * sh-tdep.c (sh_analyze_prologue): Add GDBARCH parameter.
762 (sh_skip_prologue): Pass architecture to sh_analyze_prologue.
763 (sh_frame_cache): Likewise.
764
765 * solib-irix.c (extract_mips_address): Add GDBARCH parameter.
766 (fetch_lm_info, irix_current_sos, irix_open_symbol_file_object):
767 Pass architecture to extract_mips_address.
768
769 * sparc-tdep.h (sparc_fetch_wcookie): Add GDBARCH parameter.
770 * sparc-tdep.c (sparc_fetch_wcookie): Add GDBARCH parameter.
771 (sparc_supply_rwindow, sparc_collect_rwindow): Pass architecture
772 to sparc_fetch_wcookie.
773 (sparc32_frame_prev_register): Likewise.
774 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
775 * sparc32nbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
776 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
777
778 * spu-tdep.c (spu_analyze_prologue): Add GDBARCH parameter.
779 (spu_skip_prologue): Pass architecture to spu_analyze_prologue.
780 (spu_virtual_frame_pointer): Likewise.
781 (spu_frame_unwind_cache): Likewise.
782 (info_spu_mailbox_list): Add BYTE_ORER parameter.
783 (info_spu_mailbox_command): Pass byte order to info_spu_mailbox_list.
784 (info_spu_dma_cmdlist): Add BYTE_ORER parameter.
785 (info_spu_dma_command, info_spu_proxydma_command): Pass byte order
786 to info_spu_dma_cmdlist.
787
788 * symfile.c (read_target_long_array): Add GDBARCH parameter.
789 (simple_read_overlay_table, simple_read_overlay_region_table,
790 simple_overlay_update_1): Pass architecture to read_target_long_array.
791
792 * v850-tdep.c (v850_analyze_prologue): Add GDBARCH parameter.
793 (v850_frame_cache): Pass architecture to v850_analyze_prologue.
794
795 * xstormy16-tdep.c (xstormy16_analyze_prologue): Add GDBARCH
796 parameter.
797 (xstormy16_skip_prologue, xstormy16_frame_cache): Pass architecture
798 to xstormy16_analyze_prologue.
799 (xstormy16_resolve_jmp_table_entry): Add GDBARCH parameter.
800 (xstormy16_find_jmp_table_entry): Likewise.
801 (xstormy16_skip_trampoline_code): Pass architecture to
802 xstormy16_resolve_jmp_table_entry.
803 (xstormy16_pointer_to_address): Likewise.
804 (xstormy16_address_to_pointer): Pass architecture to
805 xstormy16_find_jmp_table_entry.
806
807 * xtensa-tdep.c (call0_track_op): Add GDBARCH parameter.
808 (call0_analyze_prologue): Add GDBARCH parameter, pass to
809 call0_track_op.
810 (call0_frame_cache): Pass architecture to call0_analyze_prologue.
811 (xtensa_skip_prologue): Likewise.
812
813 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
814
815 * defs.h (strlen_paddr, paddr, paddr_nz): Remove.
816 (paddress): Add GDBARCH parameter.
817 * utils.c (strlen_paddr, paddr, paddr_nz): Remove.
818 (paddress): Add GDBARCH parameter, use it instead of current_gdbarch.
819 * ui-out.h (ui_out_field_core_addr): Add GDBARCH parameter.
820 * ui-out.c (ui_out_field_core_addr): Add GDBARCH parameter,
821 use it instead of current_gdbarch.
822
823 Update calls to ui_out_field_core_addr to pass architecture:
824 * ada-lang.c (print_one_exception): Update.
825 * breakpoint.c (print_one_breakpoint_location,
826 print_one_exception_catchpoint): Update.
827 * disasm.c (dump_insns): Update.
828 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
829 * mi/mi-main.c (mi_cmd_data_read_memory): Update.
830 * mi/mi-symbol-cmds.c: Include "objfiles.h".
831 (mi_cmd_symbol_list_lines): Update.
832 * stack.c (print_frame_info, print_frame): Update.
833
834 Update callers of paddress to pass architecture:
835 * ada-tasks.c (info_task): Update.
836 * ada-valprint.c (ada_val_print_1): Update.
837 * annotate.c (annotate_source, annotate_frame_begin): Update.
838 * breakpoint.c (insert_bp_location, describe_other_breakpoints,
839 mention): Update.
840 * cli/cli-cmds.c (edit_command, list_command, print_disassembly):
841 Update.
842 * corefile.c (memory_error): Update.
843 * c-valprint.c (print_function_pointer_address, c_val_print): Update.
844 * disasm.c (dis_asm_print_address): Update.
845 * exec.c (print_section_info): Update.
846 * f-valprint.c (f_val_print): Update.
847 * infcmd.c: Include "arch-utils.h".
848 (jump_command, program_info): Update.
849 * linux-fork.c: Include "arch-utils.h".
850 (info_forks_command): Update.
851 * m2-valprint.c (print_function_pointer_address,
852 print_unpacked_pointer, print_variable_at_address,
853 m2_val_print): Update.
854 * m32r-rom.c (m32r_load_section, m32r_load, m32r_upload_command):
855 Update.
856 * printcmd.c (print_address, print_address_demangle, address_info):
857 Update.
858 * p-valprint.c (pascal_val_print): Update.
859 * source.c: Include "arch-utils.h".
860 (line_info): Update.
861 * stack.c (frame_info, print_block_frame_labels): Update.
862 * symfile.c (add_symbol_file_command, list_overlays_command): Update.
863 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1,
864 print_symbol, print_partial_symbols, maintenance_info_psymtabs,
865 maintenance_check_symtabs): Update.
866 * symtab.c (find_pc_sect_symtab): Update.
867 * target.c (deprecated_debug_xfer_memory): Update.
868 * tracepoint.c (scope_info): Update.
869 * tui/tui-stack.c (tui_make_status_line): Update.
870 * valprint.c (val_print_string): Update.
871
872 Update callers of paddr_nz to use paddress instead (keeping
873 user-visible output identical):
874 * alpha-tdep.c (alpha_heuristic_proc_start): Update.
875 * amd64-tdep.c (fixup_riprel, amd64_displaced_step_copy_insn,
876 amd64_displaced_step_fixup): Update.
877 * arch-utils.c (simple_displaced_step_copy_insn): Update.
878 * auxv.c (fprint_target_auxv): Update.
879 * breakpoint.c (insert_single_step_breakpoint): Update.
880 * buildsym.c (finish_block): Update.
881 * cli/cli-dump.c (restore_section_callback): Update.
882 * fbsd-nat.c (fbsd_find_memory_regions): Update.
883 * frame.c (frame_unwind_register_value): Update.
884 * gcore.c (gcore_create_callback): Update.
885 * hppa-tdep.c (hppa_frame_cache, hppa_skip_trampoline_code): Update.
886 * i386-tdep.c (i386_displaced_step_fixup, i386_record_modrm,
887 i386_record_lea_modrm_addr, i386_record_lea_modrm,
888 i386_process_record): Update.
889 * ia64-tdep.c (ia64_frame_this_id, ia64_sigtramp_frame_this_id,
890 ia64_libunwind_frame_this_id, ia64_libunwind_sigtramp_frame_this_id,
891 ia64_dummy_id, ia64_access_reg, ia64_access_rse_reg): Update.
892 * infrun.c (displaced_step_prepare, displaced_step_fixup,
893 handle_inferior_event, insert_step_resume_breakpoint_at_sal,
894 insert_longjmp_resume_breakpoint): Update.
895 * linux-nat.c (linux_nat_find_memory_regions): Update.
896 * linux-record.c (record_linux_system_call): Update.
897 * mips-tdep.c (heuristic_proc_start, mips_eabi_push_dummy_call,
898 mips_n32n64_push_dummy_call, mips_o32_push_dummy_call,
899 mips_o64_push_dummy_call): Update.
900 * monitor.c (monitor_error, monitor_remove_breakpoint): Update.
901 * record.c (record_arch_list_add_mem, record_wait,
902 record_xfer_partial): Update.
903 * remote-mips.c (mips_fetch_word, mips_check_lsi_error,
904 mips_common_breakpoint): Update.
905 * remote-sim.c (gdbsim_xfer_inferior_memory): Update.
906 * rs6000-tdep.c (ppc_displaced_step_fixup): Update.
907 * solib-som.c (som_current_sos): Update.
908 * symfile.c (load_progress, generic_load): Update.
909 * symfile-mem.c (add_vsyscall_page): Update.
910 * valops.c (value_fetch_lazy): Update.
911 * windows-tdep.c (windows_xfer_shared_library): Update.
912
913 Update callers of paddr_nz to use paddress instead (changing
914 user-visible output to make it more correct):
915 * dwarf2loc.c (locexpr_describe_location): Update.
916 * ia64-tdep.c (ia64_memory_insert_breakpoint,
917 ia64_memory_remove_breakpoint): Update.
918 * jv-valprint.c (java_value_print): Update.
919 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
920 * monitor.c (monitor_read_memory): Update.
921
922 Update callers of paddr to use paddress instead (changing
923 user-visible output to make it more correct):
924 * arm-tdep.c (arm_push_dummy_call): Update.
925 * breakpoint.c (insert_bp_location, create_thread_event_breakpoint,
926 create_breakpoint): Update.
927 * darwin-nat-info.c (darwin_debug_regions): Update.
928 * dcache.c (dcache_info): Update.
929 * dsrec.c (load_srec, make_srec): Update.
930 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program,
931 dwarf2_frame_cache): Update.
932 * gcore.c (gcore_copy_callback): Update.
933 * gnu-nat.c (gnu_xfer_memory): Update.
934 * mips-linux-nat.c (mips_show_dr): Update.
935 * monitor.c (monitor_write_memory, monitor_insert_breakpoint,
936 monitor_remove_breakpoint): Update.
937 * remote.c (compare_sections_command): Update.
938 * remote-m32r-sdi.c (m32r_xfer_memory, m32r_insert_breakpoint,
939 m32r_remove_breakpoint, m32r_insert_watchpoint,
940 m32r_remove_watchpoint): Update.
941 * sol-thread.c (info_cb): Update.
942 * symfile.c (load_progress): Update.
943
944 Update callers of paddress or paddr_nz to use hex_string instead
945 (changes output of internal/error/debug messages only):
946 * dwarf2read.c (dump_die_shallow): Update.
947 * frame.c (fprint_field, fprint_frame, frame_pc_unwind,
948 get_frame_func, create_new_frame): Update.
949 * hppa-tdep.c (find_unwind_entry, unwind_command): Update.
950 * ia64-tdep.c (get_kernel_table, ia64_find_proc_info_x,
951 ia64_get_dyn_info_list): Update.
952 * maint.c (maintenance_translate_address): Update.
953 * mi/mi-cmd-var.c (mi_cmd_var_create): Update.
954 * target.c (target_flash_erase): Update.
955
956 Update callers of paddr/paddr_nz to use phex/phex_nz instead,
957 using an appropriate address size. Remove use of strlen_paddr.
958 * exec.c (exec_files_info): Update.
959 * i386-nat.c (i386_show_dr): Update.
960 * remote.c (remote_flash_erase): Update.
961 * m32r-rom.c (m32r_load_section): Update.
962 * monitor.c (monitor_vsprintf, monitor_store_register): Update.
963 * remote.c (remote_check_symbols, remote_search_memory): Update.
964 * remote-mips.c (mips_request, mips_common_breakpoint): Update.
965 * scm-valprint.c (scm_ipruk, scm_scmval_print): Update.
966 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Update.
967 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs,
968 sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs,
969 sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
970 sh_dsp_show_regs): Update.
971 * xcoffsolib.c (sharedlibrary_command): Update.
972
973
974 * maint.c (maint_print_section_info): Add ADDR_SIZE parameter.
975 Use hex_string_custom instead of paddr.
976 (print_bfd_section_info): Pass address size.
977 (print_objfile_section_info): Likewise.
978
979 * annotate.h (annotate_source): Add GDBARCH parameter.
980 (annotate_frame_begin): Likewise.
981 * annotate.c (annotate_source): Add GDBARCH parameter.
982 (annotate_frame_begin): Likewise.
983 * source.c (identify_source_line): Update call to annotate_source.
984 * stack.c (print_frame_info, print_frame): Update call to
985 annotate_frame_begin.
986
987 * breakpoint.c (describe_other_breakpoints): Add GDBARCH parameter.
988 (create_breakpoint, create_ada_exception_breakpoint): Update call.
989
990 * stack.c (print_block_frame_labels): Add GDBARCH parameter.
991 (print_frame_label_vars): Update call.
992
993 * symmisc.c (print_partial_symbols): Add GDBARCH parameter.
994 (dump_psymtab): Update call to print_partial_symbols.
995 (struct print_symbol_args): Add GDBARCH member.
996 (dump_symtab_1): Set print_symbol_args architecture member.
997 (print_symbol): Use it.
998
999 * windows-tdep.h (windows_xfer_shared_library): Add GDBARCH
1000 parameter.
1001 * windows-tdep.c (windows_xfer_shared_library): Likewise.
1002 * i386-cygwin-tdep.c (struct cpms_data): Add GDBARCH member.
1003 (core_process_module_section): Pass architecture from cpms_data to
1004 windows_xfer_shared_library.
1005 (windows_core_xfer_shared_libraries): Initialize cmps_data
1006 architecture member.
1007 * windows-nat.c (windows_xfer_shared_libraries): Pass architecture
1008 to windows_xfer_shared_library.
1009
1010 * defs.h (print_address): Add GDBARCH parameter.
1011 * printcmd.c (print_address): Add GDBARCH parameter.
1012 (print_scalar_formatted, do_examine): Update call.
1013 * findcmd.c (find_command): Update call.
1014 * tracepoint.c: Include "arch-utils.h".
1015 (trace_find_line_command): Update call.
1016 * tui/tui-disasm.c (tui_disassemble): Update call.
1017
1018 * value.h (print_address_demangle): Add GDBARCH parameter.
1019 * printcmd.c (print_address_demangle): Add GDBARCH parameter.
1020 * c-valprint.c (print_function_pointer_address, c_val_print):
1021 Update call.
1022 * f-valprint.c (f_val_print): Update call.
1023 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update call.
1024 * jv-valprint.c (java_val_print): Update call.
1025 * m2-valprint.c (print_function_pointer_address, m2_val_print):
1026 Update call.
1027 * p-valprint.c (pascal_val_print): Update call.
1028
1029 * disasm.c (gdb_disassemble_info): Install architecture into
1030 di.application_data field.
1031
1032 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1033
1034 * disasm.h (gdb_disassembly): Add GDBARCH parameter.
1035 (gdb_print_insn): Likewise.
1036 * disasm.c (dump_insns): Add GDBARCH parameter. Use it instead
1037 of current_gdbarch.
1038 (do_mixed_source_and_assembly): Add GDBARCH parameter. Pass to
1039 dump_insns.
1040 (do_assembly_only): Likewise.
1041 (gdb_disassembly): Add GDBARCH parameter. Use it instead of
1042 current_gdbarch. Pass to subroutines.
1043 (gdb_print_insn): Add GDBARCH parameter. Use it instead of
1044 current_gdbarch.
1045
1046 * stack.c (struct gdb_disassembly_stub_args): Add GDBARCH member.
1047 (gdb_disassembly_stub): Pass architecture to gdb_disassembly.
1048 (do_gdb_disassembly): Add GDBARCH argument. Store into args.
1049 (print_frame_info): Pass architecture to do_gdb_disassembly.
1050
1051 * printcmd.c (print_formatted): Pass architecture to gdb_print_insn.
1052
1053 * mi/mi-cmd-disas.c: Include "arch-utils.h"
1054 (mi_cmd_disassemble): Pass architecture to gdb_disassembly.
1055
1056 * cli/cli-cmds.c: Include "arch-utils.h".
1057 (print_disassembly): Add GDBARCH parameter. Pass to gdb_disassembly
1058 and tui_show_assembly.
1059 (disassemble_current_function): Pass architecture to
1060 tui_get_low_disassembly_address and print_disassembly.
1061 (disassemble_command): Pass architecture to
1062 tui_get_low_disassembly_address and print_disassembly.
1063
1064 * tui/tui.c (tui_show_assembly): Add GDBARCH parameter. Pass to
1065 tui_update_source_windows_with_addr.
1066
1067 * tui/tui-data.h (struct tui_locator_element): Add GDBARCH member.
1068 (struct tui_source_info): Likewise.
1069 * tui/tui-data.c (tui_clear_win_detail): Clear source_info.gdbarch.
1070
1071 * tui/tui-disasm.c (tui_disassemble): Add GDBARCH parameter.
1072 Pass to gdb_print_insn.
1073 (tui_find_disassembly_address): Add GDBARCH parameter. Pass to
1074 tui_disassemble.
1075 (tui_set_disassem_content): Add GDBARCH parameter. Install into
1076 source_info.gdbarch. Pass to tui_disassemble.
1077 (tui_show_disassem): Add GDBARCH parameter. Pass to
1078 tui_update_source_window.
1079 (tui_show_disassem_and_update_source): Add GDBARCH parameter. Pass to
1080 tui_show_disassem and tui_update_source_window.
1081
1082 (tui_get_begin_asm_address): Return locator architecture in addition
1083 to locator PC value.
1084
1085 (tui_get_low_disassembly_address): Add GDBARCH parameter. Pass to
1086 tui_get_low_disassembly_address.
1087
1088 (tui_vertical_disassem_scroll): Pass architecture to subroutines.
1089
1090 * tui/tui-disasm.h (tui_set_disassem_content): Add GDBARCH parameter.
1091 (tui_show_disassem): Likewise.
1092 (tui_show_disassem_and_update_source): Likewise.
1093 (tui_get_begin_asm_address): Return architecture and PC value.
1094
1095 * tui/tui.h (tui_get_low_disassembly_address): Add GDBARCH parameter.
1096 (tui_show_assembly): Add GDBARCH parameter.
1097
1098 * tui/tui-layout.c (extract_display_start_addr): Return current window
1099 architecture in addition to current PC value.
1100
1101 (tui_set_layout): Update calls to tui_get_low_disassembly_address and
1102 extract_display_start_addr. Pass architecture to
1103 tui_update_source_windows_with_addr.
1104
1105 * tui/tui-source.c: Include "objfiles.h".
1106 (tui_set_source_content): Initialize window architecture.
1107 (tui_show_symtab_source): Add GDBARCH parameter. Pass to
1108 tui_update_source_window_as_is
1109
1110 * tui/tui-source.h (tui_show_symtab_source): Add GDBARCH parameter.
1111
1112 * tui/tui-stack.c (tui_set_locator_info): Add GDBARCH parameter.
1113 Install locator architecture.
1114 (tui_set_locator_filename): Update call.
1115 (tui_show_frame_info): Pass architecture to tui_set_locator_info
1116 and subroutines.
1117
1118 * tui/tui-win.c (make_visible_with_new_height): Pass architecture
1119 to tui_update_source_window.
1120
1121 * tui/tui-winsource.c: Include "objfiles.h".
1122 (tui_display_main): Update call to tui_get_begin_asm_address.
1123 Pass architecture to tui_update_source_windows_with_addr.
1124 (tui_update_source_window): Add GDBARCH parameter. Pass to
1125 tui_update_source_window_as_is.
1126 (tui_update_source_window_as_is): Add GDBARCH parameter.
1127 Pass to tui_set_disassem_content.
1128 (tui_update_source_windows_with_addr): Add GDBARCH parameter.
1129 Pass to subroutines.
1130 (tui_update_source_windows_with_line): Pass objfile architecture
1131 to subroutines.
1132 (tui_horizontal_source_scroll): Pass architecture to
1133 tui_update_source_window_as_is.
1134
1135 * tui/tui-winsource.h (tui_update_source_window): Add GDBARCH
1136 parameter.
1137 (tui_update_source_window_as_is): Likewise.
1138 (tui_update_source_windows_with_addr): Likewise.
1139
1140 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1141
1142 * breakpoint.h (struct breakpoint): New member GDBARCH.
1143 * breakpoint.c: Include "arch-utils.h".
1144 (set_raw_breakpoint_without_location): Add GDBARCH parameter.
1145 Use it to set breakpoint architecture.
1146 (set_raw_breakpoint): Add GDBARCH parameter.
1147 (create_internal_breakpoint): Likewise.
1148 (create_catchpoint): Likewise.
1149 (create_fork_vfork_event_catchpoint): Likewise.
1150 (create_breakpoint): Likewise.
1151 (create_breakpoints): Likewise.
1152 (break_command_really): Likewise.
1153 (create_ada_exception_breakpoint): Likewise.
1154 Update local callers to pass architecture:
1155 (create_internal_breakpoint): Update.
1156 (create_overlay_event_breakpoint): Update.
1157 (create_longjmp_master_breakpoint): Update.
1158 (create_thread_event_breakpoint): Update.
1159 (create_solib_event_breakpoint): Update.
1160 (create_catchpoint): Update.
1161 (create_fork_vfork_event_catchpoint): Update.
1162 (set_momentary_breakpoint): Update.
1163 (clone_momentary_breakpoint): Update.
1164 (create_breakpoint): Update.
1165 (create_breakpoints): Update.
1166 (break_command_really): Update.
1167 (break_command_1): Update.
1168 (set_breakpoint): Update.
1169 (watch_command_1): Update.
1170 (catch_fork_command_1): Update.
1171 (catch_exec_commnd_1): Update.
1172 (handle_gnu_v3_exceptions): Update.
1173 (create_ada_exception_breakpoint): Update.
1174 (catch_ada_exception_command): Update.
1175 (catch_assert_command): Update.
1176 (trace_command): Update.
1177
1178 * breakpoint.h (struct bp_location): New member GDBARCH.
1179 * breakpoint.c (get_sal_arch): New function.
1180 (set_raw_breakpoint): Set location architecture.
1181 (add_location_to_breakpoint): Likewise.
1182 (clone_momentary_breakpoint): Likewise.
1183 (watch_command_1): Likewise.
1184 (update_watchpoint): Likewise.
1185 (bp_loc_is_permanent): Use location architecture instead of
1186 current_gdbarch.
1187 (adjust_breakpoint_address): Add GDBARCH parameter; use it
1188 instead of current_gdbarch.
1189 Update callers of adjust_breakpoint_address to pass
1190 breakpoint location architecture:
1191 (set_raw_breakpoint): Update.
1192 (watch_command_1): Update.
1193
1194 * tracepoint.c: (collect_symbol): Add GDBARCH parameter, use instead
1195 of current_gdbarch.
1196 (add_local_symbols): Add GDBARCH parameter. Pass to collect_symbol.
1197 (encode_actions): Pass tracepoint architecture to add_local_symbols
1198 (encode_actions): Use tracepoint architecture instead of
1199 current_gdbarch. Pass it to add_local_symbols and collect_symbol.
1200
1201 * breakpoint.h (struct breakpoint_ops): Replace last_addr parameter
1202 of print_one callback with last_loc.
1203 * breakpoint.c (print_one_breakpoint_location): Replace last_addr
1204 parameter with last_loc.
1205 (print_one_breakpoint): Likewise.
1206 (do_captured_breakpoint_query): Update call.
1207 (breakpoint_1): Pass last_loc instead of last_addr to
1208 print_one_breakpoint. Pass last location architecture instead of
1209 current_gdbarch to set_next_address.
1210 Update all implementations of the print_one callback:
1211 * breakpoint.c (print_one_catch_fork): Update.
1212 (print_one_catch_vfork): Update.
1213 (print_one_catch_exec): Update.
1214 (print_one_exception_catchpoint): Update.
1215 * ada-lang.c (print_one_exception): Update.
1216 (print_one_catch_exception): Update.
1217 (print_one_catch_exception_unhandled): Update.
1218 (print_one_catch_assert): Update.
1219
1220 * breakpoint.c (print_one_breakpoint_location): Add PRINT_ADDRESS_BITS
1221 parameter. Use it instead of gdbarch_addr_bit (current_gdbarch).
1222 (print_one_breakpoint): Add PRINT_ADDRESS_BITS parameter and pass it
1223 to print_one_breakpoint_location.
1224 (breakpoint_address_bits): New function.
1225 (do_captured_breakpoint_query): Compute number of address bits to print
1226 and pass it to print_one_breakpoint.
1227 (breakpoint_1): Likewise. Use it instead of current_gdbarch.
1228
1229 * breakpoint.h (create_thread_event_breakpoint): Add GDBARCH.
1230 * breakpoint.c (create_thread_event_breakpoint): Likewise.
1231 Update callers to create_thread_event_breakpoint:
1232 * aix-thread.c (pd_enable): Update.
1233 * linux-thread-db.c (enable_thread_event): Update.
1234
1235 * breakpoint.h (create_solib_event_breakpoint): Add GDBARCH.
1236 * breakpoint.c (create_solib_event_breakpoint): Likewise.
1237 Update callers to create_solib_event_breakpoint:
1238 * solib-frv.c (enable_break, enable_break2): Update.
1239 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1240 * solib-som.c (som_solib_create_inferior_hook): Update.
1241 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1242 * solib-svr4.c (enable_break): Update.
1243
1244 * breakpoint.h (insert_single_step_breakpoint): Add GDBARCH.
1245 * breakpoint.c (insert_single_step_breakpoint): Likewise.
1246 Update callers to insert_single_step_breakpoint:
1247 * alpha-tdep.c (alpha_software_single_step): Update.
1248 * arm-linux-tdep.c (arm_linux_software_single_step): Update.
1249 * arm-tdep.c (arm_software_single_step): Update.
1250 * cris-tdep.c (cris_software_single_step): Update.
1251 * rs6000-aix-tdep.c (rs6000_software_single_step): Update.
1252 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Update.
1253 * sparc-tdep.c (sparc_software_single_step): Update.
1254 * spu-tdep.c (spu_software_single_step): Update.
1255 * mips-tdep.c (deal_with_atomic_sequence): Add GDBARCH parameter.
1256 Pass it to insert_single_step_breakpoint.
1257 (mips_software_single_step): Pass architecture to
1258 deal_with_atomic_sequence and insert_single_step_breakpoint.
1259
1260 * breakpoint.h (deprecated_insert_raw_breakpoint): Add GDBARCH.
1261 (deprecated_remove_raw_breakpoint): Likewise.
1262 * breakpoint.c (deprecated_insert_raw_breakpoint): Add GDBARCH.
1263 (deprecated_remove_raw_breakpoint): Likewise.
1264 Update callers to deprecated_insert_raw_breakpoint and
1265 deprecated_remove_raw_breakpoint:
1266 * breakpoint.c (single_step_gdbarch): New static variable.
1267 (insert_single_step_breakpoint): Pass GDBARCH parameter to
1268 deprecated_insert_raw_breakpoint. Store it in single_step_gdbarch.
1269 (remove_single_step_breakpoints): Pass architecture stored in
1270 single_step_gdbarch to deprecated_remove_raw_breakpoint.
1271 * rs6000-nat.c (exec_one_dummy_insn): Update.
1272 * solib-irix.c (enable_break, disable_break): Update.
1273 * procfs.c (procfs_mourn_inferior): Update.
1274 (remove_dbx_link_breakpoint): Update.
1275
1276 * breakpoint.h (set_breakpoint): Add GDBARCH parameter.
1277 (set_momentary_breakpoint, set_momentary_breakpoint_at_pc): Likewise.
1278 * breakpoint.c (set_breakpoint): Add GDBARCH parameter.
1279 (set_momentary_breakpoint, set_momentary_breakpoint_at_pc): Likewise.
1280 Update callers to set_breakpoint, set_momentary_breakpoint and
1281 set_momentary_breakpoint_at_pc:
1282 * breakpoint.c (set_momentary_breakpoint_at_pc): Update.
1283 (until_break_command): Update.
1284 * infcall.c (call_function_by_hand): Update.
1285 * infcmd.c (finish_backward, finish_forward): Update.
1286 * infrun.c (insert_step_resume_breakpoint_at_sal): Add GDBARCH
1287 parameter. Pass it to set_momentary_breakpoint.
1288 (insert_longjmp_resume_breakpoint): Add GDBARCH parameter.
1289 Pass it to set_momentary_breakpoint_at_pc.
1290 (handle_inferior_event): Update.
1291 (insert_step_resume_breakpoint_at_frame): Update.
1292 (insert_step_resume_breakpoint_at_caller): Update..
1293 * mi/mi-cmd-break.c: Include "arch-utils.h".
1294 (mi_cmd_break_insert): Update.
1295
1296 * target.h (struct target_ops): Add GDBARCH parameter to
1297 to_insert_breakpoint, to_remove_breakpoint, to_insert_hw_breakpoint,
1298 and to_remove_hw_breakpoint members.
1299 (target_insert_breakpoint, target_remove_breakpoint,
1300 target_insert_hw_breakpoint, target_remove_hw_breakpoint): Add GDBARCH
1301 parameter, pass to target routine.
1302 (memory_remove_breakpoint, memory_insert_breakpoint): Add GDBARCH
1303 parameter.
1304 * target.c (debug_to_insert_breakpoint, debug_to_remove_breakpoint,
1305 debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint): Add
1306 GDBARCH parameter, pass to target routine.
1307 (update_current_target): Update function signature.
1308 * breakpoint.c (insert_bp_location, remove_breakpoint,
1309 deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint):
1310 Pass architecture to target_ routines.
1311 Update all implementations of the target breakpoint routines to take
1312 GDBARCH parameter and use it instead of GDBARCH as appropriate:
1313 * corelow.c (ignore): Update.
1314 * exec.c (ignore): Update.
1315 * mem-break.c (memory_insert_breakpoint): Update.
1316 (memory_remove_breakpoint): Update.
1317 * monitor.c (monitor_insert_breakpoint): Update.
1318 (monitor_remove_breakpoint): Update.
1319 * record.c (record_insert_breakpoint): Update.
1320 (record_beneath_to_insert_breakpoint): Update.
1321 (record_remove_breakpoint): Update.
1322 (record_beneath_to_remove_breakpoint): Update.
1323 * remote.c (remote_insert_breakpoint): Update.
1324 (remote_remove_breakpoint): Update.
1325 (remote_insert_hw_breakpoint): Update.
1326 (remote_remove_hw_breakpoint): Update.
1327 * remote-m32r-sdi.c (m32r_insert_breakpoint): Update.
1328 (m32r_remove_breakpoint): Update.
1329 * remote-mips.c (mips_insert_breakpoint): Update.
1330 (mips_remove_breakpoint): Update.
1331 * i386-nat.c (i386_insert_hw_breakpoint): Update.
1332 (i386_remove_hw_breakpoint): Update.
1333 * nto-procfs.c (procfs_insert_breakpoint): Update.
1334 (procfs_remove_breakpoint): Update.
1335 (procfs_insert_hw_breakpoint): Update.
1336 (procfs_remove_hw_breakpoint): Update.
1337
1338 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1339
1340 * frame.h (frame_unwind_arch): New.
1341 (frame_unwind_caller_arch): Likewise.
1342 * frame-unwind.h (frame_prev_arch_ftype): New type.
1343 (struct frame_unwind): New member prev_arch.
1344 * frame.c (struct frame_info): New member prev_arch.
1345 (frame_unwind_arch): New function.
1346 (frame_unwind_caller_arch): Likewise..
1347 (get_frame_arch): Reimplement in terms of frame_unwind_arch.
1348 * sentinel-frame.c (sentinel_frame_prev_arch): New function.
1349 (sentinel_frame_unwinder): Install it.
1350
1351 * frame.c (frame_pc_unwind): Use frame_unwind_arch instead
1352 of get_frame_arch.
1353 (frame_unwind_register_value): Likewise.
1354 (frame_unwind_register_signed): Likewise.
1355 (frame_unwind_register_unsigned): Likewise.
1356 * frame-unwind.c (frame_unwind_got_optimized): Likewise.
1357 (frame_unwind_got_register): Likewise.
1358 (frame_unwind_got_constant): Likewise.
1359 (frame_unwind_got_bytes): Likewise.
1360 (frame_unwind_got_address): Likewise.
1361
1362 * frame.h (enum frame_type): New value ARCH_FRAME.
1363 * frame.c (fprint_frame_type): Handle ARCH_FRAME.
1364 * stack.c (print_frame_info): Likewise.
1365
1366 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1367
1368 * target.h (struct target_ops): New member to_thread_architecture.
1369 (target_thread_architecture): New macro.
1370 * target.c (update_current_target): Inherit to_thread_architecture.
1371 (default_thread_architecture): New function.
1372 (debug_to_thread_architecture): New function.
1373 (setup_target_debug): Handle to_thread_architecture.
1374
1375 * regcache.h (get_thread_arch_regcache): New.
1376 * regcache.c (struct regcache_list): New data type.
1377 (current_regcache): Hold regcache list instead of single regcache.
1378 (current_thread_ptid, current_thread_arch): New static variables.
1379 (get_thread_arch_regcache): New function.
1380 (get_thread_regcache): Use it. Call target_thread_architecture.
1381 (regcache_thread_ptid_changed): Update to current_regcache changes.
1382 (registers_changed): Likewise. Reset current_thread_arch and
1383 current_thread_ptid.
1384
1385 * remote.c (remote_wait): Access target registers in target_gdbarch.
1386 * linux-nat.c (linux_nat_do_thread_registers): Likewise.
1387 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
1388 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
1389 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
1390 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
1391 * solib-svr4.c (enable_break): Likewise.
1392 (svr4_relocate_main_executable): Likewise.
1393
1394 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1395
1396 * python/python-internal.h (struct language_defn): Declare.
1397 (python_gdbarch, python_language): Likewise.
1398 (ensure_python_env): Add prototype.
1399 (make_cleanup_py_restore_gil): Remove prototype.
1400
1401 * python/python.c: Include "arch-utils.h", "value.h" and "language.h".
1402 (python_gdbarch, python_language): New global variables.
1403 (struct python_env): New data type.
1404 (ensure_python_env, restore_python_env): New functions.
1405 (eval_python_from_control_command): Call ensure_python_env to
1406 install current architecture and language.
1407 (python_command, gdbpy_new_objfile): Likewise.
1408 * python/python-cmd.c: Include "arch-utils.h" and "language.h".
1409 (cmdpy_destroyer, cmdpy_function, cmdpy_completer): Call
1410 ensure_python_env.
1411 * python/python-type.c (clean_up_objfile_types): Likewise.
1412 * python/python-objfile.c: Include "language.h".
1413 (clean_up_objfile): Call ensure_python_env.
1414 * python/python-prettyprint.c (apply_val_pretty_printer): Likewise.
1415 (apply_varobj_pretty_printer): Do not call PyGILState_Ensure.
1416 * varobj.c (varobj_ensure_python_env): New helper function.
1417 (varobj_get_display_hint, update_dynamic_varobj_children,
1418 install_default_visualizer, varobj_set_visualizer, free_variable,
1419 value_get_print_value): Call it.
1420 (value_get_print_value): Add varobj argument instead of pretty
1421 printer argument. Update all callers.
1422
1423 * python/python-utils.c (py_gil_restore, make_cleanup_py_restore_gil):
1424 Remove.
1425
1426 * value.h (internal_function_fn): Add GDBARCH and LANGUAGE argument.
1427 (call_internal_function): Likewise.
1428 * value.c (call_internal_function): Likewise. Pass to handler.
1429 * eval.c (evaluate_subexp_standard): Update call.
1430 * python/python-function.c: Include "language.h".
1431 (fnpy_call): Add GDBARCH and LANGAUAGE arguments and call
1432 make_cleanup_python_env.
1433
1434 * python/python-value.c (builtin_type_pyint, builtin_type_pyfloat,
1435 builtin_type_pylong, builtin_type_pybool, builtin_type_pychar,
1436 valpy_str): Use python_gdbarch and python_language instead of
1437 current_gdbarch and current_language.
1438 * python/python-type.c (typy_lookup_typename): Likewise.
1439
1440 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1441
1442 * arch-utils.c (selected_byte_order): Return target_byte_order_user.
1443 (show_endian): Use target_byte_order_user if specified; otherwise
1444 use get_current_arch () instead of current_gdbarch.
1445 (show_architecture): Use set_architecture_string if specified;
1446 otherwise use get_current_arch () instead of current_gdbarch.
1447 (get_current_arch): New function.
1448 * arch-utils.h (get_current_arch): Add prototype.
1449
1450 * osabi.c (show_osabi): Use get_current_arch () instead of
1451 current_gdbarch.
1452
1453 * findcmd.c: Include "arch-utils.h".
1454 (parse_find_args): Add BIG_P argument. Use it instead of byte order
1455 of current_gdbarch.
1456 (find_command): Use get_current_arch () instead of current_gdbarch.
1457 Pass byte order to parse_find_args.
1458
1459 * maint.c: Include "arch-utils.h".
1460 (maintenance_print_architecture): Use get_current_arch () instead
1461 of current_gdbarch.
1462
1463 * reggroups.c: Include "arch-utils.h".
1464 (maintenance_print_reggroups): Use get_current_arch () instead
1465 of current_gdbarch.
1466
1467 * symfile.c: Include "arch-utils.h".
1468 (overlay_load_command): Use get_current_arch () instead of
1469 current_gdbarch.
1470
1471 * value.c: Include "arch-utils.h".
1472 (show_convenience): Use get_current_arch () instead of
1473 current_gdbarch.
1474
1475 * tui/tui-regs.c: Include "arch-utils.h".
1476 (tui_reg_next_command): Use get_current_arch () instead of
1477 current_gdbarch.
1478
1479 * mi/mi-main.c: Include "arch-utils.h".
1480 (mi_cmd_data_read_memory): Use get_current_arch () instead of
1481 current_gdbarch.
1482
1483 * parse.c: Include "arch-utils.h".
1484 (parse_exp_in_context): Use get_current_arch () instead of
1485 current_gdbarch.
1486
1487 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1488
1489 * gdbtypes.c (make_pointer_type, make_reference_type,
1490 smash_to_memberptr_type, lookup_array_range_type, check_stub_method):
1491 Use type architecture instead of current_gdbarch.
1492
1493 * gdbtypes.h (address_space_name_to_int, address_space_int_to_name):
1494 Add GDBARCH paramter.
1495 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name):
1496 Add GDBARCH parameter. Use it instead of current_gdbarch.
1497 * c-typeprint.c (c_type_print_modifier): Update call.
1498 * parse.c (push_type_address_space): Likewise.
1499
1500 * findvar.c (extract_typed_address, store_typed_address): Use type
1501 architecture instead of current_gdbarch.
1502
1503 * value.c (value_as_address, unpack_field_as_long): Use type architecture
1504 instead of current_gdbarch.
1505
1506 * doublest.c (floatformat_from_length): Add GDBARCH argument. Use it
1507 instead of current_gdbarch.
1508 (floatformat_from_type): Pass type architecture.
1509
1510 * infcall.c (find_function_addr): Use type architecture instead
1511 of current_gdbarch.
1512
1513 * valarith.c (value_bitstring_subscript, value_x_binop, value_neg,
1514 value_bit_index): Use type architecture instead of current_gdbarch.
1515 * valops.c (value_cast, value_slice): Likewise.
1516
1517 * value.h (modify_field): Add TYPE argument.
1518 * value.c (modify_field): Add TYPE argument. Use type architecture
1519 instead of current_gdbarch.
1520 (set_internalvar_component): Likewise.
1521 * eval.c (evaluate_struct_tuple): Update call.
1522 * valops.c (value_assign): Likewise.
1523 * ada-lang.c (modify_general_field): Likewise. Add TYPE argument.
1524 (make_array_descriptor): Update calls.
1525 (move_bits): Add BITS_BIG_ENDIAN_P argument. Use it instead of
1526 current_gdbarch.
1527 (ada_value_assign, value_assign_to_component): Update calls.
1528 (decode_packed_array, ada_value_primitive_packed_val, ada_value_assign,
1529 value_assign_to_component): Use type arch instead of current_gdbarch.
1530
1531 * printcmd.c (float_type_from_length): Remove GDBARCH argument,
1532 use type architecture instead.
1533 (print_scalar_formatted, printf_command): Update calls. Use type
1534 architecture instead of current_gdbarch.
1535 * valprint.c (val_print_type_code_int): Use type architecture
1536 instead of current_gdbarch.
1537 * varobj.c (value_get_print_value): Likewise.
1538 * python/python-prettyprint.c (print_string_repr): Add GDBARCH
1539 argument. Use it instead of current_gdbarch.
1540 (apply_val_pretty_printer): Update call.
1541
1542 * ada-valprint.c (ada_val_print_1): Use type architecture instead
1543 of current_gdbarch.
1544 * c-valprint.c (print_function_pointer_address): Add GDBARCH argument.
1545 Use it instead of current_gdbarch.
1546 (c_val_print): Update calls passing type architecture.
1547 * f-valprint.c (f_val_print): Use type architecture instead of
1548 current_gdbarch.
1549 * jv-valprint (java_value_print): Likewise.
1550 * m2-valprint.c (print_function_pointer_address): Add GDBARCH argument.
1551 Use it instead of current_gdbarch.
1552 (print_unpacked_pointer): Update calls passing type architecture.
1553 * scm-valprint.c (scm_scmval_print): Use type architecture instead of
1554 current_gdbarch.
1555
1556 * gnu-v3-abi.c (get_class_arch): Remove.
1557 (gnuv3_rtti_type): Use get_type_arch instead of get_class_arch. Remove
1558 special-case check for Java classes.
1559 (gnuv3_virtual_fn_field, gnuv3_baseclass_offset, gnuv3_print_method_ptr,
1560 gnuv3_method_ptr_size, gnuv3_make_method_ptr, gnuv3_method_ptr_to_value):
1561 Use get_type_arch instead of get_class_arch.
1562
1563 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1564
1565 * gdbtypes.h (TYPE_OBJFILE_OWNED, TYPE_OWNER): New macros.
1566 (TYPE_OBJFILE, TYPE_ALLOC, TYPE_ZALLOC): Reimplement.
1567 (alloc_type_arch): Add prototype.
1568 (alloc_type_copy): Likewise.
1569 (get_type_arch): Likewise.
1570 (arch_type): Likewise.
1571 (arch_integer_type): Likewise.
1572 (arch_character_type): Likewise.
1573 (arch_boolean_type): Likewise.
1574 (init_float_type): Remove, replace by ...
1575 (arch_float_type): ... this.
1576 (init_complex_type): Remove, replace by ...
1577 (arch_complex_type): ... this.
1578 (init_flags_type): Remove, replace by ...
1579 (arch_flags_type): ... this.
1580 (init_composite_type): Remove, replace by ...
1581 (arch_composite_type): ... this.
1582
1583 * gdbtypes.c (alloc_type): No longer support NULL objfile.
1584 (init_type): Likewise.
1585 (alloc_type_arch): New function.
1586 (alloc_type_copy): New function.
1587 (get_type_arch): New function.
1588
1589 (smash_type): Preserve type ownership information.
1590 (make_pointer_type, make_reference_type, make_function_type,
1591 smash_to_memberptr_type, smash_to_method_type): No longer
1592 preserve OBJFILE across smash_type calls.
1593 (make_pointer_type, make_reference_type, make_function_type,
1594 lookup_memberptr_type, lookup_methodptr_type, allocate_stub_method,
1595 create_range_type, create_array_type, create_set_type, copy_type):
1596 Use alloc_type_copy when allocating types.
1597 (check_typedef): Use alloc_type_arch.
1598 (copy_type_recursive): Likewise. Preserve type ownership data
1599 after copying type.
1600 (recursive_dump_type): Dump type ownership data.
1601 (alloc_type_instance): Update type ownership check.
1602 (copy_type, copy_type_recursive): Likewise.
1603
1604 (arch_type): New function.
1605 (arch_integer_type): Likewise.
1606 (arch_character_type): Likewise.
1607 (arch_boolean_type): Likewise.
1608 (init_float_type): Remove, replace by ...
1609 (arch_float_type): ... this.
1610 (init_complex_type): Remove, replace by ...
1611 (arch_complex_type): ... this.
1612 (init_flags_type): Remove, replace by ...
1613 (arch_flags_type): ... this.
1614 (append_flags_type_flag): Move down.
1615 (init_composite_type): Remove, replace by ...
1616 (arch_composite_type): ... this.
1617 (append_composite_type_field_aligned,
1618 append_composite_type_field): Move down.
1619
1620 * gdbarch.c (gdbtypes_post_init): Allocate all types
1621 using per-architecture routines.
1622 * ada-lang.c (ada_language_arch_info): Likewise.
1623 * f-lang.c (build_fortran_types): Likewise.
1624 * jv-lang.c (build_java_types): Likewise.
1625 * m2-lang.c (build_m2_types): Likewise.
1626 * scm-lang.c (build_scm_types): Likewise.
1627
1628 * ada-lang.c (ada_type_of_array): Use alloc_type_copy.
1629 (packed_array_type): Likewise.
1630 (ada_template_to_fixed_record_type_1): Likewise.
1631 (template_to_static_fixed_type): Likewise.
1632 (to_record_with_fixed_variant_part): Likewise.
1633 (to_fixed_variant_branch_type): Likewise.
1634 (to_fixed_array_type): Likewise.
1635 (to_fixed_range_type): Likewise.
1636 (empty_record): Use type instead of objfile argument.
1637 Use alloc_type_copy.
1638 (to_fixed_variant_branch_type): Update call to empty_record.
1639 * jv-lang.c (type_from_class): Use alloc_type_arch.
1640
1641 * arm-tdep.c (arm_ext_type): Allocate per-architecture type.
1642 * i386-tdep.c (i386_eflags_type, i386_mxcsr_type, i387_ext_type,
1643 i386_mmx_type, i386_sse_type): Likewise.
1644 * ia64-tdep.c (ia64_ext_type): Likewise.
1645 * m32c-tdep.c (make_types): Likewise.
1646 * m68k-tdep.c (m68k_ps_type, m68881_ext_type): Likewise.
1647 * rs6000-tdep.c (rs6000_builtin_type_vec64,
1648 rs6000_builtin_type_vec128): Likewise.
1649 * sparc-tdep.c (sparc_psr_type, sparc_fsr_type): Likewise.
1650 * sparc64-tdep.c (sparc64_pstate_type, sparc64_fsr_type,
1651 sparc64_fprs_type): Likewise.
1652 * spu-tdep.c (spu_builtin_type_vec128): Likewise.
1653 * xtensa-tdep.c (xtensa_register_type): Likewise.
1654 * linux-tdep.c (linux_get_siginfo_type): Likewise.
1655 * target-descriptions.c (tdesc_gdb_type): Likewise.
1656 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
1657
1658 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1659
1660 * i386-tdep.h (struct gdbarch_tdep): Add i386_eflags_type and
1661 i386_mxcsr_type members.
1662 (i386_eflags_type): Make into function.
1663 (i386_mxcsr_type): Likewise.
1664 * i386-tdep.c (i386_eflags_type): Make into function.
1665 (i386_mxcsr_type): Likewise.
1666 (i386_register_type): Update uses.
1667 (i386_init_types): Remove.
1668 (_initialize_i386_tdep): Do not call it.
1669 * amd64-tdep.c (amd64_register_type): Update uses.
1670
1671 * m68k-tdep.h (struct gdbarch_tdep): Add m68k_ps_type member.
1672 * m68k-tdep.c (m68k_ps_type): Make into function.
1673 (m68k_register_type): Update use.
1674 (m68k_init_types): Remove.
1675 (_initialize_m68k_tdep): Do not call it.
1676
1677 * sparc-tdep.h (struct gdbarch_tdep): Add sparc_psr_type,
1678 sparc_fsr_type, sparc64_pstate_type, sparc64_fsr_type, and
1679 sparc64_fprs_type members.
1680 * sparc-tdep.c (sparc_psr_type): Make into function.
1681 (sparc_fsr_type): Likewise.
1682 (sparc32_register_type): Update uses.
1683 (sparc_init_types): Remove.
1684 (_initialize_sparc_tdep): Do not call it.
1685 * sparc64-tdep.c (sparc64_pstate_type): Make into function.
1686 (sparc64_fsr_type): Likewise.
1687 (sparc64_fprs_type): Likewise.
1688 (sparc64_register_type): Update uses.
1689 (sparc64_init_types): Remove.
1690 (_initialize_sparc64_tdep): Likewise.
1691
1692 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1693
1694 * gdbtypes.h (builtin_type_ieee_single, builtin_type_ieee_double,
1695 builtin_type_i387_ext, builtin_type_m68881_ext, builtin_type_arm_ext,
1696 builtin_type_ia64_spill, builtin_type_ia64_quad): Remove.
1697 (init_float_type, init_complex_type): Add prototypes.
1698 * gdbtypes.c (builtin_type_ieee_single, builtin_type_ieee_double,
1699 builtin_type_i387_ext, builtin_type_m68881_ext, builtin_type_arm_ext,
1700 builtin_type_ia64_spill, builtin_type_ia64_quad): Remove.
1701 (_initialize_gdbtypes): Do not initialize them.
1702 (build_flt): Rename to ...
1703 (init_float_type): ... this. Make global.
1704 (build_complex): Rename to ...
1705 (init_complex_type): ... this. Make global. Remove BIT argument.
1706 (gdbtypes_post_init): Update calls.
1707
1708 * ada-lang.c (ada_language_arch_info): Use init_float_type.
1709 * jv-lang.c (build_java_types): Likewise.
1710 * m2-lang.c (build_m2_types): Likewise.
1711 * f-lang.c (build_fortran_types): Use init_float_type and
1712 init_complex_type.
1713
1714 * target-descriptions.c (tdesc_gdb_type): Call init_float_type instead
1715 of using builtin_type_ieee_single, builtin_type_ieee_double, or
1716 builtin_type_arm_ext.
1717
1718 * ia64-tdep.h (struct gdbarch_tdep): Add ia64_ext_type member.
1719 * ia64-tdep.c (builtin_type_ia64_ext): Remove.
1720 (_initialize_ia64_tdep): Do not initialize it.
1721 (floatformat_valid, floatformat_ia64_ext, floatformats_ia64_ext):
1722 Move up.
1723 (ia64_ext_type): New function.
1724 (ia64_register_reggroup_p, ia64_convert_register_p,
1725 ia64_register_to_value, ia64_value_to_register,
1726 ia64_extract_return_value, ia64_store_return_value): Use ia64_ext_type
1727 instead of builtin_type_ia64_ext.
1728
1729 * i386-tdep.h (struct gdbarch_tdep): Add i387_ext_type member.
1730 (i387_ext_type): Add prototype.
1731 * i386-tdep.c (i387_ext_type): New function.
1732 (i386_extract_return_value, i386_store_return_value,
1733 i386_register_type): Use it instead of builtin_type_i387_ext.
1734 * amd64-tdep.c (amd64_register_type): Likewise.
1735 * i387-tdep.c (print_i387_value, i387_register_to_value,
1736 i387_value_to_register): Likewise.
1737 (print_i387_value, print_i387_ext): Add GDBARCH argument.
1738 (print_i387_ext, i387_print_float_info): Pass to subroutines.
1739
1740 * m68k-tdep.h (struct gdbarch_tdep): Add m68881_ext_type member.
1741 * m68k-tdep.c (m68881_ext_type): New function.
1742 (m68k_register_type, m68k_convert_register_p): Use it instead
1743 of builtin_type_m68881_ext.
1744
1745 * arm-tdep.h (struct gdbarch_tdep): Add arm_ext_type member.
1746 * arm-tdep.c (arm_ext_type): New function.
1747 (arm_register_type): Use it instead of builtin_type_arm_ext.
1748
1749 * alpha-tdep.c (alpha_register_type): Use builtin types
1750 instead of builtin_type_ieee_double.
1751
1752 * mips-tdep.c (mips_float_register_type, mips_double_register_type):
1753 Remove.
1754 (mips_register_type): Use builtin types instead of
1755 builtin_type_ieee_single and builtin_type_ieee_double.
1756 (mips_print_fp_register): Use builtin types instead of
1757 mips_float_register_type and mips_double_register_type.
1758
1759 * hppa-tdep.c (hppa32_register_type, hppa64_register_type):
1760 Use builtin types instead of builtin_type_ieee_single and
1761 builtin_type_ieee_double.
1762
1763 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1764
1765 * gdbtypes.h (builtin_type_int0, builtin_type_int8, builtin_type_uint8,
1766 builtin_type_int16, builtin_type_uint16, builtin_type_int32,
1767 builtin_type_uint32, builtin_type_int64, builtin_type_uint64,
1768 builtin_type_int128, builtin_type_uint128): Remove.
1769 (struct builtin_type): New members builtin_int0, builtin_int8,
1770 builtin_uint8, builtin_int16, builtin_uint16, builtin_int32,
1771 builtin_uint32, builtin_int64, builtin_uint64, builtin_int128,
1772 and builtin_uint128.
1773 * gdbtypes.c (builtin_type_int0, builtin_type_int8, builtin_type_uint8,
1774 builtin_type_int16, builtin_type_uint16, builtin_type_int32,
1775 builtin_type_uint32, builtin_type_int64, builtin_type_uint64,
1776 builtin_type_int128, builtin_type_uint128): Remove.
1777 (_initialize_gdbtypes): Do not initialize them.
1778 (gdbtypes_post_init): Initialize fixed-size integer types.
1779
1780 * dwarf2expr.c (unsigned_address_type, signed_address_type): Add
1781 GDBARCH argument. Return platform-specific type.
1782 (dwarf2_read_address, execute_stack_op): Update calls.
1783
1784 * target-descriptions.c (tdesc_gdb_type): Use platform-specific types
1785 instead of global builtin_int_... variables.
1786 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1787 * printcmd.c (do_examine): Likewise.
1788 * jv-exp.y (parse_number): Likewise.
1789
1790 * alpha-tdep.c (alpha_register_type, alpha_push_dummy_call,
1791 alpha_store_return_value): Likewise.
1792 * amd64-linux-tdep.c (amd64_linux_register_type): Likewise.
1793 * amd64-tdep.c (amd64_register_type): Likewise.
1794 * arm-tdep.c (arm_register_type): Likewise.
1795 * avr-tdep.c (avr_register_type): Likewise.
1796 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
1797 * frv-tdep.c (frv_register_type): Likewise.
1798 * h8300-tdep.c h8300_register_type): Likewise.
1799 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_register_type,
1800 hppa64_register_type): Likewise.
1801 * i386-tdep.c (i386_mmx_type, i386_sse_type): Likewise.
1802 * iq2000-tdep.c (iq2000_register_type): Likewise.
1803 * lm32-tdep.c (lm32_register_type, lm32_push_dummy_call): Likewise.
1804 * m32r-tdep.c (m32r_register_type): Likewise.
1805 * m68hc11-tdep.c (m68hc11_register_type, m68hc11_pseudo_register_read,
1806 m68hc11_pseudo_register_write): Likewise.
1807 * m68k-tdep.c (m68k_register_type): Likewise.
1808 * m88k-tdep.c (m88k_register_type, m88k_store_arguments): Likewise.
1809 * mep-tdep.c (mep_register_type): Likewise.
1810 * mips-tdep.c (mips_register_type, mips_pseudo_register_type,
1811 mips_print_fp_register): Likewise.
1812 * moxie-tdep.c (moxie_register_type): Likewise.
1813 * mt-tdep.c (mt_copro_register_type, mt_register_type): Likewise.
1814 * rs6000-tdep.c (rs6000_builtin_type_vec64,
1815 rs6000_builtin_type_vec128): Likewise.
1816 * score-tdep.c (score_register_type): Likewise.
1817 * sparc-tdep.c (sparc32_register_type, sparc32_store_arguments):
1818 Likewise.
1819 * sparc64-tdep.c (sparc64_register_type, sparc64_store_arguments):
1820 Likewise.
1821 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
1822 * v850-tdep.c (v850_register_type): Likewise.
1823 * xstormy16-tdep.c (xstormy16_register_type): Likewise.
1824 * xtensa-tdep.c (xtensa_register_type): Likewise.
1825
1826 * mt-tdep.c (struct gdbarch_tdep): New data structure.
1827 (mt_gdbarch_init): Alloc TDEP structures.
1828 (mt_register_type): Cache coprocessor type in TDEP instead of
1829 static global variable.
1830
1831 * xtensa-tdep.h (struct gdbarch_tdep): Add type_entries member.
1832 * xtensa-tdep.c (type_entries): Remove.
1833 (xtensa_register_type): Cache fixed-size types in TDEP instead
1834 of in global variable.
1835
1836 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1837
1838 * gdbtypes.h (builtin_type_true_char): Remove.
1839 (builtin_type_true_unsigned_char): Likewise.
1840 (struct builtin_type): Add builtin_true_char and
1841 builtin_true_unsigned_char members.
1842 * gdbtypes.c (builtin_type_true_char): Remove.
1843 (builtin_type_true_unsigned_char): Likewise.
1844 (_initialize_gdbtypes): Do not initialize them.
1845 (gdbtypes_post_init): Initialize builtin_true_char and
1846 builtin_true_unsigned_char members of builtin_type.
1847
1848 * printcmd.c (print_scalar_formatted): Use builtin_type
1849 members instead of builtin_type_true_char and
1850 builtin_type_true_unsigned_char.
1851 * ada-valprint.c (ada_val_print_1): Likewise.
1852
1853 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1854
1855 * gdbtypes.h (builtin_type_void): Remove.
1856 * gdbtypes.c (builtin_type_void): Remove.
1857 (_initialize_gdbtypes): Do not initialize it.
1858
1859 (safe_parse_type): Add GDBARCH argument. Use it to construct
1860 void return type.
1861 (check_stub_method): Update call.
1862
1863 * infcall.c (call_function_by_hand): Use platform-specific type
1864 instead of builtin_type_void.
1865 * valops.c (value_cast): Use input void type instead of
1866 builtin_type_void.
1867
1868 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1869
1870 * ada-lang.c (assign_component): Use platform-specific integer type
1871 instead of builtin_type_int32 type.
1872 (ada_evaluate_subexp) [OP_ATR_SIZE]: Likewise.
1873
1874 * ax-gdb.c (gen_expr) [UNOP_NEG]: Use platform-specific integer type
1875 instead of builtin_type_int8 type.
1876 * valarith.c (value_x_unop): Likewise.
1877 * python/python-value.c (valpy_absolute): Avoid reference to
1878 builtin_type_int8 type.
1879
1880 * eval.c (evaluate_subexp_standard): Use platform-specific integer
1881 type instead of builtin_type_int8 as EVAL_SKIP return value type.
1882 * ada-lang.c (ada_evaluate_subexp): Likewise.
1883 * jv-lang.c (evaluate_subexp_java): Likewise.
1884 * m2-lang.c (evaluate_subexp_modula2): Likewise.
1885 * scm-lang.c (evaluate_exp): Likewise.
1886
1887 * value.h (value_bitstring): Add INDEX_TYPE argument.
1888 * valops.c (value_bitstring): Add INDEX_TYPE argument, use it instead
1889 of builtin_type_int32 as base range type.
1890 * eval.c (evaluate_subexp_standard): Update value_bitstring call.
1891
1892 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1893
1894 * gdbtypes.c (lookup_array_range_type): Add prototype.
1895 (lookup_string_range_type): Likewise.
1896 * gdbtypes.c (lookup_array_range_type): New function.
1897 (lookup_string_range_type): Likewise.
1898
1899 * ax-gdb.c (gen_repeat): Use lookup_array_range_type.
1900 * parse.c (follow_types): Likewise.
1901 * jv-lang.c (java_array_type): Likewise.
1902 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
1903 * mt-tdep.c (mt_register_type): Likewise.
1904 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
1905 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
1906 * value.c (allocate_repeat_value): Likewise.
1907 * valops.c (value_array, value_cstring): Likewise.
1908 * valops.c (value_string): Use lookup_string_range_type.
1909
1910 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1911
1912 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Remove
1913 redundant check for NULL TYPE_TARGET_TYPE.
1914 * m2-valprint.c (m2_print_long_set): Likewise.
1915 * p-valprint.c (pascal_type_print_base): Likewise.
1916
1917 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1918
1919 * printcmd.c (next_gdbarch): New static variable.
1920 (set_next_address, do_examine, x_command): Set it.
1921 (decode_format): Use 'a' size to indicate width of an address.
1922 (do_examine): Add GDBARCH argument. Handle 'a' size.
1923 (x_command): Pass architecture to do_examine.
1924 Error if called without argument the first time.
1925 (do_one_display): Pass architecture to do_examine.
1926
1927 (examine_i_type, examine_b_type, examine_h_type, examine_w_type,
1928 examine_g_type): Remove.
1929 (_initialize_printcmd): Do not initialize them.
1930 (do_examine): Use builin_type_int... instead of examine_..._type.
1931
1932 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1933
1934 * gdbtypes.h (struct builtin_type): Add internal_fn member.
1935 * gdbtypes.c (gdbtypes_post_init): Initialize it.
1936 * value.c (internal_fn_type): Remove.
1937 (_initialize_values): Do not initialize it.
1938
1939 * value.c (struct internalvar): Add enum internalvar_kind type and
1940 kind member. Restructure union internalvar_data type. Remove type,
1941 canonical, and make_value members.
1942 (init_if_undefined_command): Update for data structure changes.
1943 (create_internalvar): Likewise.
1944 (create_internalvar_type_lazy): Likewise.
1945 (get_internalvar_integer): Likewise.
1946 (get_internalvar_function): Likewise.
1947 (set_internalvar_component): Likewise.
1948 (set_internalvar): Likewise.
1949 (set_internalvar_integer): Likewise.
1950 (set_internalvar_function): Likewise.
1951 (clear_internalvar): Likewise.
1952 (add_internal_function): Likewise.
1953 (preserve_one_internalvar): New function.
1954 (preserve_values): Call it.
1955
1956 * value.h (value_of_internalvar): Add GDBARCH parameter.
1957 (internalvar_make_value): Likewise.
1958 * value.c (value_of_internalvar): Add GDBARCH parameter. Pass it to
1959 make_value callback. Use it to generate per-architecture result value
1960 types for internal variables with no pre-defined type. Update for data
1961 structure changes.
1962 (show_convenience): Pass architecture to value_of_internalvar.
1963 * eval.c (evaluate_subexp_standard): Likewise.
1964 * infrun.c (siginfo_make_value): Add GDBARCH parameter. Use it
1965 instead of current frame architecture. Return per-architecture type.
1966
1967 * value.h (set_internalvar_string): Add prototype.
1968 * value.c (set_internalvar_string): New function.
1969 * tracepoint.c (set_traceframe_context): Use it.
1970
1971 2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1972
1973 * jv-lang.h (java_int_type, java_byte_type, java_short_type,
1974 java_long_type, java_boolean_type, java_char_type, java_float_type,
1975 java_double_type, java_void_type): Remove.
1976 (struct builtin_java_type): New data type.
1977 (builtin_java_type): Add prototype.
1978 (java_primitive_type): Add GDBARCH argument.
1979 (java_primitive_type_from_name): Likewise.
1980 (type_from_class): Likewise.
1981
1982 * jv-lang.c (java_int_type, java_byte_type, java_short_type,
1983 java_long_type, java_boolean_type, java_char_type, java_float_type,
1984 java_double_type, java_void_type): Remove.
1985
1986 (build_java_types, builtin_java_type): New functions.
1987 (java_type_data): New static variable.
1988 (_initialize_java_language): Initialize it. No longer initialize
1989 global types.
1990 (java_language_arch_info): Use per-architecture types.
1991
1992 (java_primitive_type): Add GDBARCH argument. Return per-architecture
1993 type instead of refering to global variable.
1994 (java_primitive_type_from_name): Add GDBARCH argument.
1995 (java_primitive_type_name): New function.
1996 (java_demangled_signature_length): Use it instead of
1997 java_primitive_type_from_name.
1998 (java_demangled_signature_copy): Likewise.
1999
2000 (type_from_class): Add GDBARCH argument. Pass to java_link_class_type,
2001 java_primitive_type, and recursive type_from_class call.
2002 (java_link_class_type): Add GDBARCH argument. Pass to type_from_class
2003 calls. Use per-architecture types instead of global types.
2004
2005 * jv-exp.y (parse_java_type): New define.
2006 Use per-architecture types instead of global types througout.
2007
2008 * jv-valprint.c (java_value_print): Pass architecture to
2009 type_from_class and java_primitive_type_from_name. Use per-
2010 architecture types instead of global types.
2011
2012 2009-07-01 Doug Evans <dje@google.com>
2013
2014 * NEWS: Mention biarch amd64-linux gdbserver and hardware watchpoint
2015 support for i386-linux, amd64-linux, and i386-win32 builds of
2016 gdbserver.
2017
2018 2009-07-01 Nick Roberts <nickrob@snap.net.nz>
2019
2020 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for deleted files.
2021
2022 2009-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2023
2024 * Makefile.in (TARGET_FLAGS_TO_PASS): Include also FORCE_PARALLEL.
2025 (check//%): Construct FORCE_PARALLEL for the sub-make. Extend the
2026 comment for it.
2027
2028 2009-06-30 Paul Pluzhnikov <ppluzhnikov@google.com>
2029
2030 gdb/10275
2031 * dwarf2-frame.c (dwarf2_frame_state): Move cfa_offset, cfa_reg,
2032 cfa_how and cfa_exp into regs and adjust users.
2033
2034 2009-06-30 Daniel Jacobowitz <dan@codesourcery.com>
2035
2036 * dwarf2read.c (inherit_abstract_dies): Work around GCC PR 40573.
2037
2038 2009-06-30 Vladimir Prus <vladimir@codesourcery.com>
2039
2040 * mi/mi-cmd-stack.c (parse_print_values): New.
2041 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args): Use the above.
2042
2043 2009-06-30 Vladimir Prus <vladimir@codesourcery.com>
2044
2045 * varobj.c (varobj_get_type): Use type_to_string.
2046
2047 2009-06-29 Pedro Alves <pedro@codesourcery.com>
2048
2049 * infrun.c (handle_inferior_event): Context switch to the new
2050 thread when resuming for a new_thread_event.
2051
2052 2009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
2053
2054 * ada-lang.h (ada_convert_actual): Add GDBARCH argument.
2055 * ada-lang.c (convert_actual): Remove stale prototype.
2056 (ensure_lval, make_array_descriptor, ada_convert_actual):
2057 Add GDBARCH argument and pass through to subroutine calls.
2058 (ensure_lval): Use GDBARCH instead of current_gdbarch.
2059 * infcall.c (value_arg_coerce): Update ada_convert_actual call.
2060
2061 2009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
2062
2063 * ada-lang.c (resolve): Use per-architecture void type instead
2064 of platform-independent one.
2065 (ada_evaluate_subexp) [STRUCTOP_STRUCT]: Likewise.
2066 (ada_resolve_function): Reimplement fallback logic to avoid
2067 explicit reference to builtin_type_void.
2068
2069 2009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
2070
2071 * ada-valprint.c (ada_print_scalar): Accept NULL type argument
2072 to indicate scalar should be printed as default integer.
2073 (print_optional_low_bound): Pass NULL to ada_print_scalar to
2074 indicate default integer output.
2075 * ada-typeprint.c (print_range, print_range_bound): Likewise.
2076 (print_choices): Likewise. Thus, accept NULL as val_type.
2077 * ada-lang.c (ada_variant_discrim_type): Return NULL when failed
2078 to look up controlling discriminant name.
2079
2080 2009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
2081
2082 * ada-lang.c (to_fixed_range_type): Add ORIG_TYPE argument.
2083 Fall back to orig_type as index type if symbol lookup fails.
2084 Allocate result types from ORIG_TYPE's objfile.
2085 (ada_array_bound_from_type, to_fixed_array_type,
2086 ada_evaluate_subexp): Pass original index type to
2087 to_fixed_range_type. Do not pass objfile.
2088
2089 * ada-typeprint.c (print_range_type_named): Add ORIG_TYPE argument.
2090 Fall back to orig_type as index type if symbol lookup fails.
2091 (print_array_type, ada_print_type): Pass original index type
2092 to print_range_type_named.
2093
2094 2009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
2095
2096 * ada-lang.c (ada_index_type): Update comment.
2097
2098 2009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
2099
2100 * ada-lang.c (ada_index_type): Make static. Add NAME argument.
2101 Throw error on invalid input arguments. Return NULL if unable
2102 to determine index type.
2103
2104 (ada_array_bound_from_type): Remove TYPEP argument.
2105 (ada_array_bound): Make static. Return LONGEST instead of value.
2106 Update for ada_array_bound_from_type change.
2107 (ada_array_length): Return LONGEST instead of value.
2108 Update for ada_array_bound_from_type change.
2109 (make_array_descriptor): Update for ada_array_bound change.
2110
2111 (ada_evaluate_subexp) [OP_ATR_RANGE, OP_ATR_FIRST, OP_ATR_LAST,
2112 OP_ATR_LENGTH]: Update for ada_array_bound_from_type,
2113 ada_array_bound, ada_array_length, ada_index_type changes.
2114 Always use ada_index_type to compute result type; fall back
2115 to architecture-specific integer type if ada_index_type fails.
2116
2117 * ada-lang.h (ada_index_type): Remove prototype.
2118 (ada_array_bound): Likewise.
2119
2120 2009-06-29 Pedro Alves <pedro@codesourcery.com>
2121
2122 * dbxread.c (read_dbx_symtab): Clear has_line_numbers when ending
2123 a psymtab.
2124
2125 2009-06-29 Tom Tromey <tromey@redhat.com>
2126
2127 * README: Mention parallel check.
2128
2129 2009-06-29 Sami Wagiaalla <swagiaal@redhat.com>
2130
2131 * dwarf2read.c (read_import_statement): Properly set import location
2132 and destination.
2133 * cp-support.h (cp_add_using, cp_add_using_directive): Now take char*
2134 inner, char* outer arguments. Updated callers.
2135
2136 2009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
2137
2138 * value.h (value_subscript, value_subscripted_rvalue,
2139 value_bitstring_subscript, value_ptradd): Use LONGEST instead
2140 of value as type of the index argument.
2141 (value_ptrsub): Remove.
2142 * valarith.c (value_subscript, value_subscripted_rvalue,
2143 value_bitstring_subscript, value_ptradd): Use LONGEST instead
2144 of value as type of the index argument.
2145 (value_ptrsub): Remove.
2146
2147 * wrapper.h (gdb_value_subscript): Use LONGEST instead of
2148 value as type of the index argument.
2149 * wrapper.c (gdb_value_subscript): Likewise.
2150
2151 Update calls to gdb_value_subscript, value_subscript,
2152 value_subscripted_rvalue, value_bitstring_subscript and
2153 value_ptradd to use LONGEST instead of value as index
2154 argument type. Use value_ptradd instead of value_ptrsub.
2155 * ada-lang.c (ada_value_subscript, ada_value_ptr_subscript,
2156 ada_tag_name_2): Update.
2157 * ada-tasks.c (read_atcb): Update.
2158 * eval.c (evaluate_subexp_standard): Update.
2159 * valarith.c (value_subscript): Update.
2160 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Update.
2161 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
2162 gnuv3_method_ptr_to_value): Update.
2163 * jv-lang.c (evaluate_subexp_java): Update.
2164 * m2-lang.c (evaluate_subexp_modula2): Update.
2165 * python/python-value.c (valpy_getitem, valpy_binop): Update.
2166 * wrapper.c (gdb_value_subscript): Update.
2167 * varobj.c (c_describe_child): Update.
2168
2169 2009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
2170
2171 * gdbtypes.h (make_function_type): Remove OBJFILE parameter.
2172 * gdbtypes.c (make_function_type): Remove OBJFILE parameter.
2173 (lookup_function_type): Update call.
2174 * stabsread.c (read_type): Likewise.
2175 * dwarf2read.c (read_subroutine_type): Use lookup_function_type
2176 instead of make_function_type.
2177 * jv-lang.c (type_from_class): Likewise. Do not allocate types
2178 on the fake "dynamics" obstack.
2179
2180 2009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
2181
2182 * gdbtypes.h (struct builtin_type): Remove builtin_core_addr,
2183 nodebug_text_symbol, nodebug_data_symbol, nodebug_unknown_symbol,
2184 and nodebug_tls_symbol members.
2185 (struct objfile_type): New data structure.
2186 (objfile_type): Add prototype.
2187 * gdbtypes.c (gdbtypes_post_init): Remove initialization code
2188 for types no longer in struct builtin_type.
2189 (objfile_type_data): New static variable.
2190 (_initialize_gdbtypes): Initialize it.
2191 (objfile_type): New function.
2192
2193 * gdbtypes.h (builtin_type_error): Remove.
2194 * gdbtypes.c (build_complex): Do not use builtin_type_error.
2195 * symtab.c (builtin_type_error): Remove.
2196 (_initialize_symtab): Remove initialization.
2197
2198 * stabsread.c (dbx_lookup_type, define_symbol, error_type,
2199 rs6000_builtin_type, read_range_type): Use per-objfile types
2200 instead of global or per-architecture builtin types.
2201 * coffread.c (decode_type): Likewise.
2202 * dwarf2read.c (read_array_type, read_tag_string_type,
2203 new_symbol, die_type): Likewise.
2204 * mdebugread.c (parse_symbol, basic_type, upgrade_type,
2205 parse_procedure, psymtab_to_symtab_1): Likewise.
2206 * xcoffread.c (process_xcoff_symbol): Likewise.
2207 * parse.c (write_exp_msymbol): Likewise.
2208
2209 * stabsread.c (rs6000_builtin_type_data): New static variable.
2210 (_initialize_stabsread): Initialize it.
2211 (rs6000_builtin_type): Add OBJFILE argument. Allocate builtin
2212 types per-objfile instead of globally.
2213
2214 * stabsread.c (dbx_lookup_type): Add OBJFILE argument. Use it
2215 instead of current_objfile; pass it to rs6000_builtin_type.
2216 (dbx_alloc_type, read_type, read_range_type): Update calls.
2217 (cleanup_undefined_types_noname): Add OBJFILE argument and
2218 pass it to dbx_lookup_type.
2219 (cleanup_undefined_types): Add OBJFILE argument and pass it
2220 to cleanup_undefined_types_noname.
2221 * stabsread.h (cleanup_undefined_types): Add OBJFILE argument.
2222 * buildsym.c (end_symtab): Update call.
2223
2224 2009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
2225
2226 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
2227 target_gdbarch instead of current_gdbarch.
2228
2229 2009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
2230
2231 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-windows-tdep.o.
2232 (ALL_TARGET_OBS): Add moxie-tdep.o, i386-darwin-tdep.o, and
2233 solib-darwin.o.
2234
2235 * configure.tgt: Add comment.
2236
2237 2009-06-28 Paul Pluzhnikov <ppluzhnikov@google.com>
2238
2239 * mi/mi-cmds.c (mi_cmds): Remove unimplemented entries.
2240
2241 2009-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2242 Jan Kratochvil <jan.kratochvil@redhat.com>
2243
2244 * NEWS: Document inlined function support.
2245 * Makefile.in (SFILES): Add inline-frame.c.
2246 (COMMON_OBS): Add inline-frame.o.
2247 * block.c (contained_in): Rewrite to use lexical nesting.
2248 (block_linkage_function): Skip inlined function blocks.
2249 (block_inlined_p): New.
2250 * block.h (struct block): Update comment.
2251 (block_inlined_p): New prototype.
2252 * blockframe.c (get_frame_block): Handle inlined functions.
2253 (get_frame_function): Do not use block_linkage_function.
2254 (block_innermost_frame): Use get_frame_block and contained_in.
2255 * breakpoint.c (watchpoint_check): Remove extra reinit_frame_cache.
2256 Skip over inlined functions. Simplify epilogue check.
2257 (bpstat_check_breakpoint_conditions): Use get_stack_frame_id.
2258 Update comments.
2259 (set_momentary_breakpoint): Only accept non-inlined frames.
2260 (watch_command_1): Use frame_unwind_caller_pc and
2261 frame_unwind_caller_id instead of get_prev_frame.
2262 (until_break_command): Likewise. Use get_stack_frame_id.
2263 * buildsym.c (end_symtab): Set SYMBOL_SYMTAB for block functions.
2264 * dwarf2loc.c (dwarf_expr_frame_base): Use block_linkage_function.
2265 * dwarf2read.c (process_die): Handle DW_TAG_inlined_subroutine.
2266 (read_func_scope, new_symbol): Likewise. Handle arguments specially
2267 for inlined functions without call site information.
2268 (inherit_abstract_dies): Allow tag mismatch for inlined subroutines.
2269 (die_specification): Treat DW_AT_abstract_origin as a specification.
2270 (read_type_die): Handle DW_TAG_inlined_subroutine.
2271 * frame-unwind.c (frame_unwind_init): Add inline_frame_unwind.
2272 * frame.c (fprint_frame_id): Print inline depth.
2273 (fprint_frame_type): Handle INLINE_FRAME and SENTINEL_FRAME.
2274 (skip_inlined_frames, get_stack_frame_id): New.
2275 (frame_unwind_caller_id): Use skip_inlined_frames.
2276 (frame_id_inlined_p): New.
2277 (frame_id_eq): Make the logic match the comments. Add inline_depth
2278 check.
2279 (frame_id_inner): Handle inlined functions.
2280 (frame_unwind_pc): New function, copied from frame_unwind_caller_pc.
2281 (frame_unwind_caller_pc): Use skip_inlined_frames and frame_unwind_pc.
2282 (get_prev_frame_1): Check for inline frames. Split out frame
2283 allocation to get_prev_frame_raw.
2284 (get_prev_frame_raw): New function.
2285 (get_prev_frame): Handle inline frames.
2286 (get_frame_pc): Use frame_unwind_pc.
2287 (get_frame_address_in_block): Skip inlined frames on both sides.
2288 (pc_notcurrent): Delete.
2289 (find_frame_sal): Rewrite to handle inline call sites. Use
2290 get_frame_address_in_block.
2291 (deprecated_update_frame_pc_hack): Make static.
2292 * frame.h: Update comments.
2293 (struct frame_id): Add inline_depth.
2294 (enum frame_type): Add INLINE_FRAME.
2295 (frame_id_inlined_p, get_stack_frame_id): New prototypes.
2296 * gdbthread.h (struct thread_info): Add step_stack_frame_id field.
2297 * infcmd.c (set_step_frame): New function.
2298 (step_once): Use set_step_frame. Handle inlined functions.
2299 (until_next_command): Use set_step_frame.
2300 (finish_backward), finish_forward): Use get_stack_frame_id.
2301 (finish_command): Support inlined functions.
2302 * inferior.h (set_step_info): New prototype.
2303 * infrun.c (RESUME_ALL): Use minus_one_ptid.
2304 (clear_proceed_status): Clear step_stack_frame_id.
2305 (init_wait_for_inferior): Call clear_inline_frame_state.
2306 (init_execution_control_state): Make static.
2307 (set_step_info): New function.
2308 (init_thread_stepping_state): Do not set the symtab or line here.
2309 (stepped_in_from): New function.
2310 (handle_inferior_event): Handle inlined functions. Use set_step_info.
2311 (insert_step_resume_breakpoint_at_frame): Use get_stack_frame_id.
2312 (struct inferior_status): Add step_stack_frame_id.
2313 (save_inferior_status, restore_inferior_status): Save and restore
2314 step_stack_frame_id.
2315 * inline-frame.c, inline-frame.h: New files.
2316 * minsyms.c (prim_record_minimal_symbol_and_info): Use XCALLOC.
2317 * regcache.c (regcache_write_pc): Call reinit_frame_cache.
2318 * s390-tdep.c (s390_prologue_frame_unwind_cache): Handle INLINE_FRAME.
2319 * stack.c (frame_show_address): New.
2320 (print_frame_info, print_frame): Use it.
2321 (find_frame_funname): Use get_frame_function. Handle inlined blocks.
2322 (frame_info): Mark inlined functions.
2323 (backtrace_command_1): Use get_current_user_frame.
2324 (print_frame_local_vars, print_frame_label_vars): Update comments.
2325 (return_command): Refuse inlined functions.
2326 * symtab.c (lookup_symbol_aux_local): Stop at inlined function
2327 boundaries.
2328 (find_function_start_sal): Avoid inlined functions.
2329 (completion_list_add_fields): New function.
2330 (default_make_symbol_completion_list): Use it. Use block_static_block
2331 and block_global_block. Check for inlined functions.
2332 (skip_prologue_using_sal): Avoid line number comparison across
2333 inlining.
2334 * symtab.h (struct symbol): Add is_inlined.
2335 (SYMBOL_INLINED): New.
2336 * target.c (target_resume): Call clear_inline_frame_state.
2337 * valops.c (value_of_variable): Check block_inlined_p.
2338
2339 2009-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2340
2341 * frame.c (frame_unwind_id): Renamed to ...
2342 (frame_unwind_caller_id): ... this. All callers updated.
2343 (frame_pc_unwind): Renamed to ...
2344 (frame_unwind_caller_pc): ... this. All callers updated.
2345 * frame.h: Document frame_unwind_caller_WHAT functions.
2346 (frame_unwind_id): Renamed to ...
2347 (frame_unwind_caller_id): ... this.
2348 (frame_pc_unwind): Renamed to ...
2349 (frame_unwind_caller_pc): ... this.
2350 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Correct comment.
2351 * stack.c (parse_frame_specification_1): Do not rely on
2352 frame_unwind_id.
2353
2354 2009-06-27 Michael Snyder <msnyder@vmware.com>
2355
2356 * infrun.c (handle_inferior_event): Improve handling of
2357 reverse-stepping into and over shared library functions.
2358
2359 2009-06-25 Karen Osmond <karen.osmond@gmail.com>
2360
2361 * linespec.c (find_method): Add new not_found_ptr parameter to
2362 bring in line with symtab_from_filename, decode_variable.
2363 (decode_compound): Likewise. Also propagate not_found_ptr to
2364 find_method.
2365 (decode_line_1): Propagate not_found_ptr to decode_compound.
2366 (cplusplus_error): Now throws NOT_FOUND_ERROR.
2367
2368 2009-06-25 Karen Osmond <karen.osmond@gmail.com>
2369
2370 * MAINTAINERS (Write After Approval): Add self.
2371
2372 2009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
2373
2374 * valops.c (value_one): Reimplement broken decimal-float case.
2375
2376 2009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
2377
2378 * eval.c (evaluate_subexp_standard): Use expression architecture
2379 instead of current_gdbarch.
2380
2381 * infrun.c (handle_inferior_event): Avoid unncessary reference
2382 to current_gdbarch and get_current_frame ().
2383
2384 2009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
2385
2386 * breakpoint.h (set_longjmp_breakpoint): Add THREAD argument.
2387 (enum bptype): Add bp_longjmp_master.
2388
2389 * breakpoint.c (create_longjmp_master_breakpoint): New function.
2390 (update_breakpoints_after_exec): Handle bp_longjmp_master
2391 breakpoints. Call create_longjmp_master_breakpoint.
2392 (print_it_typical, bpstat_stop_status, bpstat_what,
2393 print_one_breakpoint_location, allocate_bp_location, mention,
2394 delete_command, breakpoint_re_set_one): Handle bp_longjmp_master.
2395 (breakpoint_re_set): Call create_longjmp_master_breakpoint.
2396 (create_longjmp_breakpoint): Delete.
2397 (set_longjmp_breakpoint): Add THREAD argument. Reimplement
2398 to install momentary clones of bp_longjmp_master breakpoints.
2399
2400 * infcmd.c (step_1): Pass thread to set_longjmp_breakpoint.
2401
2402 2009-06-23 Cary Coutant <ccoutant@google.com>
2403
2404 * dwarf2read.c (dwarf_decode_lines): Ignore rows where is_stmt is 0.
2405 Set basic_block to 0 after a special opcode.
2406
2407 2009-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2408
2409 Fix a regression by the mmap patch from 2009-06-16.
2410 * symfile.c (reread_symbols): Move sym_finish and clear_objfile_data
2411 calls before deleting the OBJFILE obstack. Extend the comment.
2412
2413 2009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
2414
2415 * jv-lang.h (JAVA_OBJECT_SIZE): Remove.
2416 (get_java_object_header_size): Add GDBARCH parameter.
2417 * jv-lang.c (get_java_object_header_size): Add GDBARCH parameter.
2418 Use it instead of current_gdbarch.
2419 (evaluate_subexp_java): Replace JAVA_OBJECT_SIZE with call to
2420 get_java_object_header_size.
2421 * jv-valprint.c (java_value_print): Likewise.
2422
2423 2009-06-23 Sami Wagiaalla <swagiaal@redhat.com>
2424
2425 * dwarf2read.c (process_die): Handle import statements
2426 (DW_TAG_imported_declaration, case DW_TAG_imported_module)
2427 (read_import_statement): New.
2428 (read_func_scope): Update using_directives to point to current context
2429 (read_lexical_block_scope): Ditto.
2430 * cp-support.h: Added prototype for cp_add_using.
2431 * cp-namespace.c: Removed local context_stack.
2432 (cp_initialize_namespace): Deleted.
2433 (cp_finalize_namespace): Deleted.
2434 (cp_add_using_directive): Use using_directives instead of using_list.
2435 (cp_add_using): No longer static.
2436 * buildsym.h: Created global using_direct variable.
2437 Created using_direct variable in context_stack.
2438 * buildsym.c (finish_block): Set using directives for the block under
2439 construction.
2440 (start_symtab): Removed call to cp_initialize_namespace().
2441 (end_symtab): Removed call to cp_finalize_namespace().
2442 (push_context): Save and reset using_directives.
2443 * block.c (block_using): Return using directives for given
2444 block instead of static block.
2445
2446 2009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
2447
2448 * target-descriptions.h (struct type): Do not declare.
2449 (struct tdesc_type): Declare.
2450 (tdesc_named_type): Change return type to struct tdesc_type *.
2451 (tdesc_record_type): Remove.
2452 (tdesc_create_vector): Add prototype.
2453 (tdesc_create_union): Likewise.
2454 (tdesc_add_field): Likewise.
2455
2456 * target-descriptions.c (struct tdesc_reg): Replace gdb_type
2457 member by tdesc_type member.
2458 (struct tdesc_type_field, tdesc_type_field): Add type and vector def.
2459 (struct tdesc_type, tdesc_type_p): Likewise.
2460 (struct tdesc_arch_reg, tdesc_arch_reg): Likewise.
2461 (struct tdesc_feature): Change type of "types" to VEC(tdesc_type_p).
2462 (struct tdesc_arch_data): Replace registers member by arch_regs.
2463
2464 (tdesc_predefined_types): Change to array of pre-defined
2465 struct tdesc_type structures. Add "code_ptr" and "data_ptr".
2466 (tdesc_named_type): Return struct tdesc_type * instead of GDB type.
2467 (tdesc_gdb_type): New function.
2468
2469 (target_find_description): Update for data structure changes.
2470 (tdesc_data_cleanup): Likewise.
2471 (tdesc_numbered_register): Likewise.
2472 (tdesc_use_registers): Likewise.
2473 (tdesc_create_reg): Likewise.
2474
2475 (tdesc_find_arch_register): New function.
2476 (tdesc_find_register): Use it.
2477 (tdesc_register_type): Use tdesc_gdb_type to generate GDB type from
2478 tdesc_type on demand; cache generated types in tdesc_arch_reg.
2479
2480 (tdesc_free_type): New function.
2481 (tdesc_free_feature): Call it.
2482
2483 (tdesc_create_vector): New function.
2484 (tdesc_create_union): Likewise.
2485 (tdesc_add_field): Likewise.
2486 (tdesc_record_type): Remove.
2487
2488 (tdesc_type_id): Remove.
2489 (maint_print_c_tdesc_cmd): Update for data structure changes. Update
2490 generated code to create tdesc_type structures instead of GDB types.
2491
2492 * xml-tdesc.c: Do not include "gdbtypes.h".
2493 (struct tdesc_parsing_data): Change type of current_union to
2494 struct tdesc_type *.
2495 (tdesc_start_reg): Do not special-case "code_ptr" or "data_ptr".
2496 (tdesc_start_union): Call tdesc_create_union.
2497 (tdesc_start_field): Call tdesc_add_field.
2498 (tdesc_start_vector): Call tdesc_create_vector.
2499 (tdesc_end_union): Remove.
2500 (feature_children): Remove reference to tdesc_end_union.
2501
2502 * features/arm-with-iwmmxt.c: Regenerate.
2503 * features/mips-linux.c: Regenerate.
2504 * features/mips64-linux.c: Regenerate.
2505 * features/rs6000/powerpc-32.c: Regenerate.
2506 * features/rs6000/powerpc-32l.c: Regenerate.
2507 * features/rs6000/powerpc-403.c: Regenerate.
2508 * features/rs6000/powerpc-403gc.c: Regenerate.
2509 * features/rs6000/powerpc-505.c: Regenerate.
2510 * features/rs6000/powerpc-601.c: Regenerate.
2511 * features/rs6000/powerpc-602.c: Regenerate.
2512 * features/rs6000/powerpc-603.c: Regenerate.
2513 * features/rs6000/powerpc-604.c: Regenerate.
2514 * features/rs6000/powerpc-64.c: Regenerate.
2515 * features/rs6000/powerpc-64l.c: Regenerate.
2516 * features/rs6000/powerpc-7400.c: Regenerate.
2517 * features/rs6000/powerpc-750.c: Regenerate.
2518 * features/rs6000/powerpc-860.c: Regenerate.
2519 * features/rs6000/powerpc-altivec32.c: Regenerate.
2520 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2521 * features/rs6000/powerpc-altivec64.c: Regenerate.
2522 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2523 * features/rs6000/powerpc-e500.c: Regenerate.
2524 * features/rs6000/powerpc-e500l.c: Regenerate.
2525 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2526 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2527 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2528 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2529 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2530 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2531 * features/rs6000/powerpc-vsx32.c: Regenerate.
2532 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2533 * features/rs6000/powerpc-vsx64.c: Regenerate.
2534 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2535 * features/rs6000/rs6000.c: Regenerate.
2536
2537 2009-06-23 Joel Brobecker <brobecker@adacore.com>
2538
2539 * ada-lang.c (decode_packed_array): If the value is a pointer to
2540 an array, then use value_ind to dereference it, not ada_value_ind.
2541 (ada_template_to_fixed_record_type_1): Handle the case where a
2542 dynamic field is an aligner type.
2543 (to_fixed_array_type): Add handling for packed array types.
2544 (ada_get_base_type): Do not follow the XVS type if the type is
2545 an aligner type.
2546 (ada_evaluate_subexp): Split a few statements up for clarity
2547 and debuggability.
2548 <OP_FUNCALL>: Add handling of the case of a packed array that
2549 has already been fixed.
2550
2551 2009-06-23 Joel Brobecker <brobecker@adacore.com>
2552
2553 * ada-lang.c (evaluate_subexp): Delete. Use the version from eval.c.
2554 (evaluate_subexp_type): Reimplement using evaluate_subexp.
2555 * value.h (evaluate_subexp): Add declaration.
2556 * eval.c (evaluate_subexp): Make non-static.
2557 * objc-lang.c (print_object_command): Use evaluate_subexp.
2558
2559 2009-06-23 Paul Pluzhnikov <ppluzhnikov@google.com>
2560
2561 Revert 2009-05-14 breakpoint commit (no longer needed).
2562 * breakpoint.h (breakpoint_re_set_objfile): Remove
2563 * breakpoint.c (breakpoint_re_set_objfile): Likewise
2564 (create_overlay_event_breakpoint): Remove objfile parameter,
2565 iterate over all objfiles.
2566 * objfiles.c (objfile_relocate): Update.
2567 * symfile.c (new_symfile_objfile): Likewise.
2568
2569 2009-06-23 Tom Tromey <tromey@redhat.com>
2570
2571 PR gdb/10309:
2572 * c-lang.c (classify_type): Iterate over typedefs.
2573 * c-valprint.c (textual_element_type): Iterate over typedefs.
2574
2575 2009-06-22 Tristan Gingold <gingold@adacore.com>
2576
2577 * darwin-nat.c (darwin_xfer_partial): Use host_address_to_string
2578 instead of "%p".
2579
2580 2009-06-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2581
2582 PR gdb/9988:
2583 * buildsym.c (block_compar): New function.
2584 (end_symtab): Replace the bubble sort by a qsort based code.
2585
2586 2009-06-22 Sami Wagiaalla <swagiaal@redhat.com>
2587
2588 * MAINTAINERS (Write After Approval): Add self.
2589
2590 2009-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2591
2592 * spu-tdep.c (spu_get_longjmp_target): New function.
2593 (spu_gdbarch_init): Install it.
2594
2595 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
2596
2597 PR server/10306
2598 * remote.c (getpkt_or_notif_sane_1): Initialize val to -1.
2599
2600 2009-06-21 Michael Snyder <msnyder@vmware.com>
2601
2602 * inferior.h: Update ancient comment.
2603
2604 2009-06-20 Aleksandar Ristovski <aristovski@qnx.com>
2605 Pedro Alves <pedro@codesourcery.com>
2606
2607 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Avoid dereferencing
2608 NULL pointer.
2609 (scan_dyntag): Skip if input bfd isn't elf flavoured.
2610 (locate_base): Call elf_locate_base even without an exec_bfd.
2611
2612 2009-06-19 Samuel Bronson <naesten@gmail.com>
2613
2614 PR cli/9903:
2615 * cli/cli-decode.c (apropos_cmd): Skip traversing abbreviations
2616 for prefix commands to avoid duplicates in the output.
2617
2618 2009-06-19 Samuel Bronson <naesten@gmail.com>
2619
2620 PR cli/9903:
2621 * cli/cli-decode.c (apropos_cmd): Fix avoidance of double
2622 printing.
2623
2624 2009-06-19 Jerome Guitton <guitton@adacore.com>
2625
2626 * breakpoint.c (expand_line_sal_maybe): When explicit_line,
2627 skip prologue on each sals.
2628 (skip_prologue_sal): Return explicit_line and explicit_pc
2629 unmodified.
2630
2631 2009-06-19 Tristan Gingold <gingold@adacore.com>
2632
2633 * darwin-nat.c (_initialize_darwin_inferior): Remove commented-out
2634 line.
2635
2636 2009-06-19 Tristan Gingold <gingold@adacore.com>
2637 * machoread.c (macho_symtab_read): Adjust for bfd changes.
2638 * darwin-nat.h (struct darwin_exception_msg): New type to describe
2639 a mach exception.
2640 (struct private_thread_info): New type to describe the state of the
2641 thread.
2642 (DEF_VEC_I thread_t): Removed, replaced by ...
2643 (DEF_VEC_O darwin_thread_t): ... this new type.
2644 (struct darwin_inferior): Renamed to ...
2645 (struct private_inferior): ... this type. Fields added.
2646 (darwin_not_port): Moved into the private inferior structure.
2647 * darwin-nat.c: Add includes, improve comments.
2648 Rewrite to handle multiple threads and processes.
2649 (darwin_resume_to): New function and protype.
2650 (darwin_resume, darwin_wait_to, darwin_wait): Ditto.
2651 (darwin_kill_inferior): Add ops argument.
2652 (darwin_pid_to_str): New function.
2653 (darwin_thread_alive): Ditto.
2654 (darwin_inf, darwin_not_port): Removed.
2655 (darwin_inf_fake_stop): New variable.
2656 (msgin, msgout, msg_state, exc_msg): Removed.
2657 (mach_check_error): Use warning instead of error.
2658 (darwin_ptrace): Adjust debug level.
2659 (cmp_thread_t): Fix names (typo).
2660 (darwin_check_new_threads): Argument is now an inferior,
2661 adjust for new structures, add no change check, ignore dead ports,
2662 handle first thread case.
2663 (find_inferior_task_it): New function.
2664 (find_inferior_notify_it): Ditto.
2665 (darwin_find_inferior_by_task): Ditto.
2666 (darwin_find_inferior_by_notify): Ditto.
2667 (darwin_find_thread): Ditto.
2668 (darwin_suspend_inferior): Ditto.
2669 (darwin_resume_inferior): Ditto.
2670 (catch_exception_raise_state): Removed.
2671 (catch_exception_raise_state_identity): Removed.
2672 (darwin_suspend_inferior_it): New function.
2673 (darwin_resume_inferior_it): Ditto.
2674 (darwin_dump_message): New function, extracted from darwin_wait.
2675 (darwin_decode_exception_message): New function.
2676 (darwin_encode_reply): New function.
2677 (catch_exception_raise): Removed.
2678 (darwin_send_reply): New function, extracted from darwin_resume.
2679 (darwin_resume_thread): New function, extracted from darwin_resume.
2680 (struct resume_inferior_threads_param): New type.
2681 (darwin_resume_inferior_threads_it): New function.
2682 (darwin_resume_inferior_threads): New function.
2683 (darwin_suspend_inferior_threads): New function.
2684 (darwin_resume): Mostly rewritten to handle multiple threads and
2685 some corner cases.
2686 (darwin_decode_message): New function extracted from darwin_wait.
2687 (cancel_breakpoint): New function.
2688 (darwin_wait): Mostly rewritten. Handle multiple threads.
2689 (darwin_mourn_inferior): Adjust for per process structures.
2690 (darwin_reply_to_all_pending_messages): New function.
2691 (darwin_stop_inferior): Adjust for per inferior structures.
2692 (darwin_attach_pid): Ditto.
2693 (darwin_init_thread_list): Ditto.
2694 (darwin_attach): Ditto.
2695 (darwin_detach): Ditto.
2696 (darwin_files_info): Now empty.
2697 (darwin_pid_to_str): Adjust returns string to match one expected by
2698 the testsuite.
2699 (darwin_read_write_inferior): Rename err variable to match other uses.
2700 Adjust debug message. Handle submaps.
2701 (darwin_xfer_memory): Adjust for per inferior structures.
2702 (set_enable_mach_exceptions): Ditto.
2703 (darwin_pid_to_exec_file): New function.
2704 (darwin_get_ada_task_ptid): Ditto.
2705 (darwin_supports_multi_process): Ditto.
2706 (_initialize_darwin_inferior): Remove useless assertion, adjust for
2707 per inferior structures. Add new target operations.
2708
2709 2009-06-18 Hui Zhu <teawater@gmail.com>
2710 Michael Snyder <msnyder@vmware.com>
2711
2712 * infrun.c (handle_inferior_event): Improve reverse stepping
2713 through function epilogue.
2714
2715 * infrun.c (handle_inferior_event): Reverse-next through
2716 trampoline.
2717
2718 2009-06-18 Paul Pluzhnikov <ppluzhnikov@google.com>
2719
2720 * dwarf2-frame.c (struct comp_unit): Use bfd_size_type for
2721 dwarf_frame_size.
2722
2723 2009-06-17 Tom Tromey <tromey@redhat.com>
2724
2725 * dwarf2read.c (zlib_decompress_section): Use a cleanup.
2726
2727 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
2728
2729 * gdbarch.sh (pointer_to_address): Change to type 'm'.
2730 (address_to_pointer): Likewise.
2731 * gdbarch.c, gdbarch.h: Regenerate.
2732
2733 * inferior.h (unsigned_pointer_to_address): Add GDBARCH argument.
2734 (signed_pointer_to_address): Likewise.
2735 (unsigned_address_to_pointer, address_to_signed_pointer): Likewise.
2736 * findvar.c (unsigned_pointer_to_address): Likewise.
2737 (signed_pointer_to_address): Likewise.
2738 (unsigned_address_to_pointer, address_to_signed_pointer): Likewise.
2739
2740 * avr-tdep.c (avr_address_to_pointer): Likewise.
2741 (avr_pointer_to_address): Likewise.
2742 * iq2000-tdep.c (iq2000_pointer_to_address): Likewise.
2743 (iq2000_address_to_pointer): Likewise.
2744 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2745 (m32c_m16c_pointer_to_address): Likewise.
2746 * spu-tdep.c (spu_pointer_to_address): Likewise.
2747 * xstormy16-tdep.c (xstormy16_pointer_to_address): Likewise.
2748 (xstormy16_address_to_pointer): Likewise.
2749
2750 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
2751
2752 * printcmd.c (print_scalar_formatted): Always truncate
2753 unsigned data types.
2754
2755 * cli-dump.c (struct callback_data): Change type of load_offset
2756 to CORE_ADDR.
2757 (restore_binary_file): Update type casts.
2758 (restore_command): Parse load_offset as address, not long.
2759
2760 * utils.c (string_to_core_addr): Do not sign-extend value.
2761 * varobj.c (find_frame_addr_in_frame_chain): Truncate frame_base
2762 before comparing against requested frame address.
2763
2764 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
2765
2766 * gdbarch.sh (gcore_bfd_target): New gdbarch callback.
2767 * gdbarch.h, gdbarch.c: Regenerate.
2768
2769 * gcore.c (default_gcore_target): Make return value const.
2770 Call gdbarch_gcore_bfd_target if present.
2771 (default_gcore_arch, default_gcore_mach): Use target_gdbarch.
2772
2773 * corelow.c (core_read_description): Call gdbarch_core_read_description
2774 on core_gdbarch instead of current_gdbarch.
2775
2776 * ppc-linux-tdep.c (ppc_linux_init_abi): Install gcore_bfd_target.
2777
2778 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
2779
2780 * gdbtypes.c (create_string_type): Receive character type as argument.
2781 * gdbtypes.h (create_string_type): Add character type argument.
2782 * dwarf2read.c (read_tag_string_type): Pass character type to
2783 create_string_type.
2784
2785 * value.h (value_string): Add character type argument.
2786 * valops.c (value_string): Add character type argument. Pass it to
2787 create_string_type. Do not allocate space in inferior.
2788 * valarith.c (value_concat): Pass character type to value_string.
2789
2790 * value.h (value_typed_string): Rename to ...
2791 (value_cstring): ... this.
2792 * valops.c (value_typed_string): Rename to ...
2793 (value_cstring): ... this.
2794 * c-lang.c (evaluate_subexp_c): Update.
2795
2796 * python/python-value.c (builtin_type_pychar): New define.
2797 (convert_value_from_python): Call value_cstring instead
2798 of value_from_string.
2799 * value.c (value_from_string): Remove.
2800 * value.h (value_from_string): Remove.
2801
2802 * eval.c (evaluate_subexp_standard): Pass character type to
2803 value_string. Pass expression architecture to value_nsstring
2804 and lookup_child_selector.
2805 * objc-lang.h (lookup_objc_class): Add GDBARCH parameter.
2806 (lookup_child_selector): Likewise.
2807 (value_nsstring): Likewise.
2808 * objc-lang.c (lookup_objc_class): Add GDBARCH parameter.
2809 Pass character type to value_string..
2810 (lookup_child_selector): Likewise.
2811 (value_nsstring): Add GDBARCH parameter, use it instead of
2812 objfile architecture. Pass architecture to lookup_objc_class
2813 and lookup_child_selector. Pass character type to value_string.
2814 (end_msglist): Pass architecture to lookup_objc_class.
2815 * objc-exp.y: Pass architecture to lookup_objc_class.
2816
2817 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
2818
2819 * gdbtypes.h (struct language_defn): Add forward declaration.
2820 (lookup_typename): Add LANGUAGE and GDBARCH parameters.
2821 (lookup_unsigned_typename): Likewise.
2822 (lookup_signed_typename): Likewise.
2823 * gdbtypes.c (lookup_typename): Add LANGUAGE and GDBARCH parameters.
2824 Use them instead of current_language and current_gdbarch.
2825 (lookup_unsigned_typename): Add LANGUAGE and GDBARCH parameters.
2826 Pass them to lookup_typename.
2827 (lookup_signed_typename): Likewise.
2828
2829 * c-exp.y: Pass parse_language and parse_gdbarch to
2830 lookup_unsigned_typename and lookup_signed_typename.
2831 * objc-exp.y: Likewise.
2832 * m2-exp.y: Pass parse_language and parse_gdbarch to lookup_typename.
2833
2834 * c-lang.c (evaluate_subexp_c): Pass expression language and
2835 gdbarch to lookup_typename.
2836 * printcmd.c (printf_command): Pass current language and
2837 gdbarch to lookup_typename.
2838 * python/python-type.c (typy_lookup_typename): Likewise.
2839 Include "language.h".
2840
2841 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
2842
2843 * sparc64-nat.c (sparc64_gregset_supplies_p): Add GDBARCH parameter.
2844 Use it instead of current_gdbarch. Pass architecture to
2845 sparc32_gregset_supplies_p.
2846 (sparc64_fpregset_supplies_p): Add GDBARCH parameter. Use it instead
2847 of current_gdbarch. Pass architecture to sparc32_fpregset_supplies_p.
2848 * sparc64nbsd-nat.c (sparc64nbsd_gregset_supplies_p,
2849 sparc64nbsd_fpregset_supplies_p): Likewise.
2850 * sparc-nat.c (sparc_gregset_supplies_p, sparc_fpregset_supplies_p):
2851 Add GDBARCH parameter.
2852 (sparc32_gregset_supplies_p, sparc32_fpregset_supplies_p): Likewise.
2853 (sparc_fetch_inferior_registers): Pass regcache architecture to
2854 sparc_gregset_supplies_p and sparc_fpregset_supplies_p.
2855 (sparc_store_inferior_registers): Likewise.
2856 * sparc-nat.h (sparc_gregset_supplies_p, sparc_fpregset_supplies_p:
2857 Add GDBARCH parameter.
2858 (sparc32_gregset_supplies_p, sparc32_fpregset_supplies_p): Likewise.
2859
2860 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
2861
2862 * ada-tasks.c (read_known_tasks_array): Use target_gdbarch instead
2863 of current_gdbarch.
2864 * aix-thread.c (pd_enable): Likewise.
2865 * amd64-linux-nat.c (ps_get_thread_area): Likewise.
2866 * bsd-uthread.c (bsd_uthread_activate): Likewise.
2867 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
2868 * linux-thread-db.c (enable_thread_event): Likewise.
2869 * monitor.c (monitor_write_memory, monitor_read_memory): Likewise.
2870 * nto-procfs.c (procfs_open): Likewise.
2871 * procfs.c (invalidate_cache, procfs_insert_watchpoint,
2872 info_proc_mappings, info_mappings_callback): Likewise.
2873 * record.c (record_open): Likewise.
2874 * rs6000-nat.c (ARCH64): Likewise.
2875 * solib-darwin.c (darwin_solib_create_inferior_hook): Likewise.
2876 (darwin_bfd_open): Likewise.
2877 * memattr.c (mem_info_command): Likewise.
2878
2879 * windows-nat.c (win32_resume): Use current regcache architecture
2880 instead of current_gdbarch.
2881
2882 * dbug-rom.c (dbug_regname): Remove check against number of
2883 registers in current_gdbarch.
2884 * solib-pa64.c (read_dynamic_info): Remove unused variable.
2885
2886 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
2887
2888 * dummy-frame.c (deprecated_pc_in_call_dummy): Add GDBARCH parameter,
2889 use it instead of current_gdbarch.
2890 * frame.h (deprecated_pc_in_call_dummy): Add GDBARCH parameter.
2891 * arm-tdep.c (arm_skip_prologue): Pass architecture to
2892 deprecated_pc_in_call_dummy.
2893
2894 * symtab.c (skip_prologue_using_sal): Add GDBARCH parameter.
2895 Use it instead of current_gdbarch.
2896 * symtab.h (skip_prologue_using_sal): Add GDBARCH parameter.
2897 * breakpoint.c (expand_line_sal_maybe): Pass architecture to
2898 skip_prologue_using_sal.
2899 * arm-tdep.c (skip_prologue_using_sal): Likewise.
2900 * lm32-tdep.c (lm32_skip_prologue): Likewise.
2901 * m32-tdep.c (m32c_skip_prologue): Likewise.
2902 * mips-tdep.c (mips_skip_prologue): Likewise.
2903 * moxie-tdep.c (moxie_skip_prologue): Likewise.
2904 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
2905 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
2906 * frv-tdep.c (frv_analyze_prologue): Add GDBARCH parameter, pass
2907 it to skip_prologue_using_sal. Update call sites ...
2908 (frv_skip_prologue, frv_frame_unwind_cache): ... here.
2909
2910 * mn10300-tdep.c (struct mn10300_prologue): Add GDBARCH member.
2911 (check_for_saved): Use it instead of current_gdbarch.
2912 (mn10300_analyze_prologue): Set it.
2913
2914 * value.c (using_struct_return): Add GDBARCH parameter. Use it
2915 instead of current_gdbarch.
2916 * value.h (using_struct_return): Add GDBARCH parameter.
2917 * eval.c (evaluate_subexp_standard): Pass architecture to
2918 using_struct_return.
2919 * infcall.c (call_function_by_hand): Likewise.
2920 * stack.c (return_command): Likewise.
2921 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2922
2923 * symtab.c (in_prologue): Add GDBARCH parameter. Use it instead of
2924 current_gdbarch.
2925 * symtab.h (in_prologue): Add GDBARCH parameter.
2926 * infrun.c (handle_inferior_event): Pass architecture to in_prologue.
2927
2928 * eval.c (evaluate_subexp_standard): Use expression architecture
2929 instead of current_gdbarch.
2930
2931 * c-lang.c (evaluate_subexp_c): Use expression architecture and
2932 language instead of current_gdbarch and current_language.
2933
2934 * printcmd.c (do_one_display): Use expression architecture instead
2935 of current_gdbarch.
2936
2937 * infcmd.c (print_return_value): Use architecture of stop_regcache
2938 instead of current_gdbarch.
2939 (print_vector_info, print_float_info): Remove GDBARCH argument,
2940 use frame architecture instead.
2941 (vector_info, float_info): Update calls.
2942
2943 * objc-lang.c (objc_skip_trampoline): Use frame architecture
2944 instead of current_gdbarch.
2945
2946 * parse.c (write_dollar_variable): Use parse architecture instead
2947 of current_gdbarch.
2948
2949 * source.c (line_info): Use objfile architecture instead of
2950 current_gdbarch.
2951
2952 * symtab.c (find_function_start_sal): Use gdbarch instead of
2953 current_gdbarch.
2954 (print_msymbol_info): Use objfile architecture instead of
2955 current_gdbarch.
2956
2957 * valops.c (value_assign): Use frame architecture instead of
2958 current_gdbarch.
2959
2960 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
2961
2962 * buildsym.c (record_line): Remove call to gdbarch_addr_bits_remove.
2963
2964 * coffread.c (coff_symtab_read): Call gdbarch_addr_bits_remove before
2965 calling record_line.
2966 (enter_linenos): Likewise.
2967 * dbxread.c (process_one_symbol): Likewise.
2968 * dwarf2read.c (dwarf_decode_lines): Likewise.
2969 * mdebugread.c (psymtab_to_symtab_1): Likewise.
2970 * xcoffread.c (enter_line_range): Likewise.
2971
2972 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
2973
2974 * ax-gdb.c (gen_bitfield_ref): Add EXP argument, use expression
2975 architecture instead of current_gdbarch.
2976 (gen_struct_ref): Add EXP argument, pass to get_bitfield_ref.
2977 (gen_expr): Pass expression to get_struct_ref.
2978
2979 * symtab.h (struct symbol_ops): Add GDBARCH parameter to
2980 tracepoint_var_ref callback.
2981 * ax-gdb.c (gen_var_ref): Pass architecture to tracepoint_var_ref
2982 symbol operation callback.
2983 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Add GDBARCH parameter.
2984 Use it instead of current_gdbarch.
2985 (locexpr_tracepoint_var_ref): Add GDBARCH parameter. Pass it to
2986 dwarf2_tracepoint_var_ref.
2987 (loclist_tracepoint_var_ref): Likewise.
2988
2989 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
2990
2991 * prologue-value.c (make_pv_area): Add ADDR_BIT argument.
2992 Use it instead of address bits of current_gdbarch.
2993 * prologue-value.c (make_pv_area): Add ADDR_BIT argument.
2994 * arm-tdep.c (thumb_analyze_prologue): Pass address bits to
2995 make_pv_area.
2996 (arm_scan_prologue): Likewise.
2997 * m32c-tdep.c (m32c_analyze_prologue): Likewise.
2998 * mep-tdep.c (mep_analyze_prologue): Likewise.
2999 * mn10300-tdep.c (mn10300_analyze_prologue): Likewise.
3000 * s390-tdep.c (s390_analyze_prologue): Likewise.
3001
3002 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
3003
3004 * mi/mi-main.c (mi_cmd_data_list_register_names): Use selected
3005 frame architecture instead of current_gdbarch.
3006 (mi_cmd_data_list_changed_registers): Likewise.
3007 (mi_cmd_data_list_register_values): Likewise. Pass selected
3008 frame to get_register.
3009 (get_register): Add FRAME argument, use it as frame to retrieve
3010 registers from (instead of selected frame). Use frame architecture
3011 instead of current_gdbarch.
3012 (mi_cmd_data_write_register_values): Use current regcache
3013 architecture instead of current_gdbarch.
3014
3015 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
3016
3017 * tui/tui-regs.c (tui_show_register_group): Remove GDBARCH parameter;
3018 use frame architecture instead. Replace current_gdbarch uses.
3019 (tui_show_registers): Update call.
3020 (tui_get_register): Remove GDBARCH parameter; use frame architecture
3021 instead.
3022 (tui_show_register_group): Update call.
3023 (tui_check_register_values): Likewise.
3024 (tui_register_format): Remove GDBARCH parameter; use frame
3025 architecture instead. Replace current_gdbarch uses.
3026 (tui_get_register): Update call.
3027
3028 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
3029
3030 * gdbarch.sh (construct_inferior_arguments): Remove.
3031 * gdbarch.c, gdbarch.h: Regenerate.
3032 * infcmd.c (get_inferior_args): Call construct_inferior_arguments
3033 directly instead of gdbarch_construct_inferior_arguments.
3034 (construct_inferior_arguments): Remove GDBARCH argument.
3035 * inferior.h (construct_inferior_arguments): Likewise.
3036
3037 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
3038
3039 * symfile.c (section_is_mapped): Use objfile architecture instead
3040 of current_gdbarch.
3041 (TARGET_LONG_BYTES): Remove.
3042 (read_target_long_array): Add SIZE argument. Use it instead of
3043 TARGET_LONG_BYTES.
3044 (simple_read_overlay_table): Retrieve long size from objfile
3045 architecture; pass it to read_target_long_array.
3046 (simple_read_overlay_region_table): Likewise.
3047 (simple_overlay_update_1): Likewise.
3048
3049 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
3050
3051 * infrun.c (cleanup_displaced_step_closure): Remove.
3052 (displaced_step_clear_cleanup): Move to before displaced_step_prepare.
3053 (displaced_step_prepare): Use displaced_step_clear_cleanup instead
3054 of cleanup_displaced_step_closure.
3055 (handle_inferior_event, keep_going): Use thread architecture instead
3056 of current_gdbarch.
3057
3058 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
3059
3060 * infrun.c (handle_inferior_event): Use current frame architecture
3061 or thread architecture instead of current_gdbarch. Pass to
3062 handle_step_into_function and handle_step_into_function_backward.
3063 (handle_step_into_function): Add GDBARCH parameter. Use it instead
3064 of current_gdbarch.
3065 (handle_step_into_function_backward): Likewise.
3066 (insert_step_resume_breakpoint_at_frame): Use frame architecture
3067 instead of current_gdbarch.
3068 (insert_step_resume_breakpoint_at_caller): Likewise.
3069
3070 2009-06-17 Pierre Muller <muller@ics.u-strasbg.fr>
3071 Pedro Alves <pedro@codesourcery.com>
3072
3073 * infcmd.c (post_create_inferior): Call breakpoint_re_set after target
3074 is pushed for watchpoint promotion to hardware watchpoint.
3075
3076 2009-06-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3077
3078 * dwarf2read.c (dwarf_info_section, dwarf_abbrev_section)
3079 (dwarf_line_section, dwarf_pubnames_section, dwarf_aranges_section)
3080 (dwarf_loc_section, dwarf_macinfo_section, dwarf_str_section)
3081 (dwarf_ranges_section, dwarf_frame_section)
3082 (dwarf_eh_frame_section): Removed.
3083 (dwarf2_resize_section): Likewise.
3084 (dwarf2_read_section): Now static, use bfd_mmap() if possible.
3085 (dwarf2_get_section_info): New function.
3086 (munmap_section_buffer): Likewise.
3087 (dwarf2_per_objfile_cleanup): Likewise.
3088 (section_is_p): Signature change.
3089 * dwarf2-frame.c (dwarf2_build_frame_info): Use
3090 dwarf2_get_section_info instead of dwarf2_read_section.
3091
3092 2009-06-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3093
3094 * solib.c (symbol_add_stub): New FLAGS parameter.
3095 (solib_read_symbols): FROM_TTY -> FLAGS, call symbol_add_stub
3096 directly.
3097 (solib_add): Defer breakpoint_re_set until after all solibs.
3098 * bsd-uthread.c (bsd_uthread_solib_loaded): Adjust.
3099 * rs6000-nat.c (objfile_symbol_add): Adjust.
3100 * symfile.c (syms_from_objfile): Merge parameters into ADD_FLAGS.
3101 (new_symfile_objfile): Likewise.
3102 (symbol_file_add_with_addrs_or_offsets): Likewise.
3103 (symbol_file_add_from_bfd): Likewise.
3104 (symbol_file_add): Likewise.
3105 * symfile.h (enum symfile_add_flags): New. Adjust prototypes.
3106 * symfile-mem.c (symbol_file_add_from_memory): Adjust.
3107 * windows-nat.c (safe_symbol_file_add_stub): Adjust.
3108 * machoread.c (macho_oso_symfile, macho_symfile_read): Adjust.
3109
3110 2009-06-16 Keith Seitz <keiths@redhat.com>
3111
3112 * linespec.c (collect_methods): Delete.
3113 (add_matching_methods): Reove destructor special case.
3114 (find_method): Call find_methods directly instead of
3115 collect_methods.
3116 * valops.c (value_struct_elt): Remove destructor
3117 special cases.
3118 (check_field): Likewise.
3119 (value_struct_elt_for_reference): Likewise.
3120 (destructor_name_p): Remove misleading comment about dtors
3121 being "special cases".
3122 * gdbtypes.h (get_destructor_fn_field): Remove. No longer needed.
3123 * gdbtypes.c (get_destructor_fn_field): Likewise.
3124
3125 2009-06-16 Pedro Alves <pedro@codesourcery.com>
3126
3127 * mi/mi-main.c (mi_cmd_data_read_memory): Dispatch
3128 TARGET_OJECT_MEMORY reads to the topmost target, not to the
3129 flattened current_target.
3130
3131 2009-06-16 Tristan Gingold <gingold@adacore.com>
3132
3133 * avr-tdep.c (struct gdbarch_tdep): Replace the unused field with
3134 call_length field.
3135 (avr_register_name): Add const to register_names.
3136 (avr_scan_arg_moves): Move inside avr_scan_prologue.
3137 (avr_scan_prologue): Add pc_end argument.
3138 Only read prologue bytes that can be read.
3139 Limit the scan to the known prologue length.
3140 Makes pattern variables static and const.
3141 Fix indentation.
3142 (avr_skip_prologue): Pass func_end argument to avr_scan_prologue.
3143 Fix indentation.
3144 (avr_breakpoint_from_pc): Constify avr_break_insn.
3145 (avr_extract_return_value): Fix function comment.
3146 (avr_frame_unwind_cache): Fix GNU style violations.
3147 Pass current_pc argument to avr_scan_prologue to stop prologue
3148 analysis to the current pc. This fixes the bug with the 'next'
3149 command.
3150 Correctly set the SP register of the previous frame (use call_length).
3151 (avr_frame_prev_register): Fix indentation.
3152 Correctly read PC from the stack on avr6 architectures.
3153 (avr_push_dummy_call): Fix indentation.
3154 (avr_gdbarch_init): Set call_length according to the architecture.
3155
3156 2009-06-15 Phil Muldoon <pmuldoon@redhat.com>
3157
3158 * infcall.c (show_unwind_on_terminating_exception_p): New
3159 function.
3160 (call_function_by_hand): Create breakpoint and clean-up call for
3161 std::terminate.breakpoint. Add unwind_on_terminating_exception_p
3162 gate. Pop frame on breakpoint hit.
3163 (_initialize_infcall): Add add_setshow_boolean_cmd for
3164 unwind-on-terminating-exception.
3165
3166 2009-06-12 Kevin Buettner <kevinb@redhat.com>
3167
3168 * dwarf2read.c (dwarf2_psymtab_to_symtab): Propagate
3169 `has_section_at_zero' flag from stripped objfile to separate,
3170 debug info only, objfile.
3171
3172 2009-06-12 Pedro Alves <pedro@codesourcery.com>
3173
3174 * exec.h (section_table_xfer_memory_partial): Improve description,
3175 mention SECTION_NAME.
3176 * exec.c (section_table_xfer_memory_partial): Remove stale
3177 description.
3178
3179 2009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
3180
3181 * nto-tdep.h (nto_generic_supply_gpregset)
3182 (nto_generic_supply_fpregset, nto_generic_supply_altregset): Remove.
3183 * nto-tdep.c (nto_generic_supply_gpregset)
3184 (nto_generic_supply_fpregset, nto_generic_supply_altregset): Remove.
3185
3186 2009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
3187
3188 * i386-nto-tdep.c (I386_NTO_SIGCONTEXT_OFFSET): Remove define.
3189 (i386nto_sigcontext_addr): Change the way context address is calculated.
3190 (i386nto_init_abi): Remove usage of deprecated sc_reg_offset and
3191 sc_sp_offset and set sc_reg_offset and sc_num_regs.
3192
3193 2009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
3194
3195 * i386-nto-tdep.c (i386_nto_target): Remove definition.
3196 (init_i386nto_ops): Use macros to set fields to global
3197 current_nto_target directly.
3198 (i386nto_init_abi): Remove unused nto_set_target call.
3199 * nto-tdep.h (nto_set_target): Remove unused declaration.
3200 * nto-tdep.c (nto_set_target): Remove unused function.
3201
3202 2009-06-11 Pedro Alves <pedro@codesourcery.com>
3203
3204 * breakpoint.c (break_command_really): Rename local variable
3205 breakpoint_chain to bkpt_chain.
3206
3207 2009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
3208
3209 Add support for XMM registers.
3210 * i386-nto-tdep.c (i386nto_regset_id): Add case for SSE register set.
3211 (i386nto_register_area): Correctly calculate offsets and sizes for
3212 all supported registers.
3213
3214 2009-06-11 Tom Tromey <tromey@redhat.com>
3215
3216 * eval.c (evaluate_subexp_standard) <OP_OBJC_MSGCALL>: Remove
3217 'static' from local variable definitions.
3218
3219 2009-06-11 Pedro Alves <pedro@codesourcery.com>
3220
3221 * symtab.c (append_expanded_sal): Remove unused local variables.
3222
3223 2009-06-11 Pedro Alves <pedro@codesourcery.com>
3224
3225 * infrun.c (sched_multi): New global.
3226 (resume): If sched_multi is set, resume only threads of the
3227 current inferior.
3228 (prepare_to_proceed): Don't switch over to wait_ptid if we're
3229 resuming a different inferior, and sched_multi is off.
3230 (show_schedule_multiple): New.
3231 (_initialize_infrun): Register new "set schedule-multiple" command.
3232 * inferior.h (sched_multi): Declare.
3233 * NEWS: Mention new "schedule-multiple" setting.
3234
3235 2009-06-11 Pedro Alves <pedro@codesourcery.com>
3236
3237 * varobj.c (varobj_create): Properly restore the selected frame.
3238
3239 2009-06-05 Tom Tromey <tromey@redhat.com>
3240
3241 * inferior.c (print_inferior): Make a table, not a list. Emit
3242 table headers.
3243
3244 2009-06-10 Jonas Maebe <jonas.maebe@elis.ugent.be>
3245
3246 * darwin-nat.c (darwin_stop_inferior): Pass 0 as options to
3247 darwin_wait (blocking wait).
3248 (darwin_kill_inferior): Likewise.
3249
3250 2009-06-10 Pedro Alves <pedro@codesourcery.com>
3251
3252 * infrun.c (handle_inferior_event): Update comment around trying
3253 to revert back to a stepping thread that has exited.
3254
3255 2009-06-10 Cary Coutant <ccoutant@google.com>
3256
3257 * dwarf2read.c (dwarf_decode_lines): Recognize and ignore
3258 DW_LNE_set_discriminator.
3259
3260 2009-06-10 Pierre Muller <muller@ics.u-strasbg.fr>
3261
3262 * breakpoint.c: ARI fixes.
3263 (create_overlay_event_breakpoint): Avoid assignment inside if statement.
3264 (print_one_breakpoint_location): Likewise.
3265 (create_longjmp_breakpoint): Likewise.
3266 (tracepoint_save_command): Likewise
3267 (bpstat_find_step_resume_breakpoint): No operator at end of line.
3268 (bpstat_stop_status): Likewise.
3269 (describe_other_breakpoints): Likewise.
3270 (hw_watchpoint_used_count): Likewise.
3271 (expand_line_sal_maybe): Likewise.
3272 (break_command_really): Likewise.
3273 (delete_command): Likewise.
3274 (do_enable_breakpoint): Likewise.
3275 (delete_trace_command): Likewise.
3276 (catch_exception_command_1): Likewise and remove extra parentheses.
3277
3278 2009-06-08 Pierre Muller <muller@ics.u-strasbg.fr>
3279
3280 * breakpoint.c (_initialize_breakpoint): Remove "bu" command alias of
3281 "ubreak" command that does not exist.
3282
3283 2009-06-08 Pierre Muller <muller@ics.u-strasbg.fr>
3284
3285 * cli/cli-decode.c (add_alias_cmd): Correct assertion.
3286
3287 2009-06-07 Pedro Alves <pedro@codesourcery.com>
3288
3289 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
3290
3291 2009-06-07 Pedro Alves <pedro@codesourcery.com>
3292
3293 * procfs.h: New.
3294 * proc-utils.h (procfs_first_available): Don't declare here.
3295 * sol-thread.c: Include procfs.h instead of sys/procfs.h and
3296 proc-utils.h.
3297 * procfs.c: Include procfs.h.
3298 (procfs_target): Make it public. Don't register
3299 procfs_can_use_hw_breakpoint here.
3300 (proc_set_watchpoint): Check for PCWATCH or PIOCSWATCH being
3301 defined instead of TARGET_HAS_HARDWARE_WATCHPOINTS.
3302 (procfs_can_use_hw_breakpoint): Remove check of
3303 TARGET_HAS_HARDWARE_WATCHPOINTS.
3304 (procfs_use_watchpoints): Register procfs_can_use_hw_breakpoint
3305 here.
3306 (_initialize_procfs): Don't add the procfs target here.
3307
3308 * i386-sol2-nat.c: Include target.h and procfs.h.
3309 (_initialize_amd64_sol2_nat): Install the procfs target here,
3310 customized with watchpoints support.
3311 * irix5-nat.c: Include target.h.
3312 (_initialize_core_irix5): Rename to ...
3313 (_initialize_irix5_nat): ... this. Install the procfs target
3314 here, customized with watchpoints support.
3315 * alpha-nat.c: Include procfs.h.
3316 (_initialize_core_alpha): Rename to...
3317 (_initialize_alpha_nat): ... this. Install the procfs target
3318 here, customized with watchpoints support.
3319 * sparc-sol2-nat.c: Include target.h and procfs.h.
3320 (_initialize_sparc_sol2_nat): New.
3321
3322 * config/i386/nm-i386sol2.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3323 * config/sparc/nm-sol2.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3324 * config/mips/irix5.mh (NAT_FILE): Delete.
3325 * config/mips/irix6.mh (NAT_FILE): Delete.
3326 * config/mips/nm-irix5.h: Delete.
3327
3328 20009-06-07 Pedro Alves <pedro@codesourcery.com>
3329
3330 * auxv.c (procfs_xfer_auxv): Change type of the `object' argument
3331 to enum target_object. Cleanup comments.
3332 * auxv.h: Include "target.h". Cleanup comments to not mention
3333 NATIVE_XFER_AUXV anymore.
3334
3335 2009-06-07 Pedro Alves <pedro@codesourcery.com>
3336
3337 * inferior.h (procfs_first_available): Move declaration to...
3338 * proc-utils.h: ... here.
3339 * sol-thread.c: Include procfs.h and proc-utils.h.
3340
3341 2009-06-07 Pedro Alves <pedro@codesourcery.com>
3342
3343 * inferior.h (proc_iterate_over_mappings): Delete declaration.
3344 * nto-tdep.h (proc_iterate_over_mappings): Delete declaration.
3345 * procfs.c (proc_iterate_over_mappings): Delete.
3346
3347 2009-06-07 Pedro Alves <pedro@codesourcery.com>
3348
3349 * target.h (struct target_ops): Make to_has_all_memory,
3350 to_has_memory, to_has_stack, to_has_registers and to_has_execution
3351 methods instead of variables.
3352 (target_has_all_memory_1, target_has_memory_1, target_has_stack_1)
3353 (target_has_registers_1, target_has_execution_1): Declare
3354 functions.
3355 (target_has_all_memory): Rewrite to call target_has_all_memory_1.
3356 (target_has_memory): Rewrite to call target_has_memory_1.
3357 (target_has_stack): Rewrite to call target_has_all_stack_1.
3358 (target_has_registers): Rewrite to call target_has_registers_1.
3359 (target_has_execution): Rewrite to call target_has_execution_1.
3360 (default_child_has_all_memory, default_child_has_memory)
3361 (default_child_has_stack, default_child_has_registers)
3362 (default_child_has_execution): Declare.
3363 (target_mark_running, target_mark_exited): Delete declarations.
3364 * target.c (default_child_has_all_memory,
3365 default_child_has_memory, default_child_has_stack,
3366 default_child_has_registers, default_child_has_execution): New.
3367 (target_has_all_memory_1, target_has_memory_1, target_has_stack_1,
3368 target_has_registers_1, target_has_execution_1): New.
3369 (add_target): Default the to_has_all_memory, to_has_all_memory,
3370 to_has_memory, to_has_stack, to_has_registers and to_has_execution
3371 callbacks to return 0.
3372 (update_current_target): Do not inherit to_has_all_memory,
3373 to_has_memory, to_has_stack, to_has_registers or to_has_execution.
3374 (target_mark_running, target_mark_exited): Delete.
3375 (memory_xfer_partial): Adjust.
3376 (target_read_memory, target_write_memory, target_search_memory):
3377 Dispatch to the the top-most target, not the flattened
3378 current_target.
3379 (target_info): Adjust.
3380 (init_dummy_target): Install return_zero as callback for
3381 to_has_all_memory, to_has_memory, to_has_stack, to_has_registers,
3382 to_has_execution.
3383 (set_maintenance_target_async_permitted): Use have_live_inferiors
3384 instead of target_has_execution.
3385 * target-memory.c (target_write_memory_blocks): Dispatch memory
3386 writes to the the top-most target, not the flattened
3387 current_target.
3388
3389 * breakpoint.c (insert_breakpoints): Don't check for
3390 target_has_execution here.
3391 (update_global_location_list): Check if there are live inferiors
3392 to debug instead of target_has_execution.
3393 * infcmd.c (kill_command, detach_command): Check if there are
3394 inferiors instead of target_has_execution.
3395 * inferior.h (have_live_inferiors): Declare.
3396 * inferior.c (have_live_inferiors): New.
3397 * infrun.c (normal_stop): Don't check for target_has_execution to
3398 finish the thread states.
3399 * thread.c (is_thread_state, is_stopped, is_exited, is_running)
3400 (any_running, is_executing): Remove checks for
3401 target_has_execution.
3402 * top.c (kill_or_detach): Don't try to kill core inferiors.
3403 (quit_target): Don't check for target_has_execution.
3404
3405 * corelow.c (core_has_memory, core_has_stack, core_has_registers):
3406 New.
3407 (init_core_ops): Install core_has_memory, core_has_stack and
3408 core_has_registers.
3409 * exec.c (exec_has_memory): New.
3410 (init_exec_ops): Install exec_has_memory.
3411 * remote.c (remote_add_inferior): Don't call target_mark_running.
3412 (remote_start_remote): Don't call target_mark_exited or call
3413 target_mark_running.
3414 (remote_open_1): Use have_inferiors instead of
3415 target_has_execution. Don't use target_mark_exited.
3416 (init_remote_ops): Install deafult_child_has_all_memory,
3417 default_child_has_memory, default_child_has_stack,
3418 default_child_has_registers, default_child_has_execution.
3419 * bsd-kvm.c (bsd_kvm_return_one): New.
3420 (bsd_kvm_add_target): Register bsd_kvm_return_one as
3421 to_has_memory, to_has_stack and to_has_registers callbacks.
3422 * remote-m32r-sdi.c (m32r_return_one): New.
3423 (init_m32r_ops): Register it.
3424 * inf-child.c (inf_child_target): Adjust to register
3425 default_child_has_all_memory, default_child_has_memory,
3426 default_child_has_stack, default_child_has_registers,
3427 default_child_has_execution callbacks.
3428 * gnu-nat.c (init_gnu_ops): Likewise.
3429 * go32-nat.c (init_go32_ops): Likewise.
3430 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3431 * monitor.c (init_base_monitor_ops): Likewise.
3432 * nto-procfs.c (init_procfs_ops): Likewise.
3433 * remote-mips.c (_initialize_remote_mips): Likewise.
3434 * windows-nat.c (init_windows_ops): Likewise.
3435 * remote-sim.c (gdbsim_create_inferior): Don't use
3436 target_mark_running or target_mark_exited.
3437 (gdbsim_mourn_inferior): Don't call target_mark_exited.
3438 (init_gdbsim_ops): Adjust to register
3439 default_child_has_all_memory, default_child_has_memory,
3440 default_child_has_stack, default_child_has_registers,
3441 default_child_has_execution callbacks.
3442
3443 * linux-nat.c (linux_nat_xfer_partial): If reading memory, and
3444 there's no inferior selected, defer to a lower stratum.
3445
3446 2009-06-05 Tom Tromey <tromey@redhat.com>
3447
3448 * varobj.c (update_dynamic_varobj_children): Wrap error text in
3449 _().
3450 (install_visualizer): Likewise.
3451 (varobj_set_visualizer): Likewise.
3452
3453 2009-06-05 Marc Khouzam <marc.khouzam@ericsson.com>
3454
3455 * mi/mi-main.c (mi_cmd_exec_continue)
3456 (mi_cmd_exec_interrupt): Adjust parsing of thread group
3457 ids to current reality, where they don't have any 'p' prefix.
3458
3459 2009-06-05 Aleksandar Ristovski <aristovski@qnx.com>
3460
3461 * corelow.c (core_open): Check for core_gdbarch before calling
3462 gdbarch_target_signal_from_host.
3463
3464 2009-06-05 Tom Tromey <tromey@redhat.com>
3465
3466 * c-exp.y (parse_number): Don't use K&R definition.
3467 (yylex): Likewise.
3468 (yyerror): Likewise.
3469
3470 2009-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3471
3472 * varobj.c (varobj_update): Fix out of scope varobjs to not to change.
3473
3474 2009-06-04 Ulrich Weigand <uweigand@de.ibm.com>
3475
3476 * symtab.h: Rename SYMBOL_OPS to SYMBOL_COMPUTED_OPS.
3477 * ax-gdb.c (gen_var_ref): Likewise.
3478 * findvar.c (read_var_value, symbol_read_needs_frame): Likewise.
3479 * printcmd.c (address_info): Likewise.
3480 * dwarf2loc.c (dwarf_expr_frame_base): Likewise.
3481 * dwarf2read.c (dwarf2_symbol_mark_computed): Likewise.
3482 * symtab.h: Rename struct symbol_ops to struct symbol_computed_ops.
3483 * dwarf2loc.h: Likewise.
3484 * dwarf2loc.c (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Likewise.
3485
3486 * symtab.h: (struct symbol_register_ops): New struct definition.
3487 (struct symbol): Make "ops" member a union of symbol_computed_ops and
3488 symbol_register_ops callback pointers.
3489 (SYMBOL_REGISTER_OPS): New macro.
3490 * tracepoint.c: Include "objfiles.h".
3491 (scope_info, collect_symbol): Use SYMBOL_REGISTER_OPS register_number
3492 callback to retrieve register numbers.
3493 * ax-gdb.c (gen_var_ref): Likewise.
3494 * findvar.c (read_var_value): Likewise.
3495 * printcmd.c (address_info): Likewise.
3496
3497 * coffread.c (coff_reg_to_regnum): New function.
3498 (coff_register_funcs): New static variable.
3499 (process_coff_symbol): Do not call gdbarch_sdb_reg_to_regnum.
3500 Install SYMBOL_REGISTER_OPS callbacks.
3501 * mdebugread.c (mdebug_reg_to_regnum): New function.
3502 (mdebug_register_funcs): New static variable.
3503 (parse_symbol): Do not call gdbarch_ecoff_reg_to_regnum.
3504 Install SYMBOL_REGISTER_OPS callbacks.
3505 * stabsread.c (stab_reg_to_regnum): New function.
3506 (stab_register_funcs): New static variable.
3507 (define_symbol): Do not call gdbarch_stab_reg_to_regnum.
3508 Install SYMBOL_REGISTER_OPS callbacks.
3509
3510 2009-06-03 Doug Evans <dje@google.com>
3511
3512 * symfile.c (reread_symbols): Reset psymtabs_addrmap to NULL
3513 after discarding its contents.
3514
3515 2009-06-03 Pedro Alves <pedro@codesourcery.com>
3516
3517 * target.c: Include "exec.h".
3518 (update_current_target): Don't inherit to_sections or
3519 to_sections_end.
3520 (target_get_section_table): New.
3521 (target_section_by_addr): Fetch the section table from the passed
3522 in target.
3523 (memory_xfer_partial): Handle unmapped overlay sections before
3524 anything else. Get the overlay mapped address here. Adjust to
3525 use section_table_xfer_memory_partial.
3526 (get_target_memory): Request a TARGET_OBJECT_RAW_MEMORY object
3527 instead of TARGET_OBJECT_MEMORY.
3528 (target_resize_to_sections): Delete.
3529 (remove_target_sections): Adjust to remove target sections from
3530 `current_target_sections', and use resize_section_table.
3531 * target.h (struct target_ops) <to_sections, to_sections_end>:
3532 Remove fields.
3533 <to_get_section_table>: New method.
3534 (xfer_memory, print_section_info): Delete declarations.
3535 (struct target_section_table): New type.
3536 (target_get_section_table): Declare.
3537 (target_resize_to_sections): Delete declaration.
3538 (remove_target_sections): Delete declaration.
3539 * bfd-target.c (target_bfd_xfer_partial): Get the section table
3540 from to_data.
3541 (target_bfd_get_section_table): New.
3542 (target_bfd_xclose): Adjust.
3543 (target_bfd_reopen): Store the section table in the to_data field.
3544 * corelow.c (core_data): New.
3545 (core_close): Adjust to release core_data and its sections.
3546 (core_open): Allocate core_data, and build its target sections
3547 table.
3548 (deprecated_core_resize_section_table): New.
3549 (core_files_info): Pass core_data to print_section_info.
3550 (core_xfer_partial): Adjust to use
3551 section_table_xfer_memory_partial for TARGET_OBJECT_MEMORY xfers.
3552 (init_core_ops): Do not install a deprecated_xfer_memory callback
3553 anymore.
3554 * solib.c (update_solib_list): Add the shared library sections
3555 to the current target sections table.
3556 * exec.c (current_target_sections_1): New global.
3557 (current_target_sections): New global.
3558 (exec_close_1): New function, refactored from exec_close. Remove
3559 the exec_bfd's sections from the current target sections table.
3560 Adjust to not use to_sections.
3561 (exec_close): Remove all target sections. Call exec_close_1.
3562 (exec_file_clear): Use exec_close_1 instead of unpushing the
3563 target.
3564 (exec_file_attach): Likewise. Adjust to not use to_sections. Add
3565 exec_bfd's sections to the current target sections table. Don't
3566 push the exec_ops target here.
3567 (resize_section_table): New.
3568 (add_target_sections): New.
3569 (remove_target_sections): Moved here.
3570 (section_table_xfer_memory): Adjust to implement the xfer_partial
3571 interface, and rename to...
3572 (section_table_xfer_memory_partial): ... this, replacing the
3573 current function of that same name.
3574 (exec_get_section_table): New.
3575 (exec_xfer_partial): New.
3576 (xfer_memory): Delete.
3577 (print_section_info): Replace the target_ops parameter by a
3578 target_section_table parameter.
3579 (exec_files_info, set_section_command, exec_set_section_address):
3580 Adjust to use the current sections table.
3581 (init_exec_ops): Do not register a deprecated_xfer_memory
3582 callback. Register to_xfer_partial and to_get_section_table
3583 callbacks.
3584 * infrun.c (handle_inferior_event): Update comments around
3585 solib_add.
3586 * rs6000-nat.c (xcoff_relocate_core): Adjust to use
3587 deprecated_core_resize_section_table.
3588 * exec.h (resize_section_table): Declare.
3589 (section_table_xfer_memory_partial): Add const char * argument.
3590 (remove_target_sections): Declare here.
3591 (add_target_sections): Declare.
3592 (print_section_info): Declare here.
3593 * gdbcore.h (deprecated_core_resize_section_table): Declare.
3594
3595 2009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
3596
3597 * value.h (struct internalvar): Remove.
3598 (get_internalvar_integer): Add prototype.
3599 (set_internalvar_integer): Add prototype.
3600 (clear_internalvar): Add prototype.
3601
3602 * value.c (struct internalvar): Move here. Add type member. Remove
3603 endian member. Add union_internalvar member instead of value member.
3604 (init_if_undefined_command): Use intvar->type.
3605 (create_internalvar): Do not initialize value/endian, but type.
3606 (create_internalvar_type_lazy): Call create_internalvar.
3607 (value_of_internalvar): Handle host-side internalvar contents.
3608 (set_internalvar_component): Likewise.
3609 (set_internalvar): Likewise.
3610 (get_internalvar_integer): New function.
3611 (clear_internalvar): Likewise.
3612 (set_internalvar_integer): Likewise.
3613 (preserve_values): Handle host-side internalvar contents.
3614
3615 * breakpoint.c (set_breakpoint_count, set_tracepoint_count): Call
3616 set_internalvar_integer instead of set_internalvar.
3617 * findcmd.c (find_command): Likewise.
3618 * infrun.c (handle_inferior_event): Likewise.
3619 * source.c (forward_search_command, reverse_search_command): Likewise.
3620 * tracepoint.c (set_traceframe_num, set_tracepoint_num,
3621 set_traceframe_context): Likewise.
3622
3623 * printcmd.c (x_command): Call clear_internalvar instead of
3624 set_internalvar.
3625 * tracepoint.c (set_traceframe_context): Likewise.
3626
3627 * breakpoint.c (get_number_trailer): Call get_internalvar_integer
3628 instead of value_of_internalvar.
3629 * linespec.c (decode_dollar): Likewise.
3630
3631 * expprint.c (dump_subexp_body_standard): Use internalvar_name
3632 instead of accessing internalvar private elements.
3633 * valops.c (value_assign): Copy from original source instead of
3634 accessing internalvar private elements.
3635
3636 2009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
3637
3638 * scm-lang.c (builtin_type_scm): Remove.
3639 (scm_lookup_name): Add GDBARCH parameter. Use it instead of
3640 objfile architecture. Use per-architecture builtin_scm_type instead
3641 of builtin_type_scm.
3642 (evaluate_exp): Pass expression architecture to scm_lookup_name.
3643
3644 (scm_get_field): Add SIZE parameter. Use it instead of
3645 TYPE_LENGTH (builtin_type_scm).
3646
3647 (build_scm_types): New function.
3648 (scm_type_data): New variable.
3649 (builtin_scm_type): New function.
3650 (_initialize_scheme_language): Do not initialize builtin_type_scm.
3651 Register build_scm_types as post-init function for scm_type_data.
3652
3653 * scm-exp.c (scm_lreadr): Use per-architecture builtin_scm_type
3654 instead of builtin_type_scm.
3655
3656 * scm-lang.h (SCM_CAR, SCM_CDR): Pass SCM_SIZE to scm_get_field.
3657 (scm_get_field): Add SIZE paramter.
3658 (scm_scmval_print): Remove prototype.
3659 (builtin_type_scm): Remove.
3660 (struct builtin_scm_type): Add structure definition.
3661 (builtin_scm_type): Add prototype.
3662
3663 * scm-valprint.c (scm_inferior_print): Add TYPE parameter. Use it
3664 instead of builtin_core_addr type; do not use objfile architecture.
3665 (scm_scmlist_print): Add TYPE parameter. Use it to define SCM_SIZE.
3666 Pass type to scm_scmval_print.
3667 (scm_ipruk): Add TYPE parameter. Use it to define SCM_SIZE.
3668 (scm_scmval_print): Make static. Add TYPE parameter. Use it to
3669 define SCM_SIZE. Pass type to scm_ipruk and scm_scmlist_print.
3670 (scm_val_print): Pass type to scm_inferior_print and scm_scmval_print.
3671
3672 2009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
3673
3674 * mdebugread.c (mdebug_type_void, mdebug_type_char, mdebug_type_short,
3675 mdebug_type_int, mdebug_type_int_32, mdebug_type_int_64,
3676 mdebug_type_long_32, mdebug_type_long_64, mdebug_type_long_long_64,
3677 mdebug_type_unsigned_char, mdebug_type_unsigned_short,
3678 mdebug_type_unsigned_int_32, mdebug_type_unsigned_int_64,
3679 mdebug_type_unsigned_long_32, mdebug_type_unsigned_long_64,
3680 mdebug_type_unsigned_long_long_64, mdebug_type_adr_32,
3681 mdebug_type_adr_64, mdebug_type_float, mdebug_type_double,
3682 mdebug_type_complex, mdebug_type_double_complex,
3683 mdebug_type_fixed_dec, mdebug_type_float_dec, mdebug_type_string):
3684 Remove.
3685
3686 (basic_type_data): New global variable.
3687 (basic_type): New function.
3688 (parse_type): Remove static basic type map map_bt. Call basic_type
3689 to get basic types instead of using mdebug_type_ variables.
3690
3691 (parse_symbol): Use builtin types instead of mdebug_type_ variables.
3692 (upgrade_type): Likewise.
3693 (parse_procedure): Likewise.
3694 (psymtab_to_symtab_1): Likewise.
3695
3696 (_initialize_mdebugread): Do not initialize mdebug_type_ variables.
3697 Initialize basic_type_data.
3698
3699 2009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
3700
3701 * dfp.h (decimal_binop): Convert LEN_RESULT to input parameter.
3702 * dfp.c (promote_decimal): Remove.
3703 (decimal_binop): Convert LEN_RESULT to input parameter.
3704 Remove call to decimal_binop.
3705 (decimal_compare): Remove call to decimal_binop.
3706
3707 * valarith.c (value_binop): Pass desired result type length
3708 to decimal_binop.
3709
3710 2009-06-01 Tristan Gingold <gingold@adacore.com>
3711
3712 * configure.tgt (avr): Set gdb_sim to use the simulator.
3713
3714 2009-05-29 Doug Evans <dje@google.com>
3715
3716 * infrun.c (prepare_to_proceed): Document. Assert !non_stop.
3717 If scheduler-locking is enabled, we're not going to be singlestepping
3718 any other previously stopped thread.
3719
3720 2009-05-29 Pedro Alves <pedro@codesourcery.com>
3721
3722 * mi/mi-interp.c (mi_on_resume): Initialize `count' to 0.
3723
3724 2009-05-29 Eli Zaretskii <eliz@gnu.org>
3725
3726 * i386-tdep.c (i386_go32_init_abi): Use SVR4 register numbering
3727 for stabs and COFF debug info.
3728
3729 2009-05-28 Pedro Alves <pedro@codesourcery.com>
3730
3731 * infrun.c (handle_inferior_event): When thread hoping, switch
3732 inferior_ptid to the event thread before removing breakpoints from
3733 the target. If not stopping, also try to revert back to a thread
3734 that was doing a "next". Check if that thread still exists before
3735 resuming.
3736 (currently_stepping_thread): Delete and merge with ...
3737 (currently_stepping): ... this.
3738 (currently_stepping_callback): Rename to ...
3739 (currently_stepping_or_nexting_callback): ... this, and also
3740 return true if the thread was stepping over a call (has a
3741 step-resume breakpoint).
3742
3743 2009-05-28 Tom Tromey <tromey@redhat.com>
3744
3745 * python/python.c (gdbpy_parameter): Rename. Fix error message.
3746 (GdbMethods): Change "get_parameter" to "parameter".
3747
3748 2009-05-28 Pierre Muller <muller@ics.u-strasbg.fr>
3749 Paul Pluzhnikov <ppluzhnikov@google.com>
3750
3751 * configure.ac (!have_libpython): Add python-prettyprint source
3752 and object files.
3753 * configure: Regenerate.
3754 * python/python-prettyprint.c: Move "#ifdef HAVE_PYTHON" before
3755 python headers.
3756
3757 2009-05-27 Vladimir Prus <vladimir@codesourcery.com>
3758 Tom Tromey <tromey@redhat.com>
3759 Thiago Jung Bauermann <bauerman@br.ibm.com>
3760
3761 * mi/mi-main.c (mi_cmd_list_features): List "python" feature.
3762 * varobj.h (varobj_set_visualizer): Declare.
3763 (varobj_get_display_hint): Likewise.
3764 (varobj_update_result_t) <children_changed, value_installed>: New
3765 fields.
3766 * mi/mi-cmds.c (mi_cmds): Add var-set-visualizer.
3767 * mi/mi-cmds.h (mi_cmd_var_set_visualizer,
3768 mi_cmd_var_set_child_range): Declare.
3769 * mi/mi-cmd-var.c (mi_cmd_var_set_visualizer): New function.
3770 (mi_cmd_var_list_children): Emit display hint.
3771 (varobj_update_one): Emit display hint. Handle dynamic children.
3772 * python/python.c (GdbMethods): Add "default_visualizer".
3773 * python/python-internal.h (apply_varobj_pretty_printer,
3774 gdbpy_get_varobj_pretty_printer, gdbpy_get_display_hint):
3775 Declare.
3776 (gdbpy_default_visualizer): Likewise.
3777 * varobj.c: Include python.h, python-internal.h.
3778 (PyObject): New typedef.
3779 (struct varobj) <children_requested, pretty_printer>: New fields.
3780 (varobj_create): Call install_default_visualizer.
3781 (instantiate_pretty_printer): New function.
3782 (varobj_set_display_format): Update.
3783 (varobj_get_display_hint): New function.
3784 (update_dynamic_varobj_children): New function.
3785 (varobj_get_num_children): Handle dynamic children.
3786 (varobj_list_children): Likewise.
3787 (install_new_value): Likewise.
3788 (varobj_add_child): New function.
3789 (install_visualizer): Likewise.
3790 (install_default_visualizer): Likewise.
3791 (varobj_set_visualizer): Likewise.
3792 (varobj_update): Handle dynamic children.
3793 (create_child): Use create_child_with_value.
3794 (create_child_with_value): New function.
3795 (value_get_print_value): Call pretty printer. Add value_formatter
3796 argument.
3797 (c_value_of_variable): Update.
3798 (varobj_invalidate): Always free all_rootvarobj.
3799 * python/python-prettyprint.c (apply_varobj_pretty_printer): New
3800 function.
3801 (gdbpy_get_varobj_pretty_printer): Likewise.
3802 (gdbpy_default_visualizer): Likewise.
3803
3804 2009-05-27 Tom Tromey <tromey@redhat.com>
3805 Thiago Jung Bauermann <bauerman@br.ibm.com>
3806 Phil Muldoon <pmuldoon@redhat.com>
3807 Paul Pluzhnikov <ppluzhnikov@google.com>
3808 Vladimir Prus <vladimir@codesourcery.com>
3809
3810 * python/python-value.c (value_object_to_value): New function.
3811 * python/python-internal.h: Include frameobject.h.
3812 (gdbpy_children_cst, gdbpy_to_string_cst, gdbpy_display_hint_cst):
3813 Declare.
3814 (value_object_to_value): Declare.
3815 * printcmd.c (struct format_data) <raw>: New field.
3816 (last_format): Default to 0.
3817 (decode_format): Initialize val.raw. Handle /r flag.
3818 (print_command_1): Initialize fmt.raw and opts.raw.
3819 (output_command): Likewise.
3820 (x_command): Fix initialization of fmt.format. Initialize
3821 fmt.raw.
3822 (display_command): Initialize fmt.raw.
3823 (do_one_display): Set opts.raw.
3824 * python/python.c (gdbpy_to_string_cst, gdbpy_children_cst,
3825 gdbpy_display_hint_cst): New globals.
3826 (_initialize_python): Initialize them. Set gdb.pretty_printers.
3827 * cp-valprint.c: Include python.h.
3828 (cp_print_value): Call apply_val_pretty_printer.
3829 * python/python.h (apply_val_pretty_printer): Declare.
3830 * stack.c (print_this_frame_argument_p): Remove.
3831 (print_frame_args): Compute summary flag. Don't use
3832 print_this_frame_argument_p.
3833 * valprint.c: Include python.h.
3834 (user_print_options): Initialize new fields.
3835 (scalar_type_p): New function.
3836 (val_print): Handle 'raw' and 'summary' modes. Call
3837 apply_val_pretty_printer.
3838 (value_print): Handle 'raw' mode.
3839 * valprint.h (struct value_print_options) <raw, summary>: New
3840 fields.
3841 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-prettyprint.o
3842 (SUBDIR_PYTHON_SRCS): Add python-prettyprint.c.
3843 (python-prettyprint.o): New target.
3844 * python/python-prettyprint.c: New file.
3845
3846 2009-05-27 Tom Tromey <tromey@redhat.com>
3847 Paul Pluzhnikov <ppluzhnikov@google.com>
3848
3849 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Use
3850 value_address.
3851 * cli/cli-dump.c (dump_value_to_file): Use value_address.
3852 * valprint.c (common_val_print): Likewise.
3853 * v850-tdep.c (v850_push_dummy_call): Use value_address.
3854 * tracepoint.c (encode_actions): Use value_address.
3855 * printcmd.c (print_formatted): Use value_address.
3856 (x_command): Likewise.
3857 * p-valprint.c (pascal_object_print_static_field): Use
3858 value_address.
3859 * mn10300-tdep.c (mn10300_push_dummy_call): Use value_address.
3860 * mips-tdep.c (mips_eabi_push_dummy_call): Use value_address.
3861 * m32r-tdep.c (m32r_push_dummy_call): Use value_address.
3862 * jv-valprint.c (java_value_print): Use value_address.
3863 * infcall.c (find_function_addr): Use value_address.
3864 * gnu-v3-abi.c (gnuv3_rtti_type): Use value_address.
3865 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use value_address.
3866 * frv-tdep.c (frv_push_dummy_call): Use value_address.
3867 * frame.c (frame_register_unwind): Use value_address.
3868 (frame_unwind_register_value): Likewise.
3869 * darwin-nat-info.c (info_mach_region_command): Use
3870 value_address.
3871 * cp-valprint.c (cp_print_static_field): Use value_address.
3872 * c-valprint.c (c_value_print): Use value_address.
3873 * breakpoint.c (update_watchpoint): Use value_address.
3874 (can_use_hardware_watchpoint): Likewise.
3875 * ada-valprint.c (ada_val_print_1): Use value_address.
3876 (ada_value_print): Likewise.
3877 * ada-tasks.c (read_fat_string_value): Use value_address.
3878 * jv-lang.c (java_link_class_type): Use set_value_address.
3879 (java_link_class_type): Likewise.
3880 (get_java_utf8_name): Use value_address.
3881 (type_from_class): Likewise.
3882 (java_link_class_type): Likewise.
3883 * findvar.c (value_of_register): Use set_value_address.
3884 (read_var_value): Likewise.
3885 (read_var_value): Likewise.
3886 * eval.c (evaluate_subexp_standard): Use set_value_address.
3887 (evaluate_subexp_standard): Use value_address.
3888 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Use set_value_address.
3889 * ada-lang.c (coerce_unspec_val_to_type): Use set_value_address.
3890 (ada_value_primitive_packed_val): Likewise.
3891 (ensure_lval): Likewise.
3892 (thin_data_pntr): Use value_address.
3893 (desc_bounds): Likewise.
3894 (ada_value_primitive_packed_val): Likewise.
3895 (value_assign_to_component): Likewise.
3896 (ensure_lval): Likewise.
3897 (make_array_descriptor): Likewise.
3898 (ada_to_fixed_value): Likewise.
3899 (unwrap_value): Likewise.
3900 * value.c (deprecated_value_address_hack): Remove.
3901 (value_address): New function.
3902 (value_raw_address): Likewise.
3903 (set_value_address): Likewise.
3904 (value_fn_field): Use set_value_address.
3905 (value_from_contents_and_address): Likewise.
3906 (value_fn_field): Likewise.
3907 (allocate_value_lazy): Don't use VALUE_ADDRESS.
3908 (value_as_address): Use value_address.
3909 (value_static_field): Likewise.
3910 * valops.c (search_struct_field): Use set_value_address.
3911 (value_at): Likewise.
3912 (value_at_lazy): Likewise.
3913 (value_repeat): Likewise.
3914 (value_cast_structs): Use value_address.
3915 (value_cast): Likewise.
3916 (value_fetch_lazy): Likewise.
3917 (value_assign): Likewise.
3918 (value_repeat): Likewise.
3919 (address_of_variable): Likewise.
3920 (value_coerce_array): Likewise.
3921 (value_coerce_function): Likewise.
3922 (value_addr): Likewise.
3923 (search_struct_field): Likewise.
3924 (search_struct_method): Likewise.
3925 (find_method_list): Likewise.
3926 (value_struct_elt_for_reference): Likewise.
3927 (value_full_object): Likewise.
3928 * jv-valprint.c (java_value_print): Use set_value_address.
3929 * value.h (deprecated_value_address_hack): Remove.
3930 (VALUE_ADDRESS): Remove.
3931 (value_address): Declare.
3932 (value_raw_address): Declare.
3933 (set_value_address): Declare.
3934
3935 2009-05-27 Tom Tromey <tromey@redhat.com>
3936 Thiago Jung Bauermann <bauerman@br.ibm.com>
3937 Phil Muldoon <pmuldoon@redhat.com>
3938 Paul Pluzhnikov <ppluzhnikov@google.com>
3939
3940 * python/python.c (_initialize_python): Call
3941 gdbpy_initialize_types.
3942 (GdbMethods): Add "lookup_type".
3943 * python/python-value.c (value_object) <type>: New field.
3944 (valpy_dealloc): Decref type.
3945 (valpy_new): Initialize type.
3946 (valpy_get_type): New function.
3947 (value_to_value_object): Initialize type.
3948 (valpy_cast): New function.
3949 (value_object_getset): Add "type".
3950 (value_object_methods): Add "cast".
3951 * python/python-internal.h (type_to_type_object): Declare.
3952 (type_object_to_type): Likewise.
3953 (gdbpy_initialize_types): Likewise.
3954 (gdbpy_lookup_type): Declare.
3955 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-type.o.
3956 (SUBDIR_PYTHON_SRCS): Add python-type.c.
3957 (python-type.o): New target.
3958 * python/python-type.c: New file.
3959
3960 2009-05-27 Tom Tromey <tromey@redhat.com>
3961 Thiago Jung Bauermann <bauerman@br.ibm.com>
3962 Phil Muldoon <pmuldoon@redhat.com>
3963
3964 * python/python.c: Include objfiles.h, observer.h.
3965 (gdbpy_auto_load): New global.
3966 (gdbpy_current_objfile): Likewise.
3967 (GDBPY_AUTO_FILENAME): New define.
3968 (gdbpy_new_objfile): New function.
3969 (gdbpy_get_current_objfile): Likewise.
3970 (gdbpy_objfiles): Likewise.
3971 (_initialize_python): Add "maint set auto-load". Call
3972 gdbpy_initialize_objfile. Attach objfile observer.
3973 (GdbMethods): New methods current_objfile, objfiles.
3974 * python/python-objfile.c: New file.
3975 * python/python-internal.h (objfile_to_objfile_object): Declare.
3976 (objfpy_get_printers): Likewise.
3977 (gdbpy_initialize_objfile): Likewise.
3978 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-objfile.o.
3979 (SUBDIR_PYTHON_SRCS): Add python-objfile.c.
3980 (python-objfile.o): New target.
3981
3982 2009-05-27 Pedro Alves <pedro@codesourcery.com>
3983
3984 * infrun.c (follow_exec): Clear the stop_requested flag.
3985 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
3986 Add debug output.
3987
3988 2009-05-27 Aleksandar Ristovski <aristovski@qnx.com>
3989
3990 * nto-procfs.c (get_regset): Pass correct pointer.
3991
3992 2009-05-26 Doug Evans <dje@google.com>
3993
3994 * dwarf2read.c (follow_die_ref): Add comment.
3995 (dwarf2_mark_helper): Tweak comment.
3996 (dwarf2_mark): Move description to its proper place.
3997
3998 2009-05-25 Pierre Muller <muller@ics.u-strasbg.fr>
3999
4000 * procfs.c (procfs_wait): Add options parameter.
4001
4002 2009-05-24 Doug Evans <dje@google.com>
4003
4004 Global renaming of find_thread_pid to find_thread_ptid.
4005 * gdbthread.h (find_thread_ptid): Renamed from find_thread_pid.
4006 * thread.c (find_thread_ptid): Renamed from find_thread_pid.
4007 All callers updated.
4008
4009 * infrun.c (follow_fork): Initialize new step_* locals
4010 to avoid "may be used uninitialized" warnings.
4011
4012 2009-05-24 Pedro Alves <pedro@codesourcery.com>
4013
4014 * inflow.c (copy_terminal_info): Deep copy `run_terminal'.
4015
4016 2009-05-24 Pedro Alves <pedro@codesourcery.com>
4017
4018 * gdbthread.h (struct thread_info): New `pending_follow' field.
4019 * thread.c (new_thread): New function.
4020 (add_thread_silent): Use it.
4021 * breakpoint.c (internal_breakpoint_number): New global, moved
4022 from inside...
4023 (create_internal_breakpoint): ... this.
4024 (clone_momentary_breakpoint): New.
4025 * breakpoint.h (clone_momentary_breakpoint): Declare.
4026 * infrun.c (nullify_last_target_wait_ptid): Move declaration
4027 higher.
4028 (pending_follow): Delete.
4029 (follow_fork): Handle pending follow fork event here. Moved the
4030 preserving of thread stepping state here.
4031 (resume): Don't handle pending follow fork events here. Only
4032 install the inferior's terminal modes if we're about to resume it.
4033 (proceed): Handle possible pending follow fork events here.
4034 (init_wait_for_inferior): No need to clear pending_follow anymore,
4035 it's gone.
4036 (handle_inferior_event): Adjust to per-thread `pending_follow'.
4037 Call `follow_fork' to handle following the fork. If the
4038 follow-fork is cancelled, stop stepping.
4039 * linux-nat.c (linux_child_follow_fork): Adjust to per-thread
4040 `pending_follow' events. Remove code that handled preserving the
4041 thread stepping state.
4042 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
4043 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
4044
4045 2009-05-24 Pierre Muller <muller@ics.u-strasbg.fr>
4046
4047 * symfile.c (add_shared_symbol_files_command): Remove
4048 prototype and function.
4049 (_initialize _symfile): Move "add-shared-symbol-files"
4050 command and "assf" alias.
4051 * windows-nat.c (_initialize_windows_nat): to here.
4052 Change "add-shared-symbol-files" to alias.
4053
4054 * config/i386/cygwin.mh: Remove NAT_FILE.
4055 * config/i386/mingw.mh: Remove NAT_FILE.
4056 * config/i386/mingw64.mh: Remove NAT_FILE.
4057 * config/i386/nm-cygwin.h: Remove file.
4058 * config/i386/nm-cygwin64.h: Remove file.
4059
4060 2009-05-24 Hui Zhu <teawater@gmail.com>
4061
4062 * i386-linux-tdep.c (I386_LINUX_RECORD_SIZE_*,
4063 I386_LINUX_RECORD_IOCTL_*,
4064 I386_LINUX_RECORD_FCNTL_*) Removed.
4065 (i386_linux_init_abi): Change size of record from macros to
4066 numbers.
4067
4068 2009-05-24 Hui Zhu <teawater@gmail.com>
4069
4070 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_char.
4071 * linux-record.c (record_linux_system_call): Ditto.
4072 * linux-record.h (linux_record_tdep): Ditto.
4073
4074 2009-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4075
4076 Replace the savestring calls by xstrdup calls where possible.
4077 * breakpoint.c (condition_command, set_raw_breakpoint)
4078 (create_catchpoint, update_breakpoint_locations): Replace the
4079 savestring calls by xstrdup calls where possible.
4080 * buildsym.c (start_subfile, patch_subfile_names, record_debugformat)
4081 (record_producer): Likewise.
4082 * coffread.c (coff_start_symtab, complete_symtab): Likewise.
4083 * corefile.c (set_gnutarget): Likewise.
4084 * dbxread.c (add_new_header_file): Likewise.
4085 * demangle.c (set_demangling_command, set_demangling_style): Likewise.
4086 * event-top.c (push_prompt, pop_prompt, command_line_handler)
4087 (set_async_prompt): Likewise.
4088 * infcmd.c (set_inferior_io_terminal, attach_command_post_wait):
4089 Likewise.
4090 * language.c (set_language_command, _initialize_language): Likewise.
4091 * linespec.c (decode_line_2): Likewise.
4092 * rs6000-nat.c (add_vmap): Likewise.
4093 * top.c (set_prompt, init_history, init_main): Likewise.
4094 * tracepoint.c (stringify_collection_list): Likewise.
4095 * varobj.c (varobj_create): Remove variable expr_len. Replace the
4096 savestring calls by xstrdup calls where possible.
4097 (value_of_root, c_name_of_variable, c_describe_child): Replace the
4098 savestring calls by xstrdup calls where possible.
4099 * xcoffread.c (complete_symtab): Likewise.
4100 * cli/cli-script.c (build_command_line, define_command): Likewise.
4101 * cli/cli-setshow.c (do_setshow_command): Likewise.
4102
4103 2009-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4104
4105 Remove already unreachable code.
4106 * varobj.c (varobj_get_handle): Fix comment when error is called.
4107 All callers updated.
4108
4109 2009-05-23 Eli Zaretskii <eliz@gnu.org>
4110
4111 * README (`configure' options): Document GDB-specific options to
4112 `configure'.
4113
4114 * symtab.c (skip_prologue_using_lineinfo): New function.
4115 (find_function_start_sal): Use it to get to the first line of
4116 function's body that has an entry in the lineinfo table.
4117
4118 * symmisc.c (dump_symtab): Switch the current language to
4119 the language of the symtab we are dumping only if the symtab's
4120 language is neither language_auto nor language_unknown.
4121
4122 * coffread.c (coff_symtab_read): Set language_minimal as the
4123 language for the "_globals_" pseudo-file.
4124 (process_coff_symbol): Set the symbol's language to the language
4125 of current_subfile.
4126
4127 2009-05-22 Pedro Alves <pedro@codesourcery.com>
4128
4129 * target.h (struct section_table): Rename to ...
4130 (struct target_section): ... this.
4131 * exec.c: Adjust all references.
4132 * exec.h: Adjust all references.
4133 * nto-tdep.c: Adjust all references.
4134 * nto-tdep.h: Adjust all references.
4135 * ppc-linux-tdep.c: Adjust all references.
4136 * rs6000-nat.c: Adjust all references.
4137 * s390-tdep.c: Adjust all references.
4138 * solib-darwin.c: Adjust all references.
4139 * solib-frv.c: Adjust all references.
4140 * solib-irix.c: Adjust all references.
4141 * solib-null.c: Adjust all references.
4142 * solib-osf.c: Adjust all references.
4143 * solib-pa64.c: Adjust all references.
4144 * solib-som.c: Adjust all references.
4145 * solib-sunos.c: Adjust all references.
4146 * solib-svr4.c: Adjust all references.
4147 * solib-target.c: Adjust all references.
4148 * solib.c: Adjust all references.
4149 * solist.h: Adjust all references.
4150 * symfile.c: Adjust all references.
4151 * symfile.h: Adjust all references.
4152 * target.c: Adjust all references.
4153
4154 2009-05-22 Hui Zhu <teawater@gmail.com>
4155
4156 Add sys_fcntl argument interfaces to linux_record_tdep.
4157
4158 * linux-record.h (linux_record_tdep): Add fcntl_F_GETLK,
4159 fcntl_F_GETLK64, fcntl_F_SETLK64 and fcntl_F_SETLKW64 to be
4160 interfaces.
4161 * i386-linux-tdep.c (I386_LINUX_RECORD_FCNTL_F_GETLK,
4162 I386_LINUX_RECORD_FCNTL_F_GETLK64,
4163 I386_LINUX_RECORD_FCNTL_F_SETLK64,
4164 I386_LINUX_RECORD_FCNTL_F_SETLKW64): New macros. The values
4165 of I386 Linux sys_fcntl arguments.
4166 (i386_linux_init_abi): Set macros values to linux_record_tdep.
4167 * linux-record.c (record_linux_system_call): Change to use
4168 the interface in linux_record_tdep in sys_fcntl and
4169 sys_fcntl64.
4170
4171 * linux-record.c (record_linux_system_call): Fix the process
4172 record build error about type in CYGWIN.
4173
4174 2009-05-22 Pedro Alves <pedro@codesourcery.com>
4175
4176 * inflow.c (kill_command): Delete left over static declaration.
4177
4178 2009-05-22 Pedro Alves <pedro@codesourcery.com>
4179
4180 * bfd-target.c: Don't include gdb_assert.h or gdb_string.h.
4181 Include exec.h.
4182 (struct section_closure): Delete.
4183 (add_to_section_table): Delete.
4184 (build_target_sections_from_bfd): Delete.
4185 (target_bfd_xfer_partial): Use section_table_xfer_memory_partial.
4186 (target_bfd_reopen): Use build_section_table.
4187 * exec.c (xfer_memory): Move most code except for overlay
4188 debugging support from here...
4189 (section_table_xfer_memory): ... to this new function.
4190 (section_table_xfer_memory_partial): New.
4191 * exec.h (section_table_xfer_memory_partial): Declare.
4192 * bfd-target.h (build_target_sections_from_bfd): Delete
4193 declaration.
4194
4195 2009-05-22 Pedro Alves <pedro@codesourcery.com>
4196
4197 * remote.c (compare_sections_command): Don't declare exec_bfd.
4198 * tracepoint.c: Include "gdbcore.h".
4199 (remote_set_transparent_ranges): Don't declare exec_bfd.
4200
4201 2009-05-21 Pedro Alves <pedro@codesourcery.com>
4202
4203 * aix-thread.c (init_aix_thread_ops): Whitespace.
4204
4205 2009-05-21 Pedro Alves <pedro@codesourcery.com>
4206
4207 * dec-thread.c (dec_thread_wait): Add options parameter. Use it
4208 to call the to_wait method in the target beneath.
4209 * remote-m32r-sdi.c (m32r_wait): Add options parameter.
4210
4211 2009-05-21 Joel Brobecker <brobecker@adacore.com>
4212
4213 * aix-thread.c (aix_thread_wait): Add options parameter. Use it
4214 to call the to_wait method in the target_beneath.
4215
4216 2009-05-21 Pedro Alves <pedro@codesourcery.com>
4217
4218 * linux-nat.c (linux_nat_terminal_inferior)
4219 (linux_nat_terminal_ours): Don't check sync_execution.
4220 * remote.c (remote_terminal_inferior, remote_terminal_ours):
4221 Don't check sync_execution. Update comments.
4222 * target.c (target_terminal_inferior): New.
4223 * target.h (target_terminal_inferior): Delete macro, and declare
4224 as function.
4225 * event-top.c (async_disable_stdin): Make idempotent. Don't give
4226 the target the terminal here.
4227 * inflow.c (terminal_ours_1): Don't return early without setting
4228 `terminal_is_ours'.
4229
4230 2009-05-21 Pedro Alves <pedro@codesourcery.com>
4231
4232 * target.h (TARGET_WNOHANG): New.
4233 * target.c (target_wait): Add `options' argument. Adjust.
4234 (struct target_ops) <to_wait>: Add `options' argument.
4235 (target_wait): Add `options' argument.
4236 * infrun.c (wait_for_inferior): Pass 0 as options to
4237 target_wait (blocking wait).
4238 (fetch_inferior_event): Pass TARGET_WNOHANG as options to
4239 target_wait.
4240 * fork-child.c (startup_inferior): Pass 0 as options to
4241 target_wait (blocking wait).
4242 * linux-nat.c (linux_nat_create_inferior): Remove async masking.
4243 (linux_nat_wait_1): Add `target_options' argument. Use it instead
4244 of checking on target_can_async_p.
4245 (linux_nat_wait): Add `target_options' argument. Adjust.
4246 * remote.c (remote_wait_ns): Add `options' argument. Adjust to
4247 check on TARGET_WNOWAIT instead of checking on remote_is_async_p.
4248 (remote_wait_as): Add `options' argument. Adjust to check on
4249 TARGET_WNOWAIT instead of checking on remote_is_async_p. If doing
4250 a blocking wait, keep waiting until an interesting event comes
4251 out.
4252 (remote_wait): Add `options' argument. Don't loop here if the
4253 target is in async mode, and a blocking wait has been requested.
4254
4255 * top.c (deprecated_target_wait_hook): Add `options' argument.
4256 * linux-thread-db.c (thread_db_wait): Add `options' argument, and
4257 pass it down to the layer beneath.
4258 * inf-ptrace.c (inf_ptrace_wait): Add `options' argument.
4259 * record.c (record_beneath_to_wait): Add `options' argument.
4260 (record_wait): Add `options' argument, and pass it down to the
4261 layer beneath.
4262 * bsd-uthread.c (bsd_uthread_wait): Add `options' argument.
4263 * darwin-nat.c (darwin_wait): Likewise.
4264 * defs.h (deprecated_target_wait_hook): Likewise.
4265 * gnu-nat.c (gnu_wait): Add `options' argument.
4266 * go32-nat.c (go32_wait): Likewise.
4267 * hpux-thread.c (hpux_thread_wait): Add `options' argument, and
4268 pass it down to the layer beneath.
4269 * inf-ttrace.c (inf_ttrace_wait): Add `options' argument.
4270 * monitor.c (monitor_wait): Likewise.
4271 * nto-procfs.c (procfs_wait): Likewise.
4272 * remote-mips.c (mips_wait): Add `options' argument.
4273 * remote-sim.c (gdbsim_wait): Likewise.
4274 * rs6000-nat.c (rs6000_wait): Add `options' argument.
4275 * sol-thread.c (sol_thread_wait): Add `options' argument, and pass
4276 it down to the layer beneath.
4277 * spu-linux-nat.c (spu_child_wait): Add `options' argument.
4278 * windows-nat.c (windows_wait): Likewise.
4279 * tui/tui-hooks.c (tui_target_wait_hook): Likewise. Adjust.
4280
4281 2009-05-21 Pedro Alves <pedro@codesourcery.com>
4282
4283 * mi/mi-interp.c (mi_on_resume): Account for whole process
4284 resumes.
4285
4286 2009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4287
4288 * m2-exp.y (MAX_FUNC): Fix trailing UNOP_MAX.
4289
4290 2009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4291
4292 * dwarf2read.c (set_cu_language): Recognize also DW_LANG_C99.
4293
4294 2009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4295
4296 Fix parsing DW_AT_const_value using DW_FORM_string.
4297 * dwarf2read.c (dwarf2_const_value <DW_FORM_string>): New.
4298
4299 2009-05-20 Joel Brobecker <brobecker@adacore.com>
4300
4301 * aix-thread.c (giter_count): Do not count the main thread.
4302 (giter_accum): Do not include the main thread.
4303
4304 2009-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4305
4306 Remove the PROT parameter from openp.
4307 * source.c (openp): Remove the parameter PROT. Assertion check MODE.
4308 defs.h (openp): Update the prototype.
4309 Update all the openp callers.
4310
4311 2009-05-19 Pedro Alves <pedro@codesourcery.com>
4312
4313 * inflow.c (kill_command): Moved to infcmd.c.
4314 (_initialize_inflow): Don't add the "kill" command or clear
4315 inferior_ptid here.
4316 * infcmd.c (kill_command): Moved here from inflow.c.
4317 (_initialize_infcmd): Add the "kill" command here.
4318
4319 2009-05-19 Pedro Alves <pedro@codesourcery.com>
4320
4321 * fork-child.c: Don't include frame.h. Include terminal.h.
4322 (fork_inferior): Call new_tty_postfork after forking adn adding
4323 the child to the inferior list.
4324 * inferior.h (new_tty_prefork, gdb_has_a_terminal): Don't declare
4325 here.
4326 * inflow.c (struct terminal_info): Remove const qualifier from
4327 `run_terminal' field.
4328 (inferior_thisrun_terminal): Tweak comment.
4329 (inflow_inferior_exit): Release the `run_terminal' field.
4330 (copy_terminal_info): New function.
4331 (new_tty_postfork): New function.
4332 * terminal.h (new_tty_prefork, new_tty, new_tty_postfork,
4333 (copy_terminal_info, gdb_has_a_terminal, gdb_setpgid): Declare.
4334 * inf-ptrace.c: Include terminal.h.
4335 (inf_ptrace_follow_fork): Copy the parent's terminal info to the
4336 child.
4337 * linux-nat.c: Include terminal.h.
4338 (linux_child_follow_fork): Copy the parent's terminal info to the
4339 child.
4340 * inf-ttrace.c: Include terminal.h.
4341 (inf_ttrace_follow_fork): Copy the parent's terminal info to the
4342 child.
4343
4344 2009-05-19 Pedro Alves <pedro@codesourcery.com>
4345
4346 * breakpoint.c (insert_breakpoints, breakpoint_init_inferior)
4347 (update_global_location_list): Use gdbarch_has_global_breakpoints
4348 instead of gdbarch_has_global_solist and
4349 target_supports_multi_process.
4350 * dicos-tdep.c (dicos_init_abi): Set
4351 gdbarch_has_global_breakpoints.
4352 * gdbarch.sh (has_global_solist): Update comment.
4353 (has_global_breakpoints): New.
4354 * remote.c (remote_start_remote): Use
4355 gdbarch_has_global_breakpoints instead of
4356 gdbarch_has_global_solist.
4357 * target.c (target_detach): Use gdbarch_has_global_breakpoints
4358 instead of gdbarch_has_global_solist.
4359 * infcmd.c (attach_command): Use gdbarch_has_global_solist instead
4360 of target_supports_multi_process.
4361
4362 2009-05-18 Paul Pluzhnikov <ppluzhnikov@google.com>
4363
4364 * objc-lang.c (find_methods): Plug a small memory leak.
4365
4366 2009-05-18 Pedro Alves <pedro@codesourcery.com>
4367
4368 * solib-svr4.c: Include observer.h.
4369 (debug_base, debug_loader_offset_p, debug_loader_offset)
4370 (debug_loader_name, main_lm_addr): Move these globals...
4371 (struct svr4_info): ... into this new structure.
4372 (svr4_info_p): New typedef.
4373 (svr4_info): New global.
4374 (get_svr4_info, remove_svr4_info, solib_svr4_inferior_exit): New
4375 functions.
4376 (locate_base, solib_svr4_r_map, solib_svr4_r_brk)
4377 (solib_svr4_r_ldsomap): Add svr4_info argument. Adjust to
4378 per-inferior svr4.
4379 (open_symbol_file_object): Adjust to per-inferior svr4.
4380 (svr4_default_sos, svr4_current_sos, svr4_fetch_objfile_link_map):
4381 Ditto.
4382 (enable_break): Add svr4_info argument. Adjust to per-inferior
4383 svr4.
4384 (enable_break, svr4_solib_create_inferior_hook, svr4_clear_solib):
4385 Adjust to per-inferior svr4.
4386 (_initialize_svr4_solib): Install the solib_svr4_inferior_exit
4387 observer.
4388
4389 2009-05-18 Pedro Alves <pedro@codesourcery.com>
4390
4391 * linux-nat.h (linux_proc_get_tgid): Declare.
4392 * linux-nat.c (linux_proc_get_tgid): New.
4393 * linux-thread-db.c (struct thread_db_info): New field
4394 `need_stale_parent_threads_check'.
4395 (add_thread_db_info): Set it.
4396 (find_new_threads_callback): Ignore stale fork parent threads.
4397 (thread_db_resume): New.
4398 (init_thread_db_ops): Install thread_db_resume.
4399
4400 2009-05-18 Pedro Alves <pedro@codesourcery.com>
4401
4402 * fork-child.c (fork_inferior): Only reset the thread list if this
4403 is the first inferior.
4404 (startup_inferior): If the target support multi-process, tell it
4405 to resume only the new process.
4406 * linux-nat.c (num_lwps): Delete global.
4407 (purge_lwp_list): New function.
4408 (num_lwps): New function.
4409 (add_lwp, delete_lwp): Adjust.
4410 (ptid_match): New.
4411 (iterate_over_lwps): Add filter argument. Handle it.
4412 (linux_nat_attach): Remove FIXME note.
4413 (linux_nat_detach): Adjust to iterate over threads of the inferior
4414 we're detaching from. Adjust to num_lwps being a function. Don't
4415 assume the head of the lwp list is the main thread of the process
4416 we're detaching from. Don't destroy the LWP list.
4417 (resume_callback): Add debug output.
4418 (linux_nat_resume): Handle resuming a single inferior. Allow a
4419 wildcard resume in non-stop mode.
4420 (linux_handle_extended_wait): Don't assume inferior_ptid is the
4421 correct inferior of the parent LWP.
4422 (status_callback): Also check lp->waitstatus.
4423 (select_event_lwp): Add new filter parameter. Handle it.
4424 (linux_nat_filter_event): Adjust to num_lwps being a function.
4425 (linux_nat_wait_1): When adding the first lwp of the inferior, use
4426 an is_lwp check instead of checking for the number of lwps.
4427 (linux_nat_wait_1): Handle waiting for a specific tgid. Handle
4428 pending process exit statuses.
4429 (linux_nat_mourn_inferior): Don't destroy all the LWP info.
4430 Instead delete LWPs of the inferior that we're mourning. Don't
4431 unregister from the event loop here.
4432 (linux_nat_pid_to_str): Use `num_lwps'.
4433 (linux_nat_make_corefile_notes): Adjust to walk over lwps of a
4434 single inferior.
4435 (linux_nat_is_async_p): Check if async was masked out.
4436 (linux_multi_process): New global.
4437 (linux_nat_supports_multi_process): New.
4438 (linux_nat_stop_lwp): Remove LWP filtering. It is done by the
4439 caller.
4440 (linux_nat_stop): Adjust to make iterate_over_lwps itself do the
4441 LWP filtering.
4442 (linux_nat_close): New.
4443 (linux_nat_add_target): Register linux_nat_close and
4444 linux_nat_supports_multi_process.
4445 * linux-nat.h (iterate_over_lwps): Add filter argument.
4446 * linux-thread-db.c (thread_db_handle): Delete.
4447 (proc_handle, thread_agent, td_init_p, td_ta_new_p)
4448 (td_ta_map_id2thr_p, td_ta_map_lwp2thr_p, td_ta_thr_iter_p)
4449 (td_ta_event_addr_p, td_ta_set_event_p, td_ta_event_getmsg_p)
4450 (td_thr_validate_p, td_thr_get_info_p, td_thr_event_enable_p)
4451 (td_thr_tls_get_addr_p, td_create_bp_addr, td_death_bp_addr): No
4452 longer globals, moved to...
4453 (struct thread_db_info): ... this new structure.
4454 (thread_db_list): New.
4455 (add_thread_db_info, get_thread_db_info, delete_thread_db_info):
4456 New.
4457 (have_threads_callback): Filter out threads of all inferiors but
4458 the one specified by the ARGS argument.
4459 (have_threads): Add ptid argument specifying the inferior we're
4460 interested in. Handle it.
4461 (struct thread_get_info_inout): New.
4462 (thread_get_info_callback, thread_from_lwp): Adjust to use it.
4463 (thread_db_attach_lwp): Check that inferior of the passed in
4464 thread is using thread-db. Adjust.
4465 (enable_thread_event): Remove thread_agent parameter. Instead,
4466 get it from the per-inferior thread-db info.
4467 (dladdr_to_soname): Move higher up.
4468 (enable_thread_event_reporting): Adjust to use per-inferior
4469 thread-db info.
4470 (try_thread_db_load_1): Replace `handle' parameter by a
4471 thread_db_info parameter. Adjust to use per-inferior thread-db
4472 info.
4473 (try_thread_db_load): Adjust to use per-inferior thread-db info.
4474 (thread_db_load, disable_thread_event_reporting): Ditto.
4475 (check_for_thread_db): Remove conditional reporting of which
4476 libthread_db is in use.
4477 (thread_db_new_objfile): Add comment about inferior_ptid.
4478 (attach_thread): Adjust to use per-inferior thread-db info.
4479 (thread_db_detach): Adjust to use per-inferior thread-db info.
4480 Remove thread event breakpoints of the current inferior. Only
4481 unpush the thread-db target if there are no more processes using
4482 it.
4483 (check_event): Adjust to use per-inferior thread-db info.
4484 (thread_db_wait): Adjust to use per-inferior thread-db info. Only
4485 unpush the thread-db target if there are no more processes using
4486 it.
4487 (thread_db_mourn_inferior): Adjust to use per-inferior thread-db
4488 info. Mark breakpoints of the current inferior out before
4489 deleting them. Only unpush the thread-db target if there are no
4490 more processes using it.
4491 (find_new_threads_callback): Adjust to use per-inferior thread_db
4492 info.
4493 (thread_db_find_new_threads_1): Add new ptid argument. Adjust to
4494 use per-inferior thread-db info.
4495 (thread_db_find_new_threads): Adjust to use per-inferior thread-db
4496 info.
4497 (thread_db_get_thread_local_address): Adjust.
4498 (thread_db_get_ada_task_ptid): Adjust.
4499 * inf-ptrace.c (inf_ptrace_mourn_inferior): Only unpush the target
4500 if there no more processes left to debug.
4501 * thread.c (set_running, set_executing): Handle resuming all
4502 threads of a single inferior.
4503 * mi/mi-interp.c (mi_output_running_pid): New.
4504 (mi_inferior_count): New.
4505 (mi_on_resume): For backwards compatibility, if resuming all
4506 threads of an inferior, and there is only one inferior, output
4507 "all".
4508
4509 2009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
4510
4511 * ada-lang.c (ada_find_any_type): Move check for primitive types ...
4512 (to_fixed_range_type): ... to here.
4513
4514 2009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
4515
4516 * ada-lang.c (desc_data_type): Remove, replace by ...
4517 (desc_data_target_type): ... this.
4518 (thin_data_pntr): Use desc_data_target_type instead of desc_data_type.
4519 (ada_is_array_descriptor_type): Likewise.
4520 (ada_type_of_array): Likewise.
4521 (ada_coerce_to_simple_array_type): Likewise.
4522 (ada_array_element_type): Likewise.
4523
4524 2009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
4525
4526 * ada-valprint.c (ada_val_print_1): Use val_print_string to print
4527 result of ada_vax_float_print_function inferior call.
4528
4529 2009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
4530
4531 * ada-lang.c (ada_coerce_to_simple_array_type): Reimplement to
4532 avoid creating a dummy value.
4533
4534 2009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
4535
4536 * p-valprint.c (pascal_val_print): Use extract_typed_address
4537 to extract reference value.
4538
4539 2009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
4540
4541 * doublest.c (NAN): Remove unused define.
4542 (extract_floating_by_length, deprecated_extract_floating): Remove.
4543 (store_floating_by_length, deprecated_store_floating): Remove.
4544 (extract_typed_floating): Do not call extract_floating_by_length.
4545 (store_typed_floating): Do not call store_floating_by_length.
4546 (convert_typed_floating): Remove redundant assertions.
4547 * doublest.h (deprecated_extract_floating): Remove.
4548 (deprecated_store_floating): Remove.
4549 * sh64-tdep.c (sh64_register_convert_to_raw): Call
4550 extract_typed_floating instead of deprecated_extract_floating.
4551
4552 2009-05-18 Jon Beniston <jon@beniston.com>
4553
4554 * MAINTAINERS: Add lm32 target.
4555 * Makefile.in: Add lm32 dependencies.
4556 * NEWS: Indicate lm32 is a new target.
4557 * configure.tgt: Add lm32 targets.
4558 * lm32-tdep.c: New file.
4559
4560 2009-05-18 Pedro Alves <pedro@codesourcery.com>
4561
4562 * corelow.c (core_open): Flush the register cache before doing
4563 anything with registers.
4564
4565 2009-05-18 Pedro Alves <pedro@codesourcery.com>
4566
4567 * inflow.h (our_process_group): Remove declaration.
4568 (inferior_process_group): Delete global variable declaration.
4569 (inferior_process_group): New function declaration.
4570 * inflow.c: Include observer.h.
4571 (inferior_ttystate, our_ttystate, tflags_inferior, tflags_ours):
4572 Delete.
4573 (struct terminal_info): New struct.
4574 (our_terminal_info): New global.
4575 (inferior_process_group): New function.
4576 (inferior_thisrun_terminal): Extend description comment.
4577 (gdb_has_a_terminal): Adjust to write to our_terminal_info fields
4578 instead of globals.
4579 (terminal_init_inferior_with_pgrp): Adjust to per-inferior
4580 terminal settings.
4581 (terminal_inferior): Ditto.
4582 (terminal_ours_1): Ditto.
4583 (inflow_new_inferior, inflow_inferior_exit): New functions.
4584 (child_terminal_info): Adjust to per-inferior terminal settings.
4585 (osig_set): New global.
4586 (set_sigint_trap): Adjust to per-inferior terminal settings. Set
4587 or clear `osig_set' accordingly.
4588 (clear_sigint_trap): Check `osig_set' to decide wheater to restore
4589 SIGINT handler, instead of checking the current inferior (which
4590 may be none).
4591 (_initialize_inflow): Attach inflow_new_inferior and
4592 inflow_inferior_exit to the "new_inferior" and "inferior_exit"
4593 notifications, respectively.
4594 * inferior.h (struct terminal_info): Forward declare.
4595 (struct inferior): Add `terminal_info' field.
4596 * inferior.c (delete_inferior_1): Notify the inferior_exit
4597 observers before removing the inferior from the lists and deleting
4598 it.
4599 * inf-ptrace.c (inf_ptrace_stop): `inferior_process_group' is now
4600 a function instead of a variable. Adjust.
4601 * procfs.c (procfs_stop): Ditto.
4602
4603 2009-05-17 Pedro Alves <pedro@codesourcery.com>
4604
4605 * infrun.c (handle_inferior_event): When handling a
4606 TARGET_WAITKIND_FORKED, detach breakpoints from the fork child
4607 immediatelly.
4608 * linux-nat.c (linux_child_follow_fork): Only detach breakpoints
4609 from the child if vforking.
4610 * inf-ptrace.c (inf_ptrace_follow_fork): No need to detach
4611 breakpoints from the child here.
4612
4613 2009-05-17 Pedro Alves <pedro@codesourcery.com>
4614
4615 * infrun.c (pending_follow): Remove execd_pathname member.
4616 (resume): No longer handle TARGET_WAITKIND_EXECD pending follow.
4617 (handle_inferior_event): When handling a TARGET_WAITKIND_EXECD
4618 event, don't copy `execd_pathname' to pending_follow, use the
4619 event copy instead. Release `execd_pathname' once done with
4620 handling the event.
4621
4622 * infrun.c (pending_follow): Remove mention of exec events.
4623
4624 2009-05-17 Hui Zhu <teawater@gmail.com>
4625
4626 * i386-tdep.c (i386_process_record): Make it extern.
4627 (i386_gdbarch_init): Don't call set_gdbarch_process_record
4628 here.
4629 * i386-tdep.h (i386_process_record): Declare.
4630 * i386-linux-tdep.c (i386_linux_init_abi): Call
4631 set_gdbarch_process_record.
4632
4633 2009-05-17 Vladimir Prus <vladimir@codesourcery.com>
4634
4635 Always report varobj as changed when in_scope attribute changes.
4636
4637 * varobj.c (install_new_value): If non-NULL-ness of value
4638 changed, return 1.
4639
4640 2009-05-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4641
4642 * NEWS: Mention set/show libthread-db-search-path.
4643 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): New define.
4644 (LIBTHREAD_DB_SO): Moved from linux-thread-db.c
4645 * linux-thread-db.c (libthread_db_search_path): New setting.
4646 (thread_db_handle): New variable (replaces using_thread_db).
4647 (try_thread_db_load_1): New function.
4648 (try_thread_db_load, thread_db_load_search): Likewise.
4649 (dladdr_to_soname): Likewise.
4650 (thread_db_load): Iterate over possibly multiple libthread_db's.
4651 (check_for_thread_db): Attempt to load new libthread_db.
4652 (thread_db_detach, thread_db_wait): Unload libthread_db.
4653 (thread_db_mourn_inferior): Likewise.
4654 (_initialize_thread_db): Add new libthread-db-search-path option.
4655 Defer loading of libthread_db to check_for_thread_db.
4656 * solib.c (libpthread_name_p): New function.
4657 (libpthread_solib_p): Call it.
4658 * solib.h (libpthread_name_p): New prototype.
4659
4660 2009-05-15 Pierre Muller <muller@ics.u-strasbg.fr>
4661
4662 * MAINTAINERS: Update my email address.
4663
4664 2009-05-14 Paul Pluzhnikov <ppluzhnikov@google.com>
4665
4666 * breakpoint.h: Add breakpoint_re_set_objfile prototype.
4667 * breakpoint.c (create_overlay_event_breakpoint): Renamed
4668 from create_overlay_event_breakpoint_1, old
4669 create_overlay_event_breakpoint deleted.
4670 (breakpoint_re_set_objfile): Don't rescan all objfiles
4671 unnecessarily.
4672 (breakpoint_re_set): New function.
4673 * symfile.c (new_symfile_objfile): Call breakpoint_re_set_objfile
4674 instead of breakpoint_re_set.
4675 * objfiles.c (objfile_relocate): Likewise.
4676
4677 2009-05-14 Joel Brobecker <brobecker@adacore.com>
4678
4679 * gdbarch.sh: Add comment documenting the target_gdbarch global.
4680 gdbarch.h does NOT need to be regenerated as the corresponding
4681 change has already been made in a previous commit.
4682
4683 2009-05-14 Pierre Muller <muller@ics.u-strasbg.fr>
4684
4685 Remove all i386 debug register low level macros in config nm files.
4686 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR): Remove.
4687 (I386_DR_LOW_GET_STATUS, I386_DR_LOW_SET_CONTROL): Remove.
4688 (I386_USE_GENERIC_WATCHPOIINTS): Remove.
4689
4690 * i386-nat.h: New file (adapted from config/i386/nm-i386.h).
4691 (struct i386_dr_low_type): New type.
4692 (i386_dr_low): New global variable.
4693 * i386-nat.c (TARGET_HAS_DR_LEN_8): Update macro.
4694 (i386_insert_aligned_watchpoint): Replace i386 dr low macros by
4695 i386_dr_low struct variable fields.
4696 (i386_remove_aligned_watchpoint): Likewise.
4697 (i386_stopped_data_address): Likewise.
4698 (i386_stopped_by_hwbp): Likewise.
4699 (show_debug_regs_command_added): New static variable.
4700 (add_show_debug_regs_command): New static function.
4701 (i386_use_watchpoints): Call add_show_debug_regs_command if not done.
4702 (i386_set_debug_register_length): New function.
4703 (_initialize_i386_nat): Delete.
4704
4705 * amd64-linux-nat.c: Include "i386-nat.h".
4706 (amd64_linux_dr_set_control): Change to static.
4707 (amd64_linux_dr_get_status): Change to static.
4708 (amd64_linux_dr_set_addr,amd64_linux_dr_reset_addr): Likewise.
4709 (_initialize_amd64_linux_nat): Set i386_dr_low variable fields.
4710
4711 * go32-nat.c: Include "i386-nat.h".
4712 (go32_set_addr): Change to static.
4713 (go32_set_dr7): Change to static. Change arg type to unisgned long.
4714 (go32_get_dr6): Change to static. Change return type to unisnged long.
4715 (init_go32_ops): Set i386_dr_low variable fields.
4716 * i386-linux-nat.c: Include "i386-nat.h".
4717 (i386_linux_dr_set_control, i386_linux_dr_get_status): Change to static.
4718 (i386_linux_dr_set_addr, i386_linux_dr_reset_addr): Idem.
4719 (_initialize_i386_linux_nat): Set i386_dr_low variable fields.
4720 * i386bsd-nat.h: Declare functions used for
4721 i386_dr_low fields in i386fbsd-nat.c.
4722 * i386fbsd-nat.c: Include "i386-nat.h".
4723 (_initialize_i386fbsd_nat): Set i386_dr_low variable fields.
4724 * windows-nat.c: Include "i386-nat.h".
4725 (cygwin_set_dr, cygwin_get_dr6, cygwin_set_dr7): Add prototypes.
4726 Change to static.
4727 (cygwin_get_dr6): Change return type to unisnged long.
4728 (cygwin_set_dr7): Change arg type to unisgned long.
4729 (init_windows_ops): Set i386_dr_low function fields.
4730
4731 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Call
4732 i386_set_debug_register_length.
4733 * i386-windows-nat.c (_initialize_i386_windows_nat): Likewise.
4734
4735 * config/i386/nm-cygwin.h: Remove all I386_* macros.
4736 * config/i386/nm-cygwin64.h: Likewise.
4737 * config/i386/nm-fbsd.h: Likewise.
4738 * config/i386/nm-linux.h: Likewise.
4739 * config/i386/nm-i386.h: Remove completely.
4740 * config/i386/nm-go32.h: Remove completely.
4741 * config/i386/nm-linux64.h: Remove completely.
4742 * config/i386/go32.mh (NAT_FILE): Remove entry.
4743 * config/i386/linux64.h (NAT_FILE): Change to config/nm-linux.h.
4744
4745 2009-05-14 Jon Beniston <jon@beniston.com>
4746
4747 * MAINTAINERS: Add Jon Beniston to write after approval list.
4748
4749 2009-05-13 Paul Pluzhnikov <ppluzhnikov@google.com>
4750
4751 * objc-lang.c (objc_objfile_data): New variable.
4752 (find_methods): Skip objfiles without Obj-C methods.
4753 (_initialize_objc_lang): New function.
4754
4755 2009-05-13 Joel Brobecker <brobecker@adacore.com>
4756
4757 * c-lang.c (print_wchar): Remove unnecessary cast.
4758
4759 2009-05-12 Jim Blandy <jimb@red-bean.com>
4760
4761 * MAINTAINERS: Remove self as m32c target maintainer.
4762
4763 2009-05-12 Pedro Alves <pedro@codesourcery.com>
4764
4765 * cli/cli-decode.c (deprecated_add_set_cmd): Delete.
4766 * command.h (deprecated_add_set_cmd): Delete declaration.
4767 * gnu-nat.c (_initialize_gnu_nat): Replace 'maint gnu-debug' with
4768 'set debug gnu-nat' and 'show debug gnu-nat'.
4769 * i386-nat.c (_initialize_i386_nat): Replace 'maint
4770 show-debug-registers' with 'maint set show-debug-registers' and
4771 'maint show show-debug-registers'.
4772 * mips-linux-nat.c (_initialize_mips_linux_nat): Replace 'maint
4773 show-debug-registers' with 'maint set show-debug-registers' and
4774 'maint show show-debug-registers'.
4775
4776 2009-05-12 Joel Brobecker <brobecker@adacore.com>
4777
4778 * c-lang.c (print_wchar): Convert w into a gdb_wchar_t before
4779 pushing it on the output obstack.
4780
4781 2009-05-11 Joel Brobecker <brobecker@adacore.com>
4782
4783 Fix internal error on breaking at a multi-locations caller source line.
4784 * breakpoint.c (parse_breakpoint_sals): Set EXPLICIT_PC for the `break'
4785 command with no parameters.
4786
4787 2009-05-11 Pedro Alves <pedro@codesourcery.com>
4788
4789 * linux-nat.c (enum sigchld_state): Delete.
4790 (linux_nat_async_events_state): Delete.
4791 (struct waitpid_result): Delete.
4792 (waitpid_queue): Delete.
4793 (queued_waitpid_1): Delete.
4794 (async_file_flush): New.
4795 (queued_waitpid, push_waitpid): Delete.
4796 (async_file_mark): New.
4797 (drain_queued_events): Delete.
4798 (my_waitpid): Remove locally queued events handling.
4799 (linux_test_for_tracefork): Upjust.
4800 (linux_child_follow_fork): Ditto.
4801 (sync_sigchld_action): Delete.
4802 (blocked_mask): Reinstate.
4803 (async_sigchld_action): Rename to...
4804 (sigchld_action): ... this.
4805 (block_child_signals): New.
4806 (restore_child_signals_mask): New.
4807 (lin_lwp_attach_lwp): Adjust.
4808 (linux_nat_create_inferior): Ditto.
4809 (linux_nat_attach): Also use lp->status in async mode.
4810 (get_pending_status): Don't use queued_waitpid.
4811 (linux_nat_detach): Don't drain locally queued events.
4812 (linux_nat_resume): Allow pending wait statuses stored lp->status
4813 in async mode. If returning early due to a pending event,
4814 re-register the event source.
4815 (stop_wait_callback): Allow pending wait statuses stored
4816 lp->status in async mode.
4817 (pipe_to_local_event_queue, local_event_queue_to_pipe): Delete.
4818 (linux_nat_wait): Rename to ...
4819 (linux_nat_wait_1): ... this. Allow pending wait statuses stored
4820 lp->status in async mode. Always add WNOHANG to the waitpid
4821 options in async mode.
4822 (linux_nat_wait): New.
4823 (kill_callback): Don't drain locally queued events.
4824 (sigchld_handler): Rewrite.
4825 (linux_nat_is_async_p, linux_nat_can_async_p): Fix comments to
4826 refer to "set target-async".
4827 (linux_nat_async_mask): If in non-stop, and re-enabling async
4828 mode, re-register the target event source in the event loop.
4829 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push)
4830 (get_pending_events, async_sigchld_handler)
4831 (linux_nat_async_events): Delete.
4832 (handle_target_event): New.
4833 (linux_nat_async_file_handler): Delete.
4834 (linux_async_pipe): New.
4835 (linux_nat_async): Only re-register in the event loop if not
4836 registered yet. Always notify the event-loop once if enabling the
4837 event source.
4838 (linux_nat_stop_lwp): Rewrite to handle pending events stored in
4839 lp->status, not in the locally queued event list.
4840 (linux_nat_stop): Don't mask out async event handling.
4841 (linux_nat_setup_async): Delete.
4842 (_initialize_linux_nat): Adjust.
4843 (lin_thread_get_thread_signals): blocked_mask is global again.
4844 Adjust.
4845
4846 2009-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4847
4848 Unify target macros.
4849
4850 * target.h (STOPPED_BY_WATCHPOINT): Delete, replaced by ...
4851 (target_stoppped_by_watchpoint): New macro.
4852 (HAVE_STEPPABLE_WATCHPOINT): Delete, replaced by ...
4853 (target_have_steppable_watchpoint): New macro.
4854 (HAVE_CONTINUABLE_WATCHPOINT): Delete, replace by ...
4855 (target_have_continuable_watchpoint): New macro.
4856 (TARGET_CAN_USE_HARDWARE_WATCHPOINT):Delete, replaced by ...
4857 (target_can_use_hardware_watchpoint): New macro.
4858 (TARGET_REGION_OK_FOR_HW_WATCHPOINT):Delete, replaced by ...
4859 (target_region_ok_for_hw_watchpoint): New macro.
4860
4861 * breakpoint.c (update_watchpoint): Use new macros.
4862 (bpstat_alloc): Likewise.
4863 (create_breakpoint): Likewise.
4864 (watch_command_1): Likewise.
4865 (can_use_hardware_watchpoint): Likewise.
4866 (do_enable_breakpoint): Likewise.
4867 * infrun.c (handle_inferior_event): Adapt to new macros.
4868 * mips-tdep.c (mips_gdbarch_init): Update comments.
4869 * procfs.c (procfs_set_watchpoint): Update comment.
4870 (procfs_insert_watchpoint): Adapt to new macros.
4871 * remote-m32r-sdi.c (m32r_stop):
4872 * remote-mips.c (mips_remove_breakpoint):
4873 * target.c (debug_to_region_ok_for_hw_watchpoint): Update to new macros.
4874 (debug_to_stopped_by_watchpoint): Likewise.
4875
4876
4877 2009-05-10 Pierre Muller <muller@ics.u-strasbg.fr>
4878
4879 * src/gdb/target.h: Remove all tests for already defined
4880 macros. All macros defined here should not be set in config
4881 headers anymore.
4882
4883 2009-05-08 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4884
4885 * ppc-linux-nat.c (have_ptrace_getsetregs): New variable.
4886 (have_ptrace_getsetfpregs): Likewise.
4887 fetch_all_gp_regs): New function.
4888 (fetch_gp_regs): New function.
4889 (fetch_all_fp_regs): Likewise.
4890 (fetch_fp_regs): New function.
4891 (fetch_ppc_registers): Using the new methods to fetch general-
4892 purpose and floating-pointer registers.
4893 (store_all_gp_regs): New function.
4894 (store_gp_regs): Likewise.
4895 (store_all_fp_regs): New function.
4896 (store_fp_regs): Likewise.
4897 (store_ppc_registers): Using the new methods to store general-
4898 purpose and floating-pointer registers.
4899
4900 2009-05-08 Doug Evans <dje@google.com>
4901
4902 * linux-nat.c (linux_xfer_siginfo): Delete unused locals lp, n.
4903
4904 2009-05-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4905
4906 * MAINTAINERS (Write After Approval): Add self.
4907
4908 2009-05-07 Joel Brobecker <brobecker@adacore.com>
4909
4910 * gdbarch.h (target_gdbarch): Add comment documenting this global.
4911
4912 2009-05-06 Joel Brobecker <brobecker@adacore.com>
4913
4914 * acinclude.m4 (AM_ICONV): Prefer in-tree libiconv if present over
4915 system iconv.
4916 * configure: Regenerate.
4917
4918 2009-05-06 Joel Brobecker <brobecker@adacore.com>
4919
4920 * utils.c: Add include of gdb_usleep.h.
4921 (defaulted_query): Detect false EOF conditions that happen
4922 on terminals opened with the O_NONBLOCK flag when there is
4923 nothing to read.
4924
4925 2009-05-06 Pedro Alves <pedro@codesourcery.com>
4926
4927 * inferior.c (add_inferior): Move observer_notify_new_inferior
4928 call to ...
4929 (add_inferior_silent): ... here.
4930
4931 2009-05-06 Pierre Muller <muller@ics.u-strasbg.fr>
4932 Pedro Alves <pedro@codesourcery.com>
4933
4934 * procfs.c (procfs_insert_watchpoint, procfs_remove_watchpoint)
4935 (procfs_region_ok_for_hw_watchpoint, procfs_use_watchpoints): New
4936 functions.
4937 (procfs_stopped_by_watchpoint): Made static, ptid argument
4938 removed.
4939 (_initialize_procfs): Register new watchpoint related target
4940 functions.
4941 * config/i386/nm-i386sol2.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT)
4942 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT, STOPPED_BY_WATCHPOINT)
4943 (HAVE_CONTINUABLE_WATCHPOINT): Delete.
4944 (target_insert_watchpoint, target_remove_watchpoint): Delete.
4945 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
4946 declarations.
4947 * config/mips/nm-irix5.h (STOPPED_BY_WATCHPOINT)
4948 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
4949 (target_insert_watchpoint, target_remove_watchpoint): Delete.
4950 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
4951 declarations.
4952 * config/sparc/nm-sol2.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
4953 (HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT): Delete.
4954 (target_insert_watchpoint, target_remove_watchpoint): Delete.
4955 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
4956 declarations.
4957
4958 2009-05-06 Hui Zhu <teawater@gmail.com>
4959
4960 * i386-tdep.c (i386_process_record): Change bzero to memset.
4961
4962 2009-05-06 Hui Zhu <teawater@gmail.com>
4963
4964 * NEWS: Add item for process record and replay.
4965
4966 2009-05-05 Maxim Grigoriev <maxim2405@gmail.com>
4967
4968 * xtensa-tdep.c (xtensa_frame_cache): Use pc instead of cache->pc.
4969
4970 2009-05-05 Ulrich Weigand <uweigand@de.ibm.com>
4971
4972 * inferior.h (read_pc, write_pc): Remove.
4973 * regcache.c (read_pc, write_pc): Remove.
4974
4975 * infrun.c (displaced_step_fixup): Use regcache_read_pc instead
4976 of read_pc.
4977 (handle_inferior_event): Use regcache_read_pc instead of read_pc
4978 when determining value of stop_pc. Replace subsequent uses of
4979 read_pc by inspecting already-retrieved stop_pc value.
4980 (keep_going): Use regcache_read_pc instead of read_pc.
4981
4982 * breakpoint.c (watchpoint_check): Use current frame architecture
4983 and PC instead of current_gdbarch and read_pc ().
4984 * tracepoint.c (set_traceframe_context): Replace PC argument
4985 with FRAME argument.
4986 (trace_start_command, finish_tfind_command): Update calls.
4987 (finish_tfind_command): Compare frame IDs to identify transitions
4988 between frames.
4989 (trace_find_pc_command): Use regcache_read_pc instead of read_pc.
4990 * rs6000-nat.c (exec_one_dummy_insn): Pass in regcache instead
4991 of gdbarch. Use regcache_read_pc and regcache_write_pc instead
4992 of read_pc and write_pc.
4993 (store_register): Make regcache argument non-const. Update call
4994 to exec_one_dummy_insn.
4995
4996 * thread.c (switch_to_thread): Use regcache_read_pc instead of read_pc.
4997 * infcmd.c (post_create_inferior): Likewise.
4998 * solib-darwin.c (darwin_solib_create_inferior_hook): Likewise.
4999 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
5000 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
5001 * solib-svr4.c (enable_break, svr4_relocate_main_executable): Likewise.
5002 * linux-fork.c (fork_load_infrun_state): Likewise.
5003 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
5004 * record.c (record_wait): Likewise.
5005 * procfs.c (procfs_wait): Likewise.
5006 * remote-mips.c (common_open, mips_wait): Likewise.
5007 * remote-m32r-sdi.c (m32r_resume): Likewise.
5008
5009 * symfile.c (generic_load): Use regcache_write_pc instead of write_pc.
5010 * monitor.c (monitor_create_inferior, monitor_load): Likewise.
5011 * m32r-rom.c (m32r_load, m32r_upload_command): Likewise.
5012 * remote-m32r-sdi.c (m32r_create_inferior, m32r_load): Likewise.
5013 * remote-mips.c (mips_create_inferior, mips_load): Likewise.
5014
5015 * solib-darwin.c: Include "regcache.h".
5016 * solib-pa64.c: Include "regcache.h".
5017 * solib-svr4.c: Include "regcache.h.".
5018
5019 * symfile.c: Do not mention read_pc or write_pc in comments.
5020 * dink32-rom.c: Likewise.
5021 * m32r-rom.c: Likewise.
5022 * mips-tdep.c: Likewise.
5023
5024 2009-05-05 Ulrich Weigand <uweigand@de.ibm.com>
5025
5026 * fork-child.c (startup_inferior): Move setting stop_pc ...
5027 * infcmd.c (post_create_inferior): ... to here.
5028
5029 2009-05-04 Michael Snyder <msnyder@vmware.com>
5030
5031 * NEWS: Add item for reverse debugging commands.
5032
5033 2009-05-04 Pedro Alves <pedro@codesourcery.com>
5034
5035 * go32-nat.c (go32_stop): Delete.
5036 (go32_kill_inferior): Rewrite to only call go32_mourn_inferior.
5037 (go32_create_inferior): Don't call go32_stop or
5038 go32_kill_inferior.
5039 (go32_mourn_inferior): Inline go32_stop and go32_kill_inferior
5040 here.
5041 (init_go32_ops): Don't register go32_stop.
5042
5043 2009-05-02 Eli Zaretskii <eliz@gnu.org>
5044
5045 * dbxread.c (read_dbx_symtab): Avoid compiler warnings for
5046 sym_name.
5047
5048 * infcall.c (find_function_addr): Avoid compiler warnings for
5049 funaddr.
5050
5051 2009-05-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5052
5053 * dictionary.c (dict_hashed_vector, dict_hashed_expandable_vector)
5054 (dict_linear_vector, dict_linear_expandable_vector): Fix a comment typo.
5055
5056 2009-05-01 Doug Evans <dje@google.com>
5057
5058 * linux-thread-db.c (thread_db_pid_to_str): Delete unused assignment
5059 to thread_info.
5060
5061 2009-05-01 Eli Zaretskii <eliz@gnu.org>
5062
5063 * record.c (_initialize_record): Reformat and clarify doc strings
5064 for stop-at-limit and insn-number-max.
5065
5066 * go32-nat.c: Add comments about dirty secrets of DJGPP debugging.
5067
5068 2009-05-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5069
5070 Make specifiable the make_function_type type memory ownership.
5071 * gdbtypes.c (make_function_type): New parameter `objfile', use it
5072 explicitely instead of TYPE-initialized removed local variable
5073 `objfile'. Describe `objfile' it in the function comment.
5074 (lookup_function_type): Update make_function_type callers.
5075 * gdbtypes.h (make_function_type): Update the prototype.
5076 * jv-lang.c (java_link_class_type): Update make_function_type callers.
5077 * dwarf2read.c (read_subroutine_type): Likewise.
5078 * stabsread.c (read_type): Likewise.
5079
5080 2009-05-01 Eli Zaretskii <eliz@gnu.org>
5081
5082 * go32-nat.c (go32_pid_to_str): Call normal_pid_to_str instead of
5083 printing a bogus "Thread <main>".
5084 (go32_thread_alive): Don't return 1 for null_ptid.
5085
5086 * i386-tdep.c (i386_go32_init_abi): Override the number of
5087 registers due to non-support of SSE.
5088
5089 2009-04-30 Anthony Green <green@moxielogic.com>
5090
5091 * configure.tgt: Link the moxie simulator in with gdb.
5092
5093 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
5094
5095 * elfread.c (elf_symtab_read): Don't assume .data and .rodata
5096 are present.
5097
5098 2009-04-30 Hui Zhu <teawater@gmail.com>
5099 Michael Snyder <msnyder@vmware.com>
5100
5101 I386 Linux process record and replay support.
5102
5103 * i386-linux-tdep.c (i386_linux_record_tdep): New variable.
5104 This struct has the argument for the function
5105 "record_linux_system_call".
5106 (i386_linux_intx80_sysenter_record): New function. Parse the
5107 system call instruction and call function
5108 "record_linux_system_call" to record execute log.
5109 (i386_linux_init_abi): Initialize "i386_linux_record_tdep".
5110 Set "i386_linux_intx80_sysenter_record" to
5111 "i386_intx80_record" and "i386_sysenter_record".
5112
5113 2009-04-30 Hui Zhu <teawater@gmail.com>
5114 Michael Snyder <msnyder@vmware.com>
5115
5116 I386 architecture process record and replay support.
5117
5118 * i386-tdep.c (PREFIX_REPZ, PREFIX_REPNZ, PREFIX_LOCK,
5119 PREFIX_DATA, PREFIX_ADDR): New macros. Help decode the i386
5120 instruction set.
5121 (aflag, dflag, override, modrm, mod, reg, rm, ot,
5122 i386_record_pc): New variables. Ditto.
5123 (i386_record_modrm, i386_record_lea_modrm_addr,
5124 i386_record_lea_modrm): New functions. Ditto.
5125 (i386_process_record): New function. Parse the instruction in
5126 address "addr" and record the values of registers and memory
5127 that will be changed by this instruction.
5128 (i386_gdbarch_init): Set "i386_process_record" to GDBARCH
5129 "process_record" interface.
5130 * i386-tdep.h (gdbarch_tdep): New function pointers
5131 "i386_intx80_record" and "i386_sysenter_record" that point to
5132 the function that can record "intx80" and "sysenter" execute
5133 log.
5134
5135 2009-04-30 Hui Zhu <teawater@gmail.com>
5136 Michael Snyder <msnyder@vmware.com>
5137
5138 * infrun.c (use_displaced_stepping): Return false if process
5139 record and replay target is used.
5140 (proceed): Call function "record_not_record_set" if pocess
5141 record and replay target is used.
5142
5143 2009-04-30 Hui Zhu <teawater@gmail.com>
5144 Michael Snyder <msnyder@vmware.com>
5145
5146 Linux process record and replay support.
5147
5148 * Makefile.in (ALLDEPFILES): Add linux-record.c.
5149 (ALL_TARGET_OBS): Add linux-record.o.
5150 * configure.tgt (x86_64-*-linux*): Add linux-record.o.
5151 (i[34567]86-*-linux*): Add linux-record.o.
5152 * linux-record.c, linux-record.h: New file.
5153
5154 2009-04-30 Hui Zhu <teawater@gmail.com>
5155 Michael Snyder <msnyder@vmware.com>
5156
5157 Process record and replay target.
5158
5159 * Makefile.in (SFILES): Add record.c.
5160 (COMMON_OBS): Add record.o.
5161 * record.c, record.h: New file.
5162
5163 2009-04-30 Hui Zhu <teawater@gmail.com>
5164 Michael Snyder <msnyder@vmware.com>
5165
5166 * target.h (strata): New stratum "record_stratum".
5167
5168 2009-04-30 Hui Zhu <teawater@gmail.com>
5169 Michael Snyder <msnyder@vmware.com>
5170
5171 GDBARCH interface for process record and replay.
5172
5173 * gdbarch.sh (process_record): This interface point to the
5174 function that records the inferior execute log.
5175
5176 2009-04-29 Doug Evans <dje@google.com>
5177
5178 * i386-nat.c (child_post_startup_inferior): Delete, unused.
5179
5180 2009-04-29 Pedro Alves <pedro@codesourcery.com>
5181
5182 * breakpoint.c (print_exception_catchpoint): Access `b' directly
5183 instead of `b->loc->owner'.
5184 (print_mention_exception_catchpoint): Ditto.
5185
5186 2009-04-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5187
5188 * macrocmd.c (info_macro_command): Print -Dname=value if LINE is zero.
5189
5190 2009-04-27 Tom Tromey <tromey@redhat.com>
5191
5192 * c-exp.y (yylex): Handle '[' and ']' like '(' and ')'.
5193
5194 2009-04-27 Jerome Guitton <guitton@adacore.com>
5195
5196 * symtab.c (append_exact_match_to_sals): New function, extracted
5197 from expand_line_sal.
5198 (expand_line_sal): Use append_exact_match_to_sals to append exact
5199 matches. If none found, append all best items.
5200
5201 2009-04-27 Jerome Guitton <guitton@adacore.com>
5202
5203 * main.c (captured_main): Move gdbinit lookups after gdb_init.
5204
5205 2009-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5206
5207 PR gdb/9675:
5208 * dwarf2read.c (unsigned_int_compar, inherit_abstract_dies): New.
5209 (read_func_scope): Call inherit_abstract_dies.
5210
5211 2009-04-25 Eli Zaretskii <eliz@gnu.org>
5212
5213 * Makefile.in (ALLDEPFILES): Remove duplicate entries for
5214 sparc-sol2-nat.c and sparc-sol2-tdep.c.
5215
5216 * stack.c (_initialize_stack) <disassemble-next-line>: Doc fix.
5217
5218 2009-04-24 Pierre Muller <muller@ics.u-strasbg.fr>
5219
5220 ARI change: Use "/* ARI: rule */" pattern.
5221 * utils.c: Update ARI patterns.
5222 * gdb_dirent.h: Likewise.
5223
5224 2009-04-23 Anthony Green <green@moxielogic.com>
5225
5226 * MAINTAINERS: Add moxie target.
5227 * configure.tgt: Add moxie-*-elf target.
5228 * moxie-tdep.c: New file.
5229 * moxie-tdep.h: New file.
5230
5231 2009-04-23 Joel Brobecker <brobecker@adacore.com>
5232
5233 * ada-lang.c: Remove an extra empty line. No code change.
5234
5235 2009-04-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5236
5237 Fix double free on error inserting the breakpoint instruction.
5238 * breakpoint.c (create_breakpoints): Move the
5239 update_global_location_list call to ...
5240 (break_command_really): ... here together with the second local call
5241 both unified after all the cleanups.
5242
5243 2009-04-23 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5244 Tom Tromey <tromey@redhat.com>
5245
5246 * configure, config.in: Regenerate.
5247 * configure.ac: Support for relocatable GDB datadir. Use
5248 GDB_AC_WITH_DIR. Always define TARGET_SYSTEM_ROOT_RELOCATABLE.
5249 * acinclude.m4 (GDB_AC_WITH_DIR): New defun.
5250 * top.c (init_main): Add "set data-directory".
5251 * defs.h (gdb_datadir): Declare.
5252 * main.c (gdb_datadir): New global.
5253 (captured_main): Initialize gdb_datadir. Use relocate_directory.
5254 (relocate_path): New function.
5255 (relocate_directory): Likewise.
5256 (get_init_files): Use relocate_path.
5257 (README): Mention --with-gdb-datadir.
5258
5259 2009-04-23 Joel Brobecker <brobecker@adacore.com>
5260
5261 * ada-tasks (task_command_1): Call target_find_new_threads.
5262
5263 2009-04-23 Joel Brobecker <brobecker@adacore.com>
5264
5265 * stack.c (do_gdb_disassembly): Print the exception message if an
5266 error was thrown while trying to perform the disassembly.
5267
5268 2009-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5269
5270 * varobj.c (free_variable): Replace free_current_contents by xfree.
5271
5272 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
5273
5274 * arm-linux-nat.c (fetch_register, store_register): Use
5275 ARM_CPSR_GREGNUM instead of ARM_CPSR_REGNUM.
5276 * arm-linux-tdep.c (arm_linux_supply_gregset,
5277 arm_linux_collect_gregset): Likewise.
5278 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): New.
5279 * arm-tdep.h (ARM_CPSR_REGNUM): Remove.
5280
5281 2009-04-22 Hui Zhu <teawater@gmail.com>
5282
5283 * stack.c (_initialize_stack): Set the default of
5284 disassemble-next-line to off.
5285
5286 2009-04-21 Tom Tromey <tromey@redhat.com>
5287
5288 * acinclude.m4: Use AS_HELP_STRING, not AC_HELP_STRING.
5289 * configure.ac: Use AS_HELP_STRING, not AC_HELP_STRING.
5290
5291 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
5292
5293 * configure.ac: Add quotes to not lose brackets in help text.
5294 * configure: Rebuild.
5295
5296 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
5297
5298 * configure.ac: Don't postprocess Makefile in config.status.
5299 Substitute GDB_NM_FILE. Don't substitute nm_h.
5300 * Makefile.in (GDB_NM_FILE): Substitute.
5301 (TAGS): Use $(GDB_NM_FILE) instead of $(NAT_FILE).
5302 * configure: Regenerate.
5303 * gnulib/Makefile.in: Regenerate.
5304
5305 2009-04-21 Joseph Myers <joseph@codesourcery.com>
5306
5307 * configure.ac (--with-datarootdir, --with-docdir, --with-pdfdir,
5308 --with-htmldir): New.
5309 * configure: Regenerate.
5310
5311 2009-04-21 Tom Tromey <tromey@redhat.com>
5312
5313 * configure: Rebuild.
5314 * configure.ac: Use lower case for start of help strings. Clean
5315 up --with-sysroot help.
5316
5317 2009-04-21 Tom Tromey <tromey@redhat.com>
5318
5319 * configure: Rebuild.
5320 * acinclude.m4 (AM_ICONV): Use AC_HELP_STRING.
5321 * configure.ac: Use AC_HELP_STRING. Use upper case for variables
5322 in help.
5323
5324 2009-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5325
5326 ARI fix: remove "%p".
5327 * ia64-tdep.c (ia64_frame_this_id): Use host_address_to_string function.
5328 (ia64_sigtramp_frame_this_id): Ditto.
5329 (ia64_libunwind_frame_this_id): Ditto.
5330 (ia64_libunwind_sigtramp_frame_this_id): Ditto.
5331 * symmisc.c (maintenance_info_psymtabs): Ditto.
5332
5333 2009-04-21 Joseph Myers <joseph@codesourcery.com>
5334
5335 * configure.ac (--with-relocated-sources): New.
5336 * configure, config.in: Regenerate.
5337 * source.c (add_substitute_path_rule): Remove static.
5338 * source.h (add_substitute_path_rule): Declare.
5339 * main.c: Include "source.h".
5340 (captured_main): Add substitution rule if RELOC_SRCDIR.
5341
5342 2009-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5343
5344 * gnu-nat.h (proc_debug): Add missing continuation line in macro.
5345
5346 2009-04-20 David Daney <ddaney@caviumnetworks.com>
5347
5348 * NEWS: Mention MIPS/Linux hardware watchpoint support.
5349
5350 2009-04-20 David Daney <ddaney@caviumnetworks.com>
5351
5352 * mips-linux-nat.c (command.h, gdbcmd.h, gdb_assert.h): New #includes.
5353 (maint_show_dr, super_close): New variables.
5354 (super_fetch_registers, super_store_registers): Make static.
5355 (PTRACE_GET_WATCH_REGS, PTRACE_SET_WATCH_REGS, W_BIT, R_BIT, I_BIT)
5356 (W_MASK, R_MASK, I_MASK, IRW_MASK, MAX_DEBUG_REGISTER): Define.
5357 (pt_watch_style): Define new enum.
5358 (mips32_watch_regs, mips64_watch_regs, pt_watch_regs, mips_watchpoint):
5359 Define new structs.
5360 (watch_readback_valid, watch_readback, current_watches, watch_mirror):
5361 New variables.
5362 (get_irw_mask, get_reg_mask, get_num_valid, get_watchlo)
5363 (set_watchlo, get_watchhi, set_watchhi, mips_show_dr)
5364 (mips_linux_read_watch_registers, mips_linux_can_use_hw_breakpoint)
5365 (mips_linux_stopped_by_watchpoint, mips_linux_stopped_data_address)
5366 (type_to_irw, fill_mask, try_one_watch)
5367 (mips_linux_region_ok_for_hw_watchpoint, write_watchpoint_regs)
5368 (mips_linux_new_thread, populate_regs_from_watches)
5369 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
5370 (mips_linux_close): New functions.
5371 (_initialize_mips_linux_nat): Register watchpoint functions with
5372 the target_ops. Add show-debug-regs maintenance command.
5373
5374 2009-04-20 David Daney <ddaney@caviumnetworks.com>
5375
5376 * infrun.c (handle_inferior_event): Move gegisters_changed call down.
5377
5378 2009-04-19 Pedro Alves <pedro@codesourcery.com>
5379
5380 * NEWS: Mention gdbserver support for x86 Windows CE.
5381
5382 2009-04-19 Eli Zaretskii <eliz@gnu.org>
5383
5384 * config/djgpp/fnchange.lst: Fix typos.
5385
5386 Set default host and target charsets in the DJGPP port.
5387
5388 * config/djgpp/config.sed (am_cv_langinfo_codeset)
5389 (bash_cv_langinfo_codeset, ac_cv_header_nl_types_h): Set to "yes"
5390 in all configure scripts that define ac_cv_env_CPP_value.
5391
5392 * go32-nat.c (dos_codepage, nl_langinfo): New functions.
5393 Include langinfo.h.
5394
5395 * config/djgpp/nl_types.h: New file.
5396
5397 * config/djgpp/langinfo.h: New file.
5398
5399 * config/i386/go32.mh (MH_CFLAGS): Add $(srcdir)/config/djgpp.
5400
5401 2009-04-18 Carlos O'Donell <carlos@codesourcery.com>
5402
5403 * Makefile.in (MAKEHTML): Set to makeinfo --html.
5404 (MAKEHTMLFLAGS): Set to empty.
5405
5406 2009-04-18 Eli Zaretskii <eliz@gnu.org>
5407
5408 * NEWS: Mention all new set/show commands added since GDB 6.8 was
5409 released.
5410
5411 * go32-nat.c (go32_sysinfo): Check if the call to
5412 __dpmi_get_capabilities fills the buffer with information, and
5413 don't use the buffer if not.
5414
5415 2009-04-17 Tom Tromey <tromey@redhat.com>
5416
5417 * charset.c (_initialize_charset): Add special case for "646".
5418
5419 2009-04-17 Carlos O'Donell <carlos@codesourcery.com>
5420
5421 * configure.ac: AC_SUBST datarootdir, docdir, htmldir, pdfdir.
5422 * configure: Regenerate.
5423 * Makefile.in: Set datarootdir, docdir, htmldir, and pdfdir from
5424 configure substitutions.
5425 (FLAGS_TO_PASS): Add datarootdir, docdir, and htmldir.
5426
5427 2009-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
5428
5429 ARI fix: Do not use %p, replace by call to host_address_to_string
5430 for host pointers.
5431 * darwin-nat.c (darwin_xfer_partial): Apply change.
5432 * gnu-nat.c (inf_continue, gnu_xfer_memory): Ditto.
5433 * gnu-nat.h (proc_debug): Ditto.
5434 * symmisc.c (maintenance_info_symtabs): Ditto.
5435 (maintenance_info_psymtabs): Ditto.
5436 * windows-nat.c (handle_load_dll): Ditto.
5437 (handle_unload_dll, info_w32_command, handle_exception): Ditto.
5438 * xtensa-tdep.c (xtensa_unwind_pc): Ditto.
5439
5440 2009-04-17 Joseph Myers <joseph@codesourcery.com>
5441
5442 * configure.tgt (i[34567]86-*-linux*): Use 64-bit configuration if
5443 --enable-64-bit-bfd.
5444 (sparc-*-linux*): Likewise.
5445
5446 2009-04-17 Eli Zaretskii <eliz@gnu.org>
5447
5448 * go32-nat.c (go32_sysinfo): Update list of Windows versions of
5449 the NT family.
5450
5451 2009-04-16 Pedro Alves <pedro@codesourcery.com>
5452
5453 * remote.c (remote_query_attached): Fix pasto in packet_ok result
5454 checking.
5455
5456 2009-04-16 Joel Brobecker <brobecker@adacore.com>
5457
5458 * procfs.c (solib_mappings_callback, find_memory_regions_callback):
5459 Revert the previous change. Might not be correct, actually.
5460
5461 2009-04-16 Joel Brobecker <brobecker@adacore.com>
5462
5463 * ada-lang.h (ada_adjust_exception_stop, ada_print_exception_stop)
5464 (ada_get_current_task, ada_print_exception_breakpoint_nontask)
5465 (ada_print_exception_breakpoint_task, ada_reset_thread_registers):
5466 Remove declaration. These are non-existent functions.
5467
5468 2009-04-16 Joel Brobecker <brobecker@adacore.com>
5469
5470 * procfs.c (solib_mappings_callback, find_memory_regions_callback):
5471 Fix a compilation warning on mips-irix due to casting from
5472 a pointer of different size.
5473
5474 2009-04-16 Joel Brobecker <brobecker@adacore.com>
5475
5476 * ada-lang.c (symtab_for_sym): Delete.
5477 (user_select_syms): Use sym->symtab instead of calling symtab_for_sym.
5478
5479 2009-04-16 Joel Brobecker <brobecker@adacore.com>
5480
5481 * ada-lang.c (extract_string): Delete.
5482 (ada_main_name): Reimplement using target_read_string instead of
5483 extract_string.
5484
5485 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5486
5487 * m68klinux-nat.c: Remove obsolete comment.
5488 (fetch_register, store_register): Don't call
5489 gdbarch_cannot_fetch_register or gdbarch_cannot_store_register,
5490 which are always nops here.
5491
5492 2009-04-14 Tom Tromey <tromey@redhat.com>
5493
5494 * c-lang.c (c_emit_char): Use INTERMEDIATE_ENCODING.
5495 (c_printstr): Likewise.
5496 * charset.c: Include gdb_wait.h.
5497 (make_wchar_iterator): Use INTERMEDIATE_ENCODING.
5498 (find_charset_names): Use pexecute. Handle libiconv's output.
5499 Detect errors.
5500 (_initialize_charset): Use xstrdup.
5501 * gdb_wchar.h: Check HAVE_BTOWC. Split PHONY_ICONV and wchar
5502 cases.
5503 (INTERMEDIATE_ENCODING): New define.
5504 * configure, config.in: Rebuild.
5505 * configure.ac: Check for btowc.
5506
5507 2009-04-15 Tom Tromey <tromey@redhat.com>
5508
5509 * c-lang.c (evaluate_subexp_c): Correctly handle EVAL_SKIP.
5510
5511 2009-04-15 Eli Zaretskii <eliz@gnu.org>
5512
5513 * utils.c (parse_escape): Initialize target_char to pacify GCC.
5514
5515 2009-04-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5516
5517 * c-lang.c (c_get_string): Fix xfree crash on a failed string read.
5518
5519 2009-04-14 Pierre Muller <muller@ics.u-strasbg.fr>
5520
5521 ARI fix: sprintf rule.
5522 * ada-exp.y (convert_char_literal): Replace sprintf by xsnprintf.
5523 * ada-lang.c (add_angle_brackets): Use xstrprintf.
5524 (ada_decode): Replace sprintf by xsnprintf.
5525 (find_old_style_renaming_symbol): Ditto.
5526 (ada_to_fixed_type_1, ada_enum_name): Ditto.
5527
5528
5529 2009-04-14 Joel Brobecker <brobecker@adacore.com>
5530
5531 * target.c (target_mourn_inferior): Call bfd_cache_close_all
5532 after having executed the target mourn_inferior routine.
5533
5534 2009-04-14 Eli Zaretskii <eliz@gnu.org>
5535
5536 * config/djgpp/djconfig.sh (DEPDIR): Define to "_deps", if
5537 undefined.
5538
5539 2009-04-13 David Daney <ddaney@caviumnetworks.com>
5540
5541 * infrun.c (maybe_software_singlestep): New function.
5542 (resume): Call maybe_software_singlestep.
5543 (handle_inferior_event): Same.
5544
5545 2009-04-13 Tom Tromey <tromey@redhat.com>
5546
5547 * python/python-frame.c (frapy_richcompare): Return
5548 Py_NotImplemented, not an error. Handle Py_NE as well.
5549
5550 2009-04-13 Eli Zaretskii <eliz@gnu.org>
5551
5552 * charset.c (EILSEQ): Define if not defined by system headers.
5553
5554 2009-04-11 Eli Zaretskii <eliz@gnu.org>
5555
5556 * config/djgpp/config.sed: Tweak ac_config_files in intl/configure
5557 to be consistent with renaming config.intl.in into config_intl.in.
5558
5559 * go32-nat.c (go32_attach, go32_detach): Fix prototypes to be
5560 consistent with the change from 2008-11-09.
5561
5562 2009-04-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5563
5564 * gdbtypes.c: Remove excessive parentheses at the return keywords.
5565 * varobj.c (varobj_invalidate): Fix indentation.
5566 * varobj.c (varobj_invalidate): Fix formatting text width.
5567
5568 2009-04-08 Vladimir Prus <vladimir@codesourcery.com>
5569
5570 Implement -exec-jump.
5571
5572 * mi/mi-cmds.h (mi_cmd_exec_jump): Declare.
5573 * mi/mi-main.c (mi_cmd_exec_jump): New.
5574 * mi/mi-cmds.c (mi_cmds): Register exec-jump.
5575
5576 2009-04-07 Doug Evans <dje@google.com>
5577
5578 * symfile.c (symbol_file_clear): Fix indentation.
5579
5580 2009-04-06 Mark Kettenis <kettenis@gnu.org>
5581
5582 * sparc64nbsd-nat.c (sparc64nbsd_supply_pcb): Fix comment.
5583
5584 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
5585
5586 * ppc-linux-nat.c (ppc_linux_target_wordsize): New function.
5587 (ppc_linux_auxv_parse): New function.
5588 (ppc_linux_read_description): Use ppc_linux_target_wordsize.
5589 (_initialize_ppc_linux_nat): Install ppc_linux_auxv_parse.
5590
5591 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
5592
5593 * spu-linux-nat.c (spu_bfd_open): Set filename of in-memory
5594 BFD to contents of SPU name note.
5595 (spu_symbol_file_add_from_memory): Call symbol_file_add_from_bfd
5596 with "from_tty" argument 1 instead of 0.
5597
5598 2009-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5599
5600 * dwarf2read.c
5601 (new_symbol <DW_TAG_variable> <!DW_AT_location> <DW_AT_external>):
5602 Create the symbol in local scope.
5603 * symtab.h (cu->list_in_scope <LOC_UNRESOLVED>): New comment part.
5604
5605 2009-04-02 Keith Seitz <keiths@redhat.com>
5606
5607 * stabsread.c (read_member_functions): GCC may emit an extra space
5608 at the end of the names "__base_ctor" and "__base_dtor"; so ignore
5609 whitespace when looking for these functions.
5610
5611 2009-04-01 Joel Brobecker <brobecker@adacore.com>
5612
5613 Change the default value for "set print frame-arguments" to scalars.
5614
5615 * stack.c (print_frame_arguments): Set initial value to "scalars".
5616
5617 2009-04-01 Aleksandar Ristovski <aristovski@qnx.com>
5618
5619 * mips-tdep.c (mips_numeric_register_alieses): New definition.
5620 (mips_gdbarch_init): Add user registers from
5621 mips_numeric_register_aliases.
5622
5623 2009-04-01 Joel Brobecker <brobecker@adacore.com>
5624
5625 * linux-nat.c (linux_nat_filter_event): Minor comment reformatting.
5626
5627 2009-04-01 Joel Brobecker <brobecker@adacore.com>
5628
5629 * linux-nat.c (linux_nat_filter_events): Do not delete the lwp if
5630 this is the last one.
5631
5632 2009-04-01 Pedro Alves <pedro@codesourcery.com>
5633
5634 * remote.c (append_resumption): New.
5635 (remote_vcont_resume): Use it.
5636
5637 2009-04-01 Joel Brobecker <brobecker@adacore.com>
5638
5639 * windows-nat.c (+windows_get_ada_task_ptid): New function.
5640 (init_windows_ops): Set windows_ops.to_get_ada_task_ptid.
5641
5642 2009-03-31 Daniel Jacobowitz <dan@codesourcery.com>
5643 Keith Seitz <keiths@redhat.com>
5644 Jan Kratochvil <jan.kratochvil@redhat.com>
5645
5646 PR gdb/6817
5647 * Makefile.in (dbxread.o): Update.
5648 * dbxread.c (read_dbx_symtab): Use cp_canonicalize_string.
5649 * dwarf2read.c (GDB_FORM_cached_string): New.
5650 (read_partial_die): Use dwarf2_canonicalize_name.
5651 (dwarf2_linkage_name): Use dwarf2_name.
5652 (dwarf2_canonicalize_name): New.
5653 (dwarf2_name): Use dwarf2_canonicalize_name.
5654 (dwarf_form_name, dump_die): Handle GDB_FORM_cached_string.
5655 * stabsread.c (define_symbol, read_type): Use cp_canonicalize_string.
5656 * symtab.c (lookup_symbol_in_language): Canonicalize input before
5657 searching.
5658 * cp-name-parser.y: operator() requires two parameters,
5659 according to libiberty.
5660 * minsyms.c (lookup_minimal_symbol): Canonicalize input
5661 before searching.
5662 * NEWS: Update.
5663
5664 2009-03-31 Joel Brobecker <brobecker@adacore.com>
5665
5666 Provide support for (Ada) task-specific breakpoints.
5667
5668 * ada-lang.h (ada_get_task_number): Add declaration.
5669 (breakpoint_ada_task_match): Delete declaration.
5670 * ada-tasks.c (ada_get_task_number): Make non-static.
5671 * breakpoint.h (struct breakpoint): Add field "task".
5672 * breakpoint.c (print_one_breakpoint_location): Add handling of
5673 task-specific breakpoints.
5674 (create_breakpoint, create_breakpoints, find_condition_and_thread):
5675 New parameter "task".
5676 (break_command_really): Update calls to find_condition_and_thread
5677 and create_breakpoints.
5678 (breakpoint_re_set_one): Update call to find_condition_and_thread.
5679 Set b->task.
5680
5681 2009-03-31 Joel Brobecker <brobecker@adacore.com>
5682
5683 * ada-tasks.c (short_task_info): Eliminate the "Running" task state.
5684
5685 2009-03-31 Pedro Alves <pedro@codesourcery.com>
5686
5687 * remote.c (remote_notice_new_inferior): Use ptid_is_pid. Check
5688 if the thread's ptid without a thread id field is in the list
5689 before calling thread_change_ptid.
5690 (extended_remote_attach_1): In non-stop mode, do not rely on
5691 querying the current thread, instead, query the thread list, and
5692 select the first thread of the process.
5693 * gdbthread.h (first_thread_of_process): Declare.
5694 * thread.c (first_thread_of_process): Define.
5695
5696 2009-03-30 Stan Shebs <stan@codesourcery.com>
5697
5698 Make tracepoints into a type of breakpoint.
5699 * breakpoint.h (enum bptype): Add bp_tracepoint.
5700 (struct breakpoint): Add fields step_count, pass_count, actions.
5701 (get_tracepoint, get_tracepoint_by_number): Declare.
5702 (all_tracepoints): Declare.
5703 * breakpoint.c: Include tracepoint.h, readline.h.
5704 (ALL_TRACEPOINTS): Move here from tracepoint.c.
5705 (tracepoint_count): Ditto.
5706 (should_be_inserted): GDB does not insert tracepoints itself.
5707 (print_it_typical): Add tracepoint case.
5708 (bpstat_what): Ditto.
5709 (print_one_breakpoint_location): Ditto, and add printing for
5710 pass count, step count, and action list.
5711 (user_settable_breakpoint): Add tracepoint case.
5712 (allocate_bp_location): Ditto.
5713 (set_breakpoint_location_function): Ditto.
5714 (disable_breakpoints_in_shlibs): Ditto.
5715 (mention): Ditto.
5716 (break_command_really): Add argument traceflag, use to choose
5717 basic breakpoint type.
5718 (break_command_1): Pass extra argument.
5719 (set_breakpoint, handle_gnu_v3_exceptions): Ditto.
5720 (breakpoint_re_set_one): Add tracepoint case.
5721 (disable_command, enable_command): Ditto.
5722 (set_tracepoint_count): Move here from tracepoint.c.
5723 (trace_command): Move here from tracepoint.c and use
5724 break_command_really.
5725 (tracepoints_info): Move here from tracepoint.c and call
5726 breakpoints_info.
5727 (enable_trace_command): Move here from tracepoint.c and call
5728 enable_command.
5729 (disable_trace_command): Move here from tracepoint.c and call
5730 disable_command.
5731 (delete_trace_command): Move here from tracepoint.c and call
5732 delete_breakpoint.
5733 (trace_pass_command): Move here from tracepoint.c.
5734 (get_tracepoint_by_number): Ditto.
5735 (tracepoint_save_command): Ditto.
5736 (get_tracepoint): New function.
5737 (all_tracepoints): New function.
5738 (_initialize_breakpoint): Move tracepoint init from tracepoint.c,
5739 deprecate "enable trace" and "disable trace" commands.
5740 * tracepoint.h (struct tracepoint): Remove.
5741 (tracepoint_chain): Remove decl.
5742 (deprecated_create_tracepoint_hook): Remove decl.
5743 (deprecated_delete_tracepoint_hook): Remove decl.
5744 (deprecated_modify_tracepoint_hook): Remove decl.
5745 (ALL_TRACEPOINTS, ALL_TRACEPOINTS_SAFE): Remove.
5746 (free_actions): Update signature.
5747 (validate_actionline): Update signature.
5748 (end_actions_pseudocommand): Declare.
5749 (while_stepping_pseudocommand): Declare.
5750 * tracepoint.c: Include breakpoint.h.
5751 (tracepoint_chain, tracepoint_count): Remove.
5752 (free_actions, make_cleanup_free_actions): Update signature.
5753 (trace_command, set_raw_tracepoint): Remove.
5754 (trace_mention): Remove.
5755 (tracepoints_info): Remove.
5756 (tracepoint_operation, map_args_over_tracepoints): Remove.
5757 (get_tracepoint_by_number): Remove.
5758 (enable_trace_command, disable_trace_command): Remove.
5759 (delete_trace_command, trace_pass_command): Remove.
5760 (trace_actions_command, read_actions): Update signature.
5761 (validate_actionline): Update signature, use bp loc.
5762 (encode_actions): Ditto.
5763 (download_tracepoint): New function, body of trace_start_command.
5764 (trace_start_command): Call it, use all_tracepoints.
5765 (tracepoint_save_command): Remove.
5766 (tracepoint_dump_command): Use get_tracepoint.
5767 (end_actions_pseudocommand): Make globally visible.
5768 (while_stepping_pseudocommand): Ditto.
5769 (_initialize_tracepoint): Move command definitions to breakpoint.c.
5770
5771 2009-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
5772
5773 Expose frames to Python.
5774 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-frame.o.
5775 (SUBDIR_PYTHON_SRCS): Add python-frame.c.
5776 (python-frame.o): New target.
5777 * python/python-frame.c: New file.
5778 * python/python-internal.h (gdbpy_frames, gdbpy_newest_frame,
5779 gdbpy_frame_stop_reason_string, gdbpy_selected_frame,
5780 gdbpy_initialize_frames): New prototypes.
5781 * python/python.c (_initialize_python): Call gdbpy_initialize_frames.
5782 (GdbMethods): Add `selected_frame' and `frame_stop_reason_string'
5783 entries.
5784 * stack.c (find_frame_funname): New function, factored out of
5785 print_frame.
5786 (print_frame): Call find_frame_funname.
5787 * stack.h (find_frame_funname): Add prototype.
5788
5789 2009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
5790
5791 Remove unused value_object attribute `owned_by_gdb'.
5792 * python/python-value.c (value_object): Remove owned_by_gdb
5793 attribute.
5794 (valpy_dealloc): Remove reference to self->owned_by_gdb.
5795 (valpy_new): Likewise.
5796 (value_to_value_object): Likewise.
5797
5798 2009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
5799
5800 Change gdb.Value.address from a method to an attribute.
5801 * python/python-value.c (value_object): Add `address' element.
5802 (valpy_dealloc): Decrement reference to self->address if set.
5803 (valpy_new): Initialize val_obj->address.
5804 (valpy_address): Rename to ...
5805 (valpy_get_address): ... this. Change signature from method to
5806 attribute. Update self->address if not set.
5807 (value_to_value_object): Initialize val_obj->address.
5808 (value_object_getset): Add `address' element.
5809 (value_object_methods): Remove `address' element.
5810
5811 2009-03-29 Andreas Schwab <schwab@linux-m68k.org>
5812
5813 * observer.sh: Set LANG/LC_ALL to C, not c.
5814
5815 2009-03-28 Kevin Buettner <kevinb@redhat.com>
5816
5817 * mn10300-tdep.c (mn10300_gdbarch_init): For mn10300, by default,
5818 `char' is unsigned.
5819
5820 2009-03-28 Pedro Alves <pedro@codesourcery.com>
5821
5822 * remote.c (remote_stop_ns): If multi-process extensions are off,
5823 and GDB is requesting the whole process to stop, sent "vCont;t",
5824 not "vCont;t:-1"
5825
5826 2009-03-28 Pedro Alves <pedro@codesourcery.com>
5827
5828 * inf-loop.c (inferior_event_handler): Avoid calling is_running on
5829 null inferior_ptid.
5830
5831 2009-03-27 Eli Zaretskii <eliz@gnu.org>
5832
5833 * config/djgpp/fnchange.lst: Update to fix ARI-reported problems.
5834
5835 2009-03-26 Doug Evans <dje@google.com>
5836
5837 * thread.c (do_restore_current_thread_cleanup): Redo test for
5838 whether to restore old->inferior_ptid.
5839
5840 2009-03-26 Tom Tromey <tromey@redhat.com>
5841
5842 * breakpoint.c (resolve_sal_pc): Preserve original line number
5843 when skipping prologue.
5844
5845 2009-03-26 Doug Evans <dje@google.com>
5846
5847 * thread.c (inferior_thread) Remove "extern" in definition.
5848
5849 2009-03-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
5850
5851 Add gdb.Value.is_optimized_out attribute.
5852 * python/python-value.c (valpy_get_is_optimized_out): New
5853 function.
5854 (value_object_getset): New variable.
5855 (value_object_type): Initialize tp_getset element.
5856
5857 2009-03-26 Joel Brobecker <brobecker@adacore.com>
5858
5859 Recognize missing DW_AT_location as <value optimized out>.
5860 * dwarf2read.c
5861 (new_symbol <DW_TAG_variable> <!DW_AT_location> <!DW_AT_external>):
5862 Call add_symbol_to_list.
5863
5864 2009-03-25 Tom Tromey <tromey@redhat.com>
5865
5866 * gdbtypes.h (CHECK_TYPEDEF): Don't yield a value.
5867 * stack.c (print_this_frame_argument_p): Use check_typedef.
5868
5869 2009-03-25 Tom Tromey <tromey@redhat.com>
5870
5871 * configure: Rebuild.
5872 * acinclude.m4 (AM_ICONV): Set am_cv_use_build_libiconv.
5873 Rearrange flags setting. Add comments.
5874
5875 2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
5876
5877 * config/i386/nm-i386.h: Remove code within
5878 I386_WATCHPOINTS_IN_TARGET_VECTOR conditional.
5879 * config/i386/nm-cygwin.h: Remove I386_WATCHPOINTS_IN_TARGET_VECTOR
5880 macro.
5881 * config/i386/nm-cygwin64.h: Ditto.
5882 * config/i386/nm-fbsd.h: Ditto.
5883 * config/i386/nm-go32.h: Ditto.
5884 * config/i386/nm-linux.h: Ditto.
5885 * config/i386/nm-linux64.h: Ditto.
5886
5887 2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
5888
5889 ARI fix: "xasprintf" rule.
5890 * printcmd.c (sym_info): Replace xasprintf by xstrprintf.
5891
5892 2009-03-25 Pedro Alves <pedro@codesourcery.com>
5893
5894 * remote.c (remote_start_remote): In non-stop mode, call
5895 init_wait_for_inferior before adding threads and inferiors.
5896
5897 2009-03-25 Joel Brobecker <brobecker@adacore.com>
5898
5899 * breakpoint.c (breakpoint_thread_match): Split a large condition
5900 into several smaller conditions. No behavior change.
5901
5902 2009-03-25 Pedro Alves <pedro@codesourcery.com>
5903
5904 * infrun.c (infrun_thread_thread_exit): New.
5905 (_initialize_infrun): Attach it to the thread_exit observer.
5906 * thread.c (delete_thread_1): Always call the observer, passing it
5907 the silent flag.
5908 * mi/mi-interp.c (mi_thread_exit): Add "silent" parameter. If
5909 SILENT, return immediately.
5910
5911 2009-03-25 Pedro Alves <pedro@codesourcery.com>
5912
5913 * infrun.c (normal_stop): Use has_stack_frames instead of
5914 target_has_stack.
5915 * mi/mi-main.c (mi_execute_command): Avoid calling inferior_thread
5916 when there is no thread selected.
5917 (mi_cmd_execute): Don't special case commands that can run without
5918 a valid selected thread.
5919 * top.c (execute_command): Don't special case commands that can
5920 run without a valid selected thread. Use has_stack_frames.
5921 * infcmd.c (ensure_valid_thread): New.
5922 (continue_1, step_1, jump_command, signal_command): Use it.
5923 (detach_command): Error out if there's no selected thread/inferior.
5924 * thread.c (print_thread_info): Allow having no thread selected.
5925 (switch_to_thread): Don't read the PC if there is no current thread.
5926 (do_restore_current_thread_cleanup): Don't record the current
5927 frame if there is no current thread.
5928 (make_cleanup_restore_current_thread): Don't read frame info if
5929 there is no selected thread.
5930 (_initialize_thread): Don't mark commands as
5931 "no_selected_thread_ok".
5932 * frame.c (get_current_frame): Error out if there is no valid
5933 selected thread.
5934 (has_stack_frames): Return false if there is no valid
5935 selected thread.
5936 * cli/cli-cmds.c (init_cli_cmds): Don't mark commands as
5937 "no_selected_thread_ok".
5938 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
5939 (get_cmd_no_selected_thread_ok): Delete.
5940 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): Delete.
5941 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
5942 Delete declaration.
5943 * stack.c (get_selected_block): Use has_stack_frames.
5944
5945 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
5946
5947 Fix size of FPSCR in Power 7 processors.
5948 * ppc-linux-nat.c (PPC_FEATURE_ARCH_2_05): Remove #define.
5949 (PPC_FEATURE_HAS_DFP): New #define.
5950 (ppc_linux_read_description): Check for DFP feature instead of
5951 ISA 2.05 to decide on size of the FPSCR.
5952
5953 2009-03-25 Kevin Buettner <kevinb@redhat.com>
5954
5955 * mn10300-tdep.c (trad-frame.h): Don't include.
5956 (prologue-value.h): Include.
5957 (mn10300_frame_unwind_cache, set_reg_offsets): Delete.
5958 (struct mn10300_prologue): Define.
5959 (push_reg, translate_rreg, check_for_saved): New functions.
5960 (mn10300_analyze_prologue): Rewrite, using prologue-value
5961 machinery. Handle more instructions than before. Permit
5962 instructions to occur in any order.
5963 (mn10300_skip_prologue): Find the extents of the function
5964 in question; mn10300_analyze_prologue no longer does this.
5965 (mn10300_analyze_frame_prologue): New function.
5966 (mn10300_frame_base): New function.
5967 (mn10300_frame_this_id): Rewrite, no longer using trad-frame
5968 implementation.
5969 (mn10300_frame_prev_register): Likewise.
5970 (mn10300_frame_base_address, mn10300_frame_base struct): Delete.
5971 (mn10300_unwind_pc, mn10300_unwind_sp): Rename `next_frame' to
5972 `this_frame'.
5973 (mn10300_frame_unwind_init): Don't call frame_base_set_default().
5974
5975 2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
5976
5977 Fix completer problem for filename completion on the first try.
5978
5979 * gdb/completer.h (gdb_completion_word_break_characters): New function.
5980 * gdb/completer.c: Include gdb_assert.h.
5981 (complete_line_internal_reason): New enum.
5982 (complete_line_internal): Change last argument type to
5983 complete_line_internal_reason.
5984 Modify function to handle the different complete_line_internal_reason
5985 argument values.
5986 (complete_line): Adapt to change in complete_line_internal.
5987 (command_completer): Ditto.
5988 (gdb_completion_word_break_characters): Implement new function.
5989 * top.c (init_main): Set rl_completion_word_break_hook to
5990 gdb_completion_word_break_characters.
5991
5992
5993 2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
5994
5995 ARI fix: "strlen d_name" rule.
5996 * linux-nat.c (linux_nat_xfer_osdata): Use NAMELEN macro.
5997
5998
5999 2009-03-24 Tom Tromey <tromey@redhat.com>
6000 Pedro Alves <pedro@codesourcery.com>
6001
6002 * configure, config.in: Rebuild.
6003 * configure.ac: Check for libiconvlist.
6004 * charset.c: Check HAVE_LIBICONVLIST.
6005 * acinclude.m4 (AM_ICONV): Don't subst LIBICONV, LIBICONV_INCLUDE,
6006 LIBICONV_LIBDIR. Update CPPFLAGS and LIBS.
6007 * Makefile.in (LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR):
6008 Remove.
6009 (INTERNAL_CFLAGS_BASE): Update.
6010 (INTERNAL_LDFLAGS): Update.
6011 (CLIBS): Update.
6012
6013 2009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6014
6015 * configure.ac: Initialize the variable $PREFER_CURSES.
6016 * configure: Regenerated.
6017
6018 2009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6019
6020 * configure.ac: Enable $PREFER_CURSES even with default $ENABLE_TUI.
6021 * configure: Regenerated.
6022
6023 2009-03-24 Pierre Muller <muller@ics.u-strasbg.fr>
6024
6025 ARI fix: "strerror" rule.
6026 * darwin-nat.c (darwin_ptrace): Use safe_strerror.
6027 (darwin_stop_inferior, darwin_attach, darwin_detach): Ditto.
6028
6029 2009-03-23 Joel Brobecker <brobecker@adacore.com>
6030
6031 * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs
6032 before looking up the fields inside our struct type.
6033
6034 2009-03-23 Joel Brobecker <brobecker@adacore.com>
6035
6036 * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before
6037 trying to resolve the type qualification.
6038
6039 2009-03-23 Joel Brobecker <brobecker@adacore.com>
6040
6041 * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sure
6042 we try to apply the attribute on the real type, rather than
6043 its associated typedef.
6044
6045 2009-03-23 Joel Brobecker <brobecker@adacore.com>
6046
6047 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdef
6048 to make sure we try to get the modulus of the actual type, not the
6049 associated typedef.
6050
6051 2009-03-23 Joel Brobecker <brobecker@adacore.com>
6052
6053 * ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]
6054 [OP_ATR_LENGTH]: When using the attribute on a type, make sure
6055 to get the real type, not the associated typedef.
6056
6057 2009-03-23 Joel Brobecker <brobecker@adacore.com>
6058
6059 * ada-lang.c (ada_get_field_index): Add handling of the case
6060 when TYPE is a typedef of a struct.
6061
6062 2009-03-23 Joel Brobecker <brobecker@adacore.com>
6063
6064 Add gdb_usleep as a portable version of usleep based on gdb_select.
6065 * gdb_usleep.h, gdb_usleep.c: New files.
6066 * Makefile.in (SFILES): Add gdb_usleep.c.
6067 (HFILES_NO_SRCDIR): Add gdb_usleep.h.
6068 (COMMON_OBS): Add gdb_usleep.o.
6069 * ser-unix.c (hardwire_send_break): Replace call to gdb_select
6070 by call to gdb_usleep.
6071
6072 2009-03-23 Joel Brobecker <brobecker@adacore.com>
6073
6074 * buildsym.c (end_symtab): If we ignore the subfiles, then
6075 unlink the associated symtabs if they were already allocated.
6076
6077 2009-03-23 Jerome Guitton <guitton@adacore.com>
6078
6079 Provide a way to force building of GDB with libcurses.
6080 * configure.ac: Add --with-curses.
6081 * configure: Regenerated.
6082
6083 2009-03-23 Tom Tromey <tromey@redhat.com>
6084
6085 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_uninit>: Fix typo in
6086 error message.
6087
6088 2009-03-23 Paul Pluzhnikov <ppluzhnikov@google.com>
6089
6090 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Use
6091 solib_contains_address_p instead of searching.
6092
6093 2009-03-23 Tom Tromey <tromey@redhat.com>
6094
6095 * charset.c (ICONV_CONST) <PHONY_ICONV>: Define.
6096 (iconv): Make 'inbuf' argument const.
6097 (convert_between_encodings): Use ICONV_CONST.
6098 (wchar_iterate): Likewise.
6099
6100 2009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
6101
6102 * windows-nat.c (AdjustTokenPrivileges): Implement macro wraparound for
6103 dynamically loaded function.
6104 (LookupPrivilegeValueA): Ditto.
6105 (OpenProcessToken): Ditto.
6106 (AdjustTokenPrivileges): Rename and define placeholder for address of
6107 dynamically loaded function.
6108 (LookupPrivilegeValueA): Ditto.
6109 (OpenProcessToken): Ditto.
6110 (set_process_privilege): Remove check for loaded functions.
6111 (bad_OpenProcessToken): Define.
6112 (_initialize_loadable): Load token functions from advapi here, setting
6113 OpenProcessToken function to a dummy static function which always return
6114 error if OS doesn't support this functionality.
6115
6116 2009-03-22 Nicolas Roche <roche@adacore.com>
6117 Christopher Faylor <me+cygwin@cgf.cx>
6118
6119 * win32-nat.c (ctrl_c_handler): New function.
6120 (win32_wait): Register ctrl_c_handler as Ctrl-C handler if the inferior
6121 is run in a separate console.
6122
6123 2009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
6124
6125 * windows-nat.c (DebugActiveProcessStop): Implement macro wraparound
6126 for dynamically loaded function.
6127 (DebugBreakProcess): Ditto.
6128 (DebugSetProcessKillOnExit): Ditto.
6129 (EnumProcessModules): Ditto.
6130 (GetModuleFileNameExA): Ditto.
6131 (GetModuleInformation): Ditto.
6132 (DebugActiveProcessStop): Rename and define placeholder for address of
6133 dynamically loaded function.
6134 (DebugBreakProcess): Ditto.
6135 (DebugSetProcessKillOnExit): Ditto.
6136 (EnumProcessModules): Ditto.
6137 (GetModuleFileNameExA): Ditto.
6138 (GetModuleInformation): Ditto.
6139 (psapi_loaded): Delete.
6140 (get_module_name): Don't check psapi_loaded, just rely on the fact that
6141 dynamically loaded functions will return failure if they weren't
6142 previously found.
6143 (has_detach_ability): Delete.
6144 (windows_attach): Remove call to has_detach_ability (). Just rely on
6145 functions being callable.
6146 (bad_DebugActiveProcessStop): Define.
6147 (bad_DebugBreakProcess): Ditto.
6148 (bad_DebugSetProcessKillOnExit): Ditto.
6149 (bad_EnumProcessModules): Ditto.
6150 (bad_GetModuleFileNameExA): Ditto.
6151 (bad_GetModuleInformation): Ditto.
6152 (_initialize_loadable): Rename from _initialize_psapi. Initialize all
6153 dynamic storage here, setting nonexistent functions to dummy static
6154 functions which always return error.
6155
6156 2009-03-22 Pedro Alves <pedro@codesourcery.com>
6157
6158 * mi/mi-interp.c (mi_interpreter_init): Attach mi_about_to_proceed
6159 to the about_to_proceed observer notification.
6160 (mi_about_to_proceed): New.
6161 (mi_on_resume): Only output ^running and the prompt here if the
6162 target was proceeded.
6163 * breakpoint.c (breakpoint_proceeded): New static.
6164 (breakpoint_about_to_proceed): New.
6165 (_initialize_breakpoints): Attach breakpoint_about_to_proceed to
6166 the about_to_proceed observer notification.
6167 * inferior.h (breakpoint_proceeded): Delete declaration.
6168 * infrun.c (clear_proceed_status): Don't set breakpoint_proceeded.
6169 Notify the about_to_proceed observers.
6170 (struct inferior_status): Delete breakpoint_proceeded member.
6171 (save_inferior_status): Don't save it.
6172 (restore_inferior_status): Don't restore it.
6173 * mi-main.h (mi_proceeded): Declare.
6174 * mi/mi-main.c (mi_cmd_execute): Clear mi_proceeded before running
6175 a command.
6176
6177 2009-03-22 Pedro Alves <pedro@codesourcery.com>
6178
6179 * gdbthread.h (struct thread_info): Add in_infcall member.
6180 * infcall.c (run_inferior_call): Save, set and restore in_infcall.
6181 Remove reverences to suppress_resume_observer. Refresh
6182 `call_thread' after returning from `proceed'.
6183 * infcmd.c (suppress_resume_observer): Delete.
6184 * inferior.h (suppress_resume_observer): Delete declaration.
6185 * mi/mi-interp.c (mi_on_resume): Suppress output while calling an
6186 inferior function.
6187 * thread.c (set_running): Remove references to
6188 suppress_resume_observer.
6189 * infrun.c (struct inferior_status): Add in_infcall member.
6190 (save_inferior_status): Save it.
6191 (restore_inferior_status): Restore it.
6192
6193 2009-03-22 Pedro Alves <pedro@codesourcery.com>
6194
6195 * infcall.c (run_inferior_call): Remove references to
6196 suppress_stop_observer.
6197 * infcmd.c (suppress_stop_observer): Delete.
6198 (finish_command_continuation): Remove NOTE. Don't clear
6199 suppress_stop_observer anymore.
6200 (finish_command_continuation_free_arg): Likewise.
6201 (finish_forward): Remove references to suppress_stop_observer.
6202 Call normal_stop observer if we haven't already.
6203 * inferior.h (suppress_stop_observer): Delete.
6204 * infrun.c (normal_stop): When deciding to suppress the
6205 normal_stop observer, check for proceed_to_finish instead of
6206 suppress_stop_observer.
6207
6208 2009-03-22 Pedro Alves <pedro@codesourcery.com>
6209
6210 * symfile.c (symfile_relocate_debug_section): Remove check for
6211 SEC_DEBUGGING.
6212
6213 2009-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6214 Jim Blandy <jimb@red-bean.com>
6215 Thiago Jung Bauermann <bauerman@br.ibm.com>
6216 Tom Tromey <tromey@redhat.com>
6217
6218 Miscellaneous fixes to the Python code.
6219 * python/python-cmd.c (cmdpy_init): Accept keyword
6220 arguments.
6221 * python/python-value.c (valpy_string): Accept keyword
6222 arguments.
6223 (valpy_binop): Use `break' to exit from the TRY_CATCH block.
6224 Do not call value_to_value_object on NULL RES_VAL.
6225 (value_object_methods): Change `string' entry to also accept
6226 keyword arguments.
6227 (convert_value_from_python): Return a copy of the value if obj is
6228 a gdb.Value object.
6229 (value_object_methods): Mark the `string' method as accepting
6230 keywords, and show method "prototype" in the doc string.
6231 * python/python.c (get_parameter): Don't return inside a
6232 TRY_CATCH.
6233
6234 2009-03-20 Tom Tromey <tromey@redhat.com>
6235
6236 Add support for convenience functions in Python.
6237 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-function.o.
6238 (SUBDIR_PYTHON_SRCS): Add python-function.c.
6239 (python-function.o): New target.
6240 * eval.c: Include "python/python.h" and <ctype.h>.
6241 (evaluate_subexp_standard): Handle values of type
6242 TYPE_CODE_INTERNAL_FUNCTION.
6243 * gdbtypes.h (type_code): Add TYPE_CODE_INTERNAL_FUNCTION.
6244 * parse.c (write_exp_string): Remove duplicate word in comment.
6245 * python/python-function.c: New file.
6246 * python/python-internal.h (gdbpy_initialize_functions): Add
6247 prototype.
6248 * python/python.c (_initialize_python): Call
6249 gdbpy_initialize_functions.
6250 * valprint.c (value_check_printable): Handle values of type
6251 TYPE_CODE_INTERNAL_FUNCTION.
6252 * value.c: Include "cli/cli-decode.h".
6253 (internal_function): New struct.
6254 (functionlist, internal_fn_type): New static variables.
6255 (lookup_only_internalvar,
6256 lookup_internalvar): Add const qualifier to name argument.
6257 (create_internalvar): Likewise. Initialize new field.
6258 (set_internal_var): Fix typo in comment. Don't allow assignment
6259 to canonical variable.
6260 (value_create_internal_function, value_internal_function_name,
6261 call_internal_function, function_command, function_destroyer,
6262 add_internal_function): New functions.
6263 (_initialize_values): Create `function' placeholder command.
6264 Initialize internal_fn_type.
6265 * value.h (lookup_only_internalvar, create_internalvar,
6266 lookup_internalvar): Add const qualifier to name argument.
6267 (internal_function_fn, add_internal_function, call_internal_function,
6268 value_internal_function_name): Add prototypes.
6269 (struct internalvar) <canonical>: New field.
6270
6271 2009-03-20 Tom Tromey <tromey@redhat.com>
6272
6273 * c-lang.c (evaluate_subexp_c): Call check_typedef.
6274
6275 2009-03-20 Tom Tromey <tromey@redhat.com>
6276 Julian Brown <julian@codesourcery.com>
6277
6278 PR i18n/7220, PR i18n/7821, PR exp/8815, PR exp/9103,
6279 PR i18n/9401, PR exp/9613:
6280 * NEWS: Update
6281 * value.h (value_typed_string): Declare.
6282 (val_print_string): Update.
6283 * valprint.h (print_char_chars): Update.
6284 * valprint.c (print_char_chars): Add type argument. Update.
6285 (val_print_string): Likewise.
6286 * valops.c (value_typed_string): New function.
6287 * utils.c (host_char_to_target): New function.
6288 (parse_escape): Use host_char_to_target, host_hex_value. Update.
6289 Remove '^' case.
6290 (no_control_char_error): Remove.
6291 * typeprint.c (print_type_scalar): Update.
6292 * scm-valprint.c (scm_scmval_print): Update.
6293 * scm-lang.h (scm_printchar, scm_printstr): Update.
6294 * scm-lang.c (scm_printchar): Add type argument.
6295 (scm_printstr): Likewise.
6296 * printcmd.c (print_formatted): Update.
6297 (print_scalar_formatted): Update.
6298 (printf_command) <wide_string_arg, wide_char_arg>: New constants.
6299 Handle '%lc' and '%ls'.
6300 * parser-defs.h (struct typed_stoken): New type.
6301 (struct stoken_vector): Likewise.
6302 (write_exp_string_vector): Declare.
6303 * parse.c (write_exp_string_vector): New function.
6304 * p-valprint.c (pascal_val_print): Update.
6305 * p-lang.h (is_pascal_string_type, pascal_printchar,
6306 pascal_printstr): Update.
6307 * p-lang.c (is_pascal_string_type): Remove 'char_size' argument.
6308 Add 'char_type' argument.
6309 (pascal_emit_char): Add type argument.
6310 (pascal_printchar): Likewise.
6311 (pascal_printstr): Likewise.
6312 * objc-lang.c (objc_emit_char): Add type argument.
6313 (objc_printchar): Likewise.
6314 (objc_printstr): Likewise.
6315 * macroexp.c (get_character_constant): Handle unicode characters.
6316 Use c_parse_escape.
6317 (get_string_literal): Handle unicode strings. Use
6318 c_parse_escape.
6319 * m2-valprint.c (print_unpacked_pointer): Update.
6320 (m2_print_array_contents): Update.
6321 (m2_val_print): Update.
6322 * m2-lang.c (m2_emit_char): Add type argument.
6323 (m2_printchar): Likewise.
6324 (m2_printstr): Likewise.
6325 * language.h (struct language_defn) <la_printchar>: Add type
6326 argument.
6327 <la_printstr, la_emitchar>: Likewise.
6328 (LA_PRINT_CHAR): Likewise.
6329 (LA_PRINT_STRING): Likewise.
6330 (LA_EMIT_CHAR): Likewise.
6331 * language.c (unk_lang_emit_char): Add type argument.
6332 (unk_lang_printchar): Likewise.
6333 (unk_lang_printstr): Likewise.
6334 * jv-valprint.c (java_val_print): Update.
6335 * jv-lang.c (java_emit_char): Add type argument.
6336 * f-valprint.c (f_val_print): Update.
6337 * f-lang.c (f_emit_char): Add type argument.
6338 (f_printchar): Likewise.
6339 (f_printstr): Likewise.
6340 * expprint.c (print_subexp_standard): Update.
6341 * charset.h (target_wide_charset): Declare.
6342 (c_target_char_has_backslash_escape, c_parse_backslash,
6343 host_char_print_literally, host_char_to_target,
6344 target_char_to_host, target_char_to_control_char): Remove.
6345 (enum transliterations): New type.
6346 (convert_between_encodings): Declare.
6347 (HOST_ESCAPE_CHAR): New define.
6348 (host_letter_to_control_character, host_hex_value): Declare.
6349 (enum wchar_iterate_result): New enum.
6350 (struct wchar_iterator): Declare.
6351 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
6352 wchar_push_back): Declare.
6353 * charset-list.h: New file.
6354 * c-valprint.c (textual_name): New function.
6355 (textual_element_type): Handle wide character types.
6356 (c_val_print): Pass original type to textual_element_type. Handle
6357 wide character types.
6358 (c_value_print): Use textual_element_type. Pass original type of
6359 value to val_print.
6360 * c-lang.h (enum c_string_type): New type.
6361 (c_printchar, c_printstr): Update.
6362 * c-lang.c (classify_type): New function.
6363 (print_wchar): Likewise.
6364 (c_emit_char): Add type argument. Handle wide characters.
6365 (c_printchar): Likewise.
6366 (c_printstr): Add type argument. Handle wide and multibyte
6367 character sets.
6368 (convert_ucn): New function.
6369 (emit_numeric_character): Likewise.
6370 (convert_octal): Likewise.
6371 (convert_hex): Likewise.
6372 (ADVANCE): New macro.
6373 (convert_escape): New function.
6374 (parse_one_string): Likewise.
6375 (evaluate_subexp_c): Likewise.
6376 (exp_descriptor_c): New global.
6377 (c_language_defn): Use exp_descriptor_c.
6378 (cplus_language_defn): Likewise.
6379 (asm_language_defn): Likewise.
6380 (minimal_language_defn): Likewise.
6381 (charset_for_string_type): New function.
6382 * c-exp.y (%union): Add 'svec' and 'tsval'.
6383 (CHAR): New token.
6384 (exp): Add CHAR production.
6385 (string_exp): Rewrite.
6386 (exp) <string_exp>: Rewrite.
6387 (tempbuf): Now global.
6388 (tempbuf_init): New global.
6389 (parse_string_or_char): New function.
6390 (yylex) <tempbuf>: Now global.
6391 <tokptr, tempbufindex, tempbufsize, token_string, class_prefix>:
6392 Remove.
6393 Handle 'u', 'U', and 'L' prefixes. Call parse_string_or_char.
6394 (c_parse_escape): New function.
6395 * auxv.c (fprint_target_auxv): Update.
6396 * ada-valprint.c (ada_emit_char): Add type argument.
6397 (ada_printchar): Likewise.
6398 (ada_print_scalar): Update.
6399 (printstr): Add type argument. Update calls to ada_emit_char.
6400 (ada_printstr): Add type argument.
6401 (ada_val_print_array): Update.
6402 (ada_val_print_1): Likewise.
6403 * ada-lang.c (emit_char): Add type argument.
6404 * ada-lang.h (ada_emit_char, ada_printchar, ada_printstr): Add
6405 type arguments.
6406 * gdb_locale.h: Include langinfo.h.
6407 * charset.c (_initialize_charset): Set default host charset from
6408 the locale. Don't register charsets. Add target-wide-charset
6409 commands. Call find_charset_names.
6410 (struct charset, struct translation): Remove.
6411 (GDB_DEFAULT_HOST_CHARSET): Remove.
6412 (GDB_DEFAULT_TARGET_WIDE_CHARSET): New define.
6413 (target_wide_charset_name): New global.
6414 (show_host_charset_name): Handle "auto".
6415 (show_target_wide_charset_name): New function.
6416 (host_charset_enum, target_charset_enum): Remove.
6417 (charset_enum): New global.
6418 (all_charsets, register_charset, lookup_charset, all_translations,
6419 register_translation, lookup_translation): Remove.
6420 (simple_charset, ascii_print_literally, ascii_to_control): Remove.
6421 (iso_8859_print_literally, iso_8859_to_control,
6422 iso_8859_family_charset): Remove.
6423 (ebcdic_print_literally, ebcdic_to_control,
6424 ebcdic_family_charset): Remove.
6425 (struct cached_iconv, check_iconv_cache, cached_iconv_convert,
6426 register_iconv_charsets): Remove.
6427 (target_wide_charset_be_name, target_wide_charset_le_name): New
6428 globals.
6429 (identity_either_char_to_other): Remove.
6430 (set_be_le_names, validate): New functions.
6431 (backslashable, backslashed, represented): Remove.
6432 (default_c_target_char_has_backslash_escape): Remove.
6433 (default_c_parse_backslash, iconv_convert): Remove.
6434 (ascii_to_iso_8859_1_table, ascii_to_ebcdic_us_table,
6435 ascii_to_ibm1047_table, iso_8859_1_to_ascii_table,
6436 iso_8859_1_to_ebcdic_us_table, iso_8859_1_to_ibm1047_table,
6437 ebcdic_us_to_ascii_table, ebcdic_us_to_iso_8859_1_table,
6438 ebcdic_us_to_ibm1047_table, ibm1047_to_ascii_table,
6439 ibm1047_to_iso_8859_1_table, ibm1047_to_ebcdic_us_table): Remove.
6440 (table_convert_char, table_translation, simple_table_translation):
6441 Remove.
6442 (current_host_charset, current_target_charset,
6443 c_target_char_has_backslash_escape_func,
6444 c_target_char_has_backslash_escape_baton): Remove.
6445 (c_parse_backslash_func, c_parse_backslash_baton): Remove.
6446 (host_char_to_target_func, host_char_to_target_baton): Remove.
6447 (target_char_to_host_func, target_char_to_host_baton): Remove.
6448 (cached_iconv_host_to_target, cached_iconv_target_to_host):
6449 Remove.
6450 (lookup_charset_or_error, check_valid_host_charset): Remove.
6451 (set_host_and_target_charsets): Remove.
6452 (set_host_charset, set_target_charset): Remove.
6453 (set_host_charset_sfunc, set_target_charset_sfunc): Rewrite.
6454 (set_target_wide_charset_sfunc): New function.
6455 (show_charset): Print target wide character set.
6456 (host_charset, target_charset): Rewrite.
6457 (target_wide_charset): New function.
6458 (c_target_char_has_backslash_escape): Remove.
6459 (c_parse_backslash): Remove.
6460 (host_letter_to_control_character): New function.
6461 (host_char_print_literally): Remove.
6462 (host_hex_value): New function.
6463 (target_char_to_control_char): Remove.
6464 (cleanup_iconv): New function.
6465 (convert_between_encodings): New function.
6466 (target_char_to_host): Remove.
6467 (struct wchar_iterator): Define.
6468 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
6469 wchar_push_back): New functions.
6470 (do_cleanup_iterator): New function.
6471 (char_ptr): New typedef.
6472 (charsets): New global.
6473 (add_one, find_charset_names): New functions.
6474 (default_charset_names): New global.
6475 (auto_host_charset_name): Likewise.
6476 * aclocal.m4, config.in, configure: Rebuild.
6477 * configure.ac: Call AM_LANGINFO_CODESET.
6478 (GDB_DEFAULT_HOST_CHARSET): Default to UTF-8.
6479 (AM_ICONV): Invoke earlier.
6480 * acinclude.m4: Include codeset.m4. Subst LIBICONV_INCLUDE and
6481 LIBICONV_LIBDIR. Check for libiconv in build tree.
6482 * Makefile.in (LIBICONV_LIBDIR, LIBICONV_INCLUDE): New macros.
6483 (INTERNAL_CFLAGS_BASE): Add LIBICONV_INCLUDE.
6484 (INTERNAL_LDFLAGS): Add LIBICONV_LIBDIR.
6485 * gdb_obstack.h (obstack_grow_wstr): New define.
6486 * gdb_wchar.h: New file.
6487 * defs.h: Include it.
6488
6489 2009-03-20 Tom Tromey <tromey@redhat.com>
6490 Jan Kratochvil <jan.kratochvil@redhat.com>
6491
6492 * dwarf2read.c (process_die): Handle DW_TAG_typedef.
6493 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Strip a single
6494 typedef.
6495 * ada-lang.c (decode_packed_array_type): Call CHECK_TYPEDEF on the
6496 SYMBOL_TYPE result.
6497 * ada-typeprint.c (print_array_type): Do the NULL check
6498 unconditionally.
6499
6500 2009-03-19 Tom Tromey <tromey@redhat.com>
6501
6502 * utils.c (do_obstack_free): New function.
6503 (make_cleanup_obstack_free): Likewise.
6504 * defs.h (make_cleanup_obstack_free): Declare.
6505
6506 2009-03-18 Doug Evans <dje@google.com>
6507
6508 * linux-nat.c (linux_nat_find_memory_regions): Result of PIDGET is an
6509 int, not a long long.
6510 (linux_nat_info_proc_cmd): Store pid in long instead of long long.
6511
6512 * expprint.c (dump_raw_expression): Print note if non-NULL.
6513
6514 * printcmd.c (display_uses_solib_p): Redo loop, scan element list
6515 backwards.
6516
6517 2009-03-18 Nathan Sidwell <nathan@codesourcery.com>
6518
6519 * Makefile.in: Update license to GPLv3.
6520 * ada-exp.y: Update license to GPLv3.
6521 * ada-lex.l: Update license to GPLv3.
6522 * c-exp.y: Update license to GPLv3.
6523 * cp-name-parser.y: Update license to GPLv3.
6524 * darwin-nat-info.c: Update license to GPLv3.
6525 * f-exp.y: Update license to GPLv3.
6526 * gdb_thread_db.h: Update license to GPLv3.
6527 * hppanbsd-nat.c: Update license to GPLv3.
6528 * hppanbsd-tdep.c: Update license to GPLv3.
6529 * hppaobsd-tdep.c: Update license to GPLv3.
6530 * jv-exp.y: Update license to GPLv3.
6531 * m2-exp.y: Update license to GPLv3.
6532 * objc-exp.y: Update license to GPLv3.
6533 * p-exp.y: Update license to GPLv3.
6534 * reply_mig_hack.awk: Update license to GPLv3.
6535 * reverse.c: Update license to GPLv3.
6536 * xtensa-xtregs.c: Update license to GPLv3.
6537
6538 2009-03-18 Pedro Alves <pedro@codesourcery.com>
6539
6540 * remote.c (remote_close): Don't call generic_mourn_inferior.
6541 (remote_mourn_1): Call generic_mourn_inferior after closing the
6542 target.
6543
6544 2009-03-18 Pedro Alves <pedro@codesourcery.com>
6545
6546 * remote.c (remote_start_remote): Add missing call to
6547 init_wait_for_inferior in non-stop mode.
6548
6549 2009-03-18 Pedro Alves <pedro@codesourcery.com>
6550
6551 * breakpoint.c (bpstat_should_step): Only consider software
6552 watchpoints that have a location.
6553
6554 2009-03-17 Joel Brobecker <brobecker@adacore.com>
6555
6556 Add a target_ops parameter to the to_kill method in struct target_ops.
6557
6558 * target.h (struct target_ops): Add a "target_ops *" parameter to
6559 method to_kill.
6560 (target_kill): Remove macro. Add declaration.
6561 * target.c (debug_to_kill): Delete, no longer necessary.
6562 (target_kill): New function.
6563 (update_current_target): Stop inheriting the to_kill method.
6564 Do not de_fault it to no_process either.
6565 (setup_target_debug): Do not set current_target.to_kill.
6566 * gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c,
6567 linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c,
6568 remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update
6569 accordingly.
6570
6571 2009-03-17 Doug Evans <dje@google.com>
6572
6573 * amd64-linux-nat.c (si_timerid,si_overrun): Provide definition for
6574 glibc 2.3.2 and earlier.
6575
6576 2009-03-17 Joel Brobecker <brobecker@adacore.com>
6577
6578 * frame.c (get_prev_frame_1): Do not perform the inner_frame
6579 sanity check if this_frame is not NORMAL.
6580 (frame_id_inner): Update the description of this function.
6581
6582 2009-03-17 Hui Zhu <teawater@gmail.com>
6583
6584 * stack.c: Change the introduce of "disassemble-next-line".
6585
6586 2009-03-17 Pedro Alves <pedro@codesourcery.com>
6587
6588 * mi/mi-main.h (mi_print_timing_maybe): Add strict prototype,
6589 declare as extern.
6590
6591 2009-03-17 Hui Zhu <teawater@gmail.com>
6592
6593 * stack.c: Include valprint.h.
6594 (disassemble_next_line): New enum.
6595 (show_disassemble_next_line): New function. Show the current
6596 value of disassemble-next-line.
6597 (gdb_disassembly_stub_args): New struct for argument passing
6598 between function do_gdb_disassembly and function
6599 gdb_disassembly_stub.
6600 (gdb_disassembly_stub): New function. Helper for
6601 gdb_disassembly.
6602 (do_gdb_disassembly): New function. Use TRY_CATCH to catch
6603 the exception from the gdb_disassembly because it will be
6604 broken by filter sometime.
6605 (print_frame_info): If disassemble-next-line is set to auto
6606 or on and doesn't have the line debug messages for $pc,
6607 output the next instruction.
6608 If disassemble-next-line is set to on and there is line debug
6609 messages, output assembly codes for next line.
6610 (_initialize_stack): Make the "set disassemble-next-line"
6611 command an auto-boolean command. Change its class to
6612 class_stack. Place it in the top level set list. Extend help
6613 to describe the auto mode.
6614
6615 2009-03-17 Pedro Alves <pedro@codesourcery.com>
6616
6617 * infrun.c (normal_stop): Don't overwrite old_chain.
6618
6619 2009-03-16 Joel Brobecker <brobecker@adacore.com>
6620
6621 * remote-mips.c (mips_load): Replace call to regcache_set_valid_p,
6622 which is undefined, by call to regcache_invalidate, which should
6623 do what the original author wanted to do.
6624
6625 2009-03-16 Joel Brobecker <brobecker@adacore.com>
6626
6627 * remote-mips.c (mips_mourn_inferior): Add missing ops parameter.
6628 (mips_create_inferior): Likewise.
6629
6630 2009-03-16 Joel Brobecker <brobecker@adacore.com>
6631
6632 * go32-nat.c (go32_create_inferior): Add missing ops parameter.
6633
6634 2009-03-16 Joel Brobecker <brobecker@adacore.com>
6635
6636 * darwin-nat.c (darwin_resume): Fix a compiler warning when
6637 building on x86_64-darwin.
6638
6639 2009-03-16 Tristan Gingold <gingold@adacore.com>
6640
6641 * configure.tgt: Add handling for x86_64-darwin.
6642
6643 2009-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6644
6645 * auxv.c (fprint_target_auxv): New TAG for AT_RANDOM.
6646
6647 2009-03-15 Joel Brobecker <brobecker@adacore.com>
6648
6649 * aix-thread.c (aix_thread_thread_alive, aix_thread_pid_to_str):
6650 Use the ops parameter to get to the target beneath, rather than
6651 using the current_target global. Using the current_target global
6652 was an unintended accident.
6653
6654 2009-03-15 Joel Brobecker <brobecker@adacore.com>
6655
6656 Fix an error happening while loading symbols from a core file
6657 (on AIX).
6658
6659 * rs6000-nat.c (xcoff_relocate_symtab): Use target_has_execution
6660 to detect whether we're debugging a core file or not.
6661
6662 2009-03-15 Joel Brobecker <brobecker@adacore.com>
6663
6664 Modernize the aix-thread later by getting rid of the base_target
6665 global. This brings back to life the AIX port which was otherwise
6666 crashing all the time.
6667
6668 * aix-thread.c (base_target): Delete.
6669 (pd_enable): Do not set base_target.
6670 (aix_thread_attach): Use find_target_beneath instead of base_target.
6671 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
6672 (aix_thread_fetch_registers, aix_thread_store_registers),
6673 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
6674 (aix_thread_thread_alive, aix_thread_pid_to_str): Likewise.
6675 (aix_thread_kill): Delete. Does not seem necessary.
6676 (init_aix_thread_ops): Do not set aix_thread_ops.to_kill.
6677
6678 2009-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6679
6680 * stack.c (return_command <retval_exp>): New variables retval_expr
6681 and old_chain. Inline parse_and_eval to initialize retval_expr. Check
6682 RETVAL_EXPR for UNOP_CAST and set RETURN_TYPE to the RETURN_VALUE type
6683 if RETURN_TYPE is NULL.
6684
6685 2009-03-14 Pedro Alves <pedro@codesourcery.com>
6686
6687 * remote.c (PACKET_qAttached): New.
6688 (remote_query_attached): New.
6689 (remote_add_inferior): Add new `attached' argument. Handle it.
6690 (remote_notice_new_inferior, remote_start_remote): Adjust to pass
6691 -1 to remote_add_inferior in new parameter.
6692 (extended_remote_attach_1): Adjust to pass 1 to
6693 remote_add_inferior in the new parameter.
6694 (extended_remote_create_inferior_1): Adjust to pass 0 to
6695 remote_add_inferior in the new parameter.
6696 (_initialize_remote): Add "set/show remote query-attached-packet"
6697 commands.
6698
6699 2009-03-13 Tom Tromey <tromey@redhat.com>
6700
6701 * symtab.c (lookup_symbol_in_language): Use a cleanup.
6702
6703 2009-03-13 Doug Evans <dje@google.com>
6704
6705 * exceptions.h: Clean up some comments on catch_exceptions usage.
6706 * exceptions.c: Ditto. Plus mark catch_errors as superseded by
6707 catch_exceptions.
6708
6709 2009-02-17 Joel Brobecker <brobecker@adacore.com>
6710
6711 The following patch helps getting rid of a warning inside solib-som.c.
6712
6713 * source.c (source_full_path_of): Constify parameter filename.
6714 * defs.h (source_full_path_of): Update declaration accordingly.
6715
6716 2009-03-12 Joel Brobecker <brobecker@adacore.com>
6717
6718 * ada-lang.c (ada_evaluate_subexp): Merge case BINOP_REM and
6719 BINOP_MOD cases with the handling of case BINOP_DIV and BINOP_MUL.
6720 Remove useless op value checks when EVAL_AVOID_SIDE_EFFECTS.
6721
6722 2009-03-12 Joel Brobecker <brobecker@adacore.com>
6723
6724 * ada-lang.c (ada_evaluate_subexp) <BINOP_DIV>: make sure to
6725 promote the operands when noside is EVAL_AVOID_SIDE_EFFECTS.
6726
6727 2009-03-12 Joel Brobecker <brobecker@adacore.com>
6728
6729 * ada-tasks.c (ada_task_is_alive): Move up and make static.
6730 * ada-lang.h (ada_task_is_alive): Remove declaration.
6731
6732 2009-03-12 Jerome Guitton <guitton@adacore.com>
6733
6734 * ada-lang.c (ada_delta): Change the type of numerators and
6735 denominators to DOUBLEST, as they may not fit into a long.
6736 (scaling_factor): Ditto.
6737
6738 2009-03-12 Jerome Guitton <guitton@adacore.com>
6739
6740 * language.c (lang_bool_type): Set lai->bool_type_symbol to NULL.
6741
6742 2009-03-12 Joel Brobecker <brobecker@adacore.com>
6743
6744 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: For tagged
6745 types, if we are unable to determine the actual symbol type
6746 from its tag, then use the static approximation instead.
6747
6748 2009-03-12 Joel Brobecker <brobecker@adacore.com>
6749
6750 Fix crash printing packed record with packed array.
6751
6752 * ada-lang.c (ada_modulus_from_name): New function.
6753 (ada_modulus): In the case where the type length is bigger than
6754 the size of the type used to hold the bounds, try determining
6755 the modulus from the type name.
6756 (ada_value_primitive_packed_val): Fix bug in the computation of
6757 ntarg causing an out-of-buffer invalid access.
6758
6759 2009-03-12 Joel Brobecker <brobecker@adacore.com>
6760
6761 Fix segfault when printing short_integer'last.
6762
6763 * ada-lang.c (ada_find_any_type): Search in the primitive types
6764 if a symbol could not be found.
6765
6766 2009-03-12 Joel Brobecker <brobecker@adacore.com>
6767
6768 * ada-tasks.c (task_states,long_task_states): Add new states
6769 Activating and Acceptor_Delay_Sleep. Update the description
6770 of state Acceptor_Sleep.
6771
6772 2009-03-12 Jonas Maebe <jonas.maebe@elis.ugent.be> (obvious change)
6773
6774 Fix a build failure on Darwin following some changes in
6775 the profile of some target_ops methods.
6776
6777 * darwin-nat.c (darwin_kill_inferior): Add target_ops parameter
6778 where missing.
6779 (darwin_stop_inferior, darwin_detach): Likewise.
6780
6781 2009-03-12 Vladimir Prus <vladimir@codesourcery.com>
6782
6783 Include token in ^running notification for CLI commands.
6784
6785 * mi/mi-main.c (mi_execute_command): Set current_token here.
6786 (mi_cmd_execute): Do not set current_token here.
6787
6788 2009-03-12 Vladimir Prus <vladimir@codesourcery.com>
6789
6790 Fix MI timings.
6791
6792 * mi/mi-main.c (mi_print_timing_maybe): New.
6793 (captured_mi_execute_command): Simplify. Output timings to
6794 CLI commands, too.
6795 (mi_execute_async_cli_command): Do not print timings.
6796 * mi/mi-main.h (mi_print_timing_maybe): Declare.
6797 * mi/mi-interp.c (mi_on_normal_stop): Call mi_print_timing_maybe.
6798
6799 2009-03-12 Jerome Guitton <guitton@adacore.com>
6800
6801 * xcoffread.c (process_linenos): Check if the line in the
6802 include table refers to the main source file and, if so,
6803 add them to the main subfile.
6804
6805 2009-03-12 Joel Brobecker <brobecker@adacore.com>
6806
6807 Fix a build failure on AIX introduced after a change in the profile
6808 of some of the "methods" in the target_ops structure.
6809 * aix-thread.c: Add missing target_ops parameter throughout.
6810
6811 Implement Ada task switching on AIX.
6812 * aix-thread.c (aix_thread_get_ada_task_ptid): New function.
6813 (init_aix_thread_ops): Set aix_thread_ops.to_get_ada_task_ptid.
6814
6815 2009-03-11 Daniel Jacobowitz <dan@codesourcery.com>
6816
6817 * breakpoint.c (bpstat_check_breakpoint_conditions): Use
6818 value_mark and value_free_to_mark.
6819 * objfiles.c (free_objfile): Call objfile_free_data before
6820 freeing the BFD.
6821
6822 2009-03-10 Hui Zhu <teawater@gmail.com>
6823
6824 * disasm.c (gdb_disassembly): Remove unused argument
6825 "line_num".
6826 * disasm.h (gdb_disassembly): Ditto.
6827 * cli/cli-cmds.c (print_disassembly): Ditto.
6828 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
6829
6830 2009-03-09 Paul Pluzhnikov <ppluzhnikov@google.com>
6831
6832 * solib.c (solib_contains_address_p): New function.
6833 (solib_name_from_address): Use it.
6834 * printcmd.c (display_uses_solib_p): Use it.
6835 * solib.h (solib_contains_address_p): Declare it.
6836
6837 2009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6838
6839 * varobj.c (free_variable): Call value_free.
6840
6841 2009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6842
6843 PR gdb/9873:
6844 * dwarf2read.c (dwarf_decode_macros): New variable `at_commandline'.
6845 Move the variable `macinfo_type' out of the loop. Create a new
6846 processing pass before the current one to pre-create `current_file'.
6847 New complaint on misplaced zero/non-zero definitions/includes.
6848 Skip first DW_MACINFO_start_file with `at_commandline' set.
6849
6850 2008-03-09 Vladimir Prus <vladimir@codesourcery.com>
6851
6852 * solib.c (reload_shared_libraries): Give
6853 inferior a chance to reset solib breakpoint.
6854 Reinit frame cache.
6855
6856 2009-03-08 Christopher Faylor <me+cygwin@cgf.cx>
6857
6858 * windows-nat.c (dr): Redefine to use largest possible integer which
6859 holds a pointer.
6860 (cygwin_set_dr): Avoid coercion.
6861
6862 2009-03-08 Oswald Buddenhagen <oswald.buddenhagen@trolltech.de>
6863
6864 * windows-nat.c (windows_create_inferior): Implement --tty handling on
6865 non-cygwin.
6866
6867 2009-03-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6868
6869 Rename solib_address to solib_name_from_address.
6870 * breakpoint.c (insert_bp_location, disable_breakpoints_in_shlibs)
6871 (disable_breakpoints_in_unloaded_shlib): Update.
6872 * printcmd.c (display_uses_solib_p): Likewise.
6873 * stack.c (print_frame): Likewise.
6874 * solib.c: Rename.
6875 * solib.h: Rename.
6876
6877 2009-03-05 Paul Pluzhnikov <ppluzhnikov@google.com>
6878
6879 * printcmd.c (do_one_display): Reparse exp_string.
6880 (display_uses_solib_p): New function.
6881 (clear_dangling_display_expressions): New function.
6882 (_initialize_printcmd): Add observer.
6883 * solib.c (no_shared_libraries): Swap order of calls to
6884 clear_solib and objfile_purge_solibs.
6885
6886 2009-03-05 Joel Brobecker <brobecker@adacore.com>
6887
6888 Implement the target-specific part of Ada tasking support
6889 on Tru64.
6890
6891 * dec-thread.c (dec_thread_get_ada_task_ptid): New function.
6892 (init_dec_thread_ops): Set the to_get_ada_task_ptid method.
6893
6894 2009-03-05 Joel Brobecker <brobecker@adacore.com>
6895
6896 Get rid of the global "base_target" and use "find_target_beneath"
6897 to find the underlying target.
6898 * dec-thread.c (base_target): Delete.
6899 (enable_dec_thread): Remove assignement to base_target.
6900 (dec_thread_detach, dec_thread_wait, dec_thread_wait)
6901 (dec_thread_fetch_registers, dec_thread_store_registers)
6902 (dec_thread_mourn_inferior, dec_thread_pid_to_str):
6903 Update the function profile if necessary.
6904 Use find_target_beneath to call the same method but from
6905 the underlying target, removing the need for "base_target".
6906
6907 * dec-thread.c (dec_thread_get_regsets, dec_thread_set_regsets):
6908 Fix a copy/paste error in a few debug traces...
6909
6910 * solib-osf.c (init_so): Use a simpler method for computing
6911 the size of lm_info structure. This also gets rid of warning
6912 emitted by the compiler.
6913
6914 2009-03-05 Pedro Alves <pedro@codesourcery.com>
6915
6916 * breakpoint.c (check_duplicates_for): Skip permanent breakpoints
6917 duplicates of permanent breakpoints.
6918
6919 2009-03-04 Pedro Alves <pedro@codesourcery.com>
6920
6921 * inferior.h (notice_new_inferior): Declare.
6922 * infcmd.c (notice_new_inferior): New.
6923 * remote.c (remote_add_inferior, remote_add_thread): New.
6924 (notice_new_inferiors): Rename to...
6925 (remote_notice_new_inferior): ... this. Add RUNNING argument.
6926 Use remote_add_thread instead of add_thread, passing it the
6927 RUNNING argument. Add an inferior with remote_add_inferior. If
6928 we just learned about an inferior, call notice_new_inferior.
6929 (record_currthread): Adjust.
6930 (remote_threads_info): Adjust to use remote_notice_new_inferior.
6931 (remote_start_remote, extended_remote_attach_1): Use
6932 remote_add_inferior.
6933 (process_stop_reply): Adjust. Call remote_notice_new_inferior
6934 after handling expedited registers and watchpoint state.
6935 (extended_remote_create_inferior_1): Use remote_add_inferior.
6936
6937 2009-03-04 Aleksandar Ristovski <aristovski@qnx.com>
6938
6939 * infcmd.c (registers_info): Remove register number case.
6940
6941 2009-03-03 Pedro Alves <pedro@codesourcery.com>
6942
6943 * top.c (quit_target): Check for target_has_execution before
6944 killing or detaching from inferiors.
6945
6946 2009-03-02 Joel Brobecker <brobecker@adacore.com>
6947
6948 Remove some unused routines.
6949
6950 * ada-lang.c (is_suppressed_name, ada_suppress_symbol_printing):
6951 Delete.
6952 * ada-lang.c (ada_task_list_iterator_ftype)
6953 (iterate_over_live_ada_tasks): Delete.
6954 * ada-tasks.c (ada_get_environment_task, iterate_over_live_ada_tasks):
6955 Delete.
6956
6957 2009-03-01 Doug Evans <dje@google.com>
6958
6959 * symtab.c: Remove trailing whitespace throughout the file.
6960 (expand_line_sal): Fix some typos and whitespace.
6961
6962 * Makefile.in (clean): rm -f $(DEPDIR)/*.
6963
6964 * Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.
6965 (init.c): signals/ -> common/.
6966 (signals.o): Update.
6967 * target.h (target_signal_to_string,target_signal_to_string)
6968 (target_signal_from_name,target_signal_to_host_p)
6969 (target_signal_from_host,target_signal_to_host): Move to ...
6970 * common/gdb_signals.h: ... here. New file.
6971 * common/signals.c: Moved here from signals/signals.c.
6972 #include gdb_signals.h, remove #include of target.h in gdb case.
6973 (target_signal_from_command,default_target_signal_to_host)
6974 (default_target_signal_from_host): Move inside #ifndef GDBSERVER.
6975
6976 Include thread ID in target_wait debugging output.
6977 * infrun.c (print_target_wait_results): New function.
6978 (wait_for_inferior,fetch_inferior_event): Call it.
6979
6980 2009-02-27 Pedro Alves <pedro@codesourcery.com>
6981
6982 * gdb_proc_service.h (struct ps_prochandle): Replace pid_t field
6983 with a ptid_t field.
6984 * linux-thread-db.c (thread_get_info_callback): Build the ptid
6985 using the pid stored in proc_handle.ptid.
6986 (thread_from_lwp, thread_db_attach_lwp, enable_thread_event)
6987 (check_for_thread_db, thread_db_detach, check_event)
6988 (thread_db_mourn_inferior, find_new_threads_callback)
6989 (thread_db_find_new_threads_1): Adjust.
6990 * proc-service.c (ps_xfer_memory, ps_lgetregs, ps_lsetregs)
6991 (ps_lgetfpregs, ps_lsetfpregs, ps_getpid): Adjust.
6992
6993 2009-02-27 Phil Muldoon <pmuldoon@redhat.com>
6994
6995 * valprint.c (read_string): Rework clean-up logic. Use
6996 free_current_contents to clean-up buffer.
6997
6998 2009-02-27 Andreas Schwab <schwab@linux-m68k.org>
6999
7000 * MAINTAINERS: Update e-mail address.
7001
7002 2009-02-26 Phil Muldoon <pmuldoon@redhat.com>
7003
7004 * python/python-utils.c (python_string_to_unicode): Always return
7005 a new reference.
7006 (python_string_to_target_string): Decrement transient python
7007 instance.
7008 (python_string_to_host_string): Likewise.
7009
7010 2007-02-26 Pedro Alves <pedro@codesourcery.com>
7011
7012 * mips-linux-nat.c (mips64_linux_fetch_registers): Pass `ops' to
7013 call to super_fetch_registers.
7014 (mips64_linux_store_registers): Pass `ops' to call to
7015 super_store_registers.
7016
7017 2009-02-25 Doug Evans <dje@google.com>
7018
7019 * breakpoint.c (insert_bp_location): Add \n to overlay breakpoint
7020 error message.
7021
7022 * breakpoint.c (disable_breakpoints_in_shlibs): Delete local
7023 disabled_shlib_breaks, unused.
7024
7025 * printcmd.c (build_address_symbolic): Fix comment.
7026
7027 2009-02-25 Hui Zhu <teawater@gmail.com>
7028
7029 * cli/cli-script.c (define_command): Add _() to query.
7030 * gnu-nat.c (inf_validate_task_sc): Ditto.
7031 * infcmd.c (kill_if_already_running): Ditto.
7032 (jump_command): Ditto.
7033 (attach_command): Ditto.
7034 * inflow.c (kill_command): Ditto.
7035 * infrun.c (handle_command): Ditto.
7036 * maint.c (maintenance_dump_me): Ditto.
7037 * memattr.c (mem_delete_command): Ditto.
7038 * monitor.c (monitor_interrupt_query): Ditto.
7039 * nto-procfs.c (interrupt_query): Ditto.
7040 * printcmd.c (undisplay_command): Ditto.
7041 * remote-mips.c (mips_kill): Ditto.
7042 * remote.c (interrupt_query): Ditto.
7043 * solib-irix.c (irix_open_symbol_file_object): Ditto.
7044 * solib-osf.c (osf_open_symbol_file_object): Ditto.
7045 * solib-pa64.c (pa64_open_symbol_file_object): Ditto.
7046 * solib-som.c (som_open_symbol_file_object): Ditto.
7047 * solib-svr4.c (open_symbol_file_object): Ditto.
7048 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
7049 * target.c (kill_or_be_killed): Ditto.
7050 * tracepoint.c (delete_trace_command): Ditto.
7051 * top.c (quit_confirm): Add _() to s that will be used
7052 in query.
7053
7054 2009-02-24 Pierre Muller <muller@ics.u-strasbg.fr>
7055
7056 Fix windows-nat.c compilation failure.
7057
7058 * windows-nat.c (windows_thread_alive): Fix forward declaration.
7059 (get_windows_debug_event): Add ops parameter to call to windows_resume.
7060
7061 2009-02-23 Pedro Alves <pedro@codesourcery.com>
7062
7063 * remote-sim.c (gdbsim_resume): Add target_ops* argument.
7064
7065 2009-02-23 Jay Krell <jay.krell@cornell.edu> (tiny change)
7066
7067 * symtab.c (find_line_symtab): Initialize exact to avoid
7068 a compiler warning.
7069
7070 2009-02-23 Pedro Alves <pedro@codesourcery.com>
7071
7072 * i386-linux-nat.c (i386_linux_fetch_inferior_registers): Pass
7073 `ops' to recursive call.
7074
7075 2009-02-23 Pedro Alves <pedro@codesourcery.com>
7076
7077 * corelow.c (get_core_registers): Adjust.
7078 (core_file_thread_alive): Rename to...
7079 (core_thread_alive): ... this.
7080 (core_pid_to_str): Try gdbarch_core_pid_to_str first.
7081 (init_core_ops): Adjust.
7082 (coreops_suppress_target): Delete.
7083 (_initialize_corelow): Unconditionally add core_ops.
7084 * procfs.c: Include "inf-child.h".
7085 (procfs_ops): Delete.
7086 (init_procfs_ops): Delete. Reimplement as...
7087 (procfs_target): ... this, inheriting from inf-child.
7088 (procfs_attach, procfs_detach, procfs_fetch_registers): Adjust.
7089 (procfs_prepare_to_store): Delete.
7090 (procfs_store_registers, procfs_resume): Adjust.
7091 (procfs_open): Delete.
7092 (procfs_suppress_run): Delete.
7093 (procfs_can_run): Delete.
7094 (procfs_mourn_inferior): Adjust.
7095 (procfs_init_inferior): Add target_ops parameter. Adjust.
7096 (procfs_create_inferior): Don't pass procfs_init_inferior to
7097 fork_inferior. Instead call it after fork_inferior returns.
7098 (procfs_find_new_threads): Adjust.
7099 (_initialize_procfs): Adjust to use procfs_target instead of
7100 init_procfs_ops.
7101 * sol-thread.c (orig_core_ops, sol_core_ops): Delete.
7102 (lwp_to_thread): Use target_thread_alive.
7103 (sol_thread_open): Delete.
7104 (sol_thread_attach): Delete.
7105 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
7106 (sol_thread_fetch_registers, sol_thread_store_registers): Adjust
7107 to use find_target_beneath.
7108 (sol_thread_prepare_to_store, sol_thread_xfer_memory): Delete.
7109 (sol_thread_xfer_partial): Adjust to use find_target_beneath.
7110 (sol_thread_files_info, sol_thread_kill_inferior): Delete.
7111 (check_for_thread_db): New.
7112 (sol_thread_notice_signals, sol_thread_create_inferior): Delete.
7113 (sol_thread_new_objfile): Call check_for_thread_db.
7114 (sol_thread_mourn_inferior): Adjust to use find_target_beneath.
7115 (sol_thread_can_run): Delete.
7116 (sol_thread_alive): Adjust to use find_target_beneath.
7117 (sol_thread_stop): Delete.
7118 (rw_common): Use target_write_memory or target_read_memory.
7119 (ps_lgetregs, ps_lgetfpregs): Use target_fetch_registers.
7120 (ps_lsetregs, ps_lsetfpregs): Use target_store_registers.
7121 (solaris_pid_to_str): Remove check for libthread_db initialization
7122 failing.
7123 (sol_find_new_threads): Remove check for libthread_db
7124 initialization failing, or for an invalid inferior_ptid. Adjust
7125 to use find_target_beneath.
7126 (sol_core_open, sol_core_close, sol_core_detach,
7127 sol_core_files_info, sol_find_memory_regions,
7128 sol_make_note_section, ignore): Delete.
7129 (init_sol_thread_ops): Make it a thread_stratum target. Remove
7130 unneeded callback settings.
7131 (init_sol_core_ops): Delete.
7132 (_initialize_sol_thread): No longer call init_sol_core_ops, set
7133 procfs_suppress_run, or hack with core_ops.
7134
7135 * target.h (struct target_ops): Add a target_ops * parameter to
7136 to_resume, to_fetch_registers, to_store_registers, to_thread_alive
7137 and to_find_new_threads.
7138 (target_fetch_registers, target_store_registers)
7139 (target_thread_alive, target_find_new_threads): Redeclare as
7140 function.
7141
7142 * target.c (update_current_target): Do not inherit or de_fault
7143 to_resume, to_fetch_registers, to_store_registers,
7144 to_thread_alive, to_find_new_threads.
7145 (target_resume): Adjust.
7146 (target_thread_alive, target_find_new_threads): New.
7147 (debug_to_resume, debug_to_fetch_registers): Delete.
7148 (target_fetch_registers): New.
7149 (debug_to_store_registers): Delete.
7150 (target_store_registers): New.
7151 (debug_to_thread_alive, debug_to_find_new_threads): Delete.
7152 (setup_target_debug): Adjust.
7153
7154 * gdbcore.h (core_ops): Delete declaration.
7155
7156 * inf-ptrace.c, linux-nat.c, remote.c, amd64-linux-nat.c,
7157 inf-child.c, linux-thread-db.c, bsd-uthread.c, inf-ttrace.c,
7158 i386-sol2-tdep.c, darwin-nat.c, gnu-nat.c, go32-nat.c,
7159 hpux-thread.c, i386-linux-nat.c, i386fbsd-nat.c, monitor.c,
7160 nto-procfs.c, remote-m32r-sdi.c, remote-mips.c, windows-nat.c,
7161 alphabsd-nat.c, amd64bsd-nat.c, arm-linux-nat.c, armnbsd-nat.c,
7162 bsd-kvm.c, hppa-hpux-nat.c, hppa-linux-nat.c, hppabsd-nat.c,
7163 hppanbsd-nat.c, i386-darwin-nat.c, i386bsd-nat.c,
7164 ia64-linux-nat.c, m32r-linux-nat.c, m68kbsd-nat.c,
7165 m68klinux-nat.c, m88kbsd-nat.c, mips-linux-nat.c,
7166 mips64obsd-nat.c, mipsnbsd-nat.c, ppc-linux-nat.c, ppcnbsd-nat.c,
7167 ppcobsd-nat.c, remote-sim.c, rs6000-nat.c, s390-nat.c,
7168 shnbsd-nat.c, sparc-nat.c, sparc-nat.h, spu-linux-nat.c,
7169 vaxbsd-nat.c, xtensa-linux-nat.c: Adjust to target_ops changes.
7170
7171 * gdbarch.sh (core_pid_to_str): New gdbarch callback.
7172 * gdbarch.h, gdbarch.c: Regenerate.
7173
7174 * sol2-tdep.c: Include "inferior.h".
7175 (sol2_core_pid_to_str): New.
7176 * sol2-tdep.h (sol2_core_pid_to_str): Declare.
7177
7178 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
7179 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
7180 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
7181 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
7182
7183 2009-02-22 Doug Evans <dje@google.com>
7184
7185 * exec.c (exec_file_attach): Fix comment.
7186
7187 2009-02-22 Pedro Alves <pedro@codesourcery.com>
7188
7189 Silence a few -Wmissing-prototypes warnings.
7190
7191 PR build/9877:
7192 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Make
7193 it static.
7194 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Declare.
7195 * amd64fbsd-tdep.c (amd64fbsd_init_abi): Make it static.
7196 * amd64nbsd-tdep.c (_initialize_amd64nbsd_ndep): Rename to ...
7197 (_initialize_amd64nbsd_tdep): ... this.
7198 * arm-linux-tdep.c (arm_linux_software_single_step): Make it static.
7199 (_initialize_arm_linux_tdep): Declare.
7200 * armbsd-tdep.c (armbsd_fpreg_offset): Make it static.
7201 * armnbsd-tdep.c (_initialize_arm_netbsd_tdep): Declare.
7202 * armobsd-tdep.c (_initialize_armobsd_tdep): Declare.
7203 * avr-tdep.c (avr_return_value): Make it static.
7204 (avr_frame_unwind_cache): Ditto.
7205 * bsd-uthread.c (bsd_uthread_inferior_created): Ditto.
7206 (bsd_uthread_solib_loaded): Ditto.
7207 (bsd_uthread_solib_unloaded): Ditto.
7208 (bsd_uthread_target): Ditto.
7209 (_initialize_bsd_uthread): Declare.
7210 * cris-tdep.c (crisv32_single_step_through_delay): Make it static.
7211 (cris_frame_unwind_cache): Ditto.
7212 * frv-tdep.c (frv_return_value): Ditto.
7213 * h8300-tdep.c (h8300_use_struct_convention): Ditto.
7214 (h8300h_use_struct_convention): Ditto.
7215 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend):
7216 Ditto.
7217 * hppa-tdep.h (hppa_low_sign_extend, hppa_sign_extend): Delete
7218 declarations.
7219 * hppabsd-tdep.c: Include hppabsd-tdep.h.
7220 (hppabsd_find_global_pointer): Make it static.
7221 * hppabsd-tdep.h: New.
7222 * hppanbsd-tdep.c: Include hppabsd-tdep.h.
7223 (hppabsd_init_abi): Remove declaration.
7224 (_initialize_hppabsd_tdep): Remove declaration.
7225 (_initialize_hppanbsd_tdep): Declare.
7226 * hppaobsd-tdep.c: Include hppabsd-tdep.h.
7227 (hppabsd_init_abi): Delete declaration.
7228 (hppaobsd_init_abi): Make it static.
7229 * i386-nto-tdep.c (_initialize_i386nto_tdep): Declare.
7230 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Declare.
7231 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Declare.
7232 * ia64-tdep.c (ia64_register_reggroup_p): Make it static.
7233 * iq2000-tdep.c (_initialize_iq2000_tdep): Declare.
7234 * m32c-tdep.c (m32c_register_reggroup_p): Make it static.
7235 (m32c_analyze_prologue, m32c_virtual_frame_pointer): Ditto.
7236 (_initialize_m32c_tdep): Declare.
7237 * m32r-rom.c (_initialize_m32r_rom): Declare.
7238 * m32r-tdep.c (m32r_skip_prologue): Make it static.
7239 (m32r_return_value): Ditto.
7240 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Make it static.
7241 (m68hc11_return_value): Ditto.
7242 * m68klinux-tdep.c (_initialize_m68k_linux_tdep): Declare.
7243 * m88k-tdep.c (m88k_frame_cache): Make it static.
7244 * mep-tdep.c (mep_gdb_print_insn): Ditto.
7245 (mep_return_value): Ditto.
7246 (_initialize_mep_tdep): Declare.
7247 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Declare.
7248 * mips-linux-tdep.c (supply_64bit_reg): Make it static.
7249 (mips_linux_syscall_next_pc): Ditto.
7250 (_initialize_mips_linux_tdep): Declare.
7251 * mips-tdep.c (mips_single_step_through_delay): Make it static.
7252 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Declare.
7253 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Declare.
7254 * mn10300-tdep.c (_initialize_mn10300_tdep): Declare.
7255 * mt-tdep.c (_initialize_mt_tdep): Declare.
7256 * nbsd-tdep.c: Include nbsd-tdep.h.
7257 * nto-tdep.c (find_load_phdr): Make it static.
7258 (_initialize_nto_tdep): Declare.
7259 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Make it
7260 static.
7261 (_initialize_ppc_linux_tdep): Declare.
7262 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint)
7263 (m32r_insert_watchpoint, m32r_remove_watchpoint)
7264 (m32r_stopped_data_address, m32r_stopped_by_watchpoint): Make
7265 static.
7266 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Declare.
7267 * rs6000-nat.c: Include xcoffread.h.
7268 (find_toc_address): Don't extern declare get_toc_offset. Adjust
7269 to call xcoff_get_to_offset.
7270 * rs6000-tdep.c (ppc_vsx_support_p, ppc_displaced_step_fixup)
7271 (rs6000_skip_main_prologue, rs6000_in_solib_return_trampoline)
7272 (rs6000_skip_trampoline_code): Make static.
7273 * s390-tdep.c (s390_regset_from_core_section): Ditto.
7274 * sh-tdep.c (sh_register_reggroup_p): Ditto.
7275 * shnbsd-tdep.c (shnbsd_regset_from_core_section): Ditto.
7276 (_initialize_shnbsd_tdep): Declare.
7277 * solib-frv.c (displacement_from_map): Make static.
7278 (_initialize_frv_solib): Declare.
7279 * solib-irix.c (fetch_lm_info): Make static.
7280 (_initialize_irix_solib): Declare.
7281 * solib-som.c: Include solib-som.h.
7282 (som_solib_select): Line break.
7283 * sparc-tdep.c (sparc_regset_from_core_section): Make static.
7284 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Rename to ...
7285 (_initialize_sparcnbsd_tdep): ... this.
7286 * spu-tdep.c (spu_software_single_step): Make it static.
7287 (_initialize_spu_tdep): Declare.
7288 * vax-tdep.c (vax_frame_cache): Make it static.
7289 * xcoffread.c: Include xcoffread.h.
7290 (get_toc_offset): Rename to ...
7291 (xcoff_get_toc_offset): ... this.
7292 (_initialize_xcoffread): Declare.
7293 * xcoffread.h: New.
7294 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Declare.
7295 * xtensa-tdep.c (xtensa_skip_prologue, xtensa_derive_tdep): Make
7296 static.
7297 (_initialize_xtensa_tdep): Declare.
7298
7299 2008-02-21 Pedro Alves <pedro@codesorcery.com>
7300
7301 Silence a few -Wmissing-prototypes warnings.
7302
7303 PR build/9877:
7304 * amd64-nat.c: Include "amd64-nat.h".
7305 * fork-child.c (_initialize_fork_child): Ditto.
7306 * gcore.c (_initialize_gcore): Ditto.
7307 * inf-ptrace.c: Include "inf-ptrace.h".
7308 (inf_ptrace_store_registers): Make it static.
7309 * linux-nat.c (linux_nat_terminal_ours): Make it static.
7310 (_initialize_linux_nat): Declare before definition.
7311 * linux-tdep.c: Include "linux-tdep.h".
7312 * linux-thread-db.c (_initialize_thread_db): Declare before
7313 definition.
7314 * proc-service.c (_initialize_proc_service): Ditto.
7315 * remote.c (remote_send_printf): Make it static.
7316 * solib.c: Include "solib.h".
7317 * symfile-mem.c (_initialize_symfile_mem): Declare before
7318 definition.
7319 * ada-lang.c (ada_la_decode, ada_match_name)
7320 (ada_suppress_symbol_printing, ada_is_array_type)
7321 (ada_value_ptr_subscript, ada_array_length)
7322 (ada_to_static_fixed_value): Make them static.
7323 (_initialize_ada_language): Declare before definition.
7324 * ada-tasks.c (ada_get_task_number, ada_get_environment_task)
7325 (ada_task_list_changed, ada_new_objfile_observer): Make them
7326 static.
7327 (_initialize_tasks): Declare before definition.
7328 * addrmap.c (_initialize_addrmap): Declare before definition.
7329 * auxv.c (default_auxv_parse): Make it static.
7330 * bfd-target.c (target_bfd_xfer_partial, target_bfd_xclose): Make
7331 them static.
7332 * breakpoint.c (remove_sal): Add line break.
7333 (expand_line_sal_maybe): Make it static.
7334 * cp-name-parser.y: Include "cp-support.h".
7335 * cp-valprint.c (cp_find_class_member): Make it static.
7336 * eval.c (value_f90_subarray): Ditto.
7337 * exceptions.c (print_any_exception): Ditto.
7338 * findcmd.c (_initialize_mem_search): Declare before definition.
7339 * frame.c (frame_observer_target_changed): Make it static.
7340 * gnu-v3-abi.c (gnuv3_find_method_in): Make it static.
7341 * inf-child.c: Include "inf-child.h".
7342 * inferior.h (valid_inferior_id): Rename to ...
7343 (valid_gdb_inferior_id): ... this.
7344 * infrun.c (infrun_thread_stop_requested, siginfo_make_value):
7345 Make them static.
7346 * jv-lang.c (java_language_arch_info): Make it static.
7347 * m2-typeprint.c (m2_get_discrete_bounds): Ditto.
7348 * osdata.c (info_osdata_command): Make it static.
7349 * regcache.c (regcache_observer_target_changed): Make it static.
7350 * reverse.c (_initialize_reverse): Declare before definition.
7351 * stabsread.c (cleanup_undefined_types_noname)
7352 (cleanup_undefined_types_1): Make them static.
7353 * symfile.c (place_section): Make it static.
7354 * symtab.c (find_pc_sect_psymtab_closer): Make it static.
7355 * target-descriptions.c (_initialize_target_descriptions): Declare
7356 before definition.
7357 * target.c (default_get_ada_task_ptid, find_default_can_async_p)
7358 (find_default_is_async_p, find_default_supports_non_stop): Make
7359 them static.
7360 (target_supports_non_stop): Add prototype.
7361 (dummy_pid_to_str): Make it static.
7362 * utils.c (_initialize_utils): Declare before definition.
7363 * ada-exp.y (_initialize_ada_exp): Declare before definition.
7364 * solib-svr4.c (HAS_LM_DYNAMIC_FROM_LINK_MAP): Add a prototype.
7365 * target.h (struct target_ops): Add a prototype to the
7366 to_can_execute_reverse callback.
7367 * macroscope.c (_initialize_macroscope): Declare before definition.
7368 * cp-namespace.c (_initialize_cp_namespace): Declare before definition.
7369 * python/python.c (_initialize_python): Declare before definition.
7370 * tui/tui-command.c: Include "tui/tui-command.h".
7371 * tui/tui-data.c (init_content_element, init_win_info): Make them
7372 static.
7373 * tui/tui-disasm.c: Include "tui/tui-disasm.h".
7374 * tui/tui-interp.c (_initialize_tui_interp): Declare before
7375 definition.
7376 * tui/tui-layout.c: Include "tui/tui-layout.h".
7377 (_initialize_tui_layout): Declare before definition.
7378 * tui/tui-regs.c: Include "tui/tui-regs.h".
7379 (tui_display_reg_element_at_line): Make it static.
7380 (_initialize_tui_regs): Declare before definition.
7381 * tui/tui-stack.c (_initialize_tui_stack): Declare before
7382 definition.
7383 * tui/tui-win.c: Include "tui/tui-win.h".
7384 (_initialize_tui_win): Declare before definition.
7385 (tui_sigwinch_handler): Make it static. Wrap in ifdef SIGWINCH.
7386 * tui/tui-win.h (tui_sigwinch_handler): Delete declaration.
7387 (tui_get_cmd_list): Add a prototype.
7388 * tui/tui-windata.c: Include tui-windata.h.
7389 * tui/tui-wingeneral.c (box_win): Make it static.
7390 * cli/cli-logging.c (show_logging_command): Make it static.
7391 (_initialize_cli_logging): Declare before definition.
7392 * mi/mi-common.c (_initialize_gdb_mi_common): Declare before
7393 definition.
7394
7395 2009-02-20 Pierre Muller <muller@ics.u-strasbg.fr>
7396
7397 Extend use of i386_use_watchpoints to all i386 native files
7398 using hardware watchpoints.
7399 * go32-nat.c (init_go32_ops): Call i386_use_watchpoints.
7400 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Ditto.
7401 * windows-nat.c (init_windows_ops): Ditto.
7402 * config/i386/nm-cygwin.h: Define I386_WATCHPOINTS_IN_TARGET_VECTOR.
7403 * config/i386/nm-cygwin64.h: Ditto.
7404 * config/i386/nm-fbsd.h: Ditto.
7405 * config/i386/nm-go32.h: Ditto.
7406
7407 2009-02-19 Joel Brobecker <brobecker@adacore.com>
7408
7409 * ada-typeprint.c (ada_typedef_print): Remove. Unused.
7410
7411 2009-02-18 Vladimir Prus <vladimir@codesourcery.com>
7412
7413 * mi/mi-interp.c (mi_solib_loaded, mi_solib_unloaded): New.
7414 (mi_interpreter_init): Register the above.
7415 * solib.c (clear_solib): Notify solib unload.
7416 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Do not
7417 disable breakpoints on a.out targets.
7418
7419 2009-02-17 Vladimir Prus <vladimir@codesourcery.com>
7420
7421 * observer.c (observer_test_first_notification_function)
7422 (observer_test_second_notification_function)
7423 (observer_test_third_notification_function): Adjust prototype.
7424
7425 2009-02-17 Pedro Alves <pedro@codesourcery.com>
7426
7427 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-dicos-tdep.o.
7428 (ALL_TARGET_OBS): Add dicos-tdep.o.
7429 (ALLDEPFILES): Add amd64-dicos-tdep.c and dicos-tdep.c.
7430 * configure.tgt (i[34567]86-*-dicos*): Add dicos-tdep.o to
7431 gdb_target_obs.
7432 (x86_64-*-dicos*): Add dicos-tdep.o and amd64-dicos-tdep.o to
7433 gdb_target_obs.
7434 * dicos-tdep.h, dicos-tdep.c: New.
7435 * amd64-dicos-tdep.c: New.
7436 * i386-dicos-tdep.c: Don't include solib.h, solib-target.h or
7437 inferior.h. Include dicos-tdep.h.
7438 (i386_dicos_init_abi): Call dicos_init_abi.
7439 (i386_dicos_bfd_has_symbol_p): Delete.
7440 (i386_dicos_osabi_sniffer): Use dicos_load_module_p.
7441
7442 * NEWS: Mention x86-64 DICOS target support.
7443
7444 2009-02-16 Doug Evans <dje@google.com>
7445
7446 * amd64-tdep.c (amd64_skip_prefixes): Renamed from skip_prefixes.
7447 All callers updated.
7448 (amd64_get_insn_details): Handle more 3-byte opcode insns.
7449 (amd64_breakpoint_p): Delete.
7450 (amd64_displaced_step_fixup): When fixing up after stepping an int3,
7451 don't back up pc to the start of the int3.
7452 * i386-tdep.c: #include opcode/i386.h.
7453 (i386_skip_prefixes): New function.
7454 (i386_absolute_jmp_p): Constify argument.
7455 (i386_absolute_call_p,i386_ret_p,i386_call_p,i386_syscall_p): Ditto.
7456 (i386_breakpoint_p): Delete.
7457 (i386_displaced_step_fixup): Handle unnecessary or redundant prefixes.
7458 When fixing up after stepping an int3, don't back up pc to the start
7459 of the int3.
7460
7461 2009-02-16 Pedro Alves <pedro@codesourcery.com>
7462
7463 * corelow.c (core_close): Don't hardcode the core's pid.
7464 (core_open): Find core threads before calling
7465 post_create_inferior.
7466 (add_to_thread_list, get_core_register_section): Take into account
7467 systems where the regset section names encode the pid of the
7468 inferior.
7469
7470 * gdbarch.sh (core_reg_section_encodes_pid): New gdbarch setting.
7471 * gdbarch.h, gdbarch.c: Regenerate.
7472
7473 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
7474 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
7475 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
7476 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
7477
7478 2009-02-14 Vladimir Prus <vladimir@codesourcery.com>
7479
7480 Include frame information for *stopped due to CLI commands.
7481
7482 * ada-tasks.c (ada_normal_stop_observer): Adjust prototype.
7483 * infcmd.c (finish_command_continuation): Pass '1' for
7484 'print_frame' parameter to the observer.
7485 * infrun.c (normal_stop): Don't print mi-specific information
7486 here. Pass 'stop_print_frame' to the 'print_frame' parameter
7487 of the observer.
7488 * mi/mi-interp.c (mi_on_normal_stop): Adjust prototype.
7489 If we need to print frame, and current uiout is not the MI one,
7490 print frame again.
7491
7492 2009-02-13 Pierre Muller <muller@ics.u-strasbg.fr>
7493
7494 * xtensa-tdep.c (call0_analyze_prologue): Delete BSZ macro.
7495 Replace BSZ macro uses by XTENSA_ISA_BSZ macro.
7496
7497 2009-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7498
7499 PR fortran/9806
7500 * dwarf2read.c (process_die <DW_TAG_module>, read_module)
7501 (scan_partial_symbols <DW_TAG_module>, add_partial_module): New.
7502
7503 2009-02-11 Pierre Muller <muller@ics.u-strasbg.fr>
7504
7505 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
7506 for DW_ATE_signed_char and DW_ATE_unsigned_char
7507 for pascal language.
7508
7509 2009-02-11 Jim Meyering <meyering@redhat.com>
7510 Jan Kratochvil <jan.kratochvil@redhat.com>
7511
7512 Avoid NULL dereference.
7513 * stack.c (return_command): Guard use of SYMBOL_TYPE (thisfun).
7514 New variable func_type.
7515
7516 2009-02-11 Pedro Alves <pedro@codesourcery.com>
7517
7518 * gdbarch.c: Regenerate.
7519
7520 2009-02-10 Pierre Muller <muller@ics.u-strasbg.fr>
7521
7522 * p-lang.c (is_pascal_string_type): Fix comment.
7523 Determine exact size of char elements for GPC
7524 strings.
7525 (pascal_printstr): Handle char width of 2 or 4.
7526 * p-valprint.c (pascal_val_print): Handle char
7527 of width 2 or 4.
7528
7529 2009-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7530
7531 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc
7532 inside the loop. Only call addrmap_set_empty if the compilation unit
7533 had DW_AT_high_pc and DW_AT_low_pc. Update call to
7534 scan_partial_symbols.
7535 (scan_partial_symbols): Take NEED_PC argument and pass it along with
7536 LOWPC and HIGHPC.
7537 (add_partial_namespace): Take NEED_PC argument and pass it through.
7538 (add_partial_subprogram): Take NEED_PC argument. Update the addrmap
7539 if necessary.
7540
7541 2009-02-07 Pedro Alves <pedro@codesourcery.com>
7542
7543 * NEWS: Mention inspecting extra signal information, $_siginfo,
7544 and the qXfer:siginfo:read and qXfer:siginfo:write packets.
7545
7546 2009-02-07 Pedro Alves <pedro@codesourcery.com>
7547
7548 * linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO
7549 isn't defined.
7550
7551 2009-02-06 Pedro Alves <pedro@codesourcery.com>
7552
7553 * amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t)
7554 (compat_timer_t, compat_clock_t, struct compat_timeval)
7555 (compat_sigval_t, compat_siginfo_t): New types.
7556 (cpt_si_pid, cpt_si_uid, cpt_si_timerid, cpt_si_overrun)
7557 (cpt_si_status, cpt_si_utime, cpt_si_stime, cpt_si_ptr)
7558 (cpt_si_addr, cpt_si_band, cpt_si_fd): New defines.
7559 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
7560 (amd64_linux_siginfo_fixup): New.
7561 * linux-nat.c (linux_nat_siginfo_fixup): New.
7562 (siginfo_fixup): New.
7563 (linux_xfer_siginfo): Use siginfo_fixup to convert between the
7564 siginfo layout expected by ptrace and the siginfo layout of the
7565 inferior.
7566 (linux_nat_set_siginfo_fixup): New.
7567 * linux-nat.h (linux_nat_set_siginfo_fixup): Declare.
7568
7569 2009-02-06 Pedro Alves <pedro@codesourcery.com>
7570
7571 * target.h (enum target_object): Add new TARGET_OBJECT_SIGNAL_INFO.
7572 * infrun.c (siginfo_value_read, siginfo_value_write): New.
7573 (siginfo_value_funcs): New.
7574 (siginfo_make_value): New.
7575 (_initialize_infrun): Create the $_siginfo convenience variable.
7576 * gdbtypes.h (append_composite_type_field_aligned): Declare.
7577 * gdbtypes.c (append_composite_type_field): Rename to...
7578 (append_composite_type_field_aligned): ... this. Add ALIGNMENT
7579 argument. Handle it.
7580 (append_composite_type_field): Rewrite on top of
7581 append_composite_type_field_aligned.
7582 * value.h (internalvar_make_value): New typedef.
7583 (struct internalvar) <make_value>: New field.
7584 (create_internalvar_type_lazy): Declare.
7585 * value.c (create_internalvar): Clear make_value.
7586 (create_internalvar_type_lazy): New.
7587 (value_of_internalvar): If make_value is set use it.
7588 (preserve_values): Skip internal variables that don't have a
7589 value.
7590 * gdbarch.sh (get_siginfo_type): New.
7591 * gdbarch.h, gdbarch.c: Regenerate.
7592
7593 * linux-tdep.h, linux-tdep.c: New.
7594 * amd64-linux-tdep.c: Include "linux-tdep.h".
7595 (amd64_linux_init_abi): Register linux_get_siginfo_type and
7596 linux_get_siginfo_mapper.
7597 * i386-linux-tdep.c: Include "linux-tdep.h".
7598 (i386_linux_init_abi): Register linux_get_siginfo_type and
7599 linux_get_siginfo_mapper.
7600 * arm-linux-tdep.c: Include "linux-tdep.h".
7601 (i386_linux_init_abi): Register linux_get_siginfo_type and
7602 linux_get_siginfo_mapper.
7603
7604 * linux-nat.c (linux_xfer_siginfo): New.
7605 (linux_nat_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
7606 * remote.c (PACKET_qXfer_siginfo_read)
7607 (PACKET_qXfer_siginfo_write): New.
7608 (feature remote_protocol_features): Add "qXfer:siginfo:read" and
7609 "qXfer:siginfo:write" features.
7610 (remote_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
7611 (_initialize_remote): Add "set/show remote read-siginfo-object"
7612 and "set/show remote write-siginfo-object" commands.
7613
7614 * Makefile.in (ALL_TARGET_OBS): Add linux-tdep.o.
7615 (HFILES_NO_SRCDIR): Add linux-tdep.h.
7616 (ALLDEPFILES): Add linux-tdep.c.
7617
7618 * configure.tgt (arm*-*-linux* | arm*-*-uclinux*)
7619 (i[34567]86-*-linux*, x86_64-*-linux*): Add linux-tdep.o to
7620 gdb_target_obs.
7621
7622 2009-02-06 Jim Blandy <jimb@codesourcery.com>
7623 Daniel Jacobowitz <dan@codesourcery.com>
7624 Vladimir Prus <vladimir@codesourcery.com>
7625 Pedro Alves <pedro@codesourcery.com>
7626
7627 * defs.h (enum lval_type): New value: lval_computed.
7628 * value.h (struct lval_funcs): New type.
7629 (allocate_computed_value, value_computed_funcs)
7630 (value_computed_closure): New declarations.
7631 * value.c (struct value): Add a structure to the location union
7632 for computed lvalues, containing 'funcs' and 'closure' members.
7633 (allocate_computed_value, value_computed_funcs)
7634 (value_computed_closure): New functions.
7635 (value_free): For computed lvalues, call the closure's
7636 'free_closure' function before freeing the value itself.
7637 (value_copy): If we're copying an lval_computed value, call the
7638 closure's 'copy_closure' function.
7639 (set_value_component_location): If the original value is a
7640 computed lvalue, then call the closure's 'copy_closure' function.
7641 (value_of_internalvar): If an internal variable's value is a
7642 computed lvalue, make retrieving its value produce an equivalent
7643 computed lvalue.
7644 * valops.c (value_fetch_lazy): Unlazy computed lvalues by calling
7645 their read function.
7646 (value_assign): Assign to computed lvalues by calling their write
7647 function.
7648
7649 2009-02-06 Pedro Alves <pedro@codesourcery.com>
7650
7651 * linux-nat.c (linux_nat_wait): Adjust.
7652 (linux_nat_pid_to_str): Adjust. Remove call to thread_db_init.
7653 * linux-nat.h (thread_db_init): Delete declaration.
7654 * linux-thread-db.c (target_beneath): Delete.
7655 (thread_db_init): Delete.
7656 (thread_db_detach): Use find_target_beneath.
7657 (thread_db_wait): Adjust interface. Use find_target_beneath.
7658 (thread_db_mourn_inferior): Use find_target_beneath.
7659 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
7660 (thread_db_async_mask): Delete.
7661 (thread_db_pid_to_str): Adjust interface. Use
7662 find_target_beneath.
7663 (thread_db_get_thread_local_address): Adjust interface. Use
7664 find_target_beneath.
7665 (init_thread_db_ops): Delete references to delete functions.
7666 * target.c (update_current_target): Don't inherit or default
7667 to_wait. Don't inherit to_pid_to_str and
7668 to_get_thread_local_address.
7669 (target_translate_tls_address): Look for a pushed target that
7670 implements to_get_thread_local_address, and use it instead of
7671 checking for target_get_thread_local_address_p.
7672 (target_wait, target_pid_to_str): Reimplement as functions.
7673 (dummy_pid_to_str): New.
7674 (init_dummy_target): Register it.
7675 (debug_to_wait): Delete.
7676 * target.h (struct target_ops): Make to_wait, to_pid_to_str and
7677 to_get_thread_local_address accept a pointer to struct target_ops.
7678 (target_wait): Delete macro, and declare as function.
7679 (target_pid_to_str): Likewise.
7680 (target_get_thread_local_address)
7681 (target_get_thread_local_address_p): Delete.
7682 (noprocess): Add NORETURN and ATTR_NORETURN tags.
7683 * inf-ptrace.c (inf_ptrace_wait): Adjust.
7684 (inf_ptrace_pid_to_str): New.
7685 (inf_ptrace_target): Use inf_ptrace_pid_to_str.
7686 * aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust.
7687 * bsd-kvm.c (bsd_kvm_pid_to_str): Adjust.
7688 * bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str):
7689 Adjust.
7690 * corelow.c (core_pid_to_str): Adjust.
7691 * darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust.
7692 * dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust.
7693 * gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust.
7694 * go32-nat.c (go32_wait, go32_pid_to_str): Adjust.
7695 * hpux-thread.c (hpux_thread_wait): Adjust.
7696 * inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust.
7697 * monitor.c (monitor_wait, monitor_pid_to_str): Adjust.
7698 * nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust.
7699 * procfs.c (procfs_pid_to_str): Adjust.
7700 * remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust.
7701 * remote-mips.c (mips_wait): Adjust.
7702 * remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust.
7703 * remote.c (remote_wait, remote_pid_to_str)
7704 (remote_get_thread_local_address): Adjust.
7705 * rs6000-nat.c (rs6000_wait): Adjust.
7706 * sol-thread.c (procfs_pid_to_str): Adjust declaration.
7707 (sol_thread_wait, solaris_pid_to_str): Adjust.
7708 * spu-linux-nat.c (spu_child_wait): Adjust.
7709 * windows-nat.c (windows_wait, windows_pid_to_str): Adjust.
7710
7711 2009-02-06 Tom Tromey <tromey@redhat.com>
7712
7713 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o.
7714 (SUBDIR_PYTHON_SRCS): Add python-cmd.c.
7715 (python-cmd.o): New target.
7716 * cli/cli-decode.c (set_cmd_completer): Add self parameter to
7717 completer prototype.
7718 (add_cmd): Initialize destroyer member of cmd_list_element. Use
7719 make_symbol_completion_list_fn as completer.
7720 (delete_cmd): Call destroyer if one is set.
7721 * cli/cli-decode.h (cmd_list_element): Add cmd parameter to
7722 completer member. Add destroyer member.
7723 (set_cmd_completer): Add self parameter to
7724 completer prototype.
7725 * command.h (set_cmd_completer): Add cmd parameter to
7726 completer prototype.
7727 * completer.c (noop_completer, filename_completer,
7728 location_completer, expression_completer, command_completer): Adapt
7729 to new completer prototype.
7730 (complete_line_internal): Pass new parameter to completer function.
7731 * completer.h (noop_completer, filename_completer,
7732 location_completer, expression_completer, command_completer): Adapt
7733 prototypes to new completer prototype.
7734 * interps.c (interpreter_completer): Adapt to new completer
7735 prototype.
7736 * python/python-cmd.c: New file.
7737 * python/python-internal.h (gdbpy_initialize_commands): Add
7738 prototype.
7739 (gdbpy_doc_cst): Add forward declaration.
7740 * python/python.c (gdbpy_doc_cst): Declare.
7741 (_initialize_python): Call gdbpy_initialize_commands. Initialize
7742 gdbpy_doc_cst.
7743 * symtab.c (make_symbol_completion_list_fn): New function.
7744 * symtab.h (make_symbol_completion_list_fn): Add prototype.
7745
7746 2009-02-06 Pedro Alves <pedro@codesourcery.com>
7747
7748 * target.c (target_get_osdata): Check for equal or higher than
7749 process_stratum, not dummy_stratum.
7750
7751 2009-02-06 Pedro Alves <pedro@codesourcery.com>
7752
7753 * remote.c (extended_remote_can_run): Delete.
7754 (init_remote_ops): Don't register it.
7755 * target.c (target_get_osdata): Don't check for target_can_run.
7756 Instead any target that has already been pushed, otherwise
7757 fallback to the default run target.
7758
7759 2009-02-06 Pedro Alves <pedro@codesourcery.com>
7760
7761 * target.c (target_create_inferior, target_detach)
7762 (target_mourn_inferior, target_attach, target_close): Do target
7763 debug output.
7764 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
7765 (debug_to_mourn_inferior, debug_to_close): Delete.
7766 (setup_target_debug): Adjust.
7767
7768 2009-02-05 Pedro Alves <pedro@codesourcery.com>
7769
7770 * target.h (target_stopped_data_address_p): Delete declaration,
7771 and don't define as macro.
7772 * target.c (target_stopped_data_address_p): Delete.
7773
7774 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
7775 Tom Tromey <tromey@redhat.com>
7776
7777 * python/python-utils.c (target_string_to_unicode): New function.
7778 * python/python-internal.h (target_string_to_unicode): New prototype.
7779 * python/python-value.c (valpy_string): New function.
7780 (value_object_methods): Add `string' entry.
7781
7782 2009-02-05 Pedro Alves <pedro@codesourcery.com>
7783
7784 * target.h (target_tid_to_str): Delete.
7785 * thread.c (print_thread_info, thread_apply_all_command)
7786 (thread_apply_command, thread_command, do_captured_thread_select):
7787 Use target_pid_to_str instead of target_tid_to_str.
7788 * linux-fork.c (delete_fork_command): Likewise.
7789
7790 2009-02-05 Pedro Alves <pedro@codesourcery.com>
7791
7792 * frame.c (has_stack_frames): Make public.
7793 (get_prev_frame): Don't allow a NULL this_frame anymore.
7794 * frame.h (has_stack_frames): Declare.
7795 * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL
7796 to get_prev_frame, instead start at get_current_frame.
7797 (varobj_create): Check has_stack_frames before getting any frame;
7798 eliminate one usage of deprecated_safe_get_selected_frame.
7799
7800 2009-02-05 Tom Tromey <tromey@redhat.com>
7801 Thiago Jung Bauermann <bauerman@br.ibm.com>
7802
7803 * python/python.c (GdbMethods): Move to bottom of file.
7804 (get_parameter, execute_gdb_command, gdbpy_write,
7805 gdbpy_flush): Remove forward declarations.
7806 (eval_python_from_control_command): Fix error checking of function
7807 PyRun_SimpleString. Fix error string.
7808 (python_command): Likewise.
7809 (execute_gdb_command): Added from_tty argument.
7810
7811 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
7812
7813 * language.h (language_dfn): Add la_get_string member.
7814 (LA_GET_STRING): New macro.
7815 (default_get_string): New prototype.
7816 * language.c (default_get_string): New function.
7817 (unknown_language_defn, auto_language_defn, local_language_defn): Use
7818 default_get_string for la_get_string.
7819 * c-lang.c (c_get_string): New function.
7820 (c_language_defn, cplus_language_defn, asm_language_defn): Use
7821 c_get_string for la_get_string.
7822 (minimal_language_defn): Likewise
7823 * ada-lang.c (ada_language_defn): Likewise.
7824 * f-lang.c (f_language_defn): Use default_get_string for
7825 la_get_string.
7826 * jv-lang.c (java_language_defn): Likewise.
7827 * m2-lang.c (m2_language_defn): Likewise.
7828 * objc-lang.c (objc_language_defn): Likewise.
7829 * p-lang.c (p_language_defn): Likewise.
7830 * scm-lang.c (scm_language_defn): Likewise.
7831 * typeprint.c (type_to_string): New function.
7832 * value.h (type_to_string): New prototype.
7833 * valprint.c (val_print_string): Factor out code for reading string
7834 from the inferior into its own function. Put 2 spaces after period
7835 in comments.
7836 (read_string): New function.
7837 * valprint.h (read_string): New prototype.
7838
7839 2009-01-07 Pierre Muller <muller@ics.u-strasbg.fr>
7840 Tom Tromey <tromey@redhat.com>
7841
7842 PR breakpoints/8079:
7843 * breakpoint.c (print_one_breakpoint): Use exp_string field
7844 to display expression of watchpoints.
7845 (mention): Likewise.
7846 (watch_command_1): Remove trailing whitespace from expression.
7847 * printcmd.c (struct display) <exp_string>: New field.
7848 (display_command): Set exp_string.
7849 (free_display): Free exp_string.
7850 (clear_displays): Use free_display.
7851 (do_one_display): Print exp_string.
7852 (display_info): Likewise.
7853
7854 2009-02-04 Tom Tromey <tromey@redhat.com>
7855 Thiago Jung Bauermann <bauerman@br.ibm.com>
7856 Phil Muldoon <pmuldoon@redhat.com>
7857
7858 * python/python-internal.h (gdbpy_get_value_from_history): Rename
7859 prototype to gdbpy_history.
7860 (gdbpy_is_string): Declare.
7861 (python_string_to_host_string): Declare.
7862 * python/python-utils.c (gdbpy_is_string): New function.
7863 (unicode_to_encoded_string): New function.
7864 (unicode_to_target_string): Use it.
7865 (python_string_to_host_string): New function.
7866 * python/python-value.c (valpy_address): New function.
7867 (convert_value_from_python): Use gdbpy_is_string. Change to throw
7868 Python exception instead of a GDB exception on error. Properly check
7869 Python booleans.
7870 (valpy_getitem): Convert field name to host string. Handle array
7871 accesses. Adapt to new behaviour of convert_value_from_python.
7872 (valpy_new): Adapt to new behaviour of convert_value_from_python.
7873 (enum valpy_opcode) <VALPY_LSH, VALPY_RSH, VALPY_BITAND,
7874 VALPY_BITXOR, VALPY_BITOR>: New constants.
7875 (valpy_binop): Update. Adapt to new behaviour of
7876 convert_value_from_python.
7877 (valpy_invert): New function.
7878 (valpy_lsh): Likewise.
7879 (valpy_rsh): Likewise.
7880 (valpy_and): Likewise.
7881 (valpy_or): Likewise.
7882 (valpy_xor): Likewise.
7883 (valpy_richcompare): Call convert_value_from_python instead of doing
7884 conversions itself.
7885 (is_intlike, valpy_int, valpy_long, valpy_float): New functions.
7886 (gdbpy_get_value_from_history): Rename
7887 function to gdbpy_history.
7888 (gdbpy_initialize_values): Don't set tp_new.
7889 (value_object_type): Add valpy_new.
7890 (value_object_methods): Add `address' entry.
7891 (value_object_as_number): Update for new methods.
7892 * python/python.c (GdbMethods): Rename entry from
7893 `get_value_from_history' to `history'.
7894
7895 2009-02-04 Jerome Guitton <guitton@adacore.com>
7896
7897 * ada-lang.c (ada_template_to_fixed_record_type_1): Check size
7898 of type to guard against a crash.
7899
7900 2009-02-04 Jerome Guitton <guitton@adacore.com>
7901
7902 * value.c (value_from_contents_and_address): Always return
7903 a lval_memory value, even if address is null.
7904
7905 2009-02-04 Tristan Gingold <gingold@adacore.com>
7906
7907 * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function.
7908 (amd64_darwin_sigcontext_addr): Ditto.
7909 (darwin_dwarf_signal_frame_p): Ditto.
7910 (i386_darwin_init_abi): Handle signal frames, use the const for
7911 sc_num_regs.
7912 (x86_darwin_init_abi_64): Ditto.
7913
7914 2009-02-04 Tristan Gingold <gingold@adacore.com>
7915
7916 * i386-tdep.c (i386_sigtramp_p): Make it public.
7917 * i386-tdep.h (i386_sigtramp_p): Declare.
7918
7919 2009-02-04 Tristan Gingold <gingold@adacore.com>
7920
7921 * machoread.c (macho_symfile_read): Read minsymtab also from
7922 shared libraries.
7923 (macho_symfile_read): Try to read dwarf2 frame info from main
7924 object file, but not from OSO files.
7925 (macho_symfile_offsets): Update section names for latest BFD
7926 changes.
7927 * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops.
7928 (x86_darwin_init_abi_64): Ditto.
7929 * solib-darwin.c: New file.
7930 * solib-darwin.h: New file.
7931 * configure.tgt: Add solib.o solib-darwin.o for Darwin.
7932
7933 2009-02-04 Tristan Gingold <gingold@adacore.com>
7934
7935 * solist.h (struct target_so_ops): Comment fallback behavior for
7936 operation same.
7937
7938 2009-02-03 Tom Tromey <tromey@redhat.com>
7939
7940 * completer.c (add_struct_fields): Check type_name against NULL
7941 before use.
7942
7943 2009-02-03 Joel Brobecker <brobecker@adacore.com>
7944
7945 * MAINTAINERS: Update Elena's email address.
7946
7947 2009-02-02 Joel Brobecker <brobecker@adacore.com>
7948
7949 * breakpoint (update_watchpoint): Minor comment adjustment.
7950
7951 2009-02-02 Tom Tromey <tromey@redhat.com>
7952
7953 PR gdb/9594:
7954 * completer.c (count_struct_fields): Count method names.
7955 (add_struct_fields): Add matching method names.
7956
7957 2009-02-02 Doug Evans <dje@google.com>
7958
7959 * configure.ac (gdbkt): Check both no_tcl/no_tk first, before
7960 doing any further tcl/tk configury. Don't configure gdbtk if
7961 tcl or tk check fails.
7962 * aclocal.m4: Regenerate.
7963 * configure: Regenerate.
7964
7965 2009-02-02 Tom Tromey <tromey@redhat.com>
7966
7967 PR exp/9059:
7968 * valops.c (find_overload_match): Follow typedefs before taking
7969 address of object argument.
7970
7971 2009-02-01 Doug Evans <dje@google.com>
7972
7973 * target.h (target_waitstatus_to_string): Declare.
7974 * target.c (target_waitstatus_to_string): New function. Copied from
7975 debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY,
7976 TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE,
7977 TARGET_WAITKIND_NO_HISTORY.
7978 (debug_to_wait): Call it.
7979 * infrun.c (wait_for_inferior): If debug_infrun, print result of
7980 target_wait.
7981 (fetch_inferior_event): Ditto.
7982
7983 2009-01-30 Tom Tromey <tromey@redhat.com>
7984
7985 * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h.
7986
7987 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
7988
7989 PR 8145.
7990 * thread.c (do_captured_list_thread_ids): Report the current
7991 thread id.
7992
7993 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
7994
7995 * breakpoint.c (create_breakpoint, create_breakpoints)
7996 (break_command_really, set_breakpoint): New parameter enabled.
7997 (create_breakpoint, break_command_really): Make breakpoint
7998 disabled if so requested.
7999 * breakpoint.h (set_breakpoint): New parameter enabled.
8000 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
8001
8002 2009-01-28 Doug Evans <dje@google.com>
8003
8004 * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare.
8005 (amd64_displaced_step_fixup): Declare.
8006 * amd64-tdep.c: #include opcode/i386.h, dis-asm.h.
8007 (amd64_arch_regmap): Move out of amd64_analyze_stack_align
8008 and make static global.
8009 (amd64_arch_regmap_len): New static global.
8010 (amd64_arch_reg_to_regnum): New function.
8011 (struct amd64_insn): New struct.
8012 (struct displaced_step_closure): New struct.
8013 (onebyte_has_modrm,twobyte_has_modrm): New static globals.
8014 (rex_prefix_p,skip_prefixes)
8015 (amd64_insn_length_fprintf,amd64_insn_length_init_dis)
8016 (amd64_insn_length,amd64_get_unused_input_int_reg)
8017 (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy)
8018 (amd64_displaced_step_copy_insn)
8019 (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p)
8020 (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p)
8021 (amd64_displaced_step_fixup): New functions.
8022 * amd64-linux-tdep.c: #include arch-utils.h.
8023 (amd64_linux_init_abi): Install displaced stepping support.
8024
8025 2009-01-28 Daniel Jacobowitz <dan@codesourcery.com>
8026 Jerome Guitton <guitton@adacore.com>
8027
8028 * configure, config.in: Regenerated.
8029 * configure.ac: Add --with-system-gdbinit.
8030 * main.c (get_init_files): New.
8031 (captured_main): Use get_init_files. Load system gdbinit before
8032 $HOME/.gdbinit.
8033 (print_gdb_help): Print location of init files.
8034
8035 2009-01-28 Pedro Alves <pedro@codesourcery.com>
8036
8037 * corefile.c (generic_search): Delete disabled code.
8038 * gdbcore.h (generic_search): Delete declaration.
8039
8040 2009-01-26 Pedro Alves <pedro@codesourcery.com>
8041
8042 * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
8043 parent to the child.
8044 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
8045 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use
8046 remove_breakpoints to remove breakpoints from the parent.
8047
8048 2009-01-26 Pedro Alves <pedro@codesourcery.com>
8049
8050 PR backtrace/9458, PR backtrace/8864:
8051 * frame.c (create_new_frame): Update the frame's cached PC before
8052 finding its unwinder. Use frame_id_build to build the new frame's
8053 id.
8054 * stack.c (parse_frame_specification_1): Correct setting ``addrs''
8055 array values from the ``args'' array values.
8056
8057 2009-01-26 Pedro Alves <pedro@codesourcery.com>
8058
8059 * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
8060 (create_array_type, create_set_type, init_flags_type)
8061 (copy_type_recursive): Replace pairs of calls to XALLOC and memset
8062 with a call to XZALLOC or XCALLOC, and pairs of calls to
8063 obstack_alloc and memset with a call to OBSTACK_ZALLOC.
8064
8065 2009-01-26 Pedro Alves <pedro@codesourcery.com>
8066
8067 Add "maint set|show internal-error|internal-warning quit|corefile
8068 ask|yes|no" commands.
8069
8070 PR gdb/7580:
8071 * utils.c (internal_problem_ask, internal_problem_yes)
8072 (internal_problem_no, internal_problem_modes): New.
8073 (struct internal_problem): Remove FIXME. Make should_quit and
8074 should_dump_core types to char *.
8075 (internal_vproblem, internal_error_problem)
8076 (internal_warning_problem): Adjust.
8077 (set_internal_problem_cmd, show_internal_problem_cmd): New dummy
8078 functions.
8079 (add_internal_problem_command): New.
8080 (_initialize_utils): New.
8081
8082 2009-01-25 Pedro Alves <pedro@codesourcery.com>
8083
8084 * infcmd.c (program_info): Use paddress instead of casting stop_pc
8085 to unsigned long.
8086
8087 2009-01-24 Pedro Alves <pedro@codesourcery.com>
8088
8089 * infrun.c (normal_stop): Don't call
8090 deprecated_update_frame_pc_hack.
8091 * frame.c (deprecated_update_frame_pc_hack)
8092 (deprecated_update_frame_base_hack): Delete, and ...
8093 (create_new_frame): ... inline here.
8094 * frame.h (deprecated_update_frame_pc_hack)
8095 (deprecated_update_frame_base_hack): Delete declarations.
8096
8097 2009-01-23 Pedro Alves <pedro@codesourcery.com>
8098
8099 * cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
8100 * cli/cli-setshow.c (do_setshow_command): Handle it.
8101 * command.h (enum var_types): Add var_zuinteger.
8102 (add_setshow_zuinteger_cmd): Declare.
8103
8104 * valprint.c (_initialize_valprint): Change the set input-radix
8105 and set output-radix commands to zuinteger type.
8106
8107 2009-01-23 Pedro Alves <pedro@codesourcery.com>
8108
8109 PR gdb/9664:
8110 * infrun.c (normal_stop): Tag threads as stopped, and run the
8111 hook-stop before printing the stack frame.
8112
8113 2009-01-22 Pedro Alves <pedro@codesourcery.com>
8114
8115 PR c++/9631:
8116 * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
8117 vbasetype.
8118
8119 2009-01-20 Kazu Hirata <kazu@codesourcery.com>
8120
8121 * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
8122 unsigned long.
8123
8124 2009-01-20 Daniel Jacobowitz <dan@codesourcery.com>
8125
8126 PR gdb/9346
8127 * infcmd.c (signal_command): Do not specify a resume PC.
8128
8129 2009-01-19 Doug Evans <dje@google.com>
8130
8131 * dummy-frame.c (dummy_frame): Replace regcache member with
8132 caller_state.
8133 (dummy_frame_push): Replace caller_regcache arg with caller_state.
8134 All callers updated.
8135 (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns.
8136 (dummy_frame_pop): Rewrite. Verify requested frame is in the
8137 dummy frame stack. Restore program state.
8138 (cleanup_dummy_frames): Rewrite.
8139 (dummy_frame_sniffer): Update. Make static.
8140 * dummy-frame.h (regcache,frame_info): Delete forward decls.
8141 (inferior_thread_state): New forward decl.
8142 (dummy_frame_push): Update prototype.
8143 * frame.c (frame_pop): dummy_frame_pop now does all the work for
8144 DUMMY_FRAMEs.
8145 * infcall.c (breakpoint_auto_delete_contents): Delete.
8146 (get_function_name,run_inferior_call): New fns.
8147 (call_function_by_hand): Simplify by moving some code to
8148 get_function_name, run_inferior_call. Inferior function call wrapped
8149 in TRY_CATCH so there's less need for cleanups and all exits from
8150 proceed are handled similarily. Detect program exit.
8151 Detect program stopping in a different thread.
8152 Make error messages more consistent.
8153 * inferior.h (inferior_thread_state): Declare (opaque type).
8154 (save_inferior_thread_state,restore_inferior_thread_state,
8155 make_cleanup_restore_inferior_thread_state,
8156 discard_inferior_thread_state, get_inferior_thread_state_regcache):
8157 Declare.
8158 (save_inferior_status): Update prototype.
8159 * infrun.c: (normal_stop): When stopped for the completion of an
8160 inferior function call, verify the expected stack frame kind.
8161 (inferior_thread_state): New struct.
8162 (save_inferior_thread_state,restore_inferior_thread_state,
8163 do_restore_inferior_thread_state_cleanup,
8164 make_cleanup_restore_inferior_thread_state,
8165 discard_inferior_thread_state,
8166 get_inferior_thread_state_regcache): New functions.
8167 (inferior_status): Move stop_signal, stop_pc, registers to
8168 inferior_thread_state. Remove restore_stack_info.
8169 (save_inferior_status): Remove arg restore_stack_info.
8170 All callers updated. Remove saving of state now saved by
8171 save_inferior_thread_state.
8172 (restore_inferior_status): Remove restoration of state now done by
8173 restore_inferior_thread_state.
8174 (discard_inferior_status): Remove freeing of registers, now done by
8175 discard_inferior_thread_state.
8176
8177 2009-01-18 Pedro Alves <pedro@codesourcery.com>
8178
8179 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
8180 at a time, times NUM_TO_SCROLL.
8181 * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
8182 fetch the selected frame if there is no stack.
8183
8184 2009-01-18 Pedro Alves <pedro@codesourcery.com>
8185
8186 PR gdb/9747:
8187 * gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
8188 Declare.
8189 * thread.c (finish_thread_state, finish_thread_state_cleanup): New.
8190 * infrun.c (wait_for_inferior, fetch_inferior_event): If an error
8191 is thrown while handling an event, finish the thread state.
8192 (normal_stop): Use finish_thread_state cleanup.
8193 * infcmd.c (run_command_1): If an error is thrown while starting
8194 the inferior, finish the thread state.
8195
8196 2009-01-18 Pedro Alves <pedro@codesourcery.com>
8197
8198 * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
8199 skip breakpoints without a location (pending breakpoints).
8200
8201 2009-01-18 Pedro Alves <pedro@codesourcery.com>
8202
8203 PR build/9186:
8204 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
8205
8206 2009-01-18 Nick Roberts <nickrob@snap.net.nz>
8207
8208 * thread.c (thread_command): Move call to annotate_thread_changed
8209 to...
8210 (do_captured_thread_select): ... here, to avoid printing an
8211 annotation if the thread change generates an exception.
8212
8213 2009-01-16 Joel Brobecker <brobecker@adacore.com>
8214
8215 * NEWS: Document x86_64/MinGW as a new native configuration.
8216
8217 2009-01-16 Joel Brobecker <brobecker@adacore.com>
8218
8219 * NEWS: Move the documentation of "info os processes" to
8220 the appropriate section (documenting the new commands).
8221
8222 2009-01-15 Doug Evans <dje@google.com>
8223
8224 * target.h (target_signal_to_string): Make return type const char *.
8225 (target_signal_to_name): Ditto.
8226 (target_signal_from_name): Make arg const char *.
8227 * infrun.c (sig_print_info): Update.
8228 * signals/signals.c (signals): Make array and struct members const.
8229 (target_signal_to_string): Make return type const char *.
8230 (target_signal_to_name): Ditto.
8231 (target_signal_from_name): Make arg const char *.
8232
8233 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
8234 Tristan Gingold <gingold@adacore.com>
8235
8236 * solist.h (struct target_so_ops): New member bfd_open.
8237 (solib_find): Add prototype.
8238 (solib_bfd_fopen): Add prototype.
8239 * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
8240 from solib_bfd_open.
8241 (solib_bfd_open): Use ops->bfd_open override if present. Call
8242 solib_find and solib_bfd_open otherwise.
8243
8244 * objfiles.h (OBJF_KEEPBFD): New define.
8245 * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
8246 objfile flag is set.
8247 * solib.c (symbol_add_stub): Do not allocate second BFD for
8248 shared library; use OBJF_KEEPBFD flag on solib objfile.
8249
8250 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
8251
8252 * frame.c (get_frame_arch): Abort if called with NULL this_frame.
8253
8254 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
8255
8256 * value.h (address_of_variable): Add prototype.
8257 (locate_var_value): Remove prototype.
8258
8259 * findvar.c (read_var_value): Do not attempt to default frame
8260 to selected frame.
8261 (locate_var_value): Remove function.
8262 * valops.c (value_of_variable): Retrieve selected frame for
8263 symbols that require a frame when called with NULL block.
8264 * valops.c (address_of_variable): New function.
8265
8266 * eval.c (evaluate_subexp_for_address): Call address_of_variable
8267 instead of calling locate_var_value.
8268 (evaluate_subexp_with_coercion): Likewise.
8269
8270 2009-01-14 Daniel Jacobowitz <dan@codesourcery.com>
8271
8272 * NEWS: Document "define" for prefixed commands.
8273 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
8274 show_user_1 for prefix commands.
8275 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
8276 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
8277 commands. Return the containing command list.
8278 (define_command, document_command): Update to handle prefix commands.
8279 (show_user_1): Add prefix and name arguments. Handle prefix
8280 commands.
8281 * cli/cli-script.h (show_user_1): Update prototype.
8282
8283 2009-01-14 Kai Tietz <kai.tietz@onevision.com>
8284
8285 * ser-mingw.c (console_select_thread): Add return to make
8286 compiler happy.
8287 (pipe_select_thread): Likewise.
8288 (file_select_thread): Likewise.
8289
8290 2009-01-14 Pedro Alves <pedro@codesourcery.com>
8291
8292 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
8293 previous change.
8294
8295 2009-01-14 Pedro Alves <pedro@codesourcery.com>
8296
8297 * remote.c (extended_remote_mourn_1): Invalidate our notion of
8298 current general thread.
8299
8300 2009-01-14 Pedro Alves <pedro@codesourcery.com>
8301
8302 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
8303 without a live selected thread.
8304
8305 2009-01-14 Joel Brobecker <brobecker@adacore.com>
8306
8307 Update the copyright notice of some of the files I missed
8308 in the previous copyright update.
8309
8310 2009-01-14 Joel Brobecker <brobecker@adacore.com>
8311
8312 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
8313 base address instead of casting it to DWORD.
8314
8315 2009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
8316
8317 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
8318 for NULL frame pointers.
8319
8320 2009-01-13 Mark Kettenis <kettenis@gnu.org>
8321
8322 * utils.c (host_address_to_string): Reimplement in a way that
8323 avoids the cast of the address to long.
8324
8325 2009-01-13 Joel Brobecker <brobecker@adacore.com>
8326
8327 * mdebugread.c (parse_symbol): Save the symbol private data
8328 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
8329 (psymtab_to_symtab_1): Likewise.
8330 (parse_procedure): Declare variable "e" only in the scope
8331 where it is used. Extract the symbol private data using
8332 SYMBOL_VALUE_BYTES.
8333
8334 2009-01-13 Jim Blandy <jimb@codesourcery.com>
8335
8336 Abstract out common code for copying value locations.
8337
8338 * value.h (set_value_component_location): New declaration.
8339 * value.c (set_value_component_location): New function.
8340 (value_primitive_field): Use it.
8341 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
8342 * valops.c (search_struct_field, value_slice): Same.
8343 * ada-lang.c (coerce_unspec_val_to_type)
8344 (ada_value_primitive_packed_val): Same.
8345
8346 2009-01-13 Joel Brobecker <brobecker@adacore.com>
8347
8348 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
8349
8350 2009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
8351
8352 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
8353 throughout.
8354 * i386-cygwin-tdep.c: Ditto.
8355 * i386-windows-nat.c: Ditto.
8356 * windows-nat.h: Ditto.
8357 * windows-tdep.c: Ditto.
8358 * windows-tdep.h: Ditto.
8359 * windows-nat.c: Ditto.
8360 (cygwin_load_start): Redefine as CORE_ADDR.
8361 (cygwin_load_end): Ditto.
8362 (windows_make_so): Coerce result of address arithmetic to uintptr_t
8363 before coercing to CORE_ADDR to avoid a compiler warning.
8364 (handle_exception): Define addr as CORE_ADDR and coerce
8365 ExceptionAddress to uintptr_t before assigining to avoid a compiler
8366 warning.
8367 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
8368 files.
8369
8370 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8371
8372 Fix linking with --enable-targets=all:
8373 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
8374 (HFILES_NO_SRCDIR): Add windows-tdep.h.
8375 (ALLDEPFILES): Add windows-tdep.c.
8376
8377 2009-01-11 Chris Faylor <me.gdb@cgf.cx>
8378
8379 * win32-nat.h: Delete.
8380 * windows-nat.h: Rename from win32-nat.h.
8381 * win32-nat.c: Delete.
8382 * windows-nat.c: Rename from win32-nat.c.
8383 * win32-termcap.c: Delete.
8384 * windows-termcap.c: Rename from win32-termcap.c.
8385 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
8386 * configure.ac: Handle rename from win32-termcap.c ->
8387 windows-termcap.c.
8388 * configure: Regenerate.
8389 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
8390 -> windows-termcap.c.
8391 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
8392 windows-tdep.h.
8393 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
8394 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
8395 windows-tdep.h.
8396 (win32_make_so): Handle cygwin compiler warning due to change of
8397 load_addr from DWORD to LPVOID.
8398 (handle_load_dll): Use %p in format string to properly print address
8399 and avoid a compiler warning.
8400 (DEBUG_EXCEPTION_SIMPLE): Ditto.
8401 (handle_exception): Ditto.
8402 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
8403 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
8404 windows-nat.o.
8405 * config/i386/mingw.mh: Ditto.
8406 * config/i386/mingw64.mh: Ditto.
8407
8408 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8409
8410 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
8411 arrayprint_recurse_level to a parameter. Update all the callers. New
8412 comment at autovariables.
8413
8414 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8415
8416 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
8417 coding style.
8418
8419 2009-01-11 Joel Brobecker <brobecker@adacore.com>
8420
8421 * target.c (target_xfer_partial): Use host_address_to_string to
8422 print the address of readbuf and writebuf. Cast the address of
8423 elements inside the myaddr buffer into intptr_t.
8424 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
8425 Cast the address of elements inside the myaddr buffer into
8426 intptr_t.
8427
8428 2009-01-11 Joel Brobecker <brobecker@adacore.com>
8429
8430 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
8431 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
8432 * configure.host, configure.tgt: Add handling for x86_64/windows.
8433 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
8434 and amd64-windows-tdep.c.
8435
8436 2009-01-11 Joel Brobecker <brobecker@adacore.com>
8437
8438 * win32-tdep.h, win32-tdep.c: New files.
8439 * i386-cygwin-tdep.h: Delete.
8440 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
8441 i386-cygwin-tdep.h.
8442 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
8443 * win32-nat.c: Likewise.
8444 * configure.tgt: Add win32-tdep.o to the list of target object
8445 files for i386-cygwin and i386-mingw targets.
8446
8447 2009-01-11 Joel Brobecker <brobecker@adacore.com>
8448
8449 * win32-nat.h: New file.
8450 * win32-nat.c (mappings): Initialize to NULL.
8451 (win32_set_context_register_offsets): New function.
8452 * i386-windows-nat.c: New file.
8453 (mappings): Moved here from win32-nat.c.
8454 (_initialize_i386_windows_nat): New function.
8455 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
8456 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
8457
8458 2009-01-09 Andreas Schwab <schwab@suse.de>
8459
8460 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
8461
8462 2009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8463
8464 * gdbtypes.c (append_composite_type_field): Correct the location of
8465 appended fields.
8466
8467 2009-01-09 Pedro Alves <pedro@codesourcery.com>
8468
8469 * defs.h (deprecated_error_hook): Delete declaration.
8470 * interps.c (clear_interpreter_hooks): Adjust.
8471 * remote-sim.c (gdb_os_error): Don't try to call
8472 deprecated_error_hook. No need to call exit anymore.
8473 * top.c (deprecated_error_hook): Delete.
8474
8475 2009-01-09 Joel Brobecker <brobecker@adacore.com>
8476
8477 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
8478 to print the address of the gdbarch pointer.
8479
8480 2009-01-09 Joel Brobecker <brobecker@adacore.com>
8481
8482 * gdbarch.sh: Fix all the compilation errors on amd64-windows
8483 due to casting a pointer to a long when printing a function
8484 address. Instead, use host_address_to_string to convert our
8485 address to a string.
8486 * gdbarch.c: Regenerate.
8487
8488 2009-01-09 Joel Brobecker <brobecker@adacore.com>
8489
8490 * event-top.c (async_disconnect, async_stop_sig): use "raise"
8491 instead of "kill" to raise a signal.
8492
8493 2009-01-09 Joel Brobecker <brobecker@adacore.com>
8494
8495 * win32-nat.c (get_module_name): Change the type of parameter
8496 "base_address" to LPVOID. Remove unnecessary cast.
8497 (struct lm_info): Change type of load_addr to LPVOID.
8498 (win32_make_so): Change the type of parameter "load_addr"
8499 to LPVOID. Remove some unnecessary casts.
8500 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
8501 (win32_xfer_shared_libraries): Add missing cast.
8502
8503 2009-01-09 Joel Brobecker <brobecker@adacore.com>
8504
8505 * win32-nat.c (has_detach_ability, set_process_privilege):
8506 Cast the result of GetProcAddress to (void *) to avoid
8507 a compilation warning.
8508
8509 2009-01-09 Joel Brobecker <brobecker@adacore.com>
8510
8511 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
8512 already defined.
8513
8514 2009-01-09 Joel Brobecker <brobecker@adacore.com>
8515
8516 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
8517 definition of local variable "done".
8518 (info_w32_command, handle_exception): Remove unnecessary cast.
8519
8520 2009-01-09 Joel Brobecker <brobecker@adacore.com>
8521
8522 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
8523 DebugSetProcessKillOnExit. Update all uses in this file.
8524 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
8525 Update all uses in this file.
8526
8527 2009-01-09 Joel Brobecker <brobecker@adacore.com>
8528
8529 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
8530 and use it when pushing the target.
8531 (win32_attach, win32_create_inferior): Update call to
8532 do_initial_win32_stuff.
8533 (win32_detach, win32_mourn_inferior): Use our ops parameter
8534 instead of the global win32_ops to unpush the target.
8535
8536 2009-01-09 Joel Brobecker <brobecker@adacore.com>
8537
8538 * ser-mingw.c (ser_windows_open): Use proper type when casting
8539 in call to _open_osfhandle.
8540
8541 2009-01-09 Kai Tietz <kai.tietz@onevision.com>
8542
8543 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
8544
8545 2009-01-09 Joel Brobecker <brobecker@adacore.com>
8546
8547 * CONTRIBUTE: Minor reformatting.
8548
8549 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
8550
8551 * MAINTAINERS: Add myself to Write After Approval.
8552 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
8553 export directory.
8554
8555 2009-01-08 Nathan Froyd <froydnj@codesourcery.com>
8556
8557 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
8558 Call exit to make it obvious to GCC.
8559
8560 2009-01-08 Tom Tromey <tromey@redhat.com>
8561
8562 PR breakpoints/9350:
8563 * varobj.c (varobj_invalidate): Unconditionally free
8564 all_rootvarobj.
8565 * symfile.c (syms_from_objfile): Free local_addr when returning
8566 normally.
8567 * exec.c (exec_file_attach): Do cleanups before returning.
8568 (exec_file_command): Likewise.
8569 * corefile.c (reopen_exec_file): Do cleanups before returning.
8570 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
8571 returning.
8572 (do_vec_free): New function.
8573 (update_global_location_list): Make a cleanup for old_locations.
8574 Do cleanups before returning. Remove unused variable 'e'.
8575 (find_condition_and_thread): Free result of parsing the
8576 expression.
8577 (print_it_typical): Do cleanups before returning.
8578 (breakpoint_re_set_one): Always free sals.sals.
8579
8580 2009-01-08 Joel Brobecker <brobecker@adacore.com>
8581 Emi Suzuki <emi-suzuki@tjsys.co.jp>
8582
8583 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
8584 watchpoints.
8585
8586 2009-01-07 Doug Evans <dje@google.com>
8587
8588 * top.c (gdb_prompt_string): Delete, unused.
8589
8590 2009-01-07 Pedro Alves <pedro@codesourcery.com>
8591
8592 Delete ONE_PROCESS_WRITETEXT leftovers.
8593
8594 * breakpoint.c (insert_bp_location): Delete process_warning
8595 argument. Adjust.
8596 (insert_breakpoint_locations): Adjust.
8597 (reattach_breakpoints): Adjust.
8598 * infrun.c (normal_stop): Drop "It might be running in another
8599 process" notice.
8600
8601 2009-01-07 Stan Shebs <stan@codesourcery.com>
8602
8603 * config/pa/linux.mh (XDEPFILES): Remove.
8604
8605 2009-01-07 Doug Evans <dje@google.com>
8606
8607 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
8608
8609 2009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
8610
8611 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
8612 spacing, a regression from 2008-04-22.
8613
8614 2009-01-07 Joel Brobecker <brobecker@adacore.com>
8615
8616 * utils.c (gdb_print_host_address): Adjust implementation to
8617 reuse host_address_to_string. Move comment explaining the conversion
8618 from host address to string from here...
8619 (host_address_to_string): ... to there.
8620
8621 2009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
8622
8623 * MAINTAINERS: Add myself for write after approval privileges.
8624
8625 2009-01-06 Tom Tromey <tromey@redhat.com>
8626
8627 * value.c (set_internalvar): Use value_free, not xfree.
8628
8629 2009-01-06 Jim Blandy <jimb@red-bean.com>
8630
8631 Check return values of functions declared with warn_unused_result
8632 attribute in GLIBC 2.8.
8633 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
8634 * inflow.c (check_syscall): New function.
8635 (new_tty): Use check_syscall to check return values from open and dup.
8636 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
8637 * main.c (captured_main): Call cwd after setting up gdb_stderr;
8638 check for errors from getcwd.
8639 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
8640 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
8641 (stdio_file_fputs): Same.
8642 * utils.c (internal_vproblem): abort if last-ditch error message
8643 write fails.
8644
8645 * top.c (gdb_init): Don't set the current directory here; that's
8646 already been done in captured_main.
8647
8648 2009-01-06 Sandra Loosemore <sandra@codesourcery.com>
8649
8650 * ser-tcp.c: Adjust includes.
8651 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
8652 (tcp_auto_retry, tcp_retry_limit): Declare.
8653 (TIMEOUT): Remove, in favor of tcp_retry_limit.
8654 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
8655 (wait_for_connect): New function.
8656 (net_open): Use it. Add auto-retry logic.
8657 (set_tcp_cmd, show_tcp_cmd): New functions.
8658 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
8659 and "set/show tcp connect-timeout" commands.
8660 * NEWS: Document new commands.
8661
8662 2009-01-05 Tom Tromey <tromey@redhat.com>
8663
8664 * python/python-internal.h (Py_ssize_t): Define as int.
8665
8666 2009-01-05 Jim Blandy <jimb@red-bean.com>
8667
8668 * MAINTAINERS: Fix my e-mail address as steering committee member.
8669
8670 2009-01-03 Joel Brobecker <brobecker@adacore.com>
8671
8672 Updated copyright notices for most files.
8673
8674 2009-01-03 Joel Brobecker <brobecker@adacore.com>
8675
8676 * top.c (print_gdb_version): Update copyright year.
8677
8678 2009-01-03 Joel Brobecker <brobecker@adacore.com>
8679
8680 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
8681
8682 2009-01-01 Pedro Alves <pedro@codesourcery.com>
8683
8684 PR breakpoints/9681:
8685 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
8686 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
8687 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
8688 retrow all other exceptions.
8689
8690 For older changes see ChangeLog-2008.
8691 \f
8692 Local Variables:
8693 mode: change-log
8694 left-margin: 8
8695 fill-column: 74
8696 version-control: never
8697 coding: utf-8
8698 End:
This page took 0.21413 seconds and 4 git commands to generate.