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