gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2 Tom Tromey <tromey@redhat.com>
3
4 Fix GDB startup on readonly filesystem.
5 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
6
7 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8 Pedro Alves <pedro@codesourcery.com>
9
10 Fix PR 9436.
11 * breakpoint.c (handle_jit_event): New function.
12 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
13 jit, err, table and bs_class. New variables shlib_event, jit_event,
14 this_action and bptype. Change bs_class assignments to this_action
15 assignments. new unhandled bptype internal error. Move here
16 shlib_event and jit_event handling from handle_inferior_event.
17 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
18 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
19 BPSTAT_WHAT_CHECK_JIT.
20 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
21 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
22 (handle_inferior_event): Reinitialize frame and gdbarch after
23 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
24 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
25 gdbarch when frame gets reinitialized.
26
27 2010-06-24 Hui Zhu <teawater@gmail.com>
28
29 * printcmd.c (ui_printf): New function.
30 (printf_command): Call ui_printf.
31 (_initialize_printcmd): New command "eval".
32
33 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
34
35 * infrun.c (handle_inferior_event): Handle presence of single-step
36 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
37 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
38 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
39 * breakpoint.c (detach_single_step_breakpoints): New function.
40 (detach_breakpoints): Call it.
41 (cancel_single_step_breakpoints): New function.
42 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
43
44 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
45 (spu_gdbarch_init): Install it.
46
47 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
48
49 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
50 * configure: Regenerate.
51
52 2010-06-22 Hui Zhu <teawater@gmail.com>
53
54 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
55 (i386_process_record): Ditto.
56 * record.c (record_memory_query): New variable.
57 (_initialize_record): New command "set record memory-query".
58 * record.h (record_memory_query): New extern.
59
60 2010-06-21 Doug Evans <dje@google.com>
61
62 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
63 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
64 (i386_syscall_p): Change type of lengthp to int.
65 (i386_displaced_step_fixup): Handle kernels that run one past a
66 syscall insn.
67 * i386-linux-tdep.c (i386_linux_init_abi): Use
68 i386_displaced_step_copy_insn instead of
69 simple_displaced_step_copy_insn.
70
71 2010-06-21 Tom Tromey <tromey@redhat.com>
72
73 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
74 (dwarf_type_encoding_name): Likewise.
75
76 2010-06-21 Tom Tromey <tromey@redhat.com>
77
78 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
79 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
80 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
81 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
82 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
83 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
84 * dwarf2read.c (tag_type_to_type): Create a new error type on
85 failure.
86 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
87 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
88
89 2010-06-21 Michael Snyder <msnyder@vmware.com>
90
91 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
92 not add_abbrev_prefix_cmd, for "enable breakpoints".
93
94 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
95
96 * dwarf2loc.c (find_location_expression): Add relocation offset
97 to base-address-selection entry base addresses. Read addresses
98 (and offsets) as signed/unsigned integers, depending on the
99 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
100 (loclist_describe_location): Likewise.
101 (disassemble_dwarf_expression): Read DW_OP_addr operand as
102 unsigned integer. Do not call dwarf2_read_address.
103 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
104
105 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
106
107 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
108 value instead of hard-coded SPU_LS_SIZE.
109 (spu_software_single_step): Likewise.
110 * spu-tdep.h (SPU_LS_SIZE): Remove.
111
112 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
113
114 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
115 limit on local store memory accesses.
116 * spu-linux-nat.c (spu_xfer_partial): Likewise.
117 * spu-tdep.c (spu_lslr): Remove.
118 (spu_pointer_to_address): Do not truncate addresses.
119 (spu_integer_to_address): Likewise.
120 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
121 * spu-tdep.h: Add comments.
122 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
123 (SPU_OVERLAY_LMA): Define.
124
125 2010-06-18 Stan Shebs <stan@codesourcery.com>
126
127 * osdata.c (get_osdata): Warn separately if target does not report
128 type list.
129 (info_osdata_command): Allow empty type, report error if target
130 does not return available types of OS data.
131 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
132 types if no annex supplied.
133
134 * thread.c (thread_id_make_value): Make a value representing the
135 current thread.
136 (_initialize_thread): Create $_thread.
137
138 2010-06-17 Joel Brobecker <brobecker@adacore.com>
139
140 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
141 last local variable declaration. No real code change.
142
143 2010-06-17 Tom Tromey <tromey@redhat.com>
144
145 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
146 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
147 temporary obstack.
148
149 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
150 Jan Kratochvil <jan.kratochvil@redhat.com>
151
152 * breakpoint.c: Include parser-defs.h.
153 (watchpoint_exp_is_const): New function.
154 (watch_command_1): Call watchpoint_exp_is_const to check
155 if the expression is constant.
156
157 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
158
159 * configure.ac: Check for RDYNAMIC also for cross builds.
160 * configure: Regenerate.
161
162 2010-06-15 Pedro Alves <pedro@codesourcery.com>
163
164 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
165 (SFILES): Remove solib-null.c, add solib-target.c.
166 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
167 (ALLDEPFILES): Remove solib-target.c.
168 * solib-target.c (_initialize_solib_target): Set
169 current_target_so_ops to solib_target_so_ops if not already set.
170 * solib-null.c: Delete.
171
172 2010-06-14 Pedro Alves <pedro@codesourcery.com>
173
174 * NEWS: Mention GDBserver's JIT compilation of tracepoint
175 bytecode.
176
177 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
178
179 * cp-valprint.c (cp_print_static_field): Members of
180 dont_print_stat_array_obstack are of type "struct type *".
181 (_initialize_cp_valprint): Likewise.
182
183 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
184
185 * frame.c (frame_register_unwind): Do not access contents
186 of "optimized out" unwound register value.
187
188 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
189
190 * ada-lang.h (ada_print_type): Make varstring const.
191 * ada-typeprint.c (print_func_type): Make name const.
192 (ada_print_type): Make varstring const.
193 * c-lang.h (c_print_type): Make varstring const.
194 * c-typeprint.c (c_print_type): Likewise.
195 * f-lang.h (f_print_type): Likewise.
196 * f-typeprint.c (f_print_type): Likewise.
197 * jv-lang.h (java_print_type): Likewise.
198 * jv-typeprint.c (java_print_type): Likewise.
199 * language.c (unk_lang_print_type): Likewise.
200 * language.h (struct language_defn) <la_print_type>: Likewise.
201 * m2-lang.h (m2_print_type): Likewise.
202 * m2-typeprint.c (m2_print_type): Likewise.
203 * p-lang.h (pascal_print_type): Likewise.
204 * p-typeprint.c (pascal_print_type): Likewise.
205
206 2010-06-11 Stan Shebs <stan@codesourcery.com>
207
208 Add per-operation permission flags.
209
210 * target.h (struct target_ops): New method to_set_permissions.
211 (target_set_permissions): New macro.
212 (target_insert_breakpoint): Change macro to function.
213 (target_remove_breakpoint): Ditto.
214 (target_stop): Ditto.
215 (may_write_registers): Declare.
216 (may_write_memory): Declare.
217 (may_insert_breakpoints): Declare.
218 (may_insert_tracepoints): Declare.
219 (may_insert_fast_tracepoints): Declare.
220 (may_stop): Declare.
221 * target.c (may_write_registers, may_write_registers_1): New globals.
222 (may_write_memory, may_write_memory_1): New globals.
223 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
224 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
225 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
226 globals.
227 (may_stop, may_stop_1): New global.
228 (target_xfer_partial): Test for write permission.
229 (target_store_registers): Ditto.
230 (target_insert_breakpoint): New function.
231 (target_remove_breakpoint): New function.
232 (target_stop): New function.
233 (_initialize_targets): Add new set/show variables.
234 (set_write_memory_permission): New function.
235 (update_target_permissions): New function.
236 (set_target_permissions): New function.
237 (update_current_target): Default to_set_permissions.
238 (_initialize_targets): Use new globals and setter function.
239 * tracepoint.c (start_tracing): Test for permission.
240 * inferior.h (update_observer_mode): Declare.
241 * infrun.c (non_stop_1): Define earlier.
242 (observer_mode, observer_mode_1): New globals.
243 (set_observer_mode, show_observer_mode): New functions.
244 (update_observer_mode): New function.
245 (_initialize_infrun): Define "set observer" command.
246 * remote.c (PACKET_QAllow): New optional packet.
247 (remote_protocol_features): Add QAllow.
248 (remote_set_permissions): New function.
249 (remote_start_remote): Call it.
250 (init_remote_ops): Add it to target vector.
251 (_initialize_remote): Add config command for QAllow.
252
253 2010-06-11 Tom Tromey <tromey@redhat.com>
254
255 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
256 DW_AT_vtable_elem_location even when GCC extension is seen.
257
258 2010-06-11 Tom Tromey <tromey@redhat.com>
259
260 PR gdb/9977, PR exp/11636:
261 * value.h (value_offset): Update.
262 (struct lval_funcs) <check_validity>: New field.
263 <copy_closure>: Make argument const.
264 (value_computed_closure): Update.
265 (value_contents_for_printing): Declare.
266 (value_bits_valid): Likewise.
267 (val_print): Likewise.
268 (set_value_component_location): Update.
269 (value_entirely_optimized_out): Declare.
270 * value.c (value_offset): Argument now const.
271 (require_not_optimized_out): New function.
272 (value_contents_for_printing): New function.
273 (value_contents_all): Call require_not_optimized_out.
274 (value_contents): Likewise.
275 (value_bits_valid): New function.
276 (value_computed_closure): Argument now const.
277 (set_value_component_location): Make 'whole' argument const.
278 (value_entirely_optimized_out): New function.
279 (value_bitsize): Argument now 'const'.
280 (value_bitpos): Likewise.
281 (value_type): Likewise.
282 * valprint.h (val_print_array_elements): Update.
283 * valprint.c (val_print): Add 'val' argument. Use
284 valprint_check_validity.
285 (valprint_check_validity): New function.
286 (value_check_printable): Use value_entirely_optimized_out.
287 (common_val_print): Update.
288 (value_print): Likewise.
289 (val_print_array_elements): Add 'val' argument.
290 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
291 value_bits_valid. Reinit frame cache for lval_computed.
292 * sh64-tdep.c (sh64_do_register): Update.
293 * scm-valprint.c (scm_val_print): Add 'val' argument.
294 * scm-lang.h (scm_val_print): Update.
295 * python/python.h (apply_val_pretty_printer): Update.
296 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
297 argument. Call set_value_component_location.
298 * printcmd.c (print_scalar_formatted): Update.
299 * p-valprint.c (pascal_val_print): Add 'val' argument.
300 (pascal_object_print_value_fields): Likewise.
301 (pascal_object_print_value): Likewise.
302 (pascal_object_print_static_field): Update.
303 * p-lang.h (pascal_val_print): Update.
304 (pascal_object_print_value_fields): Update.
305 * mt-tdep.c (mt_registers_info): Update.
306 * mi/mi-main.c (get_register): Update.
307 (mi_cmd_data_evaluate_expression): Use common_val_print.
308 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
309 (m2_print_unbounded_array): Likewise.
310 (m2_val_print): Likewise.
311 * m2-lang.h (m2_val_print): Update.
312 * language.h (struct language_defn) <la_val_print>: Add 'val'
313 argument.
314 (LA_VAL_PRINT): Likewise.
315 * language.c (unk_lang_val_print): Add 'val' argument.
316 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
317 (java_val_print): Likewise.
318 * jv-lang.h (java_val_print): Add 'val' argument.
319 * infcmd.c (default_print_registers_info): Update.
320 * f-valprint.c (f77_print_array_1): Add 'val' argument.
321 (f77_print_array): Likewise.
322 (f_val_print): Likewise.
323 * f-lang.h (f_val_print): Add 'val' argument.
324 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
325 value_bitpos.
326 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
327 set_value_optimized_out.
328 (write_pieced_value): Use value_bitsize and value_bitpos.
329 <default>: Don't exit loop.
330 (check_pieced_value_validity): New function.
331 (pieced_value_funcs): Reference check_pieced_value_validity,
332 check_pieced_value_invalid.
333 (copy_pieced_value_closure): Update.
334 (check_pieced_value_bits): New function.
335 (check_pieced_value_invalid): New function.
336 * d-valprint.c (dynamic_array_type): Add 'val' argument.
337 (d_val_print): Likewise.
338 * d-lang.h (d_val_print): Update.
339 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
340 (cp_print_value_fields_rtti): Likewise.
341 (cp_print_value): Likewise.
342 (cp_print_static_field): Update.
343 * c-valprint.c (c_val_print): Add 'val' argument.
344 (c_value_print): Update.
345 * c-lang.h (c_val_print): Update.
346 (cp_print_value_fields): Likewise.
347 (cp_print_value_fields_rtti): Likewise.
348 * ada-valprint.c (struct ada_val_print_args): Remove.
349 (val_print_packed_array_elements): Add 'val' argument.
350 (ada_val_print): Likewise. Rewrite.
351 (ada_val_print_stub): Remove.
352 (ada_val_print_array): Add 'val' argument.
353 (ada_val_print_1): Likewise.
354 (print_variant_part): Likewise.
355 (ada_value_print): Update.
356 (print_record): Add 'val' argument.
357 (print_field_values): Likewise.
358 * ada-lang.h (ada_val_print): Update.
359
360 2010-06-11 Tom Tromey <tromey@redhat.com>
361
362 * vec.h (VEC_cleanup): New macro.
363 (DEF_VEC_ALLOC_FUNC_I): Update.
364 (DEF_VEC_ALLOC_FUNC_P): Likewise.
365 (DEF_VEC_ALLOC_FUNC_O): Likewise.
366 * dwarf2loc.c (struct axs_var_loc): Remove.
367 (unimplemented): New function.
368 (translate_register): Likewise.
369 (access_memory): Likewise.
370 (compile_dwarf_to_ax): Likewise.
371 (dwarf2_tracepoint_var_loc): Remove.
372 (dwarf2_tracepoint_var_access): Likewise.
373 (dwarf2_tracepoint_var_ref): Likewise.
374 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
375 (loclist_tracepoint_var_ref): Likewise.
376 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
377 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
378 require_composition. No longer static.
379 (execute_stack_op): Update.
380 * ax-gdb.h (trace_kludge): Declare.
381
382 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
383
384 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
385 (should_be_inserted): Return zero also on NULL OWNER.
386 (breakpoint_program_space_exit): New OWNER comment.
387 (insert_breakpoint_locations): Extend comment for OWNER.
388 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
389 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
390 New OWNER comment.
391 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
392 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
393 (bpstat_check_location): New assert on OWNER.
394 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
395 and B initializations to the code block. New assert on them.
396 (print_one_breakpoint_location): New OWNER comment.
397 (watchpoint_locations_match): Assert on OWNER.
398 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
399 initializations to the code block. New assert on OWNER.
400 (set_breakpoint_location_function): New assert on OWNER.
401 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
402 (bp_location_compare, update_global_location_list)
403 (update_global_location_list): New OWNER comment.
404
405 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
406
407 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
408
409 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
410
411 * config/nm-linux.h (struct target_ops): Remove forward declaration.
412 (lin_thread_get_thread_signals): Remove prototype.
413 (GET_THREAD_SIGNALS): Remove.
414 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
415 * linux-thread-db.c (check_thread_signals): Directly call
416 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
417
418 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
419
420 * gregset.h (GDB_FPXREGSET_T): Remove.
421 (gdb_fpxregset_t): Likewise.
422 (supply_fpxregset): Remove prototype.
423 (fill_fpxregset): Likewise.
424 * i386-linux-nat.c (supply_fpxregset): Remove.
425 (fill_fpxregset): Likewise.
426 (fetch_fpxregs): Inline supply_fpxregset call.
427 (store_fpxregs): Inline fill_fpxregset call.
428
429 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
430 * config/i386/nm-linux.h: Remove file.
431
432 2010-06-09 Michael Snyder <msnyder@vmware.com>
433
434 * target.c (update_current_target): Fix spelling error in comment.
435 (target_mourn_inferior): Fix spelling error in error message.
436
437 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
438
439 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
440 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
441
442 2010-06-08 Michael Snyder <msnyder@vmware.com>
443
444 * remote.c (remote_close): Set inferior_ptid to null_ptid.
445
446 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
447
448 * configure.ac <"${have_libpython}" != no>: New workaround of
449 python#4434.
450 * configure: Regenerate.
451
452 2010-06-08 Hui Zhu <teawater@gmail.com>
453
454 * record.c (record_wait): Move signal out of replay code.
455
456 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
457
458 Fix PR 10640.
459 * dwarf2-frame.c (no_dwarf_call): New function.
460 (execute_stack_op): Set CTX->DWARF_CALL.
461 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
462 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
463 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
464 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
465 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
466 (needs_frame_dwarf_call): New function.
467 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
468 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
469 Update the comment. Move variables die, offset and error call to ...
470 (follow_die_ref): ... a new function.
471 (dwarf2_fetch_die_location_block): New function.
472 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
473
474 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
475
476 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
477 (dwarf_expr_tls_address): Use per_cu instead of objfile.
478 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
479 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
480 this change.
481 (struct needs_frame_baton): New field per_cu.
482 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
483 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
484
485 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
486
487 * cp-support.c (make_symbol_overload_list_namespace): Only search
488 static and global blocks.
489 (make_symbol_overload_list_block): New function.
490 (make_symbol_overload_list): Separate namespace search from block
491 search.
492 (make_symbol_overload_list_qualified): Use
493 make_symbol_overload_list_block.
494
495 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
496
497 * value.h: Created oload_search_type enum.
498 (find_overload_match): Use oload_search_type enum.
499 * valops.c (find_overload_match): Support combined member and
500 non-member search.
501 * eval.c (evaluate_subexp_standard): Calls to
502 find_overload_match now use oload_search_type enum.
503 (oload_method_static): Verify index is a proper value.
504 * valarith.c (value_user_defined_cpp_op): Search for and handle
505 both member and non-member operators.
506 (value_user_defined_cpp_op): New function.
507 (value_user_defined_op): New function.
508 (value_x_unop): Use value_user_defined_op.
509 (value_x_binop): Ditto.
510 * cp-support.c (make_symbol_overload_list_using): Added block
511 iteration.
512 Add check for namespace aliases and imported declarations.
513
514 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
515
516 * breakpoint.h (owner): Extend the comment.
517
518 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
519
520 Clear stale specific bp_location from former whole breakpoint.
521 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
522 code ...
523 (free_bp_location): ... here. Rename there the called function to
524 bpstat_remove_bp_location_callback.
525 (bpstat_remove_breakpoint_callback): Rename to ...
526 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
527 to struct bp_location. Change the called function to
528 bpstat_remove_bp_location. Create new declaration for the function.
529 (bpstat_remove_breakpoint): Rename to ...
530 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
531 code for the new parameter type.
532
533 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
534
535 * README: Make version-agnostic.
536
537 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
538
539 Fix duplicate types for single DIE.
540 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
541 set_die_type.
542 (read_array_type): Remove type initialization. Recheck get_die_type
543 after initial die_type. Move set_die_type before set_descriptive_type.
544 (read_set_type): New variable domain_type. Recheck get_die_type after
545 initial die_type. Move attr initialization later.
546 (read_tag_pointer_type, read_tag_reference_type): New variable
547 target_type. Recheck get_die_type after initial die_type.
548 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
549 die_type and die_containing_type.
550 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
551 Recheck get_die_type after initial die_type.
552 (read_subrange_type): Recheck get_die_type after initial die_type.
553 Move set_die_type before set_descriptive_type.
554 (set_die_type): Extend the function comment. Call complaint if DIE has
555 some type already set.
556
557 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
558
559 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
560 for current naming of thread groups (iN, not N).
561
562 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
563
564 * ada-lang.c (ada_operator_length): Constify `struct expression'.
565 * parse.c (operator_length): Likewise.
566 (operator_length_standard): Likewise.
567 * parser-defs.h (operator_length): Likewise.
568 (operator_length_standard): Likewise.
569 (struct exp_descriptor <operator_length>): Likewise.
570
571 2010-06-04 Doug Evans <dje@google.com>
572
573 Add support for enabling/disabling individual pretty-printers.
574 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
575 * python/python-internal.h (gdbpy_enabled_cst): Declare.
576 * python/python.c (gdbpy_enabled_cst): Define.
577 (_initialize_python): Initialize gdbpy_enabled_cst.
578 * NEWS: Add entry.
579
580 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
581
582 * breakpoint.c (update_global_location_list): Fix comment typo.
583
584 2010-06-04 Hui Zhu <teawater@gmail.com>
585
586 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
587
588 2010-06-03 Doug Evans <dje@google.com>
589
590 * configure.ac: Don't fail if python is unusable when
591 configured with --with-python=auto.
592 * configure: Regenerate.
593
594 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
595
596 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
597
598 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
599
600 * valprint.h (get_array_bounds): Change low and high parameter types
601 to LONGEST *.
602 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
603 compute bounds.
604 (val_print_array_elements): Adapt to change above.
605 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
606 * p-valprint.c (pascal_val_print): Likewise.
607
608 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
609
610 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
611 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
612 .F08.
613
614 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
615
616 Support DW_TAG_module as separate namespaces.
617 * dwarf2read.c (typename_concat): New parameter physname.
618 (read_module_type): New function and declaration.
619 (scan_partial_symbols): Scan also DW_TAG_module children.
620 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
621 to typename_concat backward compatible physname value 0.
622 (partial_die_full_name, read_namespace_type): Pass to typename_concat
623 backward compatible physname value 0.
624 (add_partial_module, read_module): Remove FIXME comment.
625 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
626 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
627 DIEs under DW_TAG_module.
628 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
629 DW_AT_MIPS_linkage_name first, extend it for language_fortran
630 && physname and return there instead of just setting NAME. Extend
631 the main block for language_fortran. Pass physname parameter to the
632 typename_concat call.
633 (read_import_statement, read_func_scope, get_scope_pc_bounds)
634 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
635 (new_symbol): Fill in cplus_specific.demangled_name if it is still
636 missing from SYMBOL_SET_NAMES in the language_fortran case.
637 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
638 variables.
639 (read_type_die) <DW_TAG_module>: New.
640 (MAX_SEP_LEN): Increase to 7.
641 (typename_concat): New parameter physname. New variable lead. Support
642 also language_fortran.
643 * f-exp.y (yylex): Consider : also as a symbol name character class.
644 * f-lang.c: Include cp-support.h.
645 (f_word_break_characters, f_make_symbol_completion_list): New functions.
646 (f_language_defn): Use cp_lookup_symbol_nonlocal,
647 f_word_break_characters and f_make_symbol_completion_list.
648 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
649 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
650 * symtab.c (symbol_init_language_specific): Support language_fortran.
651 (symbol_find_demangled_name): New comment on language_fortran.
652 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
653 for language_fortran.
654 (lookup_symbol_aux_local): Check imports also for language_fortran.
655 (default_make_symbol_completion_list): Rename to ...
656 (default_make_symbol_completion_list_break_on): ... this name. New
657 parameter break_on, use it.
658 (default_make_symbol_completion_list): New stub.
659 * symtab.h (default_make_symbol_completion_list_break_on): New
660 prototype.
661
662 2010-06-02 Joel Brobecker <brobecker@adacore.com>
663
664 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
665 to error.
666
667 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
668
669 * dwarf2read.c (typename_concat): Add const to the variable sep.
670
671 2010-06-02 Tom Tromey <tromey@redhat.com>
672
673 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
674 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
675 type is const. Add 'def' argument. Add missing operators, remove
676 unhandled ones.
677 (decode_locdesc): Update.
678 (dwarf2_always_disassemble): New global.
679 (show_dwarf2_always_disassemble): New function.
680 (_initialize_dwarf2_read): Add always-disassemble.
681 (dwarf2_per_cu_offset_size): New function.
682 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
683 (piece_end_p): New function.
684 (locexpr_describe_location_piece): Replace 'size' argument with
685 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
686 some constants. Remove errors.
687 (disassemble_dwarf_expression): New function.
688 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
689 Add 'offset_size' argument.
690 (loclist_describe_location): Change output formatting.
691 * dwarf2expr.h (dwarf_stack_op_name): Declare.
692
693 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
694
695 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
696 anonymous type case.
697
698 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
699
700 * dwarf2read.c (read_subrange_type): Handle missing base type
701 according to Dwarf-2 specifications.
702
703 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
704
705 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
706 BINOP_EXCL.
707 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
708 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
709 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
710 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
711 UNOP_CHMAX, UNOP_CHMIN.
712 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
713 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
714 UNOP_CHMIN>: Remove opcodes.
715
716 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
717
718 * dwarf2read.c (read_func_scope): Do not complain for
719 external function if bounds are not found.
720
721 2010-06-01 Pedro Alves <pedro@codesourcery.com>
722
723 * NEWS: Mention gdbserver fast tracepoints support.
724
725 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
726
727 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
728 New macros.
729 (windows_set_console_info): New function.
730 (windows_create_inferior): Call windows_set_console_info
731 if NEW_CONSOLE is true.
732 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
733 (_initialize_loadable): Initialize GetConsoleFontSize and
734 GetCurrentConsoleFont.
735
736 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
737
738 * Makefile.in (RDYNAMIC): New.
739 (SFILES): Add proc-service.list.
740 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
741 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
742 * config/arm/linux.mh: Likewise.
743 * config/i386/linux.mh: Likewise.
744 * config/i386/linux64.mh: Likewise.
745 * config/ia64/linux.mh: Likewise.
746 * config/m32r/linux.mh: Likewise.
747 * config/m68k/linux.mh: Likewise.
748 * config/mips/linux.mh: Likewise.
749 * config/pa/linux.mh: Likewise.
750 * config/powerpc/linux.mh: Likewise.
751 * config/powerpc/ppc64-linux.mh: Likewise.
752 * config/s390/s390.mh: Likewise.
753 * config/sparc/linux.mh: Likewise.
754 * config/sparc/linux64.mh: Likewise.
755 * config/xtensa/linux.mh: Likewise.
756 * configure.ac: New RDYNAMIC on native host and GCC.
757 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
758 * configure: Regenerate.
759 * proc-service.list: New.
760
761 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
762
763 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
764 CONTENT.
765
766 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
767
768 * linux-nat.c (linux_nat_wait_1): Do not call
769 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
770 TARGET_WAITKIND_SIGNALLED.
771
772 2010-05-27 Joel Brobecker <brobecker@adacore.com>
773
774 * ada-lang.c (ada_inferior_data): New struct.
775 (ada_inferior_data): New static global.
776 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
777 (ada_get_tsd_type): New functions.
778 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
779 to look the tsd type up.
780 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
781 event. Set ada_inferior_data.
782
783 2010-05-27 Pedro Alves <pedro@codesourcery.com>
784
785 * remote.c (unpack_varlen_hex): Remove forward declaration.
786 (remote_console_output): Make static, and add forward declaration.
787 * remote.h: Drop FIXME comment.
788 (unpack_varlen_hex): Declare.
789 (remote_console_output, remote_cisco_objfile_relocate)
790 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
791 Delete declarations.
792 * tracepoint.c: Include "remote.h".
793 (unpack_varlen_hex): Delete declaration.
794
795 2010-05-27 Tom Tromey <tromey@redhat.com>
796
797 * dwarf2loc.c (struct piece_closure) <refc>: New field.
798 (allocate_piece_closure): Initialize refc.
799 (copy_pieced_value_closure): Use refc.
800 (free_pieced_value_closure): Likewise.
801
802 2010-05-27 Tom Tromey <tromey@redhat.com>
803
804 * arm-tdep.c (push_stack_item): 'contents' now const.
805 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
806 value_contents_writeable. Introduce new temporary.
807
808 2010-05-27 Tom Tromey <tromey@redhat.com>
809
810 * findcmd.c (parse_find_args): Use value_contents, not
811 value_contents_raw.
812
813 2010-05-27 Tom Tromey <tromey@redhat.com>
814
815 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
816 const. Use value_contents, not value_contents_writeable.
817
818 2010-05-27 Joel Brobecker <brobecker@adacore.com>
819
820 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
821 by call to value_contents.
822
823 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
824
825 * MAINTAINERS: Add myself for write after approval privileges.
826
827 2010-05-26 Doug Evans <dje@google.com>
828
829 Allow python to find its files if moved from original location.
830 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
831 (GDB_AC_WITH_DIR): Call it.
832 * configure.ac: Define WITH_PYTHON_PATH if we can find the
833 python installation directory.
834 * config.in: Regenerate.
835 * configure: Regenerate.
836 * defs.h (python_libdir): Declare.
837 * main.c (python_libdir): Define.
838 (captured_main): Initialize python_libdir.
839 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
840 call Py_SetProgramName to make sure python can find its libraries
841 and modules.
842
843 * configure.ac: Try to use python's distutils to fetch compilation
844 parameters.
845 * configure: Regenerate.
846 * python/python-config.py: New file.
847
848 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
849
850 * ser-tcp.c (net_open): Check error return from socket() call by its
851 equality to -1 not by it being negative.
852 (net_close): Likewise.
853
854 2010-05-26 Pedro Alves <pedro@codesourcery.com>
855
856 * NEWS: Mention the `qRelocInsn' feature.
857 * gdbarch.sh (relocate_instruction): New.
858 * amd64-tdep.c (rip_relative_offset): New.
859 (append_insns): New.
860 (amd64_relocate_instruction): New.
861 (amd64_init_abi): Install it.
862 * i386-tdep.c (append_insns): New.
863 (i386_relocate_instruction): New.
864 (i386_gdbarch_init): Install it.
865 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
866 * gdbarch.h, gdbarch.c: Regenerate.
867
868 2010-05-26 Tom Tromey <tromey@redhat.com>
869
870 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
871 (struct dwarf2_loclist_baton) <data>: Likewise.
872 * dwarf2loc.c (find_location_expression): Constify return type.
873 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
874 (dwarf2_loc_desc_needs_frame): Likewise.
875 (loclist_read_variable): Constify.
876 (loclist_describe_location): Likewise.
877 (loclist_tracepoint_var_ref): Likewise.
878
879 2010-05-25 Tom Tromey <tromey@redhat.com>
880
881 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
882 (dwarf_expr_frame_base_1): Likewise.
883 (read_pieced_value): Update.
884 (needs_frame_frame_base): Constify.
885 (dwarf2_tracepoint_var_loc): Likewise.
886 (dwarf2_tracepoint_var_access): Likewise.
887 (locexpr_describe_location_piece): Likewise.
888 (locexpr_describe_location_1): Likewise.
889 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
890 Constify.
891 (data): Now const.
892 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
893 (dwarf_expr_eval, read_uleb128, read_sleb128)
894 (dwarf2_read_address): Update.
895 * dwarf2expr.c (dwarf_expr_eval): Constify.
896 (read_uleb128): Likewise.
897 (read_sleb128): Likewise.
898 (dwarf2_read_address): Likewise.
899 (require_composition): Likewise.
900 (execute_stack_op): Likewise.
901 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
902 "const gdb_byte *".
903 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
904 Now const.
905 (no_get_frame_base): Constify.
906 (execute_stack_op): Likewise.
907 (execute_cfa_program): Likewise.
908 (read_encoded_value): Likewise.
909
910 2010-05-25 Doug Evans <dje@google.com>
911
912 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
913
914 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
915 * event-loop.c: ... here.
916 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
917 `error' for clarity.
918 (tui_getc): Pass correct value for `error' parameter to
919 tui_readline_output.
920
921 Add python gdb.GdbError and gdb.string_to_argv.
922 * NEWS: Document them.
923 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
924 the exception is gdb.GdbError. Print a second traceback if there's
925 an error computing the error message.
926 (gdbpy_string_to_argv): New function.
927 * python/py-utils.c (gdbpy_obj_to_string): New function.
928 (gdbpy_exception_to_string): New function.
929 * python/python-internal.h (gdbpy_string_to_argv): Declare.
930 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
931 (gdbpy_gdberror_exc): Declare.
932 * python/python.c (gdbpy_gdberror_exc): New global.
933 (_initialize_python): Initialize gdbpy_gdberror_exc and create
934 gdb.GdbError.
935 (GdbMethods): Add string_to_argv.
936
937 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
938
939 * windows-nat.c (display_selector): Call GetLastError to give better
940 failure explanation.
941
942 2010-05-24 Pedro Alves <pedro@codesourcery.com>
943
944 * config.in: Regenerate.
945
946 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
947
948 Code cleanup.
949 * target.c (push_target): Return only void. Remove the return value
950 comment.
951 * target.h (push_target): Return only void.
952
953 2010-05-23 Pedro Alves <pedro@codesourcery.com>
954
955 Update gnulib from latest git.
956 (250b80067c1e1d8faa0c42fb572f721975b929c5)
957
958 * gnulib/memcmp.c: Removed.
959 * gnulib/memchr.valgrind: New.
960 * gnulib/stddef.in.h: New.
961 * gnulib/Makefile.am: Updated.
962 * gnulib/memchr.c: Updated.
963 * gnulib/memmem.c: Updated.
964 * gnulib/stdint.in.h: Updated.
965 * gnulib/str-two-way.h: Updated.
966 * gnulib/string.in.h: Updated.
967 * gnulib/wchar.in.h: Updated.
968
969 * gnulib/extra/link-warning.h: Removed.
970 * gnulib/extra/c++defs.h: New.
971 * gnulib/extra/warn-on-use.h: New.
972 * gnulib/extra/arg-nonnull.h: Updated.
973
974 * gnulib/m4/extensions.m4: Updated.
975 * gnulib/m4/gnulib-cache.m4: Updated.
976 * gnulib/m4/gnulib-common.m4: Updated.
977 * gnulib/m4/gnulib-comp.m4: Updated.
978 * gnulib/m4/gnulib-tool.m4: Updated.
979 * gnulib/m4/include_next.m4: Updated.
980 * gnulib/m4/longlong.m4: Updated.
981 * gnulib/m4/memchr.m4: Updated.
982 * gnulib/m4/memmem.m4: Updated.
983 * gnulib/m4/stdint.m4: Updated.
984 * gnulib/m4/string_h.m4: Updated.
985 * gnulib/m4/memcmp.m4: Removed.
986 * gnulib/m4/onceonly_2_57.m4: Removed.
987 * gnulib/m4/00gnulib.m4: New.
988 * gnulib/m4/mmap-anon.m4: New.
989 * gnulib/m4/multiarch.m4: New.
990 * gnulib/m4/onceonly.m4: New.
991 * gnulib/m4/stddef_h.m4: New.
992 * gnulib/m4/warn-on-use.m4: New.
993 * gnulib/m4/wchar.m4: Removed.
994 * gnulib/m4/wchar_h.m4: New.
995 * gnulib/m4/wchar_t.m4: New.
996 * gnulib/m4/wint_t.m4: New.
997
998 * aclocal.m4: Regenerate.
999 * config.in: Likewise.
1000 * configure: Likewise.
1001 * gnulib/Makefile.in: Likewise.
1002
1003 2010-05-21 Tom Tromey <tromey@redhat.com>
1004
1005 * dwarf2loc.c (extract_bits_primitive): New function.
1006 (extract_bits): Likewise.
1007 (insert_bits): Likewise.
1008 (copy_bitwise): Likewise.
1009 (read_pieced_value): Do all operations in bits.
1010 (write_pieced_value): Likewise.
1011 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
1012 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
1013 Always use xrealloc to resize piece array.
1014 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
1015 <DW_OP_piece>: Update.
1016 <DW_OP_bit_piece>: New case.
1017
1018 2010-05-21 Tom Tromey <tromey@redhat.com>
1019
1020 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
1021 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
1022 * dwarf2expr.h (enum dwarf_value_location)
1023 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
1024 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
1025 (add_piece): Handle empty piece.
1026 (execute_stack_op) <DW_OP_piece>: Handle
1027 DWARF_VALUE_OPTIMIZED_OUT.
1028
1029 2010-05-21 Tom Tromey <tromey@redhat.com>
1030
1031 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
1032 evaluate_subexp, not evaluate_subexp_with_coercion.
1033
1034 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1035
1036 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1037 attribute.
1038
1039 2010-05-21 Tom Tromey <tromey@redhat.com>
1040
1041 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
1042 offset.
1043 (write_pieced_value): Likewise.
1044
1045 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1046
1047 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1048 and DW_TAG_volatile_type.
1049 (new_symbol): Likewise.
1050
1051 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
1052
1053 * p-valprint.c (pascal_val_print): Call get_array_bounds
1054 to obtain the number of elements in an array.
1055
1056 2010-05-19 Doug Evans <dje@google.com>
1057
1058 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
1059
1060 * python.c (source_python_script): Add comment.
1061 (source_python_script_for_objfile): Remove unnecessary call to
1062 gdbpy_print_stack.
1063
1064 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1065 Sergio Durigan Junior <sergiodj@redhat.com>
1066
1067 Code cleanup.
1068 * parse.c (exp_iterate): Use operator_length wrapper function.
1069
1070 2010-05-18 Michael Snyder <msnyder@vmware.com>
1071
1072 * ada-lang.c: White space.
1073 * ada-typeprint.c: White space.
1074 * ada-valprint.c: White space.
1075 * addrmap.c: White space.
1076 * auxv.c: White space.
1077 * ax-gdb.c: White space.
1078
1079 2010-05-18 Hui Zhu <teawater@gmail.com>
1080
1081 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
1082 for oldfp.
1083 (inferior_call_waitpid): Move make_cleanup out of check.
1084 Check the return of waitpid.
1085 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
1086
1087 2010-05-17 Michael Snyder <msnyder@vmware.com>
1088
1089 * tui/tui.c: White space.
1090 * tui/tui-data.c: White space.
1091 * tui/tui-disasm.c: White space.
1092 * tui/tui-file.c: White space.
1093 * tui/tui-interp.c: White space.
1094 * tui/tui-main.c: White space.
1095 * tui/tui-out.c: White space.
1096 * tui/tui-regs.c: White space.
1097 * tui/tui-source.c: White space.
1098 * tui/tui-stack.c: White space.
1099 * tui/tui-win.c: White space.
1100 * tui/tui-winsource.c: White space.
1101
1102 * procfs.c: White space.
1103
1104 * python/py-auto-load.c: White space.
1105 * python/py-block.c: White space.
1106 * python/py-breakpoint.c: White space.
1107 * python/py-cmd.c: White space.
1108 * python/py-function.c: White space.
1109 * python/py-lazy-string.c: White space.
1110 * python/py-objfile.c: White space.
1111 * python/py-param.c: White space.
1112 * python/py-prettyprint.c: White space.
1113 * python/py-progspace.c: White space.
1114 * python/py-symtab.c: White space.
1115 * python/python.c: White space.
1116 * python/py-type.c: White space.
1117 * python/py-utils.c: White space.
1118 * python/py-value.c: White space.
1119
1120 * mi/mi-cmd-break.c: White space.
1121 * mi/mi-cmd-env.c: White space.
1122 * mi/mi-cmds.c: White space.
1123 * mi/mi-cmd-stack.c: White space.
1124 * mi/mi-cmd-var.c: White space.
1125 * mi/mi-console.c: White space.
1126 * mi/mi-getopt.c: White space.
1127 * mi/mi-interp.c: White space.
1128 * mi/mi-main.c: White space.
1129 * mi/mi-out.c: White space.
1130 * mi/mi-parse.c: White space.
1131
1132 * cli/cli-cmds.c: White space.
1133 * cli/cli-decode.c: White space.
1134 * cli/cli-dump.c: White space.
1135 * cli/cli-interp.c: White space.
1136 * cli/cli-logging.c: White space.
1137 * cli/cli-script.c: White space.
1138 * cli/cli-setshow.c: White space.
1139
1140 * valarith.c: White space.
1141 * valops.c: White space.
1142 * valprint.c: White space.
1143 * value.c: White space.
1144 * varobj.c: White space.
1145 * xcoffread.c: White space.
1146 * xml-support.c: White space.
1147 * xml-tdesc.c: White space.
1148
1149 2010-05-17 Andreas Schwab <schwab@redhat.com>
1150
1151 PR gdb/11092
1152 * c-lang.c (c_printstr): Compute real length of NUL terminated
1153 string at first.
1154
1155 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1156
1157 * parse.c (parse_exp_in_context): When block is not NULL, use
1158 its associated language to parse the expression instead of
1159 the current_language.
1160
1161 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1162
1163 * jv-lang.c (java_lookup_class): Remove commented out code.
1164 (type_from_class): Likewise.
1165 (java_op_print_tab): Remove commented-out elements.
1166
1167 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1168
1169 * ada-lang.c (to_fixed_range_type): The the raw index type as
1170 argument instead of the raw type name. Remove orig_type parameter.
1171 Update calls throughout.
1172 (ada_fixup_array_indexes_type): New function.
1173 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
1174 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
1175 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
1176 Remove name parameter.
1177 (print_array_type): Add call to ada_fixup_array_indexes_type.
1178 Update calls to print_range_type.
1179 (ada_print_type): Update calls to print_range_type.
1180
1181 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1182
1183 * dwarf2read.c (read_set_type): Set type length if
1184 DW_AT_byte_size attribute is present.
1185
1186 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1187
1188 * p-valprint.c (pascal_val_print): Handle set type if range limits
1189 are undefined but size is known.
1190
1191 2010-05-17 Pedro Alves <pedro@codesourcery.com>
1192
1193 * procfs.c: Reformat.
1194
1195 2010-05-16 Michael Snyder <msnyder@vmware.com>
1196
1197 * target.c: White space.
1198 * target-descriptions.c: White space.
1199 * target-memory.c: White space.
1200 * thread.c: White space.
1201 * top.c: White space.
1202 * tracepoint.c: White space.
1203 * trad-frame.c: White space.
1204 * tramp-frame.c: White space.
1205 * ui-file.c: White space.
1206 * ui-out.c: White space.
1207 * user-regs.c: White space.
1208 * utils.c: White space.
1209
1210 * scm-exp.c: White space.
1211 * scm-lang.c: White space.
1212 * scm-valprint.c: White space.
1213 * sentinel-frame.c: White space.
1214 * ser-base.c: White space.
1215 * ser-go32.c: White space.
1216 * serial.c: White space.
1217 * ser-mingw.c: White space.
1218 * ser-pipe.c: White space.
1219 * ser-tcp.c: White space.
1220 * ser-unix.c: White space.
1221 * solib.c: White space.
1222 * solib-darwin.c: White space.
1223 * solib-frv.c: White space.
1224 * solib-irix.c: White space.
1225 * solib-osf.c: White space.
1226 * solib-pa64.c: White space.
1227 * solib-som.c: White space.
1228 * solib-spu.c: White space.
1229 * solib-svr4.c: White space.
1230 * solib-target.c: White space.
1231 * source.c: White space.
1232 * stabsread.c: White space.
1233 * stack.c: White space.
1234 * std-regs.c: White space.
1235 * symfile.c: White space.
1236 * symmisc.c: White space.
1237 * symtab.c: White space.
1238
1239 2010-05-16 Michael Snyder <msnyder@vmware.com>
1240
1241 * source.c (_initialize_source): Add "rev" as an abbreviation
1242 for the "reverse-search" command.
1243
1244 2010-05-16 Michael Snyder <msnyder@vmware.com>
1245
1246 * record.c: White space.
1247 * regcache.c: White space.
1248 * reggroups.c: White space.
1249 * remote-fileio.c: White space.
1250 * remote-m32r-sdi.c: White space.
1251 * remote-mips.c: White space.
1252 * remote-sim.c: White space.
1253 * remote.c: White space.
1254 (process_g_packet): Remove orphan braces.
1255
1256 2010-05-15 Michael Snyder <msnyder@vmware.com>
1257
1258 * parse.c: White space.
1259 * p-lang.c: White space.
1260 * posix-hdep.c: White space.
1261 * printcmd.c: White space.
1262 * progspace.c: White space.
1263 * prologue-value.c: White space.
1264 * psymtab.c: White space.
1265 * p-typeprint.c: White space.
1266 * p-valprint.c: White space.
1267
1268 * objc-lang.c: White space.
1269 * objfiles.c: White space.
1270 * observer.c: White space.
1271 * osabi.c: White space.
1272 * osdata.c: White space.
1273
1274 * m2-lang.c: White space.
1275 * m2-valprint.c: White space.
1276 * macrocmd.c: White space.
1277 * macroexp.c: White space.
1278 * macroscope.c: White space.
1279 * macrotab.c: White space.
1280 * main.c: White space.
1281 * maint.c: White space.
1282 * mdebugread.c: White space.
1283 * memattr.c: White space.
1284 * minsyms.c: White space.
1285 * monitor.c: White space.
1286
1287 2010-05-14 Michael Snyder <msnyder@vmware.com>
1288
1289 * jv-lang.c: White space.
1290 * jv-typeprint.c: White space.
1291 * jv-valprint.c: White space.
1292 * language.c: White space.
1293 * libunwind-frame.c: White space.
1294 * linespec.c: White space.
1295 * linux-nat.c: White space.
1296 * linux-record.c: White space.
1297 * linux-thread-db.c: White space.
1298
1299 * infcall.c: White space.
1300 * inf-child.c: White space.
1301 * infcmd.c: White space.
1302 * inferior.c: White space.
1303 * inf-loop.c: White space.
1304 * inflow.c: White space.
1305 * inline-frame.c: White space.
1306 * interps.c: White space.
1307
1308 * gcore.c: White space.
1309 * gdb.c: White space.
1310 * gdbtypes.c: White space.
1311 * gnu-nat.c: White space.
1312 * gnu-v2-abi.c: White space.
1313 * gnu-v3-abi.c: White space.
1314
1315 * findcmd.c: White space.
1316 * findvar.c: White space.
1317 * fork-child.c: White space.
1318 * frame-base.c: White space.
1319 * frame.c: White space.
1320 * frame-unwind.c: White space.
1321 * f-valprint.c: White space.
1322
1323 * elfread.c: White space.
1324 * environ.c: White space.
1325 * eval.c: White space.
1326 * event-loop.c: White space.
1327 * event-top.c: White space.
1328 * exceptions.c: White space.
1329 * exec.c: White space.
1330 * expprint.c: White space.
1331
1332 * dbxread.c: White space.
1333 * dcache.c: White space.
1334 * disasm.c: White space.
1335 * doublest.c: White space.
1336 * dsrec.c: White space.
1337 * dummy-frame.c: White space.
1338 * dwarf2expr.c: White space.
1339 * dwarf2-frame.c: White space.
1340 * dwarf2loc.c: White space.
1341 * dwarf2read.c: White space.
1342
1343 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
1344
1345 PR python/11482
1346
1347 * python/py-value.c (valpy_hash): New function.
1348 (value_object_type): Register valpy_hash.
1349
1350 2010-05-14 Hui Zhu <teawater@gmail.com>
1351 Michael Snyder <msnyder@vmware.com>
1352
1353 * linux-fork.c (gdbthread.h): New include.
1354 (fork_info): Add parent_ptid.
1355 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
1356 functions.
1357 (delete_checkpoint_command): Call inferior_call_waitpid.
1358 (checkpoint_command): Set parent_ptid.
1359
1360 2010-05-13 Michael Snyder <msnyder@vmware.com>
1361
1362 * dictionary.c: Re-indent to GNU coding standard.
1363
1364 * charset.c: White space.
1365 * c-lang.c: White space.
1366 * cli-out.c: White space.
1367 * coffread.c: White space.
1368 * complaints.c: White space.
1369 * completer.c: White space.
1370 * corefile.c: White space.
1371 * corelow.c: White space.
1372 * cp-abi.c: White space.
1373 * cp-namespace.c: White space.
1374 * cp-support.c: White space.
1375 * cp-valprint.c: White space.
1376 * c-typeprint.c: White space.
1377 * c-valprint.c: White space.
1378 * blockframe.c: White space.
1379 * breakpoint.c: White space.
1380 * buildsym.c: White space.
1381 * blockframe.c: White space.
1382 * bcache.c: White space.
1383 * gdbarch.sh: White space, add blank lines.
1384 * arch-utils.c: Ditto.
1385 * gdbarch.c: Regenerate.
1386 * frame.c: White space, add blank lines.
1387 * stack.c: White space, add blank lines.
1388 (initialize_stack): Remove long-dead code.
1389
1390 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1391
1392 Code cleanup.
1393 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
1394 (locexpr_read_variable, loclist_read_variable): Update the callers.
1395
1396 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1397
1398 Code cleanup.
1399 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
1400 Remove check of NULL returned by tag_type_to_type.
1401 (die_containing_type): Remove variable type. Remove type_die variable
1402 initialization. Remove check of NULL returned by tag_type_to_type.
1403
1404 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1405
1406 PR exp/11530.
1407 * gdbtypes.c (lookup_struct_elt_type): Also lookup
1408 names of unnamed structures or unions.
1409
1410 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1411
1412 * procfs.c (proc_watchpoint_address): New function.
1413 (procfs_stopped_by_watchpoint): Remove useless check after
1414 find_procinfo_or_die call.
1415 (procfs_stopped_data_address): New function.
1416 (procfs_use_watchpoints): Register new watchpoint related function.
1417
1418 2010-05-11 Tom Tromey <tromey@redhat.com>
1419
1420 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
1421
1422 2010-05-10 Michael Snyder <msnyder@vmware.com>
1423
1424 * utils.c: White space cleanup.
1425
1426 2010-05-10 Tom Tromey <tromey@redhat.com>
1427
1428 * eval.c (ptrmath_type_p): Add 'lang' argument.
1429 (evaluate_subexp_standard): Update.
1430 (evaluate_subexp_with_coercion): Update.
1431 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
1432
1433 2010-05-10 Michael Snyder <msnyder@vmware.com>
1434
1435 * utils.c (do_fclose_cleanup) Restore local variable.
1436
1437 2010-05-09 Doug Evans <dje@google.com>
1438
1439 * record.c (init_record_core_ops): Rename record_core to record-core.
1440
1441 2010-05-08 Joel Brobecker <brobecker@adacore.com>
1442
1443 Implement task switching on pa-hpux.
1444 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
1445 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
1446
1447 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1448
1449 * valops.c (find_overload_match): Add missing i18n markup.
1450
1451 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1452
1453 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
1454
1455 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1456
1457 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
1458 list for the obconcat call.
1459 * mdebugread.c (parse_symbol): Likewise.
1460 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
1461 Likewise.
1462 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
1463 New variable ap. Remove variables len and val.
1464 * symfile.h (obconcat): Likewise for the prototype.
1465
1466 2010-05-07 Michael Snyder <msnyder@vmware.com>
1467
1468 * python/python.c (execute_gdb_command): Remove unused variables.
1469 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
1470 * python/py-breakpoint.c (gdbpy_breakpoint_created):
1471 Remove unused variable.
1472 * python/py-cmd.c (cmdpy_function): Remove unused variable.
1473 (cmdpy_completer): Remove unused variable.
1474 * python/py-frame.c (frapy_find_sal): Remove unused variable.
1475 * python/py-function.c (fnpy_call): Remove unused variable.
1476 * python/py-objfile.c (objfile_to_objfile_object):
1477 Remove unused variable.
1478 * python/py-param.c (parmpy_init): Remove unused variable.
1479 * python/py-prettyprint.c (apply_varobj_pretty_printer):
1480 Remove unused variable.
1481 (gdbpy_default_visualizer): Remove unused variable.
1482 * python/py-progspace.c (pspace_to_pspace_object):
1483 Remove unused variable.
1484 * python/py-symtab.c (symtab_and_line_to_sal_object):
1485 Remove unused variable.
1486 * python/py-type.c (typy_template_argument):
1487 Remove unused variable.
1488 * python/py-value.c (valpy_string): Remove unused variable.
1489 (convert_value_from_python): Remove unused variables.
1490
1491 2010-05-07 Michael Snyder <msnyder@vmware.com>
1492
1493 * valops.c (value_cast_pointers): Restore unused variable 'type1',
1494 and use it to compute variable 't1'.
1495
1496 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1497
1498 * ada-lang.c (assign_aggregate): Remove unused variable.
1499
1500 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
1501
1502 PR C++/7943:
1503 * valops.c (find_overload_match): Handle fsym == NULL case.
1504 Add int no_adl argument.
1505 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
1506 when appropriate.
1507 Add int no_adl argument.
1508 (find_oload_champ_namespace): Add int no_adl argument.
1509 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
1510 expression.
1511 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
1512 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
1513 Evaluate arguments and use them to perform ADL lookup.
1514 Pass no_adl argument to find_overload_match.
1515 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
1516 * cp-support.h: Added prototype for
1517 make_symbol_overload_list_namespace.
1518 * cp-support.c (make_symbol_overload_list_namespace): New function.
1519 (make_symbol_overload_list_adl_namespace): New function.
1520 (make_symbol_overload_list_adl): New function.
1521 (make_symbol_overload_list_using): Moved code to add function to
1522 overload set to make_symbol_overload_list_namespace.
1523 * c-exp.y: create UNKNOWN_CPP_NAME token.
1524 Add parse rule for ADL functions.
1525 (classify_name): Recognize an UNKNOWN_CPP_NAME.
1526
1527 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1528
1529 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
1530 sentinel.
1531
1532 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1533
1534 Implement task switching on solaris targets.
1535 * sol-thread.c (thread_db_find_thread_from_tid)
1536 (sol_get_ada_task_ptid): New functions.
1537 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
1538
1539 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1540
1541 * remote.c (remote_query_supported_append): Use reconcat.
1542 (remote_query_supported): Install a cleanup. Use reconcat.
1543
1544 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1545
1546 * gdbarch.sh (qsupported): Delete.
1547 * gdbarch.h, gdbarch.c: Regenerate.
1548 * remote.c (remote_query_supported): Remove use of
1549 gdbarch_qsupported.
1550
1551 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
1552
1553 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
1554 function.
1555
1556 2010-05-06 Michael Snyder <msnyder@vmware.com>
1557
1558 * xml-support.c (xinclude_start_include): Delete unused variable.
1559 (xml_process_xincludes): Delete unused variable.
1560 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
1561 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
1562 (tdesc_find_arch_register): Delete unused variable.
1563 (tdesc_use_registers): Delete unused variable.
1564 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
1565 * inferior.c (print_inferior): Delete unused variable.
1566 * record.c (record_open_1): Delete unused variable.
1567 (record_restore): Delete unused variable.
1568 (cmd_record_save): Delete unused variable.
1569 * gcore.c (derive_heap_segment): Delete unused variable.
1570 (objfile_find_memory_regions): Use unused variable.
1571 * jit.c (jit_inferior_init): Delete unused variable.
1572 * progspace.c (clone_program_space): Delete unused variable.
1573 (pspace_empty_p): Delete unused variable.
1574
1575 * frame-unwind.c (frame_unwind_find_by_frame):
1576 Delete unused variable.
1577 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
1578 * cp-support.c (mangled_name_to_comp): Delete unused variable.
1579 (method_name_from_physname): Delete unused variable.
1580 (cp_func_name): Delete unused variable.
1581 (cp_validate_operator): Delete unused variable.
1582 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1583 Delete unused variable.
1584 * trad-frame.c (trad_frame_get_prev_register):
1585 Delete unused variable.
1586 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
1587
1588 * serial.c (serial_for_fd): Delete unused variable.
1589 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
1590 * top.c (execute_command): Delete unused variable.
1591 (init_main): Delete unused variable.
1592 * utils.c (do_fclose_cleanup): Delete unused variable.
1593 (do_all_inferior_continuations): Delete unused variable.
1594 (initialize_utils): Delete unused variable.
1595 (internal_problem_mode): Delete unused global.
1596 * frame.c (get_prev_frame): Delete unused global.
1597 (get_frame_locals_address): Delete unused global.
1598 (get_frame_args_address): Delete unused global.
1599
1600 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
1601 (pascal_type_print_varspec_prefix): Delete unused variable.
1602 * f-typeprint.c (f_type_print_base): Delete unused variable.
1603 (f_type_print_varspec_suffix): Delete unused variable.
1604 * m2-typeprint.c (m2_print_type): Delete unused variable.
1605 (m2_long_set): Delete unused variable.
1606 * ada-valprint.c (ada_val_print_1): Delete unused variable.
1607 * d-valprint.c (dynamic_array_type): Delete unused variable.
1608 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
1609 Delete unused variable.
1610 (f77_create_arrayprint_offset_tbl): Delete unused variable.
1611 * m2-valprint.c (m2_val_print): Delete unused variable.
1612
1613 * ui-out.c (ui_out_field_int): Delete unused variable.
1614 (ui_out_field_fmt_int): Delete unused variable.
1615 * varobj.c (varobj_list_children): Delete unused variable.
1616 (varobj_set_value): Delete unused variable.
1617 (install_new_value_visualizer): Delete unused variable.
1618 (varobj_set_visualizer): Delete unused variable.
1619 (varobj_update): Delete unused variable.
1620 (varobj_editable_p): Delete unused variable.
1621 (c_value_of_root): Delete unused variable.
1622 (cplus_describe_child): Delete unused variable.
1623
1624 * ada-lang.c (add_defn_to_vec): Delete unused variable.
1625 (decode_constrained_packed_array_type): Delete unused variable.
1626 (add_defn_to_vec): Delete unused variable.
1627 (symbol_completion_match): Delete unused variable.
1628 (value_tag_from_contents_and_address): Delete unused variable.
1629 (ada_evaluate_subexp): Delete unused variable.
1630 * c-lang.c (classify_type): Delete unused variable.
1631 * f-lang.c (f_printstr): Delete unused variable.
1632 * objc-lang.c (objc_printstr): Delete unused variable.
1633 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
1634 * jv-lang.c (type_from_class): ifdef unused variable.
1635 (java_class_name_from_physname): Delete unused variable.
1636 * m2-lang.c (m2_printstr): Delete unused variable.
1637
1638 * objfiles.c (objfile_relocate): Delete unused variable.
1639 * maint.c (_initialize_maint_cmds): Delete unused variable.
1640 * demangle.c (_initialize_demangler): Delete unused variable.
1641 * corefile.c (reopen_exec_file): Delete unused variable.
1642 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
1643 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
1644
1645 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
1646 * memattr.c (mem_delete): Delete unused variable.
1647 (invalidate_target_mem_regions): Delete unused variable.
1648 * mem-break.c (default_memory_insert_breakpoint):
1649 Delete unused variable.
1650 * target.c (target_get_osdata): Delete unused variable.
1651 * parse.c (length_of_subexp): Delete unused variable.
1652 (prefixify_subexp): Delete unused variable.
1653 (exp_iterate): Delete unused variable.
1654 * reverse.c (delete_bookmark_command): Delete unused variable.
1655
1656 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
1657 * macroexp.c (gather_arguments): Delete unused variable.
1658 (substitute_args): Delete unused variable.
1659 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
1660 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
1661 (_initialize_gdbarch): Delete unused variable.
1662 * gdbarch.c, gdbarch.h: Regenerate.
1663 * arch-utils.c (initialize_current_architecture):
1664 Delete unused variable.
1665 (_initialize_gdbarch_utils): Delete unused variable.
1666 * gdbtypes.c (make_cv_type): Delete unused variable.
1667 (make_type_with_address_space): Delete unused variable.
1668
1669 * linespec.c (decode_compound): Delete unused variable.
1670 * dictionary.c (iterator_next_hashed): Delete unused variable.
1671 * infcall.c (call_function_by_hand): Delete unused variable.
1672 * infcmd.c (step_1): Delete unused variable.
1673 (registers_info): Delete unused variable.
1674 (attach_command): Delete unused variable.
1675 * infrun.c (follow_exec): Delete unused variable.
1676 (handle_step_into_function_backwards): Delete unused variable.
1677 (_initialize_infrun): Delete unused variable.
1678 * stack.c (parse_frame_specification_1): Delete unused variable.
1679 (frame_info): Delete unused variable.
1680 (backtrace_command_1): Delete unused variable.
1681 (catch_info): Delete unused variable.
1682
1683 * eval.c (evaluate_subexp_standard): Delete unused variable.
1684 * valops.c (value_cast_pointers): Delete unused variable.
1685 (value_dynamic_cast): Delete unused variable.
1686 (value_array): Delete unused variable.
1687 (find_overload_match): Delete unused variable.
1688 * valarith.c (value_subscript): Delete unused variable.
1689 (value_binop): Delete unused variable.
1690 * valprint.c (_initialize_valprint): Delete unused variable.
1691 * printcmd.c (print_command_1): Delete unused variable.
1692 (address_info): Delete unused variable.
1693 (printf_command): Delete unused variable.
1694
1695 * auxv.c (target_auxv_search): Delete unused variable.
1696 * blockframe.c (get_frame_block): Delete unused variable.
1697 * regcache.c (regcache_cpy): Delete unused variable.
1698 (regcache_cpy_no_passthrough): Delete unused variable.
1699 * charset.c (wchar_iterate): Delete unused variable.
1700 (find_charset_names): Delete unused variable.
1701 (_initialize_charset): Delete unused variable.
1702 * disasm.c (do_mixed_source_and_assembly):
1703 Delete unused variable.
1704 * source.c (set_default_source_symtab_and_line):
1705 Delete unused variable.
1706 (set_substitute_path_command): Delete unused variable.
1707 * value.c (preserve_values): Delete unused variable.
1708 (value_from_double): Delete unused variable.
1709
1710 2010-05-05 Michael Snyder <msnyder@vmware.com>
1711
1712 * psymtab.c (lookup_partial_symbol): Delete unused variable.
1713 (find_last_source_symtab_from_partial): Delete unused variable.
1714 * symfile.c (place_section): Delete unused variable.
1715 (default_symfile_offsets): Delete unused variable.
1716 (get_debug_link_info): Delete unused variable.
1717 (find_separate_debug_file_by_debuglink): Delete unused variable.
1718 (add_symbol_file_command): Delete unused variable.
1719 (symfile_find_segment_sections): Delete unused variable.
1720 * symmisc.c (free_symtab): Delete unused variable.
1721 (dump_symtab_1): Delete unused variable.
1722 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
1723 (find_pc_sect_symtab): Delete unused variable.
1724 (skip_prologue_using_lineinfo): Delete unused variable.
1725 (sources_info): Delete unused variable.
1726 (completion_list_add_name): Delete unused variable.
1727 (expand_line_sal): Delete unused variable.
1728
1729 * breakpoint.c (validate_commands_for_breakpoint):
1730 Delete unused variables.
1731 (insert_catchpoint): Delete unused variable.
1732 (update_watchpoint): Delete unused variable.
1733 (insert_bp_location): Delete unused variable.
1734 (insert_breakpoint_locations): Delete unused variable.
1735 (remove_breakpoint_1): Delete unused variable.
1736 (software_breakpoint_inserted_here_p): Delete unused variable.
1737 (watchpoints_triggered): Delete unused variable.
1738 (bpstat_check_watchpoint): Delete unused variable.
1739 (bpstat_stop_status): Delete unused variable.
1740 (print_one_breakpoint_location): Delete unused variable.
1741 (allocate_bp_location): Delete unused variable.
1742 (create_breakpoint): Delete unused variable.
1743 (watch_command_1): Delete unused variable.
1744 (catch_exception_command_1): Delete unused variable.
1745 (catch_ada_exception_command): Delete unused variable.
1746 (delete_breakpoint): Delete unused variable.
1747 (breakpoint_re_set_one): Delete unused variable.
1748 (do_enable_breakpoint): Delete unused variable.
1749
1750 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1751
1752 * amd64-tdep.c: Include disasm.h.
1753 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
1754 (amd64_insn_length): Moved to disasm.c and renamed.
1755 (fixup_riprel): Adjust.
1756 * disasm.c (do_ui_file_delete): New.
1757 (gdb_insn_length): New.
1758 (gdb_buffered_insn_length_fprintf)
1759 (gdb_buffered_insn_length_init_dis)
1760 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
1761 renamed.
1762 * disasm.h (gdb_insn_length): Declare.
1763 (gdb_buffered_insn_length): Declare.
1764
1765 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1766
1767 * remote.c (clear_threads_parsing_context): New.
1768 (remote_threads_info): Delete unused null_cleanup. Install a
1769 cleanup to clear the threads_parsing_context in case parsing
1770 throws.
1771
1772 2010-05-05 Michael Snyder <msnyder@vmware.com>
1773
1774 * c-exp.y (parse_string_or_char): Delete unused variable.
1775 (c_lex): Delete unused variable.
1776 * cp-name-parser.y (cpname_lex): Delete unused variable.
1777 * ada-exp.y (find_primitive_type): Delete unused variable.
1778 (write_var_or_type): Delete unused variable.
1779 * jv-exp.y (java_parse): Delete unused variable.
1780 (push_expression_name): Delete unused variable.
1781 * p-exp.y (pascal_lex): Delete unused variable.
1782
1783 2010-05-05 Pedro Alves <pedro@codesourcery.com>
1784
1785 * remote.c (remote_threads_info): Really revert previous previous
1786 change.
1787
1788 2010-05-05 Michael Snyder <msnyder@vmware.com>
1789
1790 * elfread.c (elf_symtab_read): Delete unused variable.
1791 (find_separate_debug_file_by_buildid): Delete unused variables.
1792 (elf_symfile_read): Delete unused variable.
1793
1794 * coffread.c (coff_symfile_read): Delete unused variables.
1795
1796 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
1797 (read_pe_exported_syms): Delete unused variable.
1798
1799 * stabsread.c (define_symbol): Delete unused variable.
1800
1801 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
1802 (process_psymtab_comp_unit): Delete unused variable.
1803 (dwarf2_build_psymtabs_hard): Delete unused variable.
1804 (load_partial_comp_unit): Delete unused variable.
1805 (create_all_comp_units): Delete unused variable.
1806 (scan_partial_symbols): Delete unused variable.
1807 (add_partial_symbol): Delete unused variable.
1808 (add_partial_namespace): Delete unused variable.
1809 (add_partial_enumeration): Delete unused variable.
1810 (load_full_comp_unit): Delete unused variable.
1811 (process_full_comp_unit): Delete unused variable.
1812 (read_file_scope): Delete unused variable.
1813 (read_type_unit_scope): Delete unused variable.
1814 (process_structure_scope): Delete unused variable.
1815 (process_enumeration_scope): Delete unused variable.
1816 (read_tag_ptr_to_member_type): Delete unused variable.
1817 (read_typedef): Delete unused variable.
1818 (read_partial_die): Delete unused variable.
1819 (decode_locdesc): Delete unused variable.
1820 (zeroed_partial_die): Delete unused global variable.
1821
1822 * tui/tui-interp.c (_initialize_tui_interp):
1823 Delete unused variable.
1824 * tui/tui-regs.c tui_display_registers_from):
1825 Delete unused variable.
1826 (tui_check_register_values): Delete unused variable.
1827 (tui_register_format): Delete unused variable.
1828 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
1829 * tui/tui-windata.c (tui_display_data_from_line):
1830 Delete unused variables.
1831 (tui_vertical_data_scroll): Delete unused variables.
1832
1833 2010-05-05 Michael Snyder <msnyder@vmware.com>
1834
1835 * remote.c (remote_threads_info): Revert questionable part of
1836 the previous change.
1837
1838 2010-05-05 Michael Snyder <msnyder@vmware.com>
1839
1840 * mi/mi-out.c (mi_table_begin): Delete unused variable.
1841 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
1842 (mi_cmd_var_list_children): Delete unused variable.
1843 (varobj_update_one): Delete unused variable.
1844 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
1845 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
1846 Delete unused variable.
1847 (mi_cmd_stack_list_variables): Delete unused variable.
1848 (list_args_or_locals): Delete unused variable.
1849 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
1850 Delete unused variables.
1851 (mi_cmd_file_list_exec_source_files): Delete unused variable.
1852 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
1853 Delete unused variable.
1854 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
1855 (mi_cmd_interpreter_exec): Delete unused variable.
1856 (mi_on_normal_stop): Delete unused variable.
1857 * mi/mi-main.c (run_one_inferior): Delete unused variable.
1858 (print_one_inferior): Delete unused variables.
1859 (mi_execute_command): Delete unused variable.
1860 (mi_cmd_execute): Delete unused variable.
1861 (timestamp): Delete unused variable.
1862
1863 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
1864 (restore_binary_file): Delete unused variable.
1865 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
1866 * cli/cli-script.c (define_command): Delete unused variables.
1867 (recurse_read_control_structure): Delete unused variable.
1868 (script_from_file): Delete unused variable.
1869 * cli/cli-cmds.c (complete_command): Delete unused variable.
1870 (disassemble_command): Delete unused variable.
1871
1872 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
1873 * tracepoint.c (delete_trace_variable_command):
1874 Delete unused variables.
1875 (encode_actions_1): Delete unused variables.
1876 (start_tracing): Delete unused variable.
1877 (trace_status_mi): Delete unused variable.
1878 (tfind_1): Delete unused variable.
1879 (trace_find_pc_command): Delete unused variable.
1880 (trace_find_line_command): Delete unused variables.
1881 (trace_find_range_command): Delete unused variables.
1882 (trace_find_outside_command): Delete unused variables.
1883 (parse_tracepoint_definition): Delete unused variables.
1884 (tfile_fetch_registers): Delete unused variable.
1885
1886 * dcache.c (dcache_init): Delete unused variable.
1887 (dcache_info): Delete unused variable.
1888
1889 * remote.c (remote_threads_info): Delete unused variable.
1890 (process_stop_reply) :Delete unused variable.
1891 (remote_get_trace_status): Delete unused variables.
1892
1893 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
1894 (thread_from_lwp): Delete unused variable.
1895 (enable_thread_event_reporting): Delete unused variable.
1896 (check_for_thread_db): Delete unused variables.
1897 (thread_db_find_new_threads_2): Delete unused variable.
1898
1899 * linux-fork.c (info_checkpoints_command): Delete unused variables.
1900 (checkpoint_command): Delete unused variable.
1901 (linux_fork_context): Delete unused variables.
1902
1903 * linux-nat.c (linux_parent_pid): Delete unused global variable.
1904 (linux_tracefork_child): Delete unused variable.
1905 (linux_child_follow_fork): Delete unused variable.
1906 (linux_nat_detach): Delete unused variable.
1907 (linux_handle_extended_wait): Delete unused variable.
1908 (linux_nat_has_pending_sigint): Delete unused variable.
1909 (linux_nat_find_memory_regions): Delete unused variable.
1910 (linux_nat_make_corefile_notes): Delete unused variables.
1911 (linux_nat_info_proc_cmd): Delete unused variable.
1912 (linux_proc_pending_signals): Delete unused variable.
1913 (linux_nat_stop_lwp): Delete unused variables.
1914 (_initialize_linux_nat): Delete unused variable.
1915
1916 * ser-pipe.c (pipe_ops): Delete unused global variable.
1917
1918 * linux-record.c (record_linux_system_call):
1919 Delete unused variables.
1920
1921 * corelow.c (core_xfer_partial): Delete unused variables.
1922
1923 * solib-svr4.c (find_program_interpreter): Delete unused variable.
1924 (svr4_solib_create_inferior_hook): Add ifdef around
1925 conditionally-used variable declarations.
1926
1927 * solib.c (solib_find): Delete unused variable.
1928 (free_so_symbols): Delete unused variable.
1929 (info_sharedlibrary_command): Delete unused variable.
1930 (reload_shared_libraries_1): Delete unused variable.
1931 (_initialize_solib): Delete unused variable.
1932
1933 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
1934 (i386_collect_xstateregset): Delete unused variable.
1935 * i387-tdep.c (i387_print_float_info): Delete unused variable.
1936
1937 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
1938 Delete unused variable 'type'.
1939
1940 2010-05-05 Joel Brobecker <brobecker@adacore.com>
1941
1942 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
1943 ada-lang.c: Remove comment mentioning these macros.
1944 * m2-exp.y: Delete commented out code.
1945
1946 2010-05-05 Joel Brobecker <brobecker@adacore.com>
1947
1948 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
1949 for array types.
1950 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
1951
1952 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
1953
1954 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
1955 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
1956 ATTRIBUTE_UNUSED.
1957 (cleanup_kernel_helper_return): Likewise.
1958 * arm-tdep.c (copy_unmodified): Likewise.
1959 (copy_preload): Likewise.
1960 (copy_copro_load_store): Likewise.
1961 (cleanup_branch): Likewise.
1962 (copy_b_bl_blx): Likewise.
1963 (copy_bx_blx_reg): Likewise.
1964 (copy_alu_imm): Likewise.
1965 (copy_alu_reg): Likewise.
1966 (copy_alu_shifted_reg): Likewise.
1967 (cleanup_load): Likewise.
1968 (cleanup_store): Likewise.
1969 (cleanup_block_load_pc): Likewise.
1970 (cleanup_svc): Likewise.
1971 (copy_undef): Likewise.
1972 (copy_unpred): Likewise.
1973 * remote.c (register_remote_support_xml): Likewise.
1974
1975 2010-05-05 Hui Zhu <teawater@gmail.com>
1976
1977 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
1978
1979 2010-05-04 Mark Kettenis <kettenis@gnu.org>
1980
1981 * remote.c (register_remote_support_xml)
1982 (remote_query_supported_append, remote_query_supported): Add cast
1983 to NULL used as sentinel.
1984 * tracepoint.c (tvariables_info_1): Likewise.
1985 * utils.c (add_internal_problem_command): Likewise.
1986
1987 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1988
1989 * dwarf2loc.c (read_pieced_value, write_pieced_value,
1990 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
1991 registers gracefully.
1992
1993 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1994
1995 * exec.c (print_section_info): Display entry point without arch
1996 specific parts.
1997
1998 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
1999
2000 PR exp/11349.
2001 * printcmd.c (x_command): Only dereference once implicitly for
2002 TYPE_CODE_REF.
2003
2004 2010-05-03 Doug Evans <dje@google.com>
2005
2006 * event-loop.c (gdb_timer): Delete unused global.
2007 (create_timer): Update.
2008
2009 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2010
2011 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
2012 CURRENT->DECLARATION case.
2013 * cp-support.h (struct using_direct): Provide extended comment.
2014
2015 2010-05-03 Mark Kettenis <kettenis@gnu.org>
2016
2017 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
2018 HPPABSD_SIZEOF_GREGS.
2019 (HPPAOBSD_SIZEOF_FPREGS): New define.
2020 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
2021 (hppaobsd_supply_fpregset): New function.
2022 (hppaobsd_gregset): Renamed from hppabsd_gregset.
2023 (hppaobsd_fpregset): New variable.
2024 (hppaobsd_regset_from_core_section): Handle floating-point registers.
2025 (_initialize_hppabsd_tdep): Remove spurious blank line.
2026
2027 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2028
2029 PR pascal/11349.
2030 * p-valprint.c (pascal_value_print): Always dereference a value with
2031 type code TYPE_CODE_REF.
2032
2033 2010-05-03 Pedro Alves <pedro@codesourcery.com>
2034
2035 * remote.c (remote_notice_signals): New.
2036 (remote_start_remote): In non-stop mode, update the remote end on
2037 which signals it can silently pass.
2038 (init_remote_ops): Install remote_notice_signals.
2039
2040 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2041
2042 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
2043 * command.h (error_no_arg): ... here. Remove NORETURN, change
2044 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2045 * defs.h (NORETURN, ATTR_NORETURN): Remove.
2046 (perror_with_name, verror, error, error_stream, vfatal, fatal)
2047 (internal_verror, internal_error, nomem): Remove NORETURN, change
2048 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2049 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
2050 (throw_vfatal, throw_error): Remove NORETURN.
2051 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
2052 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
2053 (throw_error, deprecated_throw_reason): Remove NORETURN, change
2054 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2055 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
2056 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
2057 NORETURN.
2058 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
2059 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
2060 ATTRIBUTE_NORETURN.
2061 * target.c (tcomplain): Likewise.
2062 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
2063 ATTRIBUTE_NORETURN.
2064 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
2065 (internal_error, perror_with_name, nomem): Remove NORETURN.
2066 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
2067 ATTRIBUTE_NORETURN.
2068
2069 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2070
2071 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2072 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
2073 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
2074 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2075 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
2076 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2077 * complaints.h (complaint, internal_complaint): Likewise.
2078 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
2079 (ATTR_FORMAT): Remove.
2080 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
2081 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
2082 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
2083 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
2084 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
2085 (internal_error, internal_vwarning, internal_warning, warning)
2086 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2087 * disasm.c (fprintf_disasm): Likewise.
2088 * exceptions.c (throw_it): Likewise.
2089 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
2090 (throw_error): Likewise.
2091 * language.h (type_error, range_error): Likewise.
2092 * linespec.c (cplusplus_error): Likewise.
2093 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
2094 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
2095 * monitor.c (monitor_debug): Likewise.
2096 * parser-defs.h (parser_fprintf): Likewise.
2097 * serial.h (serial_printf): Likewise.
2098 * tui/tui-hooks.c (tui_query_hook): Likewise.
2099 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
2100 (uo_message): Likewise.
2101 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
2102 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
2103 Likewise.
2104 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
2105
2106 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2107
2108 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
2109 (cli_table_header, cli_begin, cli_end, cli_field_int)
2110 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
2111 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
2112 Delete forward declarations.
2113 (cli_ui_out_impl): Move below the callbacks.
2114 (_initialize_cli_out): Delete.
2115
2116 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2117
2118 * README: Use consistent `GDB' and `GDBserver' spellings.
2119
2120 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2121
2122 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
2123
2124 2010-05-01 Pedro Alves <pedro@codesourcery.com>
2125
2126 * infrun.c (prepare_for_detach): In non-stop, context switch to
2127 the thread that got the event before handling the event.
2128
2129 2010-04-30 Tom Tromey <tromey@redhat.com>
2130
2131 * symtab.c (symbol_set_names): Fix typo.
2132
2133 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2134
2135 * python/py-param.c (parm_constants): Avoid ARI warning
2136 by adding ARI comment.
2137 (parmpy_init): Likewise.
2138
2139 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2140
2141 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
2142 and created type for re-use.
2143
2144 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2145
2146 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
2147
2148 2010-04-29 Doug Evans <dje@google.com>
2149
2150 * ser-base.h (reschedule): Delete prototype.
2151 * ser-base.c (reschedule): Make static.
2152
2153 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2154
2155 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
2156 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
2157 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
2158 EABI.
2159 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
2160 use.
2161
2162 2010-04-29 Pedro Alves <pedro@codesourcery.com>
2163
2164 PR gdb/11557
2165
2166 * regcache.c (registers_changed): Rename to ...
2167 (registers_changed_ptid): ... this, and only delete register cache
2168 entries matching the ptid filter argument.
2169 (registers_changed): Reimplement on top of registers_changed_ptid.
2170 * regcache.h (registers_changed_ptid): Declare.
2171 * target.c (target_resume): Flush register caches.
2172
2173 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
2174 Tom Tromey <tromey@redhat.com>
2175 Thiago Jung Bauermann <bauerman@br.ibm.com>
2176
2177 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
2178 (SUBDIR_PYTHON_SRCS): Likewise.
2179 (py-parameter.o): New rule.
2180 * python/py-parameter.c: New file.
2181 * python/python-internal.h (gdbpy_initialize_parameter)
2182 (gdbpy_parameter, gdbpy_parameter_value)
2183 (gdbpy_parse_command_name): Declare.
2184 * python/py-cmd.c (parse_command_name): Rename to
2185 gdbpy_parse_command_name.
2186 (gdbpy_parse_command_name): Accept a starting list parameter and
2187 use over cmdlist.
2188 (cmdpy_init): Use gdbpy_parse_command_name.
2189 * python/python.c (parameter_to_python): Rename to
2190 gdbpy_parameter_to_python. Accept enum var_types and value.
2191 (gdbpy_parameter): Use gdbpy_parameter_value.
2192 (_initialize_python): Call gdbpy_initialize_parameters.
2193
2194 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2195
2196 * MAINTAINERS: Add myself for write after approval privileges.
2197
2198 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
2199
2200 D language support.
2201 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
2202 (COMMON_OBS): Add d-lang.o d-valprint.o.
2203 (HFILES_NO_SRCDIR): Add d-lang.h.
2204 * NEWS: Mention D language support.
2205 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
2206 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
2207 * d-lang.c: New file.
2208 * d-lang.h: New file.
2209 * d-valprint.c: New file.
2210 * defs.h (enum language): Add language_d.
2211 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
2212 * language.c (binop_result_type, integral_type, character_type)
2213 (string_type, boolean_type, structured_type): Add language_d.
2214 * symfile.c (init_filename_language_table): Add language_d.
2215 * symtab.c: Include d-lang.h.
2216 (symbol_init_language_specific, symbol_find_demangled_name)
2217 (symbol_natural_name, lookup_symbol_in_language)
2218 (symbol_demangled_name, symbol_matches_domain): Add language_d.
2219
2220 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2221
2222 * solib-svr4.c (solib_svr4_r_map): Expand function description.
2223
2224 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2225
2226 * symfile.c (init_filename_language_table): Register .dg files
2227 with language_ada.
2228
2229 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2230
2231 * gdbtypes.h (struct main_type): Expand comment about target_type
2232 field.
2233
2234 2010-04-27 Pedro Alves <pedro@codesourcery.com>
2235 Tristan Gingold <gingold@adacore.com>
2236
2237 * symfile.c (reread_symbols): Also search for file in libraries.
2238 Update comment.
2239
2240 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2241
2242 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
2243 in terms of configuration.
2244
2245 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2246
2247 * objfiles.c: Include solist.h.
2248 (free_all_objfiles): New variable so. Check stale solist objfiles.
2249 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
2250 and no_shared_libraries.
2251
2252 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2253
2254 ARI warning fix.
2255 * python/py-auto-load.c (source_section_scripts): Remove trailing
2256 new-line in i18n string.
2257
2258 2010-04-26 Doug Evans <dje@google.com>
2259
2260 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
2261
2262 2010-04-26 Tom Tromey <tromey@redhat.com>
2263
2264 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
2265 command list.
2266
2267 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2268
2269 Removal of config/i386/nm-i386sol2.h native configuration file.
2270 * config/i386/nm-i386sol2.h: Remove file.
2271 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
2272 * config/i386/sol2-64.mh: Idem.
2273 * config/djgpp/fnchange.lst: Remove reference to that file.
2274 * Makefile.in (HFILES_NO_SRCDIR): Idem.
2275
2276 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2277
2278 PR breakpoints/11531.
2279 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
2280 macro definition and related comment.
2281 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
2282 (resume): Remove code and comment related to this macro.
2283
2284 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2285
2286 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
2287 Fix whitespace.
2288
2289 2010-04-24 Pedro Alves <pedro@codesourcery.com>
2290
2291 * defs.h: Adjust comment.
2292 * filesystem.h, filesystem.c: New files.
2293 * Makefile.in (SFILES): Add filesystem.c.
2294 (COMMON_OBS): Add filesystem.o.
2295 * solib.c (solib_find): Handle DOS-based filesystems. Handle
2296 different target and host path flavours.
2297 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2298 has_dos_based_file_system on the gdbarch.
2299 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
2300 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
2301 * i386-tdep.c (i386_go32_init_abi): Ditto.
2302 * gdbarch.sh (has_dos_based_file_system): New.
2303 * gdbarch.h, gdbarch.c: Regenerate.
2304 * NEWS: Mention improved support for remote targets with DOS-based
2305 filesystems. Mention new `set/show target-file-system-kind'
2306 commands.
2307
2308 2010-04-23 Stan Shebs <stan@codesourcery.com>
2309
2310 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
2311 comments.
2312 (struct agent_reqs): Remove.
2313 (ax_reg_mask): Declare.
2314 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
2315 (free_agent_expr): Free reg_mask.
2316 (ax_print): Add scope and register mask info.
2317 (ax_reqs): Remove agent_reqs argument, use agent expression
2318 fields, and move part of register mask computation to...
2319 (ax_reg_mask): New function.
2320 * ax-gdb.c (gen_trace_static_fields): Call it.
2321 (gen_traced_pop): Ditto.
2322 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
2323 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
2324 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
2325 (gen_eval_for_expr): Ditto, and require an rvalue.
2326 (agent_command): Call ax_reqs.
2327 (agent_eval_command): Ditto.
2328 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
2329 (validate_action_line): Ditto.
2330 (collect_symbol): Ditto.
2331 (encode_actions_1): Ditto.
2332
2333 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
2334 Paul Pluzhnikov <ppluzhnikov@google.com>
2335 Jan Kratochvil <jan.kratochvil@redhat.com>
2336
2337 Fix deadlock on looped list of loaded shared objects.
2338 * solib-svr4.c (LM_PREV): New function.
2339 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
2340 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
2341 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
2342 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
2343
2344 2010-04-23 Doug Evans <dje@google.com>
2345
2346 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
2347 python.
2348 * configure: Regenerate.
2349 * main.c: #include "python/python.h".
2350 (captured_main): Defer loading auto-loaded scripts until after
2351 local_gdbinit has been sourced.
2352 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
2353 (load_auto_scripts_for_objfile): New function.
2354 (auto_load_new_objfile): Call it.
2355 * python/python.h (gdbpy_global_auto_load): Declare.
2356 (load_auto_scripts_for_objfile): Declare.
2357
2358 Add support for auto-loading scripts from .debug_gdb_scripts section.
2359 * NEWS: Add entry for .debug_gdb_scripts.
2360 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
2361 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
2362 (py-auto-load.o): New rule.
2363 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
2364 * cli/cli-cmds.h (find_and_open_script): Update prototype.
2365 * python/py-auto-load.c: New file.
2366 * python/python-internal.h: #include <stdio.h>.
2367 (set_python_list, show_python_list): Declare.
2368 (gdbpy_initialize_auto_load): Declare.
2369 (source_python_script_for_objfile): Declare.
2370 * python/python.c: Remove #include of observer.h.
2371 (gdbpy_auto_load): Moved to py-auto-load.c.
2372 (GDBPY_AUTO_FILENAME): Ditto.
2373 (gdbpy_new_objfile): Delete.
2374 (source_python_script_for_objfile): New function.
2375 (set_python_list, show_python_list): Make externally visible.
2376 (_initialize_python): Move "auto-load" command to py-auto-load.c
2377 and observer_attach_new_objfile to py-auto-load.c.
2378
2379 2010-04-23 Jerome Guitton <guitton@adacore.com>
2380
2381 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
2382 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
2383 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
2384 New constants.
2385 (alpha_heuristic_analyze_probing_loop): New function.
2386 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
2387 and handle cases when a stack probe loop is generated.
2388 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
2389 (alpha_mdebug_max_frame_size_exceeded): New function.
2390 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
2391 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
2392 Return 0 when the maximum debuggable frame size has been exceeded.
2393
2394 2010-04-23 Joel Brobecker <brobecker@adacore.com>
2395
2396 Fix ARI warning.
2397 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
2398
2399 2010-04-20 Chris Moller <cmoller@redhat.com>
2400
2401 PR 10179
2402
2403 * symtab.c (rbreak_command): Added code to include a filename
2404 specification in the rbreak argument.
2405 * NEWS: Added a brief description of filename-qualified rbreak.
2406
2407 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2408
2409 Fix crashes on dangling display expressions.
2410 * ada-lang.c (ada_operator_check): New function.
2411 (ada_exp_descriptor): Fill-in the field operator_check.
2412 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
2413 * jv-lang.c (exp_descriptor_java): Likewise.
2414 * m2-lang.c (exp_descriptor_modula2): Likewise.
2415 * scm-lang.c (exp_descriptor_scm): Likewise.
2416 * parse.c (exp_descriptor_standard): Likewise.
2417 (operator_check_standard): New function.
2418 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
2419 * parser-defs.h (struct exp_descriptor): New field operator_check.
2420 (operator_check_standard, exp_uses_objfile): New declarations.
2421 * printcmd.c: Remove the inclusion of solib.h.
2422 (display_uses_solib_p): Remove the function.
2423 (clear_dangling_display_expressions): Call lookup_objfile_from_block
2424 and exp_uses_objfile instead of display_uses_solib_p.
2425 * solist.h (struct so_list) <objfile>: New comment.
2426 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
2427 * symtab.h (lookup_objfile_from_block): New declaration.
2428 (struct general_symbol_info) <obj_section>: Extend the comment.
2429
2430 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2431 Thiago Jung Bauermann <bauerman@br.ibm.com>
2432
2433 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
2434 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
2435 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
2436 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
2437 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
2438 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
2439 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
2440 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
2441 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
2442 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
2443 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
2444 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
2445 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
2446 Define, in case <ptrace.h> doesn't provide it.
2447 (booke_debug_info): New variable.
2448 (max_slots_number): Ditto.
2449 (hw_break_tuple): New struct.
2450 (thread_points): Ditto.
2451 (ppc_threads): New variable.
2452 (PPC_DEBUG_CURRENT_VERSION): New define.
2453 (have_ptrace_new_debug_booke): New function.
2454 (ppc_linux_check_watch_resources): Renamed to ...
2455 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
2456 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
2457 (booke_cmp_hw_point): New function.
2458 (booke_find_thread_points_by_tid): Ditto.
2459 (booke_insert_point): Ditto.
2460 (booke_remove_point): Ditto.
2461 (ppc_linux_insert_hw_breakpoint): Ditto.
2462 (ppc_linux_remove_hw_breakpoint): Ditto.
2463 (get_trigger_type): Ditto.
2464 (ppc_linux_insert_watchpoint): Handle BookE processors.
2465 (ppc_linux_remove_watchpoint): Ditto.
2466 (ppc_linux_new_thread): Ditto.
2467 (ppc_linux_thread_exit): New function..
2468 (ppc_linux_stopped_data_address): Handle BookE processors.
2469 (ppc_linux_watchpoint_addr_within_range): Ditto.
2470 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
2471 to_remove_hw_breakpoint fields of the target operations struct.
2472 Add observe for the thread_exit event.
2473
2474 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2475
2476 * i386-linux-nat.c (regmap): Removed.
2477 (fetch_register): Replace regmap with
2478 i386_linux_gregset_reg_offset.
2479 (store_register): Likewise.
2480 (supply_gregset): Likewise.
2481 (fill_gregset): Likewise.
2482
2483 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
2484 global.
2485
2486 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
2487
2488 2010-04-22 Chris Moller <cmoller@redhat.com>
2489
2490 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2491 method of popping recursion-detection stack with a method based on
2492 obstack_object_size(). (Similar to the PR9167 patch below, but for
2493 the static array obstack rather than the static member obstack.)
2494
2495 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2496
2497 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
2498 (_initialize_amd64_linux_nat): Replace
2499 amd64_linux_gregset64_reg_offset with
2500 amd64_linux_gregset_reg_offset.
2501
2502 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
2503 global.
2504
2505 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
2506
2507 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2508
2509 PR stabs/11479.
2510 * stabsread.c (set_length_in_type_chain): New function.
2511 (read_struct_type): Call set_length_in_type_chain function.
2512 (read_enum_type): Idem.
2513
2514 2010-04-21 Stan Shebs <stan@codesourcery.com>
2515 Nathan Sidwell <nathan@codesourcery.com>
2516
2517 * tracepoint.c (trace_save): Open in binary mode.
2518
2519 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2520
2521 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
2522 fields.
2523 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
2524 builtin_char32 fields.
2525 * printcmd.c (decode_format): Set char size to '\0'
2526 for strings unless explicit size is given.
2527 (print_formatted): Correct calculation of NEXT_ADDRESS
2528 for 16 or 32 bit strings.
2529 (do_examine): Do not force byte size for strings.
2530 Use builtin_char16 and builtin_char32 types to display
2531 16 or 32 bit-wide strings.
2532 (x_command): Set LAST_SIZE to 'b' for string type.
2533
2534 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
2535
2536 PR corefiles/11523
2537 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
2538 XCR0 first.
2539
2540 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
2541 there is no .reg-xstate section.
2542 (i386_linux_core_read_description): Check XCR0 first.
2543
2544 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2545
2546 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
2547 for len <= 8.
2548
2549 2010-04-21 Chris Moller <cmoller@redhat.com>
2550
2551 PR 9167
2552 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2553 method of popping recursion-detection stack with a method based on
2554 obstack_object_size().
2555
2556 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2557
2558 PR pascal/11492.
2559 * p-valprint.c (pascal_val_print): Fix default printing of integer
2560 arrays.
2561
2562 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2563
2564 Fix compilation warning on gcc-4.1.2.
2565 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
2566 local variable`pc' to zero.
2567
2568 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2569
2570 Implement thread support with core files on alpha-tru64.
2571 * dec-thread.c (dec_thread_find_new_threads): New function,
2572 extracted from resync_thread_list.
2573 (resync_thread_list): Add OPS parameter. Replace extracted-out
2574 code by call to dec_thread_find_new_threads.
2575 (dec_thread_wait): Update call to resync_thread_list.
2576 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
2577
2578 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2579
2580 * ada-lang.c (value_pointer): New function.
2581 (make_array_descriptor): Call value_pointer to convert addresses to
2582 pointers.
2583
2584 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2585
2586 * rs6000-aix-tdep.c: #include exceptions.h.
2587 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
2588 while reading the memory at ADDR, then ADDR cannot be a function
2589 descriptor.
2590
2591 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2592
2593 * ada-typeprint.c (ada_print_typedef): New function.
2594 * ada-lang.h (ada_print_typedef): Add declaration.
2595 * ada-lang.c (ada_language_defn): set la_print_typdef field
2596 to ada_print_typedef.
2597
2598 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2599
2600 * procfs.c (procfs_address_to_host_pointer): Only define when used.
2601
2602 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2603
2604 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
2605 (iterate_over_mappings): Adjust function profile. Add declaration.
2606 (insert_dbx_link_bpt_in_region, info_mappings_callback):
2607 Adjust accordingly.
2608
2609 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2610
2611 * procfs.c (solib_mappings_callback): Move function up to avoid
2612 a compiler warning.
2613
2614 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2615
2616 * procfs.c (find_signalled_thread, find_stop_signal): Move
2617 these functions down to define them only when used.
2618
2619 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2620
2621 * valprint.c (common_val_print): Fix the value before extracting
2622 its contents.
2623 * ada-lang.c (ada_to_fixed_value): Make this function extern.
2624 * ada-lang.h (ada_to_fixed_value): New function declaration.
2625 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
2626 to avoid code duplication and fix a bug in the handling of
2627 fixed types contents.
2628
2629 2010-04-20 Tom Tromey <tromey@redhat.com>
2630
2631 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
2632 (read_partial_die): Likewise.
2633 (dwarf_attr_name): Likewise.
2634
2635 2010-04-20 Chris Moller <cmoller@redhat.com>
2636
2637 PR 10867
2638
2639 * cp-valprint.c (global): Adding new static array recursion
2640 detection obstack.
2641 (cp_print_value_fields, cp_print_static_field): Added new static
2642 array recursion detection code.
2643
2644 2010-04-20 Mark Kettenis <kettenis@gnu.org>
2645
2646 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
2647 general-purpose register set should be 68 instead of 144.
2648 (i386_linux_sse_regset_sections): Likewise.
2649 (i386_linux_avx_regset_sections): Likewise.
2650
2651 2010-04-20 Stan Shebs <stan@codesourcery.com>
2652 Nathan Sidwell <nathan@codesourcery.com>
2653
2654 * dwarf2loc.c (struct axs_var_loc): New struct.
2655 (dwarf2_tracepoint_var_loc): New function.
2656 (dwarf2_tracepoint_var_access): New function.
2657 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
2658 with DW_OP_piece.
2659 (locexpr_describe_location_piece): New function.
2660 (locexpr_describe_location_1): New function.
2661 (locexpr_describe_location): Call it, update signature.
2662 (loclist_describe_location): Rewrite to loop over locations,
2663 update signature.
2664 * symtab.h (struct symbol_computed_ops): Add address to
2665 describe_location arguments, return void.
2666 * printcmd.c (address_info): Get context PC, pass to computed
2667 location description.
2668 * tracepoint.c (scope_info): Ditto.
2669 * ax-gdb.c (trace_kludge): Export.
2670
2671 2010-04-20 Tom Tromey <tromey@redhat.com>
2672
2673 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
2674 (struct dwarf2_cie) <segment_size>: New field.
2675 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
2676 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
2677 DW_FORM_exprloc.
2678 (read_attribute_value): Handle DW_FORM_flag_present,
2679 DW_FORM_sec_offset, DW_FORM_exprloc.
2680 (dump_die_shallow): Likewise.
2681 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
2682 (dwarf2_const_value): Handle DW_FORM_exprloc.
2683 (attr_form_is_block): Likewise.
2684 (struct line_header) <maximum_ops_per_instruction>: New field.
2685 (dwarf_decode_line_header): Set new field.
2686 (dwarf_decode_lines): Handle new field.
2687
2688 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2689
2690 * f-exp.y: Add new production to recognize the `logical*8' type.
2691 (LOGICAL_S8_KEYWORD): New token.
2692 * f-lang.c (enum f_primitive_types)
2693 <f_primitive_type_logical_s8>: New field.
2694 (f_language_arch_info): Handling `logical*8' type.
2695 (build_fortran_types): Building `logical*8' type.
2696 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
2697
2698 2010-04-19 Doug Evans <dje@google.com>
2699
2700 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
2701 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
2702 (pipe_close): Ditto.
2703
2704 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2705
2706 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
2707
2708 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2709
2710 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
2711 type to void function.
2712
2713 2010-04-19 Stan Shebs <stan@codesourcery.com>
2714 Vladimir Prus <vladimir@codesourcery.com>
2715
2716 * tracepoint.c (tfind_1): Add missing newline, report exit from
2717 tfind mode as such.
2718 * target.c (update_current_target): Make default
2719 to_trace_find return -1.
2720
2721 2010-04-19 Mike Frysinger <vapier@gentoo.org>
2722
2723 * objc-lang.c (find_methods): Move symname check up.
2724
2725 2010-04-19 Pedro Alves <pedro@codesourcery.com>
2726
2727 * ada-lang.c (print_recreate_exception)
2728 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
2729 not "catch unhandled".
2730
2731 2010-04-19 Pedro Alves <pedro@codesourcery.com>
2732
2733 PR breakpoints/8554.
2734
2735 Implement `save-breakpoints'.
2736
2737 * breakpoint.c (save_cmdlist): New.
2738 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
2739 to save_cmdlist.
2740 (print_recreate_catch_fork): New.
2741 (catch_fork_breakpoint_ops): Install it.
2742 (print_recreate_catch_vfork): New.
2743 (catch_vfork_breakpoint_ops): Install it.
2744 (print_recreate_catch_syscall): New.
2745 (catch_syscall_breakpoint_ops): Install it.
2746 (print_recreate_catch_exec): New.
2747 (catch_exec_breakpoint_ops): Install it.
2748 (print_recreate_exception_catchpoint): New.
2749 (gnu_v3_exception_catchpoint_ops): Install it.
2750 (save_breakpoints): New, based on tracepoint_save_command, but
2751 handle all breakpoint types.
2752 (save_breakpoints_command): New.
2753 (tracepoint_save_command): Rename to...
2754 (save_tracepoints_command): ... this, and reimplement using
2755 save_breakpoints.
2756 (save_command): New.
2757 (_initialize_breakpoints): Install the "save" command prefix.
2758 Install the "save breakpoints" command. Make "save-tracepoints" a
2759 deprecated alias for "save tracepoints".
2760 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
2761 * ada-lang.c (print_recreate_exception): New.
2762 (print_recreate_catch_exception): New.
2763 (catch_exception_breakpoint_ops): Install it.
2764 (print_recreate_catch_exception_unhandled): New.
2765 (catch_exception_unhandled_breakpoint_ops): Install it.
2766 (print_recreate_catch_assert): New.
2767 (catch_assert_breakpoint_ops): Install it.
2768
2769 * NEWS: Mention the new `save breakpoints' command. Mention the
2770 new `save tracepoints' alias and that `save-tracepoints' is now
2771 deprecated.
2772
2773 2010-04-18 Pedro Alves <pedro@codesourcery.com>
2774
2775 PR tui/9217
2776
2777 * tui/tui-out.c: Include cli-out.h.
2778 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2779 (tui_begin, tui_end, tui_field_int, tui_field_skip)
2780 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
2781 (tui_message, tui_wrap_hint, tui_flush): Delete forward
2782 declarations.
2783 (struct ui_out_data): Rename to...
2784 (struct tui_ui_out_data): ... this. Remove `stream' and
2785 `suppress_output' fields, and inherit cli_ui_out_data.
2786 (tui_out_data): New typedef.
2787 (tui_ui_out_impl): Don't initialize fields staticaly.
2788 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2789 (tui_begin, tui_end): Delete.
2790 (tui_field_int): Adjust to delegate most work to the base type.
2791 (tui_field_skip): Delete.
2792 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
2793 delegate most work to the base type.
2794 (tui_spaces): Delete.
2795 (tui_text): Adjust to delegate most work to the base type.
2796 (tui_message): Delete.
2797 (tui_wrap_hint): Delete.
2798 (tui_flush): Delete.
2799 (out_field_fmt): Delete.
2800 (field_separator): Delete.
2801 (tui_out_new): Adjust to initialize the base type.
2802 (_initialize_tui_out): Initialize tui_ui_out_impl.
2803 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
2804 cli_ui_out_data.
2805 (cli_out_data): Adjust.
2806 (cli_ui_out_impl): Make extern.
2807 (cli_table_header, cli_field_int, cli_field_skip): Use
2808 uo_field_string instead of cli_field_string.
2809 (cli_redirect): Adjust to use cli_out_data.
2810 (cli_out_data_ctor): New.
2811 (cli_out_new): Use it.
2812 * cli-out.h (struct ui_file): Remove forward declaration.
2813 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
2814 (cli_ui_out_impl): Declare.
2815 (cli_out_data_ctor): Declare.
2816 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
2817 (uo_field_string): No longer static.
2818 (ui_out_data): Change return type to void pointer.
2819 (ui_out_new): Change `data' parameter type to void pointer.
2820 * ui-out.h (struct ui_out_data): Don't forward declare.
2821 (ui_out_data): Change return type to void pointer.
2822 (ui_out_new): Change `data' parameter type to void pointer.
2823 (uo_field_string): Declare.
2824
2825 2010-04-17 Pedro Alves <pedro@codesourcery.com>
2826
2827 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
2828 instead of always false.
2829
2830 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
2831
2832 PR corefiles/11511
2833 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
2834 orig_rax.
2835
2836 2010-04-17 Pedro Alves <pedro@codesourcery.com>
2837
2838 * breakpoint.c (watchpoints_triggered): Use
2839 is_hardware_watchpoint.
2840 (watchpoints_triggered): Ditto.
2841 (bpstat_check_location): Use is_watchpoint and
2842 is_hardware_watchpoint.
2843 (bpstat_check_watchpoint): Use is_watchpoint and
2844 is_hardware_watchpoint.
2845 (bpstat_stop_status): Fix comment.
2846 (user_settable_breakpoint): Use is_watchpoint.
2847 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
2848 (disable_watchpoints_before_interactive_call_start): Use
2849 is_watchpoint.
2850 (enable_watchpoints_after_interactive_call_stop): Use
2851 is_watchpoint.
2852 (clear_command): Use is_watchpoint.
2853 (do_enable_breakpoint): Use is_watchpoint.
2854
2855 2010-04-16 Mike Frysinger <vapier@gentoo.org>
2856
2857 * solib-frv.c (enable_break1_done): Delete.
2858 (enable_break2): Do not check enable_break1_done. Move the
2859 enable_break2_done setting and call to
2860 remove_solib_event_breakpoints() to the end. Return without
2861 warning when the contents of _dl_debug_addr are 0.
2862 (enable_break): Do not set enable_break1_done.
2863 (frv_clear_solib): Likewise.
2864
2865 2010-04-16 Kevin Buettner <kevinb@redhat.com>
2866
2867 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
2868 instead of an error if no PLT entry is found. Return a
2869 potentially useful result.
2870 (m32c_m16c_pointer_to_address): Add code to search for function
2871 address when no .plt entry is found.
2872
2873 2010-04-16 Stan Shebs <stan@codesourcery.com>
2874
2875 * tracepoint.c (trace_variable_command): Run a cleanup.
2876
2877 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2878
2879 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
2880
2881 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2882
2883 Support for Windows OS Thread Information Block.
2884 * NEWS: Document new feature.
2885 * remote.c (PACKET_qGetTIBAddr): New enum element.
2886 (remote_get_tib_address): New function.
2887 (init_remote_ops): Set to_get_tib_address field
2888 to remote_get_tib_address.
2889 (_initialize_remote): Add add_packet_config_cmd
2890 for PACKET_qGetTIBAddr.
2891 * target.c (update_current_target): Set default value for
2892 new to_get_tib_address field.
2893 * target.h (target_ops): New field to_get_tib_address.
2894 (target_get_tib_address): New macro.
2895 * windows-nat.c (thread_info): Add thread_local_base field.
2896 (windows_add_thread): Add tlb argument of type 'void *'.
2897 (fake_create_process): Adapt windows_add_thread call.
2898 (get_windows_debug_event): Idem.
2899 (windows_get_tib_address): New function.
2900 (init_windows_ops): Set to_get_tib_address field
2901 to remote_get_tib_address.
2902 (_initialize_windows_nat): Replace info_w32_cmdlist
2903 initialization by a call to init_w32_command_list.
2904 (info_w32_command, info_w32_cmdlist): Removed from here...
2905 to windows-tdep.c file.
2906 * windows-tdep.h (info_w32_cmdlist): Declare.
2907 (init_w32_command_list): New external function
2908 declaration.
2909 * windows-tdep.c: Add several headers.
2910 (info_w32_cmdlist): to here, made global.
2911 (thread_information_32): New struct.
2912 (thread_information_64): New struct.
2913 (TIB_NAME): New char array.
2914 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
2915 (maint_display_all_tib): New static variable.
2916 (windows_get_tlb_type): New function.
2917 (tlb_value_read, tlb_value_write): New functions.
2918 (tlb_value_funcs): New static struct.
2919 (tlb_make_value): New function.
2920 (display_one_tib): New function.
2921 (display_tib): New function.
2922 (show_maint_show_all_tib):New function.
2923 (info_w32_command): Moved from windows-nat.c.
2924 (init_w32_command_list): New function.
2925 (_initialize_windows_tdep): New function.
2926 New "maint set/show show-all-tib" command
2927 New "$_tlb" internal variable.
2928
2929 2010-04-16 Joel Brobecker <brobecker@adacore.com>
2930
2931 * tui/tui-regs.c (tui_display_register): Add comment about
2932 a couple of casts.
2933 * tui/tui-stack.c (tui_show_locator_content): Ditto.
2934
2935 2010-04-15 Stan Shebs <stan@codesourcery.com>
2936
2937 * frame.c: Include tracepoint.h.
2938 (get_current_frame): Allow a trace frame to be an alternate source
2939 of stack frame data.
2940 * tracepoint.c (tfind_1): Don't try to get current stack frame if
2941 it won't succeed.
2942
2943 2010-04-15 Pedro Alves <pedro@codesourcery.com>
2944
2945 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
2946 flags.
2947 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
2948
2949 2010-04-15 Doug Evans <dje@google.com>
2950
2951 * NEWS: Add entry for python program space support.
2952 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
2953 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
2954 (py-progspace.o): New rule.
2955 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
2956 function.
2957 (find_pretty_printer_from_progspace): New function.
2958 (find_pretty_printer_from_gdb): New function.
2959 (find_pretty_printer): Rewrite.
2960 * python/py-progspace.c: New file.
2961 * python/python-internal.h (program_space): Add forward decl.
2962 (pspace_to_pspace_object, pspy_get_printers): Declare.
2963 (gdbpy_initialize_pspace): Declare.
2964 * python/python.c: #include "progspace.h".
2965 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
2966 (_initialize_python): Call gdbpy_initialize_pspace.
2967 (GdbMethods): Add current_progspace, progspaces.
2968
2969 Add -s option to source command.
2970 * NEWS: Document new option.
2971 * cli/cli-cmds.c (find_and_open_script): Add function comment.
2972 Delete from_tty and cleanupp args. Split filep arg into file and
2973 full_pathp. New arg search_path.
2974 (source_script_from_stream): New function.
2975 (source_script_with_search): New function.
2976 (source_script): Rewrite.
2977 (source_command): Parse "-s" option.
2978 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
2979 * python/python.c (source_python_script): Make file arg a const char *.
2980 Don't call fclose, leave for caller.
2981 * python/python.h (source_python_script): Update.
2982
2983 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2984 Pedro Alves <pedro@codesourcery.com>
2985
2986 Avoid rereading shared libraries that haven't changed.
2987
2988 * solib.c (free_so_symbols): New function, from ...
2989 (free_so): ... here. Call it.
2990 (solib_read_symbols): Don't warn here if symbols have already been
2991 loaded.
2992 (solib_add): Warn here instead, if a pattern was specified.
2993 (reload_shared_libraries_1): New.
2994 (reload_shared_libraries): Rewrite to not fetch the library list.
2995
2996 2010-04-14 Doug Evans <dje@google.com>
2997
2998 * source.c (openp): Strip DOS drive letter if present before
2999 concatenating string to search path.
3000
3001 2010-04-14 Pedro Alves <pedro@codesourcery.com>
3002
3003 * objfiles.h (gdb_bfd_close_or_warn): Declare.
3004 * objfiles.c (gdb_bfd_close_or_warn): New.
3005 * corelow.c: Include objfiles.h
3006 (core_close): Use gdb_bfd_close_or_warn.
3007 * elfread.c (build_id_verify): Ditto.
3008 * exec.c (exec_close, exec_close_1): Ditto.
3009
3010 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3011 Pedro Alves <pedro@codesourcery.com>
3012
3013 Group errors for many missing shared libraries.
3014
3015 * solist.h (struct so_list): Remove from_tty.
3016 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
3017 (solib_map_sections): Take so_list argument. Return 0 if we
3018 failed to open a BFD. Add target sections here.
3019 (symbol_add_stub): Delete.
3020 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
3021 not from_tty copied from the so_list. Don't warn a second time
3022 for a missing library.
3023 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
3024 add to the section table here. Print out a single warning for all
3025 missing libraries.
3026 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
3027 flags.
3028
3029 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3030
3031 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
3032 error/warning messages. Capitalize and use complete sentences.
3033 (blpy_block_syms_iternext): Likewise.
3034 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
3035 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
3036 (frame_info_to_frame_object, frapy_read_var)
3037 (gdbpy_frame_stop_reason_string): Likewise.
3038 * python/py-lazy-string.c (stpy_convert_to_value)
3039 (gdbpy_create_lazy_string_object): Likewise.
3040 * python/py-objfile.c (objfpy_set_printers): Likewise.
3041 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
3042 * python/python.c (parameter_to_python): Likewise.
3043 * python/py-type.c (typy_range, typy_target): Likewise.
3044 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
3045 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
3046
3047
3048 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3049
3050 PR python/11381
3051
3052 * python/py-prettyprint.c (pretty_print_one_value): Test for
3053 Py_None.
3054 (print_string_repr): Test for Py_None. Set flags accordingly.
3055 Return value depending on return type.
3056 (print_children): Take a value indicating whether data was printed
3057 before this function was called. Alter output accordingly.
3058 (apply_val_pretty_printer): Capture return value from
3059 print_string_repr and pass to print_children.
3060
3061 2010-04-13 Mark Kettenis <kettenis@gnu.org>
3062
3063 PR corefiles/11481
3064 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
3065 register note sections.
3066 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3067 New variables.
3068 (i386_linux_init_abi): Install list of supported register note
3069 sections that matches the target description.
3070
3071 2010-04-13 Pedro Alves <pedro@codesourcery.com>
3072
3073 * remote.c (remote_get_noisy_reply): Don't error out on empty
3074 replies.
3075 (remote_start_remote): Update and merge tracepoints and trace
3076 state variables as long as the target supports tracepoints.
3077 (remote_trace_init): Fix prototype.
3078 (remote_download_trace_state_variable): Validate reply.
3079 (remote_trace_set_readonly_regions): Fix prototype.
3080 (remote_trace_start): Fix prototype. Check for empty reply.
3081 (remote_get_trace_status): Small cleanup.
3082 (remote_trace_stop): Fix prototype. Check for empty reply.
3083 (remote_trace_find): Check for empty reply.
3084 (remote_save_trace_data): Validate reply.
3085 (remote_set_disconnected_tracing): Check for empty reply, and
3086 validate reply.
3087 (remote_set_circular_trace_buffer): Ditto.
3088
3089 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
3090
3091 Suppress unused value warning during compilation.
3092 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
3093 calls to void.
3094 * tui/tui-stack.c (tui_show_locator_content): Likewise.
3095
3096 2010-04-12 Stan Shebs <stan@codesourcery.com>
3097
3098 * tracepoint.c (tfile_xfer_partial): Check read result.
3099
3100 2010-04-12 Mike Frysinger <vapier@gentoo.org>
3101
3102 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
3103 * remote-sim.c (gdbsim_files_info): Likewise.
3104
3105 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3106
3107 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
3108 * arm-linux-nat.c (arm_linux_vfp_register_count): New
3109 variable.
3110 (fetch_vfp_registers): New function to fetch VFP registers.
3111 (store_vfp_registers): New function to store VFP registers.
3112 (arm_linux_fetch_inferior_registers): Add support for VFP
3113 registers.
3114 (arm_linux_store_inferior_registers): Likewise.
3115 (arm_linux_read_description): Likewise.
3116 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
3117 until we need it.
3118
3119 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
3120
3121 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
3122 tdep.
3123 (amd64_collect_xstateregset): Likewise.
3124
3125 2010-04-09 Stan Shebs <stan@codesourcery.com>
3126
3127 * tracepoint.c (trace_status_mi): Report frames created.
3128
3129 * tracepoint.c (trace_dump_command): Include default-collect
3130 expressions.
3131
3132 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
3133
3134 * symtab.c (find_function_start_sal): Never return SAL pointing
3135 before function start address, even if line info is missing.
3136
3137 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3138
3139 * NEWS: Mention tracepoints support.
3140
3141 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3142
3143 * tracepoint.c (trace_status_mi): Report disconnected tracing and
3144 circular trace buffer statuses.
3145
3146 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3147
3148 * config/djgpp/fnchange.lst: Fix typo in translations for
3149 symbol-without-target_section.exp and symbol-without-target_section.c.
3150
3151 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3152
3153 * breakpoint.c (condition_command): Pass condition expression to
3154 set_breakpoint_condition stripped from breakpoint number.
3155
3156 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
3157 Thiago Jung Bauermann <bauerman@br.ibm.com>
3158 Tom Tromey <tromey@redhat.com>
3159
3160 * breakpoint.c (condition_command): Simplify. Move condition
3161 setting code to ...
3162 (set_breakpoint_condition): ... here. New function.
3163 * breakpoint.h (set_breakpoint_condition): Declare.
3164 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
3165 (SUBDIR_PYTHON_SRCS): Likewise.
3166 (py-breakpoint.o): New rule.
3167 * python/py-breakpoint.c: New file.
3168 * python/python-internal.h (gdbpy_breakpoints)
3169 (gdbpy_initialize_breakpoints): Declare.
3170 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
3171
3172 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3173
3174 * regformats/regdat.sh: Include server.h. Don't include
3175 regcache.h.
3176
3177 2010-04-08 Stan Shebs <stan@codesourcery.com>
3178 Pedro Alves <pedro@codesourcery.com>
3179
3180 * tracepoint.h (struct trace_status): New fields disconnected_tracing
3181 and circular_buffer.
3182 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
3183 * tracepoint.c (trace_status_command): Display target's status for
3184 disconnected tracing and circular buffer.
3185 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
3186 query for non-disconnected-tracing case, remove the stop_tracing
3187 call.
3188 (tfile_open): Clear disconnected and circular buffer status.
3189 (trace_save): Save disconnected and circular buffer status.
3190 (parse_trace_status): Parse disconnected and circular buffer status,
3191 also recognize disconnected as a stop reason.
3192 * remote.c (remote_set_disconnected_tracing): Only set
3193 QTDisconnected if the remote end supports disconnected tracing.
3194 Warn otherwise, if trying to enable disconnected tracing.
3195 * infcmd.c (detach_command): Update disconnect_tracing call.
3196 * cli/cli-cmds.c (quit_command): Ditto.
3197
3198 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3199
3200 * i387-tdep.c (i387_collect_xsave): Replace abort with
3201 internal_error.
3202
3203 2010-04-08 Stan Shebs <stan@codesourcery.com>
3204
3205 * breakpoint.c (default_collect_info): New function.
3206 (breakpoints_info): Call it.
3207 (maintenance_info_breakpoints): Ditto.
3208 (tracepoints_info): Ditto.
3209
3210 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3211
3212 * i387-tdep.c (i387_collect_xsave): Re-indent.
3213
3214 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3215
3216 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
3217 if HAVE_PTRACE_GETFPXREGS is defined.
3218 (i386_linux_read_description): Set have_ptrace_getfpxregs and
3219 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
3220
3221 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
3222 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
3223 if .reg-xfp section doesn't exist.
3224 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
3225
3226 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
3227
3228 * i386-tdep.c: Include "features/i386/i386-mmx.c".
3229 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
3230 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
3231 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
3232 (i386_gdbarch_init): Update comments.
3233 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
3234
3235 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
3236
3237 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
3238
3239 * features/Makefile (i386/i386-mmx-expedite): New.
3240 (i386/i386-mmx-linux-expedite): Likewise.
3241 ($(outdir)/i386/i386-mmx.dat): Likewise.
3242 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
3243
3244 * features/i386/i386-mmx-linux.c: New.
3245 * features/i386/i386-mmx-linux.xml: Likewise.
3246 * features/i386/i386-mmx.c: Likewise.
3247 * features/i386/i386-mmx.xml: Likewise.
3248 * regformats/i386/i386-mmx-linux.dat: Likewise.
3249 * regformats/i386/i386-mmx.dat: Likewise.
3250
3251 * features/Makefile (WHICH): Add i386/i386-mmx and
3252 i386/i386-mmx-linux.
3253
3254 2010-04-08 Doug Evans <dje@google.com>
3255
3256 * source.c (openp): Skip $cdir in PATH.
3257
3258 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
3259
3260 PR python/11417
3261 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3262 a NULL address.
3263 (gdbpy_create_lazy_string_object): Allow strings with a NULL
3264 address and a zero length.
3265
3266 2010-04-08 Hui Zhu <teawater@gmail.com>
3267
3268 * i386-tdep.c (i386_process_record): Add support for insn
3269 rdtsc.
3270
3271 2010-04-07 Doug Evans <dje@google.com>
3272
3273 * python/python.c (source_python_script): Use ensure_python_env
3274 to prepare environment for script.
3275
3276 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3277
3278 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
3279 <sys/uio.h> and "i386-xstate.h".
3280 (PTRACE_GETREGSET): New.
3281 (PTRACE_SETREGSET): Likewise.
3282 (have_ptrace_getregset): Likewise.
3283 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
3284 registers.
3285 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
3286 registers.
3287 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
3288 (amd64_linux_store_inferior_registers): Likewise.
3289 (amd64_linux_read_description): Check and enable AVX target
3290 descriptions.
3291
3292 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
3293 and "features/i386/amd64-avx-linux.c".
3294 (amd64_linux_regset_sections): New.
3295 (amd64_linux_core_read_description): Check and enable AVX
3296 target description.
3297 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
3298 set_gdbarch_core_regset_sections.
3299 (_initialize_amd64_linux_tdep): Call
3300 initialize_tdesc_amd64_avx_linux.
3301
3302 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
3303 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
3304 (tdesc_amd64_avx_linux): New.
3305 (amd64_linux_update_xstateregset): Likewise.
3306
3307 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
3308 (amd64_ymm_names): New.
3309 (amd64_ymmh_names): Likewise.
3310 (amd64_register_name): Likewise.
3311 (amd64_supply_xstateregset): Likewise.
3312 (amd64_collect_xstateregset): Likewise.
3313 (amd64_supply_xsave): Likewise.
3314 (amd64_collect_xsave): Likewise.
3315 (AMD64_NUM_REGS): Removed.
3316 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
3317 %xmmN if AVX is available.
3318 (amd64_pseudo_register_name): Support pseudo YMM registers.
3319 (amd64_regset_from_core_section): Support .reg-xstate section.
3320 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
3321 and ymm0h_regnum. Call set_gdbarch_register_name.
3322 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
3323
3324 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
3325 AMD64_YMM15H_REGNUM.
3326 (AMD64_NUM_REGS): New.
3327 (amd64_supply_xsave): Likewise.
3328 (amd64_collect_xsave): Likewise.
3329 (amd64_register_name): Removed.
3330 (amd64_register_type): Likewise.
3331
3332 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3333
3334 * i387-tdep.c: Include "i386-xstate.h".
3335 (XSAVE_XSTATE_BV_ADDR): New.
3336 (xsave_avxh_offset): Likewise.
3337 (XSAVE_AVXH_ADDR): Likewise.
3338 (i387_supply_xsave): Likewise.
3339 (i387_collect_xsave): Likewise.
3340
3341 * i387-tdep.h (I387_NUM_YMM_REGS): New.
3342 (I387_YMM0H_REGNUM): Likewise.
3343 (I387_YMMENDH_REGNUM): Likewise.
3344 (i387_supply_xsave): Likewise.
3345 (i387_collect_xsave): Likewise.
3346
3347 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3348
3349 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
3350 <sys/uio.h> and "i386-xstate.h".
3351 (PTRACE_GETREGSET): New.
3352 (PTRACE_SETREGSET): Likewise.
3353 (fetch_xstateregs): Likewise.
3354 (store_xstateregs): Likewise.
3355 (GETXSTATEREGS_SUPPLIES): Likewise.
3356 (regmap): Include 8 upper YMM registers.
3357 (i386_linux_fetch_inferior_registers): Support XSAVE extended
3358 state.
3359 (i386_linux_store_inferior_registers): Likewise.
3360 (i386_linux_read_description): Check and enable AVX target
3361 descriptions.
3362
3363 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
3364 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
3365 (i386_linux_regset_sections): Add ".reg-xstate".
3366 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
3367 (i386_linux_core_read_xcr0): New.
3368 (i386_linux_core_read_description): Check and enable AVX target
3369 description.
3370 (i386_linux_init_abi): Set xsave_xcr0_offset.
3371 (_initialize_i386_linux_tdep): Call
3372 initialize_tdesc_i386_avx_linux.
3373
3374 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
3375 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
3376 (i386_linux_core_read_xcr0): New.
3377 (tdesc_i386_avx_linux): Likewise.
3378 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
3379
3380 * i386-tdep.c: Include "i386-xstate.h" and
3381 "features/i386/i386-avx.c".
3382 (i386_ymm_names): New.
3383 (i386_ymmh_names): Likewise.
3384 (i386_ymmh_regnum_p): Likewise.
3385 (i386_ymm_regnum_p): Likewise.
3386 (i386_xmm_regnum_p): Likewise.
3387 (i386_register_name): Likewise.
3388 (i386_ymm_type): Likewise.
3389 (i386_supply_xstateregset): Likewise.
3390 (i386_collect_xstateregset): Likewise.
3391 (i386_sse_regnum_p): Removed.
3392 (i386_pseudo_register_name): Support pseudo YMM registers.
3393 (i386_pseudo_register_type): Likewise.
3394 (i386_pseudo_register_read): Likewise.
3395 (i386_pseudo_register_write): Likewise.
3396 (i386_dbx_reg_to_regnum): Return %ymmN register number for
3397 %xmmN if AVX is available.
3398 (i386_regset_from_core_section): Support .reg-xstate section.
3399 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
3400 (i386_process_record): Replace i386_sse_regnum_p with
3401 i386_xmm_regnum_p.
3402 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
3403 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
3404 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
3405 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
3406 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
3407 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
3408 Set ymm0_regnum.
3409 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
3410
3411 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
3412 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
3413 i386_ymm_type.
3414 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
3415 (I386_AVX_NUM_REGS): New.
3416 (i386_xmm_regnum_p): Likewise.
3417 (i386_ymm_regnum_p): Likewise.
3418 (i386_ymmh_regnum_p): Likewise.
3419
3420 * common/i386-xstate.h: New.
3421
3422 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3423
3424 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
3425
3426 * features/Makefile (WHICH): Add i386/i386-avx,
3427 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
3428 (i386/i386-avx-expedite): New.
3429 (i386/i386-avx-linux-expedite): Likewise.
3430 (i386/x86-64-avx-expedite):Likewise.
3431 (i386/x86-64-avx-linux-expedite): Likewise.
3432 ($(outdir)/i386/i386-avx.dat): New dependency.
3433 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
3434 ($(outdir)/i386/x86-avx-64.dat): Likewise.
3435 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
3436
3437 * features/i386/32bit-avx.xml: New.
3438 * features/i386/64bit-avx.xml: Likewise.
3439 * features/i386/i386-avx-linux.c: Likewise.
3440 * features/i386/i386-avx-linux.xml: Likewise.
3441 * features/i386/i386-avx.c: Likewise.
3442 * features/i386/i386-avx.xml: Likewise.
3443 * features/i386/x86-64-avx-linux.c: Likewise.
3444 * features/i386/x86-64-avx-linux.xml: Likewise.
3445 * features/i386/x86-64-avx.c: Likewise.
3446 * features/i386/x86-64-avx.xml: Likewise.
3447 * regformats/i386/i386-avx-linux.dat: Likewise.
3448 * regformats/i386/i386-avx.dat: Likewise.
3449 * regformats/i386/x86-64-avx-linux.dat: Likewise.
3450 * regformats/i386/x86-64-avx.dat: Likewise.
3451
3452 2010-04-07 Doug Evans <dje@google.com>
3453
3454 * top.c (source_file_name): Make const char *.
3455 * top.h (source_file_name): Update.
3456 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
3457 const char *.
3458 (script_from_file): Change `file' arg to const char *.
3459 * cli/cli-script.h (script_from_file): Update.
3460
3461 2010-04-06 Doug Evans <dje@google.com>
3462
3463 * cli/cli-cmds.c (source_command): Run cleanups.
3464
3465 2010-04-06 Stan Shebs <stan@codesourcery.com>
3466
3467 * defs.h (char_ptr): Move typedef here from...
3468 * ada-lang.c (char_ptr): Remove.
3469 * charset.c (char_ptr): Remove.
3470 * tracepoint.h (struct uploaded_string): Remove.
3471 (struct uploaded_tp): Use vectors for string arrays.
3472 * tracepoint.c (trace_save): Use vectors of actions.
3473 (parse_tracepoint_definition): Ditto.
3474 (get_uploaded_tp): Clear vectors.
3475 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
3476 (next_cmd): Change to an int.
3477 (read_next_cmd): Use vector of command strings.
3478
3479 2010-04-06 Doug Evans <dje@google.com>
3480
3481 * top.h (source_script, cd_command): Delete.
3482 * main.c: #include "cli/cli-cmds.h"
3483
3484 2010-04-06 Kevin Buettner <kevinb@redhat.com>
3485
3486 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
3487 type in bytes, not bits.
3488
3489 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3490
3491 * stabsread.c (define_symbol): Add support for char
3492 and string constants.
3493
3494 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3495
3496 Remove remaining "%ll" uses.
3497 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
3498 hex_string call.
3499 * rs6000-nat.c (rs6000_ptrace64): Idem.
3500 * solib-pa64.c (pa64_current_sos): Idem.
3501 * solib-spu.c (spu_current_sos): Idem.
3502 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
3503 plongest call.
3504 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
3505 phex (VAR, 8) call.
3506 * sh64-tdep.c (sh64_show_media_regs): Idem.
3507
3508 2010-04-05 Stan Shebs <stan@codesourcery.com>
3509
3510 * tracepoint.c: Include gdbcore.h.
3511 (tfile_xfer_partial): Return partial results, also try reading
3512 from executable.
3513 (tfile_has_all_memory): New function.
3514 (init_tfile_ops): Use it.
3515
3516 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
3517
3518 PR gdb/10736:
3519 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
3520 the changes in data-directory.
3521 (init_sysinfo): Reload the syscall XML file if the data-directory
3522 has changed.
3523
3524 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3525
3526 Code cleanup.
3527 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
3528
3529 2010-04-04 Stan Shebs <stan@codesourcery.com>
3530 Nathan Sidwell <nathan@codesourcery.com>
3531
3532 * breakpoint.c (breakpoint_1): Add filter argument, return number of
3533 breakpoints printed.
3534 (is_hardware_watchpoint): Make argument const.
3535 (is_watchpoint): Ditto.
3536 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
3537 use it everywhere.
3538 (breakpoints_info): Pass NULL to breakpoint_1.
3539 (maintenance_info_breakpoints): Ditto.
3540 (watchpoints_info): New function.
3541 (tracepoints_info): Use breakpoint_1 filter.
3542 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
3543 (_initialize_breakpoint): Make "info watchpoints" its own command.
3544 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
3545 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
3546
3547 2010-04-04 Stan Shebs <stan@codesourcery.com>
3548
3549 * tracepoint.c (tfile_fetch_registers): Add fallback case.
3550
3551 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3552
3553 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
3554 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
3555
3556 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3557
3558 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
3559 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
3560
3561 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3562
3563 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
3564 code form.
3565
3566 2010-04-02 Hui Zhu <teawater@gmail.com>
3567
3568 * i386-tdep.c (OT_DQUAD): New enum.
3569 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
3570 SSE3, SSSE3 and SSE4.
3571
3572 2010-04-02 Hui Zhu <teawater@gmail.com>
3573
3574 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
3575 "*addr = 0".
3576
3577 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3578
3579 * tracepoint.c (trace_dump_actions): New, factored out from
3580 trace_dump_command, and adjusted to recurse into while-stepping's
3581 action list.
3582 (trace_dump_command): Use it.
3583
3584 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3585
3586 * breakpoint.h (struct counted_command_line): Moved definition to
3587 breakpoint.c, and forward declare.
3588 (breakpoint_commands): Declare.
3589 * breakpoint.c (struct counted_command_line): Moved here.
3590 (breakpoint_commands): New.
3591 * tracepoint.c (encode_actions): Use breakpoint_commands.
3592 * remote.c (remote_download_tracepoint): Ditto.
3593
3594 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3595
3596 * remote.c (remote_parse_stop_reply): Use hex_string instead
3597 of phex_nz for error.
3598
3599 2010-04-01 Stan Shebs <stan@codesourcery.com>
3600 Nathan Sidwell <nathan@codesourcery.com>
3601
3602 * tracepoint.h (enum actionline_type): Remove.
3603 (validate_actionline): Change return to void.
3604 * tracepoint.c (report_agent_reqs_errors): New function.
3605 (validate_actionline): Call it, change return to void, report errors
3606 more consistently.
3607 (collect_symbol): Call report_agent_reqs_errors.
3608 (encode_actions_1): Ditto.
3609 (encode_actions): Don't expect a result from validate_actionline.
3610
3611 2010-04-01 Stan Shebs <stan@codesourcery.com>
3612
3613 * tracepoint.c (trace_start_command): Confirm if trace is running.
3614 (trace_stop_command): Error if trace not running.
3615
3616 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3617
3618 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
3619 (AMD64_NUM_LOWER_BYTE_REGS): New.
3620 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
3621 (amd64_pseudo_register_write): Likewise.
3622 (amd64_init_abi): Set num_byte_regs to 20.
3623
3624 2010-04-01 Pedro Alves <pedro@codesourcery.com>
3625
3626 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
3627 (prev_breakpoint_count): New.
3628 (set_breakpoint_count): Adjust.
3629 (rbreak_start_breakpoint_count): New.
3630 (start_rbreak_breakpoints): Adjust.
3631 (end_rbreak_breakpoints): Adjust.
3632 (struct commands_info) <arg>: New field.
3633 (do_map_commands_command): Tweak output to include breakpoint spec
3634 range.
3635 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
3636 ARG was empty on entry. Set INFO's arg.
3637 (create_breakpoint): Adjust.
3638
3639 * NEWS: Clarify `commands' changes.
3640
3641 2010-04-01 Pedro Alves <pedro@codesourcery.com>
3642
3643 * tracepoint.c: Include stack.h.
3644 (struct add_local_symbols_data): New.
3645 (do_collect_symbol): New.
3646 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
3647 iterate_over_block_local_vars.
3648 * stack.c (print_block_frame_locals): Rewrite as ...
3649 (iterate_over_block_locals): ... this. Take a callback function
3650 pointer and generic data pointer, and call that instead of
3651 print_variable_and_value.
3652 (struct print_variable_and_value_data): New.
3653 (do_print_variable_and_value): New.
3654 (iterate_over_block_local_vars): New, abstracted out from
3655 print_frame_local_vars.
3656 (print_frame_local_vars): Rewrite using
3657 iterate_over_block_local_vars.
3658 (iterate_over_block_arg_vars): New, abstracted out from
3659 print_frame_arg_vars.
3660 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
3661 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
3662 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
3663
3664 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
3665
3666 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
3667 instructions. Use the PC+4 if the base of the TBB or TBH is the
3668 PC register.
3669
3670 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3671
3672 Fix crash on reading wrong function declaration DWARF.
3673 * dwarf2read.c (read_subroutine_type): New variable void_type.
3674 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
3675 more close to their use.
3676
3677 2010-03-31 Stan Shebs <stan@codesourcery.com>
3678
3679 * breakpoint.c (tracepoint_save_command): Include variables,
3680 conditionals, tracepoint types, and default-collect.
3681 * tracepoint.c (save_trace_state_variables): New function.
3682 * tracepoint.h (save_trace_state_variables): Declare it.
3683
3684 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
3685
3686 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
3687
3688 2010-03-30 Keith Seitz <keiths@redhat.com>
3689
3690 * c-typeprint.c (c_type_print_args): Don't print "void"
3691 for java, regardless of whether it is TYPE_PROTOTYPED.
3692 Use the passed-in language instead of current_language.
3693 (c_type_print_varspec_suffix): Use current_language instead
3694 of assuming language_c.
3695 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
3696 any return type specifier from the physname.
3697
3698 2010-03-30 Pedro Alves <pedro@codesourcery.com>
3699
3700 * tui/tui-interp.c (tui_is_toplevel): New.
3701 (tui_init): Set it.
3702 (tui_allowed_p): New.
3703 * tui/tui.c (tui_enable): Check if the TUI is allowed before
3704 enabling it.
3705 * tui/tui.h (tui_allowed_p): Declare.
3706
3707 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
3708
3709 * serial.h: Include winsock2.h before windows.h.
3710
3711 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
3712
3713 * NEWS: Mention xmlRegisters= in qSupported packet.
3714
3715 * i386-tdep.c: Include "remote.h".
3716 (_initialize_i386_tdep): Call register_remote_support_xml.
3717
3718 * remote.c (remote_support_xml): New.
3719 (register_remote_support_xml): Likewise.
3720 (remote_query_supported_append): Likewise.
3721 (remote_query_supported): Support remote_support_xml.
3722
3723 * remote.h (register_remote_support_xml): New.
3724
3725 2010-03-29 Stan Shebs <stan@codesourcery.com>
3726
3727 * tracepoint.c (trace_find_line_command): Remove dead code.
3728
3729 * tracepoint.h (struct uploaded_string): New struct.
3730 (struct uploaded_tp): New fields for source strings.
3731 * breakpoint.c (this_utp, next_cmd): New globals.
3732 (read_uploaded_action): New function.
3733 (create_tracepoint_from_upload): Fill in more parts
3734 of a tracepoint.
3735 * tracepoint.c (encode_source_string): New function.
3736 (trace_save): Write out source strings, fix error checks.
3737 (parse_tracepoint_definition): Add source string parsing.
3738 * remote.c (PACKET_TracepointSource): New packet type.
3739 (remote_download_command_source): New function.
3740 (remote_download_tracepoint): Download source pieces also.
3741 (_initialize_remote): Add packet config command.
3742
3743 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
3744 expression handler.
3745
3746 * tracepoint.c (start_tracing): Check tracepoints before sending
3747 commands to target, don't start if all tracepoints disabled.
3748
3749 2010-03-28 Pedro Alves <pedro@codesourcery.com>
3750
3751 * cli/cli-script.c (process_next_line): Handle 'stepping'.
3752
3753 2010-03-26 Stan Shebs <stan@codesourcery.com>
3754
3755 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
3756
3757 2010-03-26 Tom Tromey <tromey@redhat.com>
3758
3759 * breakpoint.c (commands_command_1): Duplicate 'arg'.
3760
3761 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3762
3763 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
3764 (skip_prologue_sal): Remove local definition.
3765 (resolve_sal_pc): Remove now unnecessary code.
3766 * linespec.c (minsym_found): Call skip_prologue_sal.
3767 * symtab.c (find_function_start_pc): Remove.
3768 (find_function_start_sal): Extract prologue skipping into ...
3769 (skip_prologue_sal): ... this new function. Handle code both
3770 with and without debug info. Respect SAL's explicit_pc and
3771 explicit_line flags. Inline old find_function_start_pc.
3772 * symtab.h (find_function_start_pc): Remove.
3773 (skip_prologue_sal): Add prototype.
3774
3775 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3776
3777 * dwarf2read.c (read_func_scope): Also scan specification DIEs
3778 for DW_TAG_imported_module children.
3779
3780 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3781
3782 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
3783 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
3784 * completer.c (add_struct_fields): Fix inverted logic.
3785
3786 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3787
3788 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
3789
3790 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3791
3792 * tracepoint.c (current_trace_status): Don't make sure error_desc
3793 is non-NULL here.
3794 (parse_trace_status): Release a previous error_desc string, and
3795 set it to NULL by default. If stop reason is tracepoint_error,
3796 make sure error_desc is not left NULL.
3797
3798 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3799
3800 * tracepoint.c (trace_save): Remove X from tracepoint error
3801 description.
3802
3803 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3804
3805 * tracepoint.c (parse_trace_status): Don't allow plain strings in
3806 the terror description. Don't expect an X prefix.
3807
3808 2010-03-25 Stan Shebs <stan@codesourcery.com>
3809
3810 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
3811 (struct trace_status): New field error_desc.
3812 * tracepoint.c (stop_reason_names): Add terror.
3813 (current_trace_status): Ensure non-NULL error description.
3814 (trace_status_command): Add error report.
3815 (trace_status_mi): Ditto.
3816 (trace_save): Add special case for error description.
3817 (parse_trace_status): Add case for errors.
3818
3819 2010-03-25 Keith Seitz <keiths@redhat.com>
3820
3821 * dwarf2read.c (read_subroutine_type): If the compilation unit
3822 language is Java, mark any formal parameter named "this" as
3823 artificial (GCC/43521).
3824 (dwarf2_name): Add special handling for Java constructors.
3825
3826 2010-03-25 Tom Tromey <tromey@redhat.com>
3827
3828 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
3829 * infrun.c (handle_inferior_event): Change initialization of
3830 stop_stack_dummy.
3831 (handle_inferior_event): Change assignment to stop_stack_dummy.
3832 (normal_stop): Update use of stop_stack_dummy.
3833 (struct inferior_status) <stop_stack_dummy>: Change type.
3834 * inferior.h (stop_stack_dummy): Update.
3835 * infcmd.c (stop_stack_dummy): Change type.
3836 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
3837 function.
3838 (call_function_by_hand): Call set_std_terminate_breakpoint.
3839 Rewrite std::terminate handling.
3840 * breakpoint.h (enum bptype) <bp_std_terminate,
3841 bp_std_terminate_master>: New.
3842 (enum stop_stack_kind): New.
3843 (struct bpstat_what) <call_dummy>: Change type.
3844 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
3845 Declare.
3846 * breakpoint.c (create_std_terminate_master_breakpoint): New
3847 function.
3848 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
3849 Call create_std_terminate_master_breakpoint.
3850 (print_it_typical): Handle new breakpoint kinds.
3851 (bpstat_stop_status): Handle bp_std_terminate_master.
3852 (bpstat_what): Correctly set call_dummy field. Handle
3853 bp_std_terminate_master and bp_std_terminate.
3854 (print_one_breakpoint_location): Update.
3855 (allocate_bp_location): Update.
3856 (set_std_terminate_breakpoint): New function.
3857 (delete_std_terminate_breakpoint): Likewise.
3858 (create_thread_event_breakpoint): Update.
3859 (delete_command): Update.
3860 (breakpoint_re_set_one): Update.
3861 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
3862
3863 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3864
3865 * symfile.c (build_section_addr_info_from_bfd): New.
3866 (build_section_addr_info_from_objfile): Base it on
3867 build_section_addr_info_from_bfd.
3868 (addrs_section_compar, addrs_section_sort): New.
3869 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
3870 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
3871 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
3872
3873 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
3874
3875 * elfread.c (find_separate_debug_file_by_buildid):
3876 Remove unused local variable.
3877
3878 2010-03-24 Tom Tromey <tromey@redhat.com>
3879
3880 PR breakpoints/9352:
3881 * NEWS: Mention changes to `commands' and `rbreak'.
3882 * symtab.c (do_end_rbreak_breakpoints): New function.
3883 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
3884 end_rbreak_breakpoints.
3885 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
3886 (set_breakpoint_count): Likewise. Clear last_was_multi.
3887 (multi_start, multi_end, last_was_multi): New globals.
3888 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
3889 functions.
3890 (struct commands_info): New
3891 (do_map_commands_command): New function.
3892 (commands_command_1): New function.
3893 (commands_command): Use it.
3894 (commands_from_control_command): Likewise.
3895 (do_delete_breakpoint): New function.
3896 (delete_command): Use it.
3897 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
3898 (do_map_disable_breakpoint): New function.
3899 (disable_command): Use it.
3900 (do_map_enable_breakpoint): New function.
3901 (enable_command): Use it.
3902 (enable_once_breakpoint): Add argument.
3903 (enable_once_command): Update.
3904 (enable_delete_breakpoint): Add argument.
3905 (enable_delete_command): Update.
3906 (break_command_really): Set last_was_multi when needed.
3907 (check_tracepoint_command): Fix formatting.
3908 (validate_commands_for_breakpoint): New function.
3909 (breakpoint_set_commands): Use it.
3910 (tracepoint_save_command): Update.
3911 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
3912 Declare.
3913
3914 2010-03-24 Tom Tromey <tromey@redhat.com>
3915
3916 * breakpoint.h (struct counted_command_line): New struct.
3917 (struct breakpoint) <commands>: Change type.
3918 (struct bpstats) <commands>: Change type.
3919 <commands_left>: New field.
3920 * breakpoint.c (alloc_counted_command_line): New function.
3921 (incref_counted_command_line): Likewise.
3922 (decref_counted_command_line): Likewise.
3923 (do_cleanup_counted_command_line): Likewise.
3924 (make_cleanup_decref_counted_command_line): Likewise.
3925 (breakpoint_set_commands): Use decref_counted_command_line and
3926 alloc_counted_command_line.
3927 (commands_command): Don't error if breakpoint commands are
3928 executing.
3929 (commands_from_control_command): Likewise.
3930 (bpstat_free): Update.
3931 (bpstat_copy): Likewise.
3932 (bpstat_clear_actions): Likewise.
3933 (bpstat_do_actions_1): Likewise.
3934 (bpstat_stop_status): Likewise.
3935 (print_one_breakpoint_location): Likewise.
3936 (delete_breakpoint): Likewise.
3937 (bpstat_alloc): Initialize new field.
3938 (tracepoint_save_command): Update.
3939 * tracepoint.c (encode_actions): Update.
3940 (trace_dump_command): Update.
3941
3942 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3943
3944 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
3945 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
3946 (read_structure_type): For RealView, set TYPE_STUB on structures with
3947 no byte size and no children.
3948 (read_subroutine_type): Mark functions as prototyped by default.
3949 * symtab.c (producer_is_realview): New function.
3950 * symtab.h (expand_line_sal): Fix declaration formatting.
3951 (producer_is_realview): Declare.
3952
3953 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3954
3955 * arm-tdep.c (skip_prologue_function): New function.
3956 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
3957 (thumb_analyze_prologue): Document return value. Recognize more
3958 Thumb instructions, skippable calls, and some Thumb-2 instructions.
3959 Add debug output.
3960 (arm_skip_prologue): Remove call dummy check. Check the prologue
3961 for non-GNU compilers.
3962 (arm_instruction_changes_pc): New function.
3963 (arm_analyze_prologue): New function, broken out from
3964 arm_scan_prologue. Recognize more ARM instructions and skippable
3965 calls. Update comments. Handle NULL cache. Return the address
3966 of the first unrecognized instruction. Do not skip past other
3967 instructions which change control flow. Add debug output.
3968 (arm_scan_prologue): Use arm_analyze_prologue.
3969 (ARM_PC_32): Delete.
3970 (shifted_reg_val): Simplify ARM_PC_32 check.
3971
3972 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3973
3974 * tracepoint.c (tvariables_info_1): Actually compute
3975 the number of rows in the result.
3976
3977 2010-03-24 Pedro Alves <pedro@codesourcery.com>
3978
3979 * remote.c (crc32): Constify `buf' parameter.
3980 (remote_verify_memory): New, abstracted out from...
3981 (compare_sections_command): ... this. Remove hardcoded target
3982 checks.
3983 (init_remote_ops): Install remote_verify_memory.
3984 * target.c (target_verify_memory): New.
3985 * target.h (struct target_ops) <to_verify_memory>: New field.
3986 (target_verify_memory): Declare.
3987
3988 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3989
3990 Implement -trace-save.
3991
3992 * mi-cmds.h (mi_cmds_trace_save): Declare.
3993 * mi-cmds.c (mi_cmds): Register -trace-save.
3994 * mi/mi-main.c (mi_cmd_trace_save): New.
3995 * remote.c (remote_save_trace_data): Take const parameter.
3996 * target.h (struct target_ops::to_save_trace_data): Take
3997 const parameter.
3998 * target.c (update_current_target): Adjust to the above.
3999 * tracepoint.c (trave_save): New, extracted from
4000 (trace_save_command): ...this.
4001 (tfile_trace_find): Remove message that is unnecessary now
4002 that 'tfind' reports found frame.
4003 * tracepoint.h (trace_save): Declare.
4004
4005 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4006
4007 Implement -trace-find.
4008
4009 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
4010 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
4011 * mi/mi-main.c (mi_cmd_trace_find): New.
4012 * target.h (struct target_ops): Document to_trace_find.
4013 * tracepoint.h (tfind_1): Declare.
4014 * tracepoint.c (finish_tfind_command): Rename to...
4015 (tfind_1): ...this.
4016 * remote.c (remote_trace_find): Return -1 if target say
4017 there's no frame. Improve error diagnostics.
4018
4019 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4020
4021 -trace-define-variable and -trace-list-variables.
4022
4023 * tracepoint.c (create_trace_state_variable): Make
4024 private copy of name, as opposed to assuming the
4025 pointer lives forever.
4026 (tvariables_info_1): New.
4027 (tvariables_info): Use the above.
4028 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
4029 Declare.
4030 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
4031 and -trace-list-variables.
4032 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
4033 (mi_cmd_trace_list_variables): New.
4034 * mi/mi-main.c (mi_cmd_trace_define_variable)
4035 (mi_cmd_trace_list_variables): New.
4036
4037 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4038
4039 Implement -break-passcount.
4040
4041 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
4042 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
4043 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
4044
4045 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4046
4047 -trace-start/-trace-end/-trace-status.
4048
4049 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
4050 and -trace-stop.
4051 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
4052 (mi_cmd_trace_stop): Declare.
4053 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
4054 (mi_cmd_trace_stop): New.
4055 * tracepoint.c (start_tracing): New, extracted from...
4056 (trace_start_command): ...this.
4057 (trace_status_mi): New.
4058 * tracepoint.h (struct trace_status): Document
4059 stopping_tracepoint.
4060 (start_tracing, stop_tracing, trace_status_mi): Declare.
4061
4062 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4063
4064 Implement creating tracepoints with -break-insert.
4065
4066 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
4067 to mean that tracepoint should be created.
4068
4069 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4070
4071 * breakpoint.c (check_no_tracepoint_commands): Use
4072 current spelling of 'teval'.
4073
4074 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4075
4076 Unify actions and commands
4077
4078 * defs.h (read_command_lines, read_command_lines_1): New
4079 parameters validator and closure.
4080 * tracepoint.h (struct action_line): Remove.
4081 * breakpoint.h (struct breakpoint): Remove the 'actions'
4082 field.
4083 * defs.h (enum command_control_type): New value
4084 while_stepping_control.
4085 (struct command_line): Add comments.
4086 * breakpoint.c (breakoint_is_tracepoint): New.
4087 (breakpoint_set_commands): For tracepoints,
4088 verify the commands are permissible.
4089 (check_tracepoint_commands): New.
4090 (commands_command): Require that each new line is validated using
4091 check_tracepoint_command, if we set commands for a tracepoint.
4092 (create_tracepoint_from_upload): Likewise.
4093 (print_one_breakpoint_location): Remove the code to print
4094 actions specifically.
4095 (tracepoint_save_command): Relay to print_command_lines.
4096 * cli/cli-script.c (process_next_line): New parameters validator
4097 and closure. Handle 'while-stepping'. Call validator if not null.
4098 (read_command_lines, read_command_lines1): Likewise.
4099 (recurse_read_control_structure): New parameters validator and
4100 closure. Handle while_stepping_control.
4101 (print_command_lines): Handle while-stepping.
4102 (get_command_line, define_command, document_command): Adjust.
4103 * remote.c (remote_download_tracepoint): Adjust.
4104 * tracepoint.c (make_cleanup_free_actions, read_actions)
4105 (free_actions, do_free_actions_cleanup): Remove.
4106 (trace_actions_command): Use read_command_lines.
4107 (validate_actionline): Use error in one place.
4108 (encode_actions_1): New, extracted from...
4109 (encode_actions): ...this. Also use cleanups for exception
4110 safety.
4111 (trace_dump_command): Adjust.
4112 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
4113 it's tracepoint.
4114
4115 2010-03-23 Mike Frysinger <vapier@gentoo.org>
4116
4117 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
4118
4119 2010-03-22 Stan Shebs <stan@codesourcery.com>
4120
4121 * value.c (value_static_field): Be lazy about the field's value.
4122
4123 2010-03-22 Reid Kleckner <reid@kleckner.net>
4124
4125 PR gdb/11094
4126 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
4127 bp_jit_event.
4128 (disable_breakpoints_in_shlibs): Likewise.
4129
4130 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
4131
4132 * dwarf2read.c (partial_die_parent_scope): Work around buggy
4133 GCC 4.1 debug info generation (GCC PR c++/28460).
4134 (determine_prefix): Likewise.
4135
4136 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
4137
4138 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
4139 get_current_arch.
4140 * tui/tui-layout.c (extract_display_start_addr): Likewise.
4141
4142 2010-03-19 Stan Shebs <stan@codesourcery.com>
4143
4144 * ax-gdb.c (gen_fetch): Handle bool.
4145 (gen_usual_unary): Ditto.
4146 (gen_cast): Ditto.
4147 (gen_equal): New function.
4148 (gen_less): New function.
4149 (gen_expr_binop_rest): Call them, also return integer type from
4150 logical operations.
4151 (gen_expr): Ditto.
4152
4153 2010-03-19 Tom Tromey <tromey@redhat.com>
4154
4155 * jv-lang.c (jv_dynamics_objfile_data_key)
4156 (jv_type_objfile_data_key): New globals.
4157 (class_symtab): Move earlier.
4158 (jv_per_objfile_free): New function.
4159 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
4160 parameter.
4161 Remove ancient #if 1.
4162 (add_class_symbol): Remove redundant declaration.
4163 (java_lookup_class): Use alloc_type, not alloc_type_arch.
4164 (java_link_class_type): Mark as static. Update.
4165 (jv_clear_object_type): New function.
4166 (set_java_object_type): Likewise.
4167 (get_java_object_type): Use set_java_object_type.
4168 (is_object_type): Likewise.
4169 (_initialize_java_language): Register new objfile keys.
4170 (get_java_class_symtab): Add 'gdbarch' parameter.
4171 (add_class_symtab_symbol): Update.
4172 (type_from_class): Update.
4173
4174 2010-03-19 Stan Shebs <stan@codesourcery.com>
4175
4176 * ax-general.c (ax_const_l): Fix a sizing bug.
4177
4178 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4179
4180 GDB 7.1 released.
4181
4182 2010-03-18 Stan Shebs <stan@codesourcery.com>
4183 Pedro Alves <pedro@codesourcery.com>
4184
4185 * target.h (struct target_ops): New method
4186 to_set_circular_trace_buffer.
4187 (target_set_circular_trace_buffer): New macro.
4188 * target.c (update_current_target): Add
4189 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
4190 default behavior.
4191 * remote.c (remote_set_circular_trace_buffer): New function.
4192 (init_remote_ops): Add it to vector.
4193 * tracepoint.h (struct trace_status): New field traceframes_created,
4194 change buffer_size and buffer_free to int.
4195 * tracepoint.c (circular_trace_buffer): New global.
4196 (start_tracing): Send values of disconnected tracing and circular
4197 trace buffer settings.
4198 (set_circular_trace_buffer): New function.
4199 (parse_trace_state): Handle total space and frames created.
4200 (trace_status_command): Display total space and total frames
4201 created.
4202 (trace_save): Write out new status values.
4203 (parse_trace_status): Set traceframe_count, traceframes_created,
4204 buffer_free and buffer_size to -1 by default.
4205 (_initialize_tracepoint): New setshow for circular-trace-buffer.
4206 * NEWS: Mention the circular trace buffer option.
4207
4208 2010-03-18 Tom Tromey <tromey@redhat.com>
4209
4210 * infcmd.c (finish_command_continuation): Wrap print_return_value
4211 in TRY_CATCH.
4212
4213 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4214
4215 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
4216 DIE has a name before creating the associated partial symbol.
4217 (read_func_scope): Emit a complaint if the subprogram does not
4218 have a name or when we can't extract the subprogram PC bounds.
4219
4220 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4221
4222 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
4223 instead of selected frame architecture.
4224
4225 2010-03-18 Pedro Alves <pedro@codesourcery.com>
4226
4227 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
4228 a valid selected thread, and that it is not running.
4229 (advance_command): Ditto.
4230 (finish_command): Ditto.
4231
4232 2010-03-17 Stan Shebs <stan@codesourcery.com>
4233
4234 * ax-gdb.c (require_rvalue): Disallow non-scalars.
4235
4236 * infcall.c: Include tracepoint.h.
4237 (call_function_by_hand): Disallow calls in tfind mode.
4238 * infcmd.c: Include tracepoint.h.
4239 (ensure_not_tfind_mode): New function.
4240 (continue_1): Call it.
4241 (step_1) Ditto.
4242 (jump_command): Ditto.
4243 (signal_command): Ditto.
4244 (advance_command): Ditto.
4245 (until_command): Ditto.
4246 (finish_command): Ditto.
4247 * tracepoint.h (disconnect_or_stop_tracing): Declare.
4248
4249 * ax-gdb.h (struct axs_value): New field optimized_out.
4250 (gen_trace_for_var): Add gdbarch argument.
4251 * ax-gdb.c (gen_trace_static_fields): New function.
4252 (gen_traced_pop): Call it, add gdbarch argument.
4253 (gen_trace_for_expr): Update call to it.
4254 (gen_trace_for_var): Ditto, and report optimized-out variables.
4255 (gen_struct_ref_recursive): Check for optimized-out value.
4256 (gen_struct_elt_for_reference): Ditto.
4257 (gen_static_field): Pass gdbarch instead of expression, assume
4258 optimization if field not found.
4259 (gen_var_ref): Set the optimized_out flag.
4260 (gen_expr): Error on optimized-out variable.
4261 * tracepoint.c (collect_symbol): Handle struct-valued vars as
4262 expressions, skip optimized-out variables with computed locations.
4263 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
4264 erroring out if location expression missing.
4265 (loclist_tracepoint_var_ref): Don't error out here.
4266
4267 2010-03-17 Tom Tromey <tromey@redhat.com>
4268
4269 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
4270 DWARF data is available.
4271
4272 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4273
4274 * symfile.c (generic_load): Reset breakpoints after loading.
4275
4276 2010-03-17 Tom Tromey <tromey@redhat.com>
4277
4278 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
4279
4280 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4281
4282 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
4283 create_breakpoint call, adjust the parameters.
4284
4285 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4286 Chandru <chandru@in.ibm.com>
4287
4288 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
4289 * valarith.c (value_subscripted_rvalue): Suppress error if
4290 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
4291
4292 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
4293
4294 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
4295
4296 2010-03-16 Joel Brobecker <brobecker@adacore.com>
4297
4298 * ada-tasks.c (task_command_1): Check that the task ptid is valid
4299 before doing the associated thread switch.
4300
4301 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
4302
4303 * MAINTAINERS: Update my email address.
4304
4305 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
4306
4307 Simplify MI breakpoint setting.
4308
4309 * breakpoint.c (break_command_really): Make nonstatic and
4310 rename to...
4311 (create_breakpoint): ...this. Rename prior function by this name
4312 to...
4313 (create_breakpoint_sal): ...this.
4314 (create_breakpoints): Rename to...
4315 (create_breakpoints_sal): ...this.
4316 (set_breakpoint): Remove.
4317 * breakpoint.h: Adjust to above changes.
4318 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
4319
4320 2010-03-15 Stan Shebs <stan@codesourcery.com>
4321
4322 * ax-gdb.c: Include cp-support.h.
4323 (find_field): Remove.
4324 (gen_primitive_field): New function.
4325 (gen_struct_ref_recursive): New function.
4326 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
4327 of find_field.
4328 (gen_static_field): New function.
4329 (gen_struct_elt_for_reference): New.
4330 (gen_namespace_elt): New.
4331 (gen_maybe_namespace_elt): New.
4332 (gen_aggregate_elt_ref): New.
4333 (gen_expr): Add OP_SCOPE, display opcode name in error message.
4334
4335 2010-03-15 Tom Tromey <tromey@redhat.com>
4336
4337 * dwarf2read.c (die_needs_namespace): Also return 0 for
4338 DW_TAG_subprogram.
4339
4340 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
4341
4342 PR c++/7936:
4343 * cp-support.h: Added char *declaration element to using_direct
4344 data struct.
4345 (cp_add_using): Added char *declaration argument.
4346 (cp_add_using_directive): Ditto.
4347 (cp_lookup_symbol_imports): made extern.
4348 * cp-namespace.c: Updated with the above changes.
4349 * dwarf2read.c (read_import_statement): Ditto.
4350 (read_namespace): Ditto.
4351 (read_import_statement): Support import declarations.
4352 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
4353 declarations.
4354 Added support for 'declaration_only' search.
4355 (cp_lookup_symbol_namespace): Attempt to search for the name as
4356 is before consideration of imports.
4357 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
4358 search at every block level search.
4359 Now takes language argument.
4360 (lookup_symbol_aux): Updated.
4361
4362 2010-03-15 Tom Tromey <tromey@redhat.com>
4363
4364 * c-exp.y (name_not_typename): Add 'operator' clause.
4365
4366 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
4367
4368 * configure.ac: Exit if ${gdb_target_obs}" is not set.
4369 * configure: Regenerate.
4370
4371 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4372
4373 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
4374 and ".sdynbss". Update the comment.
4375
4376 2010-03-15 Jie Zhang <jie@codesourcery.com>
4377
4378 * MAINTAINERS: Update my email address.
4379
4380 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4381
4382 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
4383
4384 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4385
4386 * charset.c [USE_WIN32API]: Include <windows.h>.
4387 (_initialize_charset): Correct type of w32_host_default_charset.
4388
4389 2010-03-14 Pedro Alves <pedro@codesourcery.com>
4390
4391 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
4392
4393 2010-03-12 Tom Tromey <tromey@redhat.com>
4394
4395 PR c++/9708:
4396 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
4397 in a lexical block does not need a namespace.
4398 (new_symbol) <DW_TAG_variable>: Put extern variables on
4399 list_in_scope in all cases.
4400
4401 2010-03-12 Stan Shebs <stan@codesourcery.com>
4402
4403 * ax-gdb.c (gen_expr): Add shift expressions.
4404 (gen_expr_binop_rest): Ditto.
4405
4406 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
4407
4408 * buildsym.c (finish_block): Reset using_directives pointer
4409 after block initialization.
4410
4411 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
4412
4413 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
4414 * i386-tdep.c (i386_word_names): Likewise.
4415
4416 2010-03-12 Pedro Alves <pedro@codesourcery.com>
4417
4418 * target.c (memory_xfer_partial): Don't use the stack cache if
4419 inspecting trace frames.
4420 * tracepoint.c (finish_tfind_command): Invalidate the target
4421 dcache.
4422
4423 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4424
4425 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
4426 for the PIC displacement, print also the displacement value.
4427 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
4428
4429 2010-03-10 Kevin Buettner <kevinb@redhat.com>
4430
4431 * remote-mips.c (close_ports, mips_initialize_cleanups)
4432 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
4433 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
4434 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
4435 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
4436 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
4437 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
4438 comments describing each of these functions.
4439 (mips_enter_debug, mips_exit_debug, common_open)
4440 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
4441 blank line after the comment describing the function.
4442
4443 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4444
4445 * solib-svr4.c (svr4_exec_displacement): Return now success, new
4446 parameter displacementp. Update comment.
4447 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
4448 element exists. Return if svr4_exec_displacement was not successful.
4449 Update comment.
4450
4451 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4452 Daniel Jacobowitz <dan@codesourcery.com>
4453
4454 * solib-svr4.c (read_program_header): Support type == -1 to read
4455 all program headers.
4456 (read_program_headers_from_bfd): New function.
4457 (svr4_static_exec_displacement): Remove and move the comment ...
4458 (svr4_exec_displacement): ... here. Remove variable found. New
4459 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
4460 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
4461 targets using read_program_headers_from_bfd. Remove the call of
4462 svr4_static_exec_displacement.
4463
4464 2010-03-10 Tom Tromey <tromey@redhat.com>
4465
4466 * dwarf2read.c (struct pubnames_header): Remove.
4467 (_PUBNAMES_HEADER): Remove.
4468 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
4469 (struct aranges_header): Remove.
4470 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
4471 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
4472 (PUBNAMES_SECTION): Remove.
4473 (ARANGES_SECTION): Remove.
4474 (dwarf2_locate_sections): Don't handle pubnames or aranges.
4475 (dwarf2_build_psymtabs): Remove dead code.
4476 (dwarf2_build_psymtabs_easy): Remove.
4477
4478 2010-03-10 Tom Tromey <tromey@redhat.com>
4479
4480 * elfread.c (elf_symfile_read): Don't call
4481 dwarf2_build_frame_info.
4482 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
4483 (struct dwarf2_per_objfile) <objfile>: New field.
4484 (dwarf2_has_info): Now idempotent. Set objfile field.
4485 (dwarf2_read_section): Check and set readin field. Call
4486 posix_madvise.
4487 (dwarf2_build_psymtabs): Don't read all sections.
4488 (read_type_comp_unit_head): Read types section.
4489 (create_debug_types_hash_table): Likewise.
4490 (init_cu_die_reader): Add asserts.
4491 (process_type_comp_unit): Add assert.
4492 (dwarf2_build_psymtabs_hard): Read info section.
4493 (load_partial_comp_unit): Add assert.
4494 (create_all_comp_units): Read info section.
4495 (load_full_comp_unit): Likewise.
4496 (dwarf2_ranges_read): Read ranges section.
4497 (dwarf2_record_block_ranges): Add assert.
4498 (dwarf2_read_abbrevs): Read abbrev section.
4499 (read_indirect_string): Read str section.
4500 (dwarf_decode_line_header): Read line section.
4501 (read_signatured_type_at_offset): Read types section.
4502 (dwarf_decode_macros): Read macinfo section.
4503 (dwarf2_symbol_mark_computed): Read loc section.
4504 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
4505 dwarf2_build_frame_info.
4506 (dwarf2_build_frame_info): Unconditionally set
4507 dwarf2_frame_objfile_data on the objfile.
4508 * configure.ac: Check for posix_madvise.
4509 * config.in, configure: Rebuild.
4510
4511 2010-03-10 Tom Tromey <tromey@redhat.com>
4512
4513 * xcoffread.c (xcoff_start_psymtab): Update.
4514 (xcoff_end_psymtab): Update.
4515 * psymtab.c (allocate_psymtab): Remove dead code.
4516 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
4517 void*.
4518 * mdebugread.c (parse_partial_symbols): Update.
4519 (new_psymtab): Likewise.
4520 * dwarf2read.c (process_psymtab_comp_unit): Update.
4521 (psymtab_to_symtab_1): Update.
4522 * dbxread.c (start_psymtab): Update.
4523 (end_psymtab): Likewise.
4524
4525 2010-03-10 Tom Tromey <tromey@redhat.com>
4526
4527 * xcoffread.c: Include psymtab.h.
4528 (xcoff_sym_fns): Update.
4529 * symtab.h (struct partial_symbol): Remove.
4530 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
4531 (struct partial_symtab): Remove.
4532 (PSYMTAB_TO_SYMTAB): Remove.
4533 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
4534 (find_pc_sect_psymtab): Remove.
4535 (find_pc_sect_symtab_via_partial): Declare.
4536 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
4537 (find_main_psymtab): Remove.
4538 (find_main_filename): Declare.
4539 (fixup_psymbol_section): Remove.
4540 (fixup_section): Declare.
4541 * symtab.c: Include psymtab.h.
4542 (lookup_symtab): Use lookup_symtab method.
4543 (lookup_partial_symtab): Remove.
4544 (find_pc_sect_psymtab_closer): Remove.
4545 (find_pc_sect_psymtab): Remove.
4546 (find_pc_sect_symtab_via_partial): New function.
4547 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
4548 (fixup_section): No longer static.
4549 (fixup_psymbol_section): Remove.
4550 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
4551 (lookup_global_symbol_from_objfile): Likewise.
4552 (lookup_symbol_aux_psymtabs): Remove.
4553 (lookup_symbol_aux_quick): New function.
4554 (lookup_symbol_global): Use lookup_symbol_aux_quick.
4555 (lookup_partial_symbol): Remove.
4556 (basic_lookup_transparent_type_quick): New function.
4557 (basic_lookup_transparent_type): Use it.
4558 (find_main_psymtab): Remove.
4559 (find_main_filename): New function.
4560 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
4561 (find_line_symtab): Use expand_symtabs_with_filename method.
4562 (output_partial_symbol_filename): New function.
4563 (sources_info): Use map_partial_symbol_filenames.
4564 (struct search_symbols_data): New type.
4565 (search_symbols_file_matches): New function.
4566 (search_symbols_name_matches): Likewise.
4567 (search_symbols): Use expand_symtabs_matching method.
4568 (struct add_name_data): Rename from add_macro_name_data.
4569 (add_macro_name): Update.
4570 (add_partial_symbol_name): New function.
4571 (default_make_symbol_completion_list): Use
4572 map_partial_symbol_names.
4573 (struct add_partial_symbol_name): New type.
4574 (maybe_add_partial_symtab_filename): New function.
4575 (make_source_files_completion_list): Use
4576 map_partial_symbol_filenames.
4577 (expand_line_sal): Use expand_symtabs_with_filename method.
4578 * symmisc.c: Include psymtab.h.
4579 (print_objfile_statistics): Use print_stats method.
4580 (dump_objfile): Use dump method.
4581 (dump_psymtab, maintenance_print_psymbols)
4582 (maintenance_info_psymtabs, maintenance_check_symtabs)
4583 (extend_psymbol_list): Remove.
4584 * symfile.h (struct quick_symbol_functions): New struct.
4585 (struct sym_fns) <qf>: New field.
4586 (sort_pst_symbols): Remove.
4587 (increment_reading_symtab): Declare.
4588 * symfile.c: Include psymtab.h.
4589 (compare_psymbols, sort_pst_symbols): Remove.
4590 (psymtab_to_symtab): Remove.
4591 (increment_reading_symtab): New function.
4592 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
4593 method.
4594 (set_initial_language): Use find_main_filename.
4595 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
4596 (free_named_symtabs): Remove unused code.
4597 (start_psymtab_common, add_psymbol_to_bcache)
4598 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
4599 Remove.
4600 * stack.c: Include psymtab.h, symfile.h.
4601 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
4602 * source.h (psymtab_to_fullname): Don't declare.
4603 * source.c: Include psymtab.h.
4604 (select_source_symtab): Use find_last_source_symtab method.
4605 (forget_cached_source_info): Use forget_cached_source_info
4606 method.
4607 (find_and_open_source): No longer static.
4608 (psymtab_to_fullname): Remove.
4609 * somread.c: Include psymtab.h.
4610 (som_sym_fns): Update.
4611 * psympriv.h: New file.
4612 * psymtab.h: New file.
4613 * psymtab.c: New file.
4614 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
4615 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
4616 * objfiles.c: Include psymtab.h.
4617 (objfile_relocate1): Use relocate method.
4618 (objfile_has_partial_symbols): Use has_symbols method.
4619 * mipsread.c: Include psymtab.h.
4620 (ecoff_sym_fns): Update.
4621 * mi/mi-cmd-file.c: Include psymtab.h.
4622 (print_partial_file_name): New function.
4623 (mi_cmd_file_list_exec_source_files): Use
4624 map_partial_symbol_filenames.
4625 * mdebugread.c: Include psympriv.h.
4626 * machoread.c: Include psympriv.h.
4627 (macho_sym_fns): Update.
4628 * m2-exp.y (yylex): Use lookup_symtab.
4629 * elfread.c: Include psympriv.h.
4630 (elf_sym_fns): Update.
4631 * dwarf2read.c: Include psympriv.h.
4632 * dbxread.c: Include psympriv.h.
4633 (aout_sym_fns): Update.
4634 * cp-support.c: Include psymtab.h.
4635 (read_in_psymtabs): Remove.
4636 (make_symbol_overload_list_qualified): Use
4637 expand_symtabs_for_function method.
4638 * coffread.c: Include psympriv.h.
4639 (coff_sym_fns): Update.
4640 * blockframe.c: Include psymtab.h.
4641 (find_pc_partial_function): Use find_pc_sect_symtab method.
4642 * ada-lang.h (ada_update_initial_language): Update.
4643 * ada-lang.c: Include psymtab.h.
4644 (ada_update_initial_language): Remove 'main_pst' argument.
4645 (ada_lookup_partial_symbol): Remove.
4646 (struct ada_psym_data): New type.
4647 (ada_add_psyms): New function.
4648 (ada_add_non_local_symbols): Use map_ada_symtabs method.
4649 (struct add_partial_datum): New type.
4650 (ada_add_partial_symbol_completions): New function.
4651 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
4652 (ada_exception_support_info_sniffer): Update.
4653 * Makefile.in (SFILES): Add psymtab.c.
4654 (COMMON_OBS): Add psymtab.o.
4655 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
4656
4657 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4658
4659 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
4660
4661 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
4662
4663 PR C++/11236:
4664 * cp-namespace.c (cp_add_using): Deleted.
4665 (cp_add_using_directive): Use obstack allocations.
4666 Merged the function cp_add_using into this one.
4667 Added 'struct obstack *' argument.
4668 (cp_scan_for_anonymous_namespaces): Updated.
4669 * cp-support.h: Updated.
4670 * dwarf2read.c (read_import_statement): Updated.
4671 (read_namespace): Updated.
4672
4673 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4674
4675 * windows-nat.c (cygwin_conv_path): Remove old macro.
4676
4677 2010-03-10 Pedro Alves <pedro@codesourcery.com>
4678
4679 * breakpoint.c (condition_command): Handle watchpoint conditions.
4680 (is_hardware_watchpoint): Add comment.
4681 (is_watchpoint): New.
4682 (update_watchpoint): Don't reparse the watchpoint's condition
4683 unless necessary.
4684 (WP_IGNORE): New.
4685 (watchpoint_check): Use it.
4686 (bpstat_check_watchpoint): Handle it.
4687 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
4688 conditions in a frame where it makes sense.
4689 (watch_command_1): Store the innermost block of the condition
4690 expression.
4691 (delete_breakpoint): Delete the watchpoint condition expression.
4692 * breakpoint.h (struct bp_location) <cond>: Update comment.
4693 (struct breakpoint): New field `cond_exp_valid_block'.
4694
4695 2010-03-09 Joel Brobecker <brobecker@adacore.com>
4696
4697 Adjust handling of Ada DIEs after dwarf2_physname patch.
4698 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
4699
4700 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
4701 Pierre Muller <muller@ics.u-strasbg.fr>
4702
4703 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
4704 from/to posix/win32.
4705 (windows_make_so): Use non-Cygwin 1.7 specific function.
4706 (windows_create_inferior): Make sure that cygallargs points to
4707 original args in non Cygwin 1.7. case.
4708
4709 2010-03-09 Michael Snyder <msnyder@vmware.com>
4710
4711 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
4712 after target_read_memory to get host byte order.
4713 (i386_process_record): Ditto.
4714
4715 2010-03-09 Keith Seitz <keiths@redhat.com>
4716
4717 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
4718 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
4719 print out const or volatile qualifiers, too.
4720 (c_type_print_args): Add parameters show_artificial and language.
4721 Skip artificial parameters when requested.
4722 Use the appropriate language printer.
4723 (c_type_print_varspec): Tell c_type_print_args to skip artificial
4724 parameters and pass language_c.
4725 * dwarf2read.c (die_list): New file global.
4726 (struct partial_die_info): Update comments for name field.
4727 (pdi_needs_namespace): Renamed to ...
4728 (die_needs_namespace): ... this. Rewrite.
4729 (dwarf2_linkage_name): Remove.
4730 (add_partial_symbol): Do not predicate the call to
4731 partial_die_full_name based on pdi_needs_namespace.
4732 Remove call to cp_check_possible_namespace_symbols and associated
4733 outdated comments.
4734 (guess_structure_name): Do not inspect child subprogram DIEs.
4735 (dwarf2_fullname): Update comments.
4736 Use die_needs_namespace to assist in computing the name.
4737 (read_func_scope): Use dwarf2_name to get the DIE's name.
4738 Use dwarf2_physname to get the "linkage name" of the DIE.
4739 (dwarf2_add_member_field): Use dwarf2_physname instead of
4740 dwarf2_linkage_name.
4741 (read_structure_type): For structs and classes, set TYPE_NAME, too.
4742 (determine_class): Remove.
4743 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
4744 except Ada.
4745 (new_symbol): Unconditionally call dwarf2_name.
4746 Compute the "linkage name" using dwarf2_physname.
4747 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
4748 When determining to scan for anonymous C++ namespaces, ignore
4749 the linkage name.
4750 (dwarf2_physname): New function.
4751 (dwarf2_full_name): Move content to new function and call
4752 that.
4753 (dwarf2_compute_name): "New" function.
4754 (_initialize_dwarf2_read): Initialize die_list.
4755 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
4756 physname.
4757 (gnu_v3_print_method_ptr): Use the physname for virtual methods
4758 without a demangled name.
4759 Print out type information for non-virtual methods.
4760 * linespec.c (decode_line_1): Force ANY string using "::" (or
4761 "." for java) to use decode_compound, and clean up any stray quoting.
4762 If we found a file symtab, re-evaluate whether the remainder is_quoted.
4763 (decode_compound): Stop consuming at an open parenthesis.
4764 Keep template parameters.
4765 Keep any overload information.
4766 Keep keywords like "const".
4767 Remove paren_pointer.
4768 Move is_quoted check from set_flags to here.
4769 Remove #if 0 code from 2000. Ten years is long enough.
4770 (find_method): Before comparing symbol names, canonicalize the string
4771 from the user.
4772 If a specific overload is requested, find it. Otherwise throw an error.
4773 (find_method_overload_end): New function.
4774 (set_flags): Remove.
4775 (decode_compound): Assume that parentheses are matched.
4776 It's a lot easier.
4777 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
4778 to cplus_demangle.
4779 * linespec.c (decode_line_1): Keep important keywords like
4780 "const" and "volatile".
4781 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
4782 * typeprint.h (c_type_print_args): Add declaration.
4783 * ui-file.c (do_ui_file_obsavestring): New function.
4784 (ui_file_obsavestring): New function.
4785 * ui-file.h (ui_file_obsavestring): Add declaration.
4786 * valops.c (find_overload_match): Resolve the object to
4787 a non-pointer type.
4788 If the object is a data member, search the object for the member
4789 and return with staticp set.
4790 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
4791 Do not attempt to extract a function name from non-function types.
4792 If the extracted function name and the original name are the same,
4793 we don't have a C++ method.
4794
4795 From Jan Kratochvil <jan.kratochvil@redhat.com>:
4796 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
4797
4798 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
4799 and arguments from symbol lookups.
4800 * ax-gdb.c (gen_expr): Likewise.
4801 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
4802 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
4803 lookup_possible_namespace_symbol): Likewise.
4804 * cp-support.c (read_in_psymtabs): Likewise.
4805 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
4806 * language.h (la_lookup_symbol_nonlocal): Likewise.
4807 * scm-valprint.c (scm_inferior_print): Likewise.
4808 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
4809 * solib-svr.c (elf_lookup_lib): Likewise.
4810 * solib.c (show_auto_solib_add): Likewise.
4811 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
4812 * symmisc.c (maintenance_check_symtabs): Likewise.
4813 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
4814 lookup_symbol_aux_local, lookup_symbol_aux_block,
4815 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
4816 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
4817 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
4818 basic_lookup_transparent_type, find_main_psymtab,
4819 lookup_block_symbol): Likewise.
4820 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
4821 lookup_symbol_global, lookup_symbol_aux_block,
4822 lookup_symbol_partial_symbol, lookup_block_symbol,
4823 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
4824
4825 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
4826
4827 * python/python-internal.h: Include symtab.h.
4828
4829 2010-03-09 Joel Brobecker <brobecker@adacore.com>
4830 Pierre Muller <muller@ics.u-strasbg.fr>
4831
4832 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
4833 * p-valprint.c (pascal_val_print): Remove undeed block and fix
4834 indentation.
4835
4836 2010-03-08 Tom Tromey <tromey@redhat.com>
4837
4838 * breakpoint.c (breakpoint_1): Add "QUIT".
4839
4840 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
4841 Pedro Alves <pedro@codesourcery.com>
4842
4843 * solib.c (solib_find): Replace extension if
4844 solib_symbols_extension is set in the target gdbarch.
4845 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4846 solib_symbols_extension to "sym".
4847 * gdbarch.sh (solib_symbols_extension): New variable.
4848 (pstring): New function.
4849 * gdbarch.h, gdbarch.c: Regenerate.
4850
4851 2010-03-08 Tom Tromey <tromey@redhat.com>
4852
4853 PR cli/9591:
4854 * NEWS: Update.
4855 * utils.c: Include main.h.
4856 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
4857 (defaulted_query): Use default answer if `batch_flag'.
4858 * main.h (batch_flag): Declare.
4859 * main.c (batch_flag): New global.
4860 (captured_main): Remove 'batch'. Update.
4861
4862 2010-03-08 Kevin Buettner <kevinb@redhat.com>
4863
4864 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
4865 and Kevin Buettner:
4866
4867 * remote-mips.c (rockhopper_ops): New target_ops struct.
4868 (MON_ROCKHOPPER): New mips_monitor_type.
4869 (read_hex_value): New function.
4870 (mips_request): Send 8-byte values with a 'T' packet. Read the
4871 packet argument as a string and use read_hex_value to parse it.
4872 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
4873 (rockhopper_open): New function.
4874 (mips_wait): Read the PC, FP and SP fields as strings. Use
4875 read_hex_value to parse them and mips_set_register to commit them.
4876 (mips_set_register): New function.
4877 (mips_fetch_registers): Do not cast register value to "unsigned"
4878 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
4879 (mips_store_registers): Use a 'T' packet to set registers when
4880 using MON_ROCKHOPPER.
4881 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
4882 and expect the total to be printed before the entry address.
4883 (_initialize_remote_mips): Initialize and add rockhopper_ops.
4884
4885 2010-03-08 Kevin Buettner <kevinb@redhat.com>
4886
4887 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
4888 Change return value to int. Store value fetched in location
4889 addressed by `val'. Use function's return value as success
4890 or failure indicator. Adjust all callers.
4891
4892 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
4893
4894 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
4895
4896 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4897 Hui Zhu <teawater@gmail.com>
4898
4899 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
4900 tmp_to_stopped_data_address.
4901 (record_open): Reset tmp_to_stopped_by_watchpoint and
4902 tmp_to_stopped_data_address.
4903 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
4904 to_stopped_data_address.
4905
4906 2010-03-08 Hui Zhu <teawater@gmail.com>
4907
4908 * i386-tdep.c (i386_process_record): Initialize regnum.
4909
4910 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4911
4912 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
4913 Do not warn on ".gnu.liblist" and ".gnu.conflict".
4914
4915 2010-03-08 Joel Brobecker <brobecker@adacore.com>
4916
4917 Memory error when reading wrong core file.
4918 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
4919 errors while reading the inferior memory, and return zero if
4920 an exception was raised.
4921
4922 2010-03-07 Michael Snyder <msnyder@vmware.com>
4923
4924 * record.c (record_restore): Rename tmpu8 to rectype.
4925
4926 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
4927 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
4928
4929 (i386_record_push): Rename local tmpulongest to addr.
4930
4931 (i386_process_record): Rename local tmpulongest to addr.
4932
4933 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
4934 addr64.
4935
4936 Rename local variable tmpu8 to opcode8 and regnum.
4937
4938 2010-03-07 Joel Brobecker <brobecker@adacore.com>
4939
4940 * remote.c (remote_get_ada_task_ptid): New function.
4941 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
4942
4943 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
4944
4945 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
4946 block. Define helper macros to reduce ifdefs in code.
4947 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
4948 size. Call unadorned GetModuleFileNameEx rather than
4949 GetModuleFileNameEx*.
4950 (windows_make_so): Use __PMAX to denote maximum buffer size and
4951 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
4952 appropriate.
4953 (get_image_name): Use __PMAX to denote maximum buffer size.
4954 (handle_load_dll): Likewise.
4955 (windows_pid_to_exec_file): Likewise.
4956 (windows_create_inferior): Add many accommodations for older Cygwin and
4957 non-Cygwin.
4958 (bad_GetModuleFileNameExW): Control inclusion of this function based on
4959 __USEWIDE conditional.
4960 (bad_GetModuleFileNameExA): Likewise.
4961 (_initialize_loadable): Just use real function names without the dyn_
4962 part since they are defined earlier.
4963
4964 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
4965 Tom Tromey <tromey@redhat.com>
4966
4967 * utils.c (host_char_to_target): Add 'gdbarch' argument.
4968 (parse_escape): Likewise.
4969 * python/py-utils.c (unicode_to_target_string): Update.
4970 (unicode_to_target_python_string): Update.
4971 (target_string_to_unicode): Update.
4972 * printcmd.c (printf_command): Update.
4973 * p-exp.y (yylex): Update.
4974 * objc-exp.y (yylex): Update.
4975 * mi/mi-parse.c: Include charset.h.
4976 (mi_parse_escape): New function.
4977 (mi_parse_argv): Use it.
4978 * jv-exp.y (yylex): Update.
4979 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
4980 function.
4981 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
4982 * gdbarch.sh (auto_charset, auto_wide_charset): New.
4983 * gdbarch.c: Rebuild.
4984 * gdbarch.h: Rebuild.
4985 * defs.h (parse_escape): Update.
4986 * cli/cli-setshow.c: Include arch-utils.h.
4987 (do_setshow_command): Update.
4988 * cli/cli-cmds.c (echo_command): Update.
4989 * charset.h (target_charset, target_wide_charset): Update.
4990 * charset.c: Include arch-utils.h.
4991 (target_charset_name): Default to "auto".
4992 (target_wide_charset_name): Likewise.
4993 (show_target_charset_name): Handle "auto".
4994 (show_target_wide_charset_name): Likewise.
4995 (be_le_arch): New global.
4996 (set_be_le_names): Add 'gdbarch' argument.
4997 (validate): Likewise. Don't call set_be_le_names.
4998 (set_charset_sfunc, set_host_charset_sfunc)
4999 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
5000 Update.
5001 (target_charset): Add 'gdbarch' argument.
5002 (target_wide_charset): Likewise. Remove 'byte_order' argument.
5003 (auto_target_charset_name): New global.
5004 (default_auto_charset, default_auto_wide_charset): New functions.
5005 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
5006 for target charsets. Copy result of nl_langinfo. Use GetACP if
5007 USE_WIN32API.
5008 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
5009 remove 'byte_order' argument. Update.
5010 (classify_type): Likewise.
5011 (c_emit_char): Update.
5012 (c_printchar): Update.
5013 (c_printstr): Update.
5014 (c_get_string): Update.
5015 (evaluate_subexp_c): Update.
5016 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
5017 Declare.
5018 * python/python.c (gdbpy_target_charset): New function.
5019 (gdbpy_target_wide_charset): Likewise.
5020 (GdbMethods): Update.
5021 * NEWS: Update.
5022
5023 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5024
5025 * symfile.c (build_section_addr_info_from_objfile): Do not mask
5026 off high address bits.
5027
5028 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5029
5030 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
5031 address as UnsignedLongLong, not LongLong.
5032
5033 2010-03-05 Kevin Buettner <kevinb@redhat.com>
5034 Pedro Alves <pedro@codesourcery.com>
5035
5036 * remote-mips.c (gdbthread.h): Include.
5037 (remote_mips_ptid): Declare.
5038 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
5039 (common_open): Set inferior_ptid, add it as an inferior, and
5040 as a thread too. Delete FIXME comment regarding start_remote().
5041 (mips_close): Invoke generic_mourn_inferior().
5042 (mips_kill): Make sure that target_mourn_inferior is invoked.
5043 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
5044 it's now invoked from mips_close().
5045 (mips_load): Don't null out inferior_ptid. Don't call
5046 clear_symtab_users().
5047 (mips_thread_alive, mips_pid_to_str): New functions.
5048 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
5049 to_thread_alive and to_pid_to_str operations.
5050
5051 2010-03-04 Tom Tromey <tromey@redhat.com>
5052
5053 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
5054 in DWARF 3 and later.
5055 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
5056
5057 2010-03-04 Keith Seitz <keiths@redhat.com>
5058
5059 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
5060 If the filename portion of the linespec was quoted, recheck the
5061 remainder for additional quoting.
5062 (locate_first_half): Skip over completer chars, too.
5063
5064 2010-03-04 Tom Tromey <tromey@redhat.com>
5065
5066 * printcmd.c (printf_command): Pass dummy argument to
5067 printf_filtered.
5068
5069 2010-03-04 Doug Evans <dje@google.com>
5070
5071 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
5072 unwound_fp.
5073
5074 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
5075
5076 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5077
5078 * breakpoint.c (update_watchpoint): Create a sentinel location if
5079 the software watchpoint isn't watching any memory.
5080 (breakpoint_address_bits): Skip dummy software watchpoint locations.
5081
5082 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5083
5084 * utils.c (fputs_maybe_filtered): Check if there's already a top
5085 level interpreter before dereferencing it. If there isn't one,
5086 don't paginate either.
5087
5088 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5089
5090 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
5091 the state right when single stepping.
5092 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
5093 Get the next PC along with the instruction state.
5094 (thumb_get_next_pc): Remove.
5095 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
5096
5097 2010-03-04 Hui Zhu <teawater@gmail.com>
5098
5099 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
5100
5101 2010-03-03 Pedro Alves <pedro@codesourcery.com>
5102
5103 * utils.c (fputs_maybe_filtered): Always disable pagination if the
5104 top level interpreter is MI.
5105
5106 2010-03-03 Stan Shebs <stan@codesourcery.com>
5107
5108 * remote.c (remote_download_tracepoint): Iterate over locations.
5109 * tracepoint.c (validate_actionline): Ditto.
5110 (encode_actions): Add location argument.
5111 (trace_dump_command): Check all locations to see if stepping
5112 frame.
5113
5114 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
5115 Eli Zaretskii <eliz@gnu.org>
5116
5117 * NEWS: Add X86 general purpose registers section.
5118
5119 2010-03-03 Tom Tromey <tromey@redhat.com>
5120
5121 PR mi/11098:
5122 * varobj.c (install_new_value): Handle case where new print_value
5123 is NULL.
5124
5125 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
5126
5127 PR gdb/11345:
5128 * printcmd.c (printf_command): Print end of format string using
5129 printf_filtered.
5130
5131 2010-03-02 Tom Tromey <tromey@redhat.com>
5132
5133 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
5134 * defs.h (read_command_lines_1): Add missing 'void'.
5135 * cli/cli-script.c (recurse_read_control_structure): Add missing
5136 'void'.
5137 (read_next_line): Likewise.
5138 (read_command_lines_1): Likewise.
5139
5140 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5141
5142 * spu-tdep.c (spu_analyze_prologue): Track instruction to
5143 store backchain as part of prologue.
5144
5145 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
5146
5147 * progspace.c (update_address_spaces): Update inferior address spaces
5148 also.
5149
5150 2010-03-02 Doug Evans <dje@google.com>
5151
5152 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
5153 lowpc,highpc args to addrmap_set_empty.
5154
5155 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
5156
5157 * amd64-tdep.c (amd64_byte_names): New.
5158 (amd64_word_names): Likewise.
5159 (amd64_dword_names): Likewise.
5160 (amd64_pseudo_register_name): Likewise.
5161 (amd64_pseudo_register_read): Likewise.
5162 (amd64_pseudo_register_write): Likewise.
5163 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
5164 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
5165 set_gdbarch_pseudo_register_write and
5166 set_tdesc_pseudo_register_name. Don't call
5167 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
5168
5169 * i386-tdep.c (i386_num_mmx_regs): Removed.
5170 (i386_num_pseudo_regs): Likewise.
5171 (i386_byte_names): New.
5172 (i386_word_names): Likewise.
5173 (i386_byte_regnum_p): Likewise.
5174 (i386_word_regnum_p): Likewise.
5175 (i386_mmx_regnum_p): Updated.
5176 (i386_pseudo_register_name): Make it global. Handle byte and
5177 word pseudo-registers.
5178 (i386_pseudo_register_read): Likewise.
5179 (i386_pseudo_register_write): Likewise.
5180 (i386_pseudo_register_type): Handle byte, word and dword
5181 pseudo-registers
5182 (i386_register_reggroup_p): Don't include pseudo
5183 registers, except for MXX, in any register groups. Don't
5184 include pseudo byte, word, dword registers in general_reggroup.
5185 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
5186 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
5187 pseudo-registers after word pseudo-registers. Call
5188 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
5189
5190 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
5191 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
5192 eax_regnum.
5193 (i386_byte_regnum_p): New.
5194 (i386_word_regnum_p): Likewise.
5195 (i386_dword_regnum_p): Likewise.
5196 (i386_pseudo_register_name): Likewise.
5197 (i386_pseudo_register_read): Likewise.
5198 (i386_pseudo_register_write): Likewise.
5199
5200 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5201
5202 * target-descriptions.c (tdesc_type): Remove
5203 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5204 (tdesc_predefined_types): Likewise.
5205 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
5206 if flag name is empty.
5207 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
5208
5209 * features/i386/32bit-core.xml: Define i386_eflags.
5210 * features/i386/64bit-core.xml: Likewise.
5211
5212 * features/i386/32bit-sse.xml: Define i386_mxcsr.
5213 * features/i386/64bit-sse.xml: Likewise.
5214
5215 * features/i386/amd64-linux.c: Regenerated.
5216 * features/i386/amd64.c: Likewise.
5217 * features/i386/i386-linux.c: Likewise.
5218 * features/i386/i386.c: Likewise.
5219
5220 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
5221
5222 * gdbtypes.c (append_composite_type_field_raw): New.
5223 (append_composite_type_field_aligned): Use the new function.
5224 * gdbtypes.h (append_composite_type_field_raw): Declare.
5225 * target-descriptions.c (struct tdesc_type_field): Add start and end.
5226 (struct tdesc_type_flag): New type.
5227 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
5228 kind. Add size to u.u. Add u.f for flags.
5229 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
5230 (tdesc_free_type): Likewise.
5231 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
5232 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
5233 (tdesc_add_bitfield, tdesc_add_flag): New.
5234 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
5235 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
5236 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
5237 current_type. Add current_type_size and current_type_is_flags.
5238 (tdesc_start_union): Clear the new fields.
5239 (tdesc_start_struct, tdesc_start_flags): New.
5240 (tdesc_start_field): Handle struct fields, including bitfields.
5241 (field_attributes): Make type optional. Add start and end.
5242 (union_children): Rename to struct_union_children.
5243 (union_attributes): Rename to struct_union_attributes. Add optional
5244 size.
5245 (flags_attributes): New.
5246 (feature_children): Add struct and flags.
5247 * features/gdb-target.dtd: Add flags and struct to features.
5248 Make field type optional. Add field start and end.
5249
5250 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5251
5252 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
5253 (amd64_linux_read_description): Likewise.
5254 (_initialize_amd64_linux_nat): Set to_read_description to
5255 amd64_linux_read_description.
5256
5257 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
5258 (amd64_linux_register_name): Removed.
5259 (amd64_linux_register_type): Likewise.
5260 (amd64_linux_core_read_description): New.
5261 (amd64_linux_init_abi): Set target description to
5262 tdesc_amd64_linux if needed. Support orig_rax in target
5263 description. Don't call set_gdbarch_register_name nor
5264 set_gdbarch_register_type. Call
5265 set_gdbarch_core_read_description.
5266 (_initialize_amd64_linux_tdep): Call
5267 initialize_tdesc_amd64_linux.
5268
5269 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
5270
5271 * amd64-tdep.c: Include "features/i386/amd64.c".
5272 (amd64_register_names): Removed.
5273 (amd64_register_name): Likewise.
5274 (amd64_register_type): Likewise.
5275 (amd64_init_abi): Set num_core_regs and register_names. Set
5276 target description to tdesc_amd64 if needed. Don't call
5277 set_gdbarch_register_name nor set_gdbarch_register_type.
5278 (_initialize_amd64_tdep): New.
5279
5280 * i386-linux-nat.c (i386_linux_read_description): New.
5281 (_initialize_i386_linux_nat): Set to_read_description to
5282 i386_linux_read_description.
5283
5284 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
5285 (i386_linux_register_name): Removed.
5286 (i386_linux_core_read_description): New.
5287 (i386_linux_read_description): Likewise.
5288 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
5289 Set target description to tdesc_i386_linux if needed. Support
5290 orig_eax. Set register_reggroup_p. Call
5291 set_gdbarch_core_read_description.
5292 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
5293
5294 * i386-linux-tdep.h (tdesc_i386_linux): New.
5295
5296 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
5297 with I387_NUM_REGS.
5298
5299 * i386-tdep.c: Include "features/i386/i386.c".
5300 (i386_register_names): Make it const.
5301 (i386_mmx_names): Likewise.
5302 (i386_num_register_names): Removed.
5303 (i386_register_name): Likewise.
5304 (i386_eflags_type): Likewise.
5305 (i386_mxcsr_type): Likewise.
5306 (i386_sse_type): Likewise.
5307 (i386_register_type): Likewise.
5308 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
5309 (i386_pseudo_register_name): New.
5310 (i386_pseudo_register_type): Likewise.
5311 (i386_mmx_type): Make it static.
5312 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
5313 I387_NUM_REGS. Set num_core_regs and register_names. Don't
5314 call set_gdbarch_register_name nor set_gdbarch_register_type.
5315 Set register_reggroup_p. Set target description to tdesc_i386
5316 if needed. Call set_tdesc_pseudo_register_type,
5317 set_tdesc_pseudo_register_name and tdesc_use_registers.
5318 (_initialize_i386_tdep): Call initialize_tdesc_i386.
5319 initialize_tdesc_x86_64.
5320
5321 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
5322 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
5323 register_names, tdesc and register_reggroup_p.
5324 (I386_NUM_FREGS): Removed.
5325 (i386_eflags_type): Likewise.
5326 (i386_mxcsr_type): Likewise.
5327 (i386_mmx_type): Likewise.
5328 (i386_sse_type): Likewise.
5329 (i386_register_name): Likewise.
5330 (i386_regnum): Add I386_MXCSR_REGNUM.
5331 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
5332
5333 * i387-tdep.h (I387_NUM_REGS): New.
5334
5335 * regformats/i386/i386-linux.dat: Generated.
5336 * regformats/i386/i386.dat: Likewise.
5337 * regformats/i386/amd64-linux.dat: Likewise.
5338 * regformats/i386/amd64.dat: Likewise.
5339
5340 * regformats/reg-i386-linux.dat: Removed.
5341 * regformats/reg-i386.dat: Likewise.
5342 * regformats/reg-x86-64-linux.dat: Likewise.
5343 * regformats/reg-x86-64.dat: Likewise.
5344
5345 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
5346
5347 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
5348 cygwin_conv_path API rather than the deprecated
5349 cygwin_conv_to_full_posix_path.
5350 * windows-nat.c:
5351 (GetModuleFileNameExA): Undefine for Cygwin.
5352 (GetModuleFileNameExW): Define for Cygwin.
5353 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
5354 Call GetModuleFileNameExW and convert path to POSIX using
5355 cygwin_conv_path.
5356 (windows_make_so): Always define p. Drop unused variable m.
5357 Don't use Win32 functions to check file existance, rather use
5358 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
5359 Use canonicalize_file_name to get full path.
5360 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
5361 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
5362 use correct target buffer size in call to WideCharToMultiByte.
5363 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
5364 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
5365 (windows_create_inferior): Convert all paths and arguments to wchar_t
5366 and use CreateProcessW on Cygwin.
5367 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
5368 (bad_GetModuleFileNameExA): Undefine for Cygwin.
5369 (bad_GetModuleFileNameExW): Define for Cygwin.
5370 (_initialize_loadable): Load GetModuleFileNameExW into
5371 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
5372
5373 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
5374
5375 PR python/11036
5376 * python/py-frame.c (frapy_read_var): Add block argument and logic
5377 to cope with user provided blocks.
5378
5379 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5380
5381 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
5382 New comment.
5383
5384 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
5385
5386 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
5387 (COMMON_OBS): ... to here since it's used unconditionally.
5388 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
5389 (SFILES): To here.
5390
5391 2010-02-26 David Daney <ddaney@caviumnetworks.com>
5392
5393 * mips-linux-tdep.c: Update struct sigframe comments.
5394 (SIGFRAME_CODE_OFFSET): Delete macro.
5395 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
5396 this_frame's sp.
5397 (mips_linux_n32n64_sigframe_init): Same.
5398
5399 2010-02-26 Kevin Buettner <kevinb@redhat.com>
5400
5401 * remote-mips.c (mips_load): Don't use pseudo-register when
5402 invalidating regcache.
5403
5404 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5405
5406 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
5407
5408 2010-02-26 Pedro Alves <pedro@codesourcery.com>
5409
5410 * NEWS: Add "New targets" section, and mention ARM Symbian
5411 support.
5412
5413 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
5414
5415 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
5416 add ADDR_SIZE member.
5417 (allocate_piece_closure): Update.
5418 (copy_pieced_value_closure): Likewise.
5419 (dwarf2_evaluate_loc_desc): Likewise.
5420 (read_pieced_value): Use DWARF address size instead of
5421 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
5422
5423 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
5424 Tom Tromey <tromey@redhat.com>
5425
5426 * python/py-type.c (typy_lookup_typename): Add in block argument.
5427 If provided restrict lookup to specified blocks.
5428 (gdbpy_lookup_type): Likewise.
5429 (typy_lookup_type): Likewise.
5430
5431 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5432
5433 Symbian config
5434
5435 gdb/
5436 * arm-symbian-tdep.c: New.
5437 * configure.tgt (arm*-*-symbianelf*): New target.
5438 (*-*-symbianelf*): New OS.
5439 * osabi.c (gdb_osabi_names): Add Symbian.
5440 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
5441 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
5442 (ALLDEPFILES): Add arm-symbian-tdep.c.
5443
5444 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5445
5446 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
5447
5448 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5449
5450 * mi/mi-main.c (mi_cmd_execute): Fix typo.
5451
5452 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
5453 Tom Tromey <tromey@redhat.com>
5454 Thiago Jung Bauermann <bauerman@br.ibm.com>
5455
5456 * python/python.c (_initialize_python): Call
5457 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
5458 gdbpy_initialize_blocks.
5459 * python/python-internal.h: Declare struct symbol, block and
5460 symtab_and_line. Declare block_object_type and
5461 symbol_object_type
5462 (gdbpy_lookup_symbol gdbpy_block_for_pc)
5463 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
5464 (symbol_to_symbol_object, block_to_block_object)
5465 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
5466 (gdbpy_initialize_blocks ): Declare.
5467 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
5468 (frapy_select): Add methods.
5469 (frapy_read_var): Add symbol branch.
5470 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
5471 py-block.
5472 (SUBDIR_PYTHON_SRCS): Likewise.
5473 (py-symbol.o): New rule.
5474 (py-symtab.o): Likewise.
5475 (py-block.o): Likewise.
5476 * python/py-symbol.c: New file.
5477 * python/py-symtab.c: Likewise.
5478 * python/py-block.c: Likewise.
5479
5480 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5481
5482 PR gdb/11321
5483
5484 * inferior.h (prepare_for_detach): Declare.
5485 (struct inferior) <detaching>: New field.
5486 * infrun.c (prepare_for_detach): New.
5487 (handle_inferior_event) <random signal>: Don't stop if detaching.
5488 * target.c (target_detach): Call prepare_for_detach.
5489
5490 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5491
5492 Per-process displaced stepping queue.
5493
5494 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
5495 (displaced_step_gdbarch, displaced_step_closure,
5496 (displaced_step_original, displaced_step_copy): Move globals to
5497 this...
5498 (struct displaced_step_inferior_state): ... new structure.
5499 (displaced_step_inferior_states): New global.
5500 (get_displaced_stepping_state, add_displaced_stepping_state)
5501 (remove_displaced_stepping_state, infrun_inferior_exit): New
5502 functions.
5503 (displaced_step_clear): Add displaced_step_inferior_state
5504 parameter, and adjust to handle it.
5505 (displaced_step_clear_cleanup): Parameter is now a
5506 displaced_step_inferior_state. Adjust.
5507 (displaced_step_prepare): Adjust.
5508 (displaced_step_fixup, displaced_step_fixup)
5509 (infrun_thread_ptid_changed, resume): Adjust.
5510 (init_wait_for_inferior): Don't call displaced_step_clear.
5511 (infrun_thread_stop_requested): Rewrite.
5512 (_initialize_infrun): Install infrun_inferior_exit as
5513 inferior_exit observer.
5514
5515 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5516
5517 * inferior.h (ptid_match): Declare.
5518 * infrun.c (ptid_match): New.
5519 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
5520 (handle_notification): Add debug output.
5521 * linux-nat.c (ptid_match): Delete.
5522
5523 2010-02-24 David S. Miller <davem@davemloft.net>
5524
5525 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
5526 * syscalls/sparc-linux.xml: New.
5527 * syscalls/sparc64-linux.xml: New.
5528 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
5529 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
5530 (sparc32_linux_get_syscall_number): New function.
5531 (sparc32_linux_init_abi): Set syscall XML file name and hook up
5532 syscall number fetcher.
5533 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
5534 (sparc64_linux_get_syscall_number): New function.
5535 (sparc64_linux_init_abi): Set syscall XML file name and hook up
5536 syscall number fetcher.
5537
5538 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5539
5540 Multiexec MI
5541
5542 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
5543 * inferior.c (add_inferior_silent): Notify inferior_added
5544 observer.
5545 (delete_inferior_1): Notify inferior_removed observer.
5546 (exit_inferior_1): Pass inferior, not pid, to observer.
5547 (inferior_appeared): Likewise.
5548 (add_inferior_with_spaces): New.
5549 (add_inferior_command): Use the above.
5550 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
5551 Declare.
5552
5553 * inflow.c (inflow_inferior_exit): Likewise.
5554 * jit.c (jit_inferior_exit_hook): Likewise.
5555
5556 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
5557 remove-inferior.
5558 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5559 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
5560 (report_initial_inferior): New.
5561 (mi_inferior_removed): Register the above. Make sure
5562 inferior_added observer is called on the first inferior.
5563 (mi_new_thread, mi_thread_exit): Thread group is now identified by
5564 inferior number, not pid.
5565 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
5566 affected.
5567 * mi/mi-main.c (current_context): New.
5568 (proceed_thread_callback): Use typed closure.
5569 Proceed everything if pid is 0. Most implementation split into
5570 (proceed_thread): ... this.
5571 (run_one_inferior): New.
5572 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
5573 Adjust for multiexec behaviour.
5574 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5575 (mi_cmd_execute): Handle the 'thread-group' option here.
5576 Do some extra checks.
5577 * mi-parse.c (mi_parse): Handle the --all and --thread-group
5578 options.
5579 * mi-parse.h (struct mi_parse): New fields all and thread_group.
5580
5581 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5582
5583 Make -exec-run a proper MI commands.
5584
5585 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
5586 * mi/mi-cmds.c (mi_cmds): Adjust.
5587 * mi/mi-main.c (mi_cmd_exec_run): New.
5588
5589 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5590 Stan Shebs <stan@codesourcery.com>
5591
5592 * tracepoint.h (set_traceframe_number)
5593 (cleanup_restore_current_traceframe): Declare.
5594 * tracepoint.c (set_traceframe_number): New.
5595 (struct current_traceframe_cleanup): New.
5596 (do_restore_current_traceframe_cleanup)
5597 (restore_current_traceframe_cleanup_dtor)
5598 (make_cleanup_restore_current_traceframe): New.
5599 * infrun.c: Include tracepoint.h.
5600 (fetch_inferior_event): Switch out and in of tfind mode.
5601
5602 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5603
5604 * breakpoint.c (breakpoint_init_inferior): Also delete
5605 bp_shlib_event breakpoints.
5606 * solib-frv.c (enable_break): Remove call to
5607 remove_solib_event_breakpoints.
5608 * solib-svr4.c (enable_break): Ditto.
5609 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
5610 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
5611 * solib-som.c (som_solib_create_inferior_hook): Ditto.
5612 * solib-spu.c (spu_enable_break): Ditto.
5613
5614 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5615
5616 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
5617
5618 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5619
5620 * varobj.c (varobj_update): Avoid non-constants in initializers.
5621
5622 2010-02-23 Tom Tromey <tromey@redhat.com>
5623
5624 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
5625 handle big-endian values.
5626 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
5627
5628 2010-02-22 Pedro Alves <pedro@codesourcery.com>
5629
5630 PR9605
5631
5632 gdb/
5633 * breakpoint.c (insert_bp_location): If inserting the read
5634 watchpoint failed, fallback to an access watchpoint.
5635 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
5636 if the value changed, if not watching the same memory for writes.
5637 (watchpoint_locations_match): Add comment.
5638 (update_global_location_list): Copy the location's watchpoint type.
5639 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
5640 handle read watchpoints here.
5641 (i386_insert_watchpoint): Read watchpoints aren't supported.
5642 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
5643 packets.
5644 * target.h (target_insert_watchpoint): Update description.
5645
5646 2010-02-19 Tom Tromey <tromey@redhat.com>
5647
5648 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
5649 * m2-typeprint.c (m2_print_type): Update.
5650 * gdbtypes.c (recursive_dump_type): Update.
5651 (copy_type_recursive): Update.
5652 * c-typeprint.c (c_type_print_varspec_prefix): Update.
5653 (c_type_print_base): Update.
5654 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
5655 Remove.
5656 (struct cplus_struct_type) <ntemplate_args>: Remove.
5657 <struct template_arg>: Remove.
5658 <is_dynamic>: Move earlier.
5659 (TYPE_TEMPLATE_ARGS): Remove.
5660 (TYPE_NTEMPLATE_ARGS): Remove.
5661 (TYPE_TEMPLATE_ARG): Remove.
5662
5663 2010-02-19 Tom Tromey <tromey@redhat.com>
5664
5665 PR c++/8693, PR c++/9496:
5666 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
5667 * c-exp.y (lex_one_token): Rename from yylex. Don't call
5668 write_dollar_variable. Don't try to classify NAME tokens.
5669 (token_and_value): New type.
5670 (token_fifo, popping, name_obstack): New globals.
5671 (classify_name): New function.
5672 (classify_inner_name): Likewise.
5673 (yylex): Likewise.
5674 (VARIABLE): Now has type sval.
5675 (exp : VARIABLE): Call write_dollar_variable.
5676 (qualified_name): Use TYPENAME, not typebase. Add production for
5677 multiple "::" instances.
5678 (variable): Use name_not_typename.
5679 (qualified_type): Remove.
5680 (typebase): Update.
5681
5682 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5683
5684 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
5685 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
5686 found by bfd_get_section_by_name.
5687 * symfile.h (struct section_addr_info) <sectindex>: New comment.
5688
5689 2010-02-19 Joel Brobecker <brobecker@adacore.com>
5690
5691 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
5692 7.0 section" into "Changes in 7.1".
5693
5694 2010-02-19 Joel Brobecker <brobecker@adacore.com>
5695
5696 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
5697 * version.in: Bump version to 7.1.50.20100219-cvs.
5698
5699 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
5700
5701 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
5702 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
5703
5704 2010-02-17 Tom Tromey <tromey@redhat.com>
5705
5706 * NEWS: Add Python API Improvements section.
5707
5708 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
5709
5710 * NEWS: Correct typo.
5711
5712 2010-02-17 Tom Tromey <tromey@redhat.com>
5713
5714 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
5715
5716 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5717
5718 * symfile.c (build_section_addr_info_from_objfile): Include sections
5719 only if they are SEC_ALLOC or SEC_LOAD.
5720
5721 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
5722
5723 PR shlibs/11293
5724 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
5725 of ULONGEST for address size.
5726
5727 2010-02-17 Tom Tromey <tromey@redhat.com>
5728
5729 * NEWS: Add C++ improvements section.
5730
5731 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
5732
5733 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
5734 PyThreadState_Swap): Avoid "statement with no effect" warning.
5735
5736 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5737
5738 * solib-svr4.c (enable_break <target_auxv_search>): New variable
5739 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
5740
5741 2010-02-17 Tristan Gingold <gingold@adacore.com>
5742 Petr Hluzin <petr.hluzin@gmail.com>
5743
5744 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
5745 gdb_assert. Fix info->size for SIG prologue.
5746
5747 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5748
5749 * infcmd.c (show_inferior_tty_command): Check for NULL.
5750 Correct output message.
5751
5752 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5753
5754 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
5755 FUNCTION contains parentheses. Improve removal of a trailing
5756 single quote.
5757
5758 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5759
5760 * gcore.c (do_bfd_delete_cleanup): New function.
5761 (gcore_command): Use it. Discard the cleanup after success.
5762 (gcore_copy_callback): Delete dead code.
5763
5764 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5765
5766 * symfile.c (addr_info_make_relative): Always use
5767 find_lowest_section.
5768
5769 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
5770
5771 * NEWS: Added entry for namespace fixes.
5772
5773 2010-02-15 Tom Tromey <tromey@redhat.com>
5774
5775 * dwarf2read.c (guess_structure_name): Allocate name on the
5776 objfile obstack.
5777
5778 2010-02-15 Tom Tromey <tromey@redhat.com>
5779
5780 * c-typeprint.c (c_type_print_base): Reverse order of test.
5781
5782 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5783
5784 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
5785 initialize it from ELF BFD. Extend the prelink condition by it.
5786
5787 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5788
5789 * defs.h (parse_pid_to_attach): New.
5790 * utils.c (parse_pid_to_attach): New.
5791 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
5792 * gnu-nat.c (gnu_attach): Likewise.
5793 * nto-procfs.c (procfs_attach): Likewise.
5794 * procfs.c (procfs_attach): Likewise.
5795 * windows-nat.c (windows_attach): Likewise.
5796 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
5797 * inf-ttrace.c (inf_ttrace_attach): Likewise.
5798 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
5799 check.
5800
5801 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
5802
5803 * MAINTAINERS: Add myself for write after approval privileges.
5804
5805 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5806
5807 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
5808 block.
5809
5810 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5811
5812 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
5813 only if INFO_VERBOSE.
5814
5815 2010-02-12 Tomas Holmberg <th@virtutech.com>
5816
5817 * mi/mi-main.c: Added the --reverse flag to the following MI
5818 commands: exec-continue, exec-finish, exec-next, exec-step,
5819 exec-next-instruction, exec-step-instruction. This is to
5820 support reverse execution over the MI interface to gdb.
5821
5822 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5823
5824 * tracepoint.c (_initialize_tracepoint): Specify that the address
5825 range of `tfind outsize' is exclusive, and that the address range
5826 of `tfind range' is inclusive, in the commands' help strings.
5827
5828 2010-02-12 Joel Brobecker <brobecker@adacore.com>
5829
5830 Spurious "dll not found" error messages on x64-windows.
5831 * windows-nat.c: Add include of complaints.h.
5832 (handle_unload_dll): Change dll-not-found error into a complaint.
5833
5834 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5835
5836 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
5837 bp_tracepoint and bp_fast_tracepoint, not
5838 bp_loc_software_breakpoint.
5839 (update_global_location_list): Tracepoints are never duplicates of
5840 anything.
5841
5842 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5843
5844 * breakpoint.c (break_command_really): Change return type to int.
5845 Return false if no breakpoint was created, true otherwise.
5846 (trace_command): Don't set the tracepoint count if no tracepoint
5847 was created.
5848 (ftrace_command): Ditto.
5849 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
5850 created in the breakpoints table.
5851
5852 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5853 Ulrich Weigand <uweigand@de.ibm.com>
5854
5855 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
5856
5857 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5858
5859 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
5860 the offset value isn't of integral type.
5861
5862 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5863
5864 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
5865 New.
5866
5867 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5868
5869 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
5870 non-subscriptable types.
5871 * valarith.c (binop_types_user_defined_p): New, abstracted out
5872 from ...
5873 (binop_user_defined_p): ... this.
5874 * value.h (binop_types_user_defined_p): Declare.
5875
5876 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5877
5878 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
5879 Merge uploaded TSVs before merging uploaded tracepoints.
5880
5881 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5882
5883 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
5884
5885 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
5886
5887 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
5888 whitespace character after a dot in comment.
5889 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
5890 Likewise.
5891 (list_args_or_locals): For the 'all' (that is
5892 -stack-list-variables) case, always output list of tuples.
5893 Output 'arg' field if variable is argument.
5894
5895 2010-02-10 Tom Tromey <tromey@redhat.com>
5896
5897 * parser-defs.h (parser_debug): Declare.
5898 * parse.c (_initialize_parse): Install "debug parser" set/show
5899 command.
5900 (parser_debug): New global.
5901 (show_parserdebug): New function.
5902 * c-exp.y (c_parse): Set yydebug.
5903
5904 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
5905
5906 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
5907 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5908 (tdesc_predefined_types): Add i387_ext, i386_eflags and
5909 i386_mxcsr.
5910 (tdesc_find_type): New.
5911 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
5912 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5913
5914 * target-descriptions.h (tdesc_find_type): New.
5915
5916 2010-02-10 Michael Snyder <msnyder@vmware.com>
5917
5918 * gdb-gdb.py: Comment fix.
5919
5920 2010-02-09 Tristan Gingold <gingold@adacore.com>
5921
5922 * machoread.c (macho_symfile_relocate): New function.
5923 (macho_sym_fns): Use macho_symfile_relocate instead of
5924 default_symfile_relocate.
5925 (macho_oso_data): New type.
5926 (current_oso): New variable.
5927 (macho_add_oso_symfile): Do not compute section_addr_info, but
5928 instead set vma of sections.
5929 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
5930 Set and clear current_oso.
5931
5932 2010-02-09 Joel Brobecker <brobecker@adacore.com>
5933
5934 Wrong type description for tagged type parameter.
5935 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
5936 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
5937 reference to a tagged type.
5938
5939 2010-02-09 Tristan Gingold <gingold@adacore.com>
5940
5941 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
5942 brothers of the parent.
5943
5944 2010-02-08 Tom Tromey <tromey@redhat.com>
5945
5946 PR c++/8017:
5947 * value.h: Update.
5948 * valops.c (search_struct_field): Make 'name' const.
5949 (search_struct_method): Likewise.
5950 (find_method_list): Make 'method' const.
5951 (value_struct_elt): Make 'name' and 'err' const.
5952 (value_find_oload_method_list): Make 'method' const.
5953 (find_overload_match): Make 'name' const.
5954 * eval.c (evaluate_subexp_standard): New locals function,
5955 function_name.
5956 <OP_FUNCALL>: Handle OP_SCOPE specially.
5957
5958 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5959
5960 * infrun.c (handle_inferior_event): Do not look up regcache
5961 for exited processes.
5962
5963 2010-02-08 Chris Moller <moller@mollerware.com>
5964
5965 PR gdb/10728
5966 * valarith.c (value_ptrdiff): Added a test for a zero type length,
5967 warn if found, and assume length = 1.
5968
5969 2010-02-08 Chris Moller <cmoller@redhat.com>
5970
5971 PR gdb/9067
5972 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
5973 cp_print_static_field) Fix use of obstacks.
5974
5975 2010-02-08 Pedro Alves <pedro@codesourcery.com>
5976
5977 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
5978 resumed LWPs as resumed.
5979 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
5980 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
5981 of throwing an internal error. If an LWP of a process we're not
5982 waiting for reports a signal, don't force collecting a SIGSTOP,
5983 and if it was breakpoint hit in non-stop mode, cancel it. Don't
5984 go through all LWPs cancelling breakpoints in non-stop mode.
5985 (resume_stopped_resumed_lwps): New.
5986 (linux_nat_wait): Use it.
5987
5988 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
5989
5990 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
5991 i386/amd64 and i386/amd64-linux.
5992 (i386/i386-expedite): New.
5993 (i386/i386-linux-expedite): Likewise.
5994 (i386/amd64-expedite):Likewise.
5995 (i386/amd64-linux-expedite): Likewise.
5996 ($(outdir)/i386/i386-linux.dat): Likewise.
5997 ($(outdir)/i386/amd64.dat): Likewise.
5998 ($(outdir)/i386/amd64-linux.dat): Likewise.
5999
6000 * features/i386/32bit-core.xml: New.
6001 * features/i386/32bit-linux.xml: Likewise.
6002 * features/i386/32bit-sse.xml: Likewise.
6003 * features/i386/64bit-core.xml: Likewise.
6004 * features/i386/64bit-linux.xml: Likewise.
6005 * features/i386/64bit-sse.xml: Likewise.
6006 * features/i386/i386-linux.xml: Likewise.
6007 * features/i386/i386.xml: Likewise.
6008 * features/i386/amd64-linux.xml: Likewise.
6009 * features/i386/amd64.xml: Likewise.
6010 * features/i386/i386-linux.c: Likewise.
6011 * features/i386/i386.c: Likewise.
6012 * features/i386/amd64-linux.c: Likewise.
6013 * features/i386/amd64.c: Likewise.
6014
6015 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
6016
6017 PR c++/7935:
6018 * cp-support.h: Added char* alias element to using_direct data
6019 struct.
6020 (cp_add_using): Added char* alias argument.
6021 (cp_add_using_directive): Ditto.
6022 * cp-namespace.c: Updated with the above changes.
6023 (cp_lookup_symbol_imports): Check for aliases.
6024 * dwarf2read.c (read_import_statement): Figure out local alias
6025 for the import and pass it on to cp_add_using.
6026 (read_namespace): Pass alias argument to cp_add_using.
6027
6028 2010-02-05 Hui Zhu <teawater@gmail.com>
6029
6030 * defs.h (gdb_bfd_errmsg): New extern.
6031 * exec.c (exec_file_attach): Change bfd_errmsg to
6032 gdb_bfd_errmsg.
6033 * utils.c (AMBIGUOUS_MESS1): New macro.
6034 (AMBIGUOUS_MESS2): New macro.
6035 (gdb_bfd_errmsg): New function.
6036
6037 2010-02-04 Doug Evans <dje@google.com>
6038
6039 * solib-svr4.c (enable_break): Add comment.
6040
6041 2010-02-04 Anthony Green <green@moxielogic.com>
6042
6043 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
6044 gracefully.
6045
6046 2010-02-04 Tom Tromey <tromey@redhat.com>
6047
6048 * valops.c (search_struct_field): Account for
6049 value_embedded_offset. Fix check for virtual base past the end of
6050 the object. Use value_copy when making a slice of the value.
6051
6052 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6053
6054 PR tui/9622
6055 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
6056 only if gdb_stdout is a tty.
6057
6058 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6059
6060 * target-descriptions.c: Include "osabi.h".
6061 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
6062 OSABI.
6063
6064 2010-02-04 Tristan Gingold <gingold@adacore.com>
6065
6066 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
6067 (macho_symtab_read): Adjust calls to macho_add_oso.
6068 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
6069 (macho_symfile_read): Adjust call to macho_oso_symfile.
6070 (macho_new_init): Move this function after declarations.
6071 (macho_symfile_init): Ditto.
6072 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
6073 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
6074
6075 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
6076
6077 Include MI command in remotelog.
6078
6079 * mi/mi-main.c (mi_execute_command): Call target_log_command.
6080
6081 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6082
6083 * remote.c (remote_state): Remove gdbarch.
6084 (init_remote_state): Don't set gdbarch.
6085 (remote_query_supported): Pass target_gdbarch instead of
6086 rs->gdbarch to gdbarch_qsupported.
6087
6088 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6089
6090 * gdbarch.sh: Add qsupported.
6091
6092 * gdbarch.c: Regenerated.
6093 * gdbarch.h: Likewise.
6094
6095 * remote.c (remote_state): Add gdbarch.
6096 (init_remote_state): Set gdbarch.
6097 (remote_query_supported): Support gdbarch_qsupported.
6098
6099 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
6100
6101 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
6102 __FreeBSD_kernel_version.
6103
6104 2010-02-03 Tristan Gingold <gingold@adacore.com>
6105
6106 * symfile.h (struct sym_fns): Add sym_relocate field.
6107 (default_symfile_relocate): New prototype.
6108 (symfile_relocate_debug_section): First argument is now an objfile.
6109 * symfile.c (default_symfile_relocate): Rename from
6110 symfile_relocate_debug_section, first argument is now an objfile.
6111 (symfile_relocate_debug_section): New function.
6112 * coffread.c (coff_sym_fns): Set sym_relocate field.
6113 * somread.c (som_sym_fns): Ditto.
6114 * mipsread.c (ecoff_sym_fns): Ditto.
6115 * machoread.c (macho_sym_fns): Ditto.
6116 * elfread.c (elf_sym_fns): Ditto.
6117 * dwarf2read.c (dwarf2_read_section): Ditto.
6118 * xcoffread.c (xcoff_sym_fns): Ditto.
6119 * dbxread.c (aout_sym_fns): Ditto.
6120 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
6121 (elfstab_build_psymtabs): Ditto.
6122
6123 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6124
6125 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
6126
6127 2010-02-02 Tom Tromey <tromey@redhat.com>
6128
6129 * valops.c (value_cast_structs): Try downcasting using the RTTI
6130 type.
6131
6132 2010-02-02 Tom Tromey <tromey@redhat.com>
6133
6134 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
6135 (gnuv2_baseclass_offset): Now static.
6136 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
6137 * gnu-v2-abi.h: Remove.
6138
6139 2010-02-02 Tom Tromey <tromey@redhat.com>
6140
6141 * m2-typeprint.c (m2_record_fields): Don't use
6142 TYPE_DECLARED_TYPE.
6143 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
6144 (struct main_type) <flag_declared_class>: New field.
6145 (struct cplus_struct_type) <declared_type>: Remove.
6146 <ntemplate_args>: Move earlier.
6147 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
6148 (DECLARED_TYPE_TEMPLATE): Remove.
6149 (TYPE_DECLARED_TYPE): Remove.
6150 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
6151 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
6152 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
6153 TYPE_DECLARED_TYPE.
6154
6155 2010-02-02 Tom Tromey <tromey@redhat.com>
6156
6157 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
6158 * valops.c (search_struct_field): Compute nbases after calling
6159 CHECK_TYPEDEF.
6160 (check_field): Call CHECK_TYPEDEF.
6161 * cp-valprint.c (cp_print_value): Pass correct address to
6162 baseclass_offset. Fix check for virtual base past the end of the
6163 object. Don't offset address passed to cp_print_value_fields or
6164 apply_val_pretty_printer.
6165 (cp_print_value_fields): Fix call to val_print.
6166 (cp_print_value_fields_rtti): New function.
6167 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
6168 * p-valprint.c (pascal_object_print_value_fields): Fix call to
6169 val_print.
6170 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
6171 offset to address.
6172 * language.h (struct language_defn) <la_val_print>: Document.
6173 * c-lang.h (cp_print_value_fields_rtti): Declare.
6174
6175 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6176
6177 PR libc/11214:
6178 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6179 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
6180 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6181
6182 2010-02-01 Michael Matz <matz@suse.de>
6183 Daniel Jacobowitz <dan@codesourcery.com>
6184
6185 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
6186 functions use a frame pointer.
6187
6188 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6189
6190 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
6191 by a conditional setting DYN_ADDR. Use DYN_ADDR.
6192 * config/djgpp/fnchange.lst: Add translations for
6193 symbol-without-target_section.exp and symbol-without-target_section.c.
6194
6195 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6196
6197 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
6198 (remote_breakpoint_for_pc): Correct invalid_p check.
6199 * gdbarch.c: Regenerated.
6200
6201 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6202
6203 * arm-tdep.c (arm_find_mapping_symbol): New function, from
6204 arm_pc_is_thumb.
6205 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
6206 (extend_buffer_earlier): New function.
6207 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
6208 (arm_adjust_breakpoint_address): New function.
6209 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
6210
6211 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6212
6213 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
6214 (arm_linux_thumb2_le_breakpoint): New constants.
6215 (arm_linux_init_abi): Set thumb2_breakpoint and
6216 thumb2_breakpoint_size.
6217 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
6218 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
6219 Implement support for single stepping through IT blocks if
6220 a 32-bit Thumb breakpoint instruction is available.
6221 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
6222 is available, use it when needed.
6223 (arm_remote_breakpoint_from_pc): New function.
6224 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
6225 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
6226 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
6227
6228 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6229
6230 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
6231 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
6232 * gdbarch.c, gdbarch.h: Regenerated.
6233 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
6234 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
6235 gdbarch_remote_breakpoint_from_pc.
6236
6237 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6238
6239 * infrun.c (prepare_to_proceed): Handle other signals which might
6240 match a breakpoint.
6241 (handle_inferior_event): Move the check for unusual breakpoint
6242 signals earlier.
6243
6244 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
6245
6246 amd64 - function returning record with field straddling 2 registers.
6247 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
6248 a record of length <= 16 in which a field straddles the two
6249 eightbytes.
6250
6251 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6252
6253 Implement return values on amd64-windows.
6254 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
6255 (amd64_windows_return_value): New function.
6256 (amd64_windows_init_abi): Call set_gdbarch_return_value with
6257 amd64_windows_return_value.
6258
6259 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6260
6261 amd64-windows: 32 bytes allocated on stack by caller for integer
6262 parameter registers.
6263 * i386-tdep.h (struct gdbarch_tdep): Add new field
6264 integer_param_regs_saved_in_caller_frame.
6265 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6266 tdep->integer_param_regs_saved_in_caller_frame to 1.
6267 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
6268 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
6269
6270 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6271
6272 amd64-windows: memory args passed by pointer during function calls.
6273 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
6274 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
6275 where tdep->memory_args_by_pointer is non-zero.
6276 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6277 tdep->memory_args_by_pointer to 1.
6278
6279 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6280
6281 amd64-windows: Integer parameters in function calls.
6282 * i386-tdep.h (enum amd64_reg_class): New, moved here from
6283 amd64-tdep.c.
6284 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
6285 call_dummy_integer_regs, and classify.
6286 * amd64-tdep.h (amd64_classify): Add declaration.
6287 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
6288 (amd64_reg_class): Delete, moved to i386-tdep.h.
6289 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
6290 Replace call to amd64_classify by call to tdep->classify.
6291 (amd64_push_arguments): Get the list of registers to use for
6292 passing integer parameters from the gdbarch tdep structure,
6293 rather than using a hardcoded one. Replace calls to amd64_classify
6294 by calls to tdep->classify.
6295 (amd64_push_dummy_call): Get the register number used for
6296 the "hidden" argument from tdep->call_dummy_integer_regs.
6297 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
6298 and tdep->call_dummy_integer_regs. Set tdep->classify.
6299 * amd64-windows-tdep.c: Add include of gdbtypes.h.
6300 (amd64_windows_dummy_call_integer_regs): New static global.
6301 (amd64_windows_classify): New function.
6302 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
6303 tdep->call_dummy_integer_regs and tdep->classify.
6304
6305 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6306
6307 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
6308 for the new regcache. All callers updated.
6309 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
6310 (get_thread_arch_regcache): Do not set aspace here.
6311 * regcache.h (regcache_xmalloc): Update declaration.
6312
6313 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
6314 regcache_xmalloc updated.
6315
6316 2010-01-28 Joel Brobecker <brobecker@adacore.com>
6317
6318 Another -Wunused-function error in procfs.c (sparc-solaris)
6319 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
6320 Only define if SYS_syssgi is defined.
6321 (remove_dbx_link_breakpoint): Delete declaration. Move up.
6322 (dbx_link_addr, insert_dbx_link_bpt_in_file)
6323 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
6324 is itself defined.
6325
6326 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
6327
6328 * windows-nat.c (windows_initialization_done): New variable.
6329 (get_windows_debug_event): Issue error when process dies before
6330 completely initializing.
6331 (do_initial_windows_stuff): Set flag to indicate when we are done with
6332 the initial steps of attaching to the child.
6333
6334 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6335
6336 * symtab.h (struct symbol <symtab>): New comment on NULL values.
6337
6338 2010-01-27 Doug Evans <dje@google.com>
6339
6340 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
6341
6342 * breakpoint.c (bpstat_stop_status): Delete useless code.
6343
6344 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6345
6346 * printcmd.c (display_uses_solib_p): Remove variable section. Access
6347 objfile via SYMBOL_SYMTAB.
6348
6349 2010-01-26 Tom Tromey <tromey@redhat.com>
6350
6351 PR exp/7643:
6352 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
6353 coerce_array on result.
6354
6355 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6356
6357 * cp-namespace.c (cp_lookup_symbol_namespace): Added
6358 search_parent argument.
6359 (cp_add_using): Initialize 'searched' field.
6360 (reset_directive_searched): New function.
6361 * cp-support.h: Add 'searched' field to using_direct struct.
6362 (cp_lookup_symbol_imports): Ditto.
6363 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
6364 Perform recursive search.
6365 Implement non parent search.
6366 * valops.c (value_maybe_namespace_elt): Updated.
6367
6368 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6369
6370 PR gdb/10929:
6371 * dwarf2read.c (read_lexical_block_scope): Create blocks for
6372 scopes which contain using directives even if they contain no
6373 declarations.
6374 * symtab.c (lookup_symbol_aux): Pass lowest level block to
6375 la_lookup_symbol_nonlocal.
6376 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
6377 cp_lookup_symbol_namespace.
6378 (cp_lookup_symbol_namespace): Perform an import lookup at every
6379 block level.
6380 (cp_lookup_symbol_imports): New function.
6381 (cp_lookup_symbol_in_namespace): New function.
6382
6383 2010-01-25 Tom Tromey <tromey@redhat.com>
6384
6385 PR gdb/11049:
6386 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
6387 result.
6388
6389 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6390
6391 * configure.ac: Only use host_os part when disabling TUI on osf.
6392 Use test to check variables, prefix strings with x.
6393 * configure: Regenerate.
6394
6395 * solib-osf.c (osf_current_sos): Initialize tail.
6396
6397 2010-01-25 gingold <gingold@adacore.com>
6398
6399 * windows-nat.c (windows_continue): Use %x to print thread id.
6400 (get_windows_debug_event): Ditto.
6401
6402 2010-01-22 Tom Tromey <tromey@redhat.com>
6403
6404 PR symtab/11199:
6405 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
6406 type and arguments. Use smash_to_methodptr_type.
6407 (read_structure_type): Call quirk_gcc_member_function_pointer
6408 later.
6409 * gdbtypes.h (smash_to_methodptr_type): Declare.
6410 * gdbtypes.c (smash_to_methodptr_type): New function.
6411 (lookup_methodptr_type): Use it.
6412
6413 2010-01-21 Tom Tromey <tromey@redhat.com>
6414
6415 PR symtab/11198:
6416 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
6417 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
6418 * glibc-tdep.c (find_minsym_and_objfile): Remove.
6419 (glibc_skip_solib_resolver): Use
6420 lookup_minimal_symbol_and_objfile.
6421
6422 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
6423
6424 * inflow.c (check_syscall): Guard by #if clause for GO32 and
6425 WIN32 targets.
6426
6427 2010-01-20 Tom Tromey <tromey@redhat.com>
6428
6429 PR backtrace/10770:
6430 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
6431 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
6432 * dwarf2expr.c (new_dwarf_expr_context): Allocate
6433 dwarf_stack_values, not CORE_ADDRs.
6434 (execute_stack_op): Change DW_OP_div and comparison operators to
6435 use signed operands.
6436
6437 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
6438
6439 Per-inferior args and tty and environment.
6440
6441 * infcmd.c (inferior_args): Rename to ...
6442 (inferior_args_scratch): ... this.
6443 (inferior_io_terminal): Rename to ...
6444 (inferior_io_terminal_scratch): ... this.
6445 (inferior_argc, inferior_argv): Remove.
6446 (set_inferior_io_terminal, get_inferior_io_terminal): Store
6447 inside current_inferior().
6448 (set_inferior_tty_command, show_inferior_tty_command): New.
6449 (get_inferior_args, set_inferior_args): Store inside
6450 current_inferior().
6451 (notice_args_set): Likewise and rename to...
6452 (set_args_command): ... this.
6453 (set_inferior_args_vector): Likewise.
6454 (notice_args_read): Rename to...
6455 (show_args_command): ...new.
6456 (tty_command): Remove.
6457 (run_command_1): Don't free old args, as they are freed by
6458 set_inferior_arg now.
6459 (run_no_args_command): Likewise.
6460 (inferior_environ): Remove.
6461 (run_command_1): Use environment of the current inferior.
6462 (environment_info, set_environment_command)
6463 (unset_environment_command, path_info, path_command): Likewise.
6464 (_initialize_infcmd): Adjust for function and variable renames.
6465 Do not init inferior_environ.
6466 * inferior.h (set_inferior_arg): Adjust prototype.
6467 (struct inferior): New fields args, argc, argv, terminal, environment.
6468 (inferior_environ): Remove declaration.
6469 * inferior.c (free_inferior): Free new fields.
6470 (add_inferior_silent): Initialize 'environment' field.
6471 * main.c (captured_main): Set arguments only after the initial
6472 inferior has been created. Set set_inferior_io_terminal,
6473 not tty_command.
6474 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
6475 inferior.
6476 (_initialize_mi_cmd_env): Adjust for disappearance of global
6477 inferior_environ.
6478 * solib.c (solib_find): Use environment of the current inferior.
6479
6480 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6481
6482 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
6483 HAVE_PYTHON.
6484 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
6485
6486 2010-01-20 Joel Brobecker <brobecker@adacore.com>
6487
6488 Get rid of ada-lang.c:function_name_from_pc.
6489 * ada-lang.c: Add "stack.h" #include.
6490 (function_name_from_pc): Delete.
6491 (is_known_support_routine): Replace call to function_name_from_pc
6492 by call to find_frame_funname.
6493 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6494
6495 2010-01-19 Tom Tromey <tromey@redhat.com>
6496
6497 PR c++/11026:
6498 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
6499 objfile obstack.
6500
6501 2010-01-19 Tom Tromey <tromey@redhat.com>
6502
6503 * top.c (stop_sig, float_handler, do_nothing): Remove.
6504
6505 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6506
6507 * breakpoint.c (watchpoint_check): Check the call
6508 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
6509 Extend the comment.
6510 * config/djgpp/fnchange.lst: Add translations for
6511 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
6512 watchpoint-cond-gone-stripped.c.
6513
6514 2010-01-19 Tom Tromey <tromey@redhat.com>
6515
6516 PR c++/8000:
6517 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
6518 into parent scope, and enumerator into grandparent scope.
6519
6520 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6521
6522 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
6523
6524 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6525
6526 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
6527 i[34567]86-*-solaris2.1[0-9]*.
6528 * configure.tgt: Likewise.
6529
6530 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6531
6532 * NEWS: Document the source command enhancement allowing it
6533 to load Python scripts. Document the "set/show script-extension"
6534 commands.
6535
6536 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6537
6538 Add -Wunused-function to compile flags.
6539 * configure.ac: Add -Wunused-function to build_warnings.
6540 * configure: Regenerate.
6541
6542 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6543
6544 "delete" ada-lex.c:input function, not used.
6545 * ada-lex.l: #define YY_NO_INPUT.
6546
6547 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6548
6549 Delete free_named_symtabs and associated cleanup.
6550 * symfile.h (free_named_symtabs): Delete declaration.
6551 * symfile.c: Remove some commented out code (clear_symtab_users_once).
6552 (cashier_psymtab): Comment function out.
6553 Delete declaration.
6554 (free_named_symtabs): Delete.
6555 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
6556 * dbxread.c (end_psymtab): Likewise.
6557 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
6558 * exec.c (exec_close_1): Ditto.
6559 * xcoffread.c (xcoff_end_psymtab): Likewise.
6560
6561 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6562
6563 * stack.c (print_block_frame_labels): Comment function out.
6564
6565 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6566
6567 Delete unused or undefined functions.
6568 * breakpoint.c (ep_parse_optional_filename): Delete.
6569 * dcache.c (dcache_write_line): Remove declaration.
6570 * infrun.c (build_infrun): Remove declaration.
6571 * tracepoint.c (tracepoint_save_command): Remove declaration.
6572 * linux-nat.c (init_lwp_list): Delete. No longer used.
6573 * event-loop.c (check_async_signal_handlers): Delete declaration.
6574 * infrun.c (init_execution_control_state): Delete.
6575 (proceed): Update comment to avoid mentioning
6576 init_execution_control_state.
6577 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
6578 * ada-lang.c (ada_to_static_fixed_value): Delete.
6579 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
6580 * cp-namespace.c (cp_copy_usings): Delete.
6581 * xml-syscall.c (xml_number_of_syscalls): Delete.
6582 * progspace.c (find_program_space_by_num): Delete.
6583 * inflow.c (handle_sigio): Delete declaration.
6584 * hppa-tdep.c (hppa_alignof): Delete.
6585 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
6586 (mipsnbsd_core_osabi_sniffer): Delete.
6587
6588 2010-01-18 Tom Tromey <tromey@redhat.com>
6589
6590 PR c++/9680:
6591 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
6592 (CONST_CAST): New tokens.
6593 (exp): Add new productions.
6594 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
6595 reinterpret_cast.
6596 (is_cast_operator): New function.
6597 (yylex): Handle cast operators specially.
6598 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
6599 UNOP_REINTERPRET_CAST>: New cases.
6600 * expprint.c (print_subexp_standard): Likewise.
6601 (op_name_standard): Likewise.
6602 (dump_subexp_body_standard): Likewise.
6603 * parse.c (operator_length_standard): Likewise.
6604 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
6605 UNOP_REINTERPRET_CAST.
6606 * gdbtypes.c (class_types_same_p): New function.
6607 (is_ancestor): Use it.
6608 (is_public_ancestor): New function.
6609 (is_unique_ancestor_worker): Likewise.
6610 (is_unique_ancestor): Likewise.
6611 * gdbtypes.h (class_types_same_p, is_public_ancestor)
6612 (is_unique_ancestor): Declare.
6613 * valops.c (value_reinterpret_cast): New function.
6614 (dynamic_cast_check_1): Likewise.
6615 (dynamic_cast_check_2): Likewise.
6616 (value_dynamic_cast): Likewise.
6617 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
6618
6619 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6620
6621 Fix build failure when building without Python support.
6622 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
6623 is not defined.
6624
6625 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6626
6627 Use XVS field type instead of doing a parallel lookup.
6628 * ada-lang.c (ada_get_base_type): Follow the XVS field type
6629 if it is a reference type instead of doing a type lookup using
6630 the XVS field name.
6631
6632 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6633
6634 Trust PAD types instead of using PAD___XVS.
6635 * ada-lang.c (trust_pad_over_xvs): New static variable.
6636 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
6637 parallel XVS type, follow the XVS type instead of the PAD type.
6638 (unwrap_value): Make sure that there is no parallel XVE type
6639 before returning the value as is.
6640 (set_ada_list, show_ada_list): New static variables.
6641 (set_ada_command, show_ada_command): New functions.
6642 (_initialize_ada_language): Add new "set/show ada" prefix commands.
6643 Add new "set/show ada trust-PAD-over-XVS" setting.
6644
6645 2010-01-18 Tom Tromey <tromey@redhat.com>
6646 Thiago Jung Bauermann <bauerman@br.ibm.com>
6647
6648 Allow "source" to load python scripts.
6649 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
6650 * python/python.c (source_python_script): New function.
6651 * python/python.h (source_python_script): Add declaration.
6652 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
6653 (script_ext_off, script_ext_soft, script_ext_strict)
6654 (script_ext_enums, script_ext_mode): New static constants.
6655 (show_script_ext_mode, find_and_open_script): New functions.
6656 (source_script): Enhance to handle Python scripts.
6657 (init_cli_cmds): Add set/show script-extension commands.
6658
6659 2010-01-16 Stan Shebs <stan@codesourcery.com>
6660
6661 * tracepoint.h (struct trace_status): Use unsigned long long
6662 instead of size_t.
6663 * tracepoint.c (trace_status_command): Fix printf directive.
6664 (trace_save_command): Check fwrite returns, fix printf directive.
6665 (trace_filename): New global.
6666 (tfile_open): Set it, check read returns.
6667 (tfile_close): Free trace_filename.
6668 (tfile_get_traceframe_address): Check read returns.
6669 (tfile_trace_find): Ditto.
6670 (tfile_fetch_registers): Ditto.
6671 (tfile_xfer_partial): Ditto.
6672 (tfile_get_trace_state_variable_value): Ditto.
6673
6674 2010-01-15 Stan Shebs <stan@codesourcery.com>
6675
6676 Add trace file support.
6677 * tracepoint.h (enum trace_stop_reason): New enum.
6678 (struct trace_status): New struct.
6679 (parse_trace_status): Declare.
6680 (struct uploaded_tp): Move here from remote.c,
6681 add fields for actions.
6682 (struct uploaded_tsv): New struct.
6683 * tracepoint.c (tfile_ops): New target vector.
6684 (trace_fd): New global.
6685 (tfile_open): New function.
6686 (tfile_close): New function.
6687 (tfile_files_info): New function.
6688 (tfile_get_trace_status): New function.
6689 (tfile_get_traceframe_address): New function.
6690 (tfile_trace_find): New function.
6691 (tfile_fetch_registers): New function.
6692 (tfile_xfer_partial): New function.
6693 (tfile_get_trace_state_variable_value): New function.
6694 (init_tfile_ops): New function.
6695 (_initialize_tracepoint): Call it, add tfile target.
6696 (trace_status): New global.
6697 (current_trace_status): New function.
6698 (trace_running_p): Remove, change all users to get from
6699 current_trace_status()->running.
6700 (get_trace_status): Remove.
6701 (trace_status_command): Call target_get_trace_status directly,
6702 report more detail including tracing stop reasons.
6703 (trace_find_command): Always allow tfind on a file.
6704 (trace_find_pc_command): Ditto.
6705 (trace_find_tracepoint_command): Ditto.
6706 (trace_find_line_command): Ditto.
6707 (trace_find_range_command): Ditto.
6708 (trace_find_outside_command): Ditto.
6709 (trace_frames_offset, cur_offset): Declare as off_t.
6710 (trace_regblock_size): Rename from reg_size, update users.
6711 (parse_trace_status): New function.
6712 (tfile_interp_line): New function.
6713 (disconnect_or_stop_tracing): Ensure current trace
6714 status before asking what to do.
6715 (stop_reason_names): New global.
6716 (trace_save_command): New command.
6717 (get_uploaded_tp): Move here from remote.c.
6718 (find_matching_tracepoint): Ditto.
6719 (merge_uploaded_tracepoints): New function.
6720 (parse_trace_status): Use stop_reason_names.
6721 (_initialize_tracepoint): Define tsave command.
6722 * target.h (target_ops): New fields to_save_trace_data,
6723 to_upload_tracepoints, to_upload_trace_state_variables,
6724 to_get_raw_trace_data, change to_get_trace_status
6725 to take a pointer to a status struct.
6726 (target_save_trace_data): New macro.
6727 (target_upload_tracepoints): New macro.
6728 (target_upload_trace_state_variables): New macro.
6729 (target_get_raw_trace_data): New macro.
6730 * target.c (update_current_target): Add new methods, change
6731 signature of to_get_trace_status.
6732 * remote.c (hex2bin): Make globally visible.
6733 (bin2hex): Ditto.
6734 (remote_download_trace_state_variable): Download name also.
6735 (remote_get_trace_status): Update parameter, use
6736 parse_trace_status.
6737 (remote_save_trace_data): New function.
6738 (remote_upload_tracepoints): New function.
6739 (remote_upload_trace_state_variables): New function.
6740 (remote_get_raw_trace_data): New function.
6741 (remote_start_remote): Use them.
6742 (_initialize_remote_ops): Add operations.
6743 * ax-gdb.c: Include breakpoint.h.
6744 * breakpoint.c (create_tracepoint_from_upload): Use
6745 break_command_really, return tracepoint, warn about unimplemented
6746 parts.
6747 * NEWS: Mention trace file addition.
6748
6749 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6750
6751 Fix compilation warning on gcc-3.4.
6752 * exec.c (print_section_info): Move the `displacement' variable
6753 initialization to its declaration.
6754
6755 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6756
6757 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
6758 comparison.
6759
6760 2010-01-15 Eric Botcazou <botcazou@adacore.com>
6761
6762 "info tasks" broken by typedefs in ATCB type definitions.
6763 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
6764 ada_check_typedef before retrieving the length of the type for
6765 regular fields.
6766
6767 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6768
6769 Do not use name-based lookup for unconstrained packed arrays.
6770 * ada-lang.c (find_parallel_type_by_descriptive_type):
6771 Limit the fallback to name-based lookups to the case where
6772 the type is a constrained packed array.
6773
6774 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6775
6776 Enhance gdb-gdb.py to handle main_type.type_specific.
6777 * gdb-gdb.py: Print the type-specific part of struct main_type.
6778
6779 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6780
6781 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
6782 * configure: Regenerate.
6783 * config.in: Regenerate.
6784 * utils.c: Include sys/resource.h.
6785 (dump_core, can_dump_core): New.
6786 (internal_vproblem): Update the comment. Check can_dump_core while
6787 setting dump_core_p. Replace two abort calls by dump_core calls.
6788
6789 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6790 Eli Zaretskii <eliz@gnu.org>
6791
6792 * NEWS: Document the PIE support.
6793
6794 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6795
6796 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
6797 (check_is_pie_binary, _initialize_linux_tdep): Remove.
6798
6799 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6800
6801 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
6802 Replace exec_entry_point call by bfd_get_start_address.
6803
6804 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6805
6806 Support Valgrind attachments broken by the PIE support.
6807 * auxv.c: Include gdbcore.h.
6808 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
6809 parameters ops, object and annex. Remove their assertions.
6810 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
6811 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
6812 (memory_xfer_auxv): ... here.
6813 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
6814 memory_xfer_auxv.
6815 * procfs.c (procfs_xfer_partial): Likewise.
6816 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
6817 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
6818 (svr4_solib_create_inferior_hook): Conditionalize the
6819 svr4_relocate_main_executable call.
6820
6821 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6822
6823 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
6824 target_section. Find SECT in current_target_sections, gdb_assert it.
6825 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
6826 New variable abfd.
6827 * symtab.c (lookup_objfile_from_block): Return the binary file instead
6828 of separate debug info file.
6829
6830 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6831
6832 Support PIEs with no symfile_objfile.
6833 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
6834 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
6835
6836 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6837
6838 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
6839 code part to ...
6840 (svr4_static_exec_displacement): ... a new function.
6841 (svr4_exec_displacement): New function.
6842 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
6843 new_offsets using alloca now. Remove variable old_chain and changed.
6844 Call objfile_relocate unconditionally now.
6845
6846 2010-01-14 Doug Evans <dje@google.com>
6847
6848 * gdbtypes.c (arch_flags_type): Fix comment.
6849 * gdbtypes.h (arch_composite_type): Fix comment.
6850
6851 2009-01-14 Tristan Gingold <gingold@adacore.com>
6852
6853 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
6854 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
6855 to symbol_file_add_from_bfd. Add OSO as separate objfile.
6856 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
6857 macho_add_oso_symfile.
6858 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
6859
6860 2010-01-14 Joel Brobecker <brobecker@adacore.com>
6861
6862 Tru64: Dead threads are never deleted.
6863 * dec-thread.c (dec_thread_ptid_is_alive): New function.
6864 (dec_thread_count_gdb_threads): Fix counter increment.
6865 (dec_thread_add_gdb_thread): Fix *listp increment.
6866 (resync_thread_list): Fix bug in deletion of dead threads that
6867 caused all threads to be deleted, instead of just the dead ones.
6868
6869 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
6870
6871 PR python/10705
6872
6873 * python/python-internal.h: Add lazy_string_object_type
6874 definition.
6875 (create_lazy_string_object, gdbpy_initialize_lazy_string)
6876 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
6877 * python/py-value.c (valpy_lazy_string): New function.
6878 (convert_value_from_python): Add lazy string conversion.
6879 * python/py-prettyprint.c (pretty_print_one_value): Check if
6880 return is also a lazy string.
6881 (print_string_repr): Add lazy string printing branch.
6882 (print_children): Likewise.
6883 * python/py-lazy-string.c: New file. Implement lazy strings.
6884 * python/python.c (_initialize_python): Call
6885 gdbpy_initialize_lazy_string.
6886 * varobj.c (value_get_print_value): Add lazy string printing
6887 branch. Account for encoding.
6888 * c-lang.c (c_printstr): Account for new encoding argument. If
6889 encoding is NULL, find encoding suited for type, otherwise use
6890 user encoding.
6891 * language.h (language_defn): Add encoding argument.
6892 (LA_PRINT_STRING): Likewise.
6893 * language.c (unk_lang_printstr): Update to reflect new encoding
6894 argument to language_defn.
6895 * ada-lang.h (ada_printstr): Likewise.
6896 * c-lang.h (c_printstr): Likewise.
6897 * p-lang.h (pascal_printstr);
6898 * f-lang.c (f_printstr): Likewise.
6899 * m2-lang.c (m2_printstr): Likewise.
6900 * objc-lang.c (objc_printstr): Likewise.
6901 * p-lang.c (pascal_printstr): Likewise.
6902 * scm-lang.c (scm_printstr): Likewise.
6903 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
6904 encoding argument.
6905 * ada-valprint.c (ada_printstr): Likewise.
6906 * f-valprint.c (f_val_print): Likewise
6907 * m2-valprint.c (m2_val_print): Likewise.
6908 * p-valprint.c (pascal_val_print): Likewise.
6909 * expprint.c (print_subexp_standard): Likewise.
6910 * valprint.c (val_print_string): Likewise.
6911 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
6912 (SUBDIR_PYTHON_SRCS): Likewise.
6913 (py-lazy-string.o): New rule.
6914
6915 2010-01-13 Doug Evans <dje@google.com>
6916
6917 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
6918 uninitialized" warning from gcc on local `tree'.
6919
6920 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
6921
6922 Implement core awareness.
6923
6924 * bcache.c (compare_ints): Remove
6925 (print_percentage): Use compare_positive_ints.
6926 * defs.h (compare_positive_ints): Declare.
6927 * linux-nat.h (struct lin_lwp): New field core.
6928 (linux_nat_core_of_thread_1): Declare.
6929 * linux-nat.c (add_lwp): Init the 'core' field.
6930 (linux_nat_wait_1): Record the core.
6931 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
6932 (linux_nat_add_target): Register the above.
6933 * linux-thread-db.c (update_thread_core): New.
6934 (thread_db_find_new_threads): Update core information for
6935 every thread.
6936 * remote.c (struct private_thread_info): New.
6937 (free_private_thread_info, demand_private_info): New.
6938 (PACKET_qXfer_threads, use_osdata_threads): New.
6939 (struct thread_item, threads_parsing_context
6940 (start_thread, end_thread, thread_attributes)
6941 (thread_children, threads_children, threads_elements): New.
6942 (remote_threads_info): Try qXfer:threads before anything
6943 else.
6944 (remote_protocol_packets): Register qXfer:threads.
6945 (remote_open_1): Init use_osdata_threads.
6946 (struct stop_reply): New field 'core'.
6947 (remote_parse_stop_reply): Parse core number.
6948 (process_stop_reply): Record core number.
6949 (remote_xfer_partial): Handle qXfer:threads.
6950 (remote_core_of_thread): New.
6951 (init_remote_ops): Register remote_core_of_thread.
6952 (_initialize_remote): Register qXfer:read.
6953 * target.c (target_core_of_thread): New
6954 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
6955 (struct target_ops): New field to_core_of_threads.
6956 (target_core_of_thread): Declare.
6957 * gdbthread.h (struct thread_info): New field private_dtor.
6958 * thread.c (print_thread_info): Report the core.
6959 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
6960 * utils.c (compare_positive_ints): New.
6961 * features/threads.dtd: New.
6962 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
6963 * mi/mi-main.c (struct collect_cores_data, collect_cores)
6964 (do_nothing, free_vector_of_osdata_items)
6965 (splay_tree_int_comparator, free_splay_tree): New.
6966 (print_one_inferior_data): Implemented printing of selected
6967 inferiors. Collect and print cores.
6968 (output_cores): New.
6969 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
6970 thread groups together with --available.
6971
6972 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6973
6974 * configure: Regenerate (for _STRUCTURED_PROC).
6975
6976 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6977
6978 Delete dead function.
6979 * ada-lang.c (extract_string): Delete. No longer used.
6980
6981 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6982
6983 Fix -Wunused warning in dec-thread.c.
6984 * dec-thread.c (dec_thread_count_gdb_threads)
6985 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
6986
6987 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6988
6989 * ada-valprint.c (ada_print_floating): Remove trailing space.
6990
6991 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6992
6993 Add support for DW_AT_GNAT_descriptive_type.
6994 * gdbtypes.h (enum type_specific_kind): New enum.
6995 (struct main_type) [type_specific_field]: New component.
6996 [type_specific]: Add new component "gnat_stuff".
6997 (struct gnat_aux_type): New type.
6998 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
6999 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
7000 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
7001 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
7002 (TYPE_SPECIFIC_FIELD): New macros.
7003 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
7004 type does not hold any cplus-specific data.
7005 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
7006 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
7007 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
7008 cplus-specific data.
7009 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
7010 Set new component TYPE_SPECIFIC_FIELD (type).
7011 (gnat_aux_default): New constant.
7012 (allocate_gnat_aux_type): New function.
7013 (init_type): Add initialization the type-specific stuff for
7014 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
7015 (print_gnat_stuff): New function.
7016 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
7017 specific data. Adjust code that prints the contents of the
7018 type-specific union using the TYPE_SPECIFIC_FIELD value.
7019 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
7020 the type cplus stuff for Ada types.
7021 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
7022 Error out if these routines are called with an Ada type.
7023 (read_structure_type, read_array_type, read_subrange_type):
7024 Add call to set_descriptive_type.
7025 (set_die_type): Initialize the gnat-specific data if necessary.
7026 (need_gnat_info, die_descriptive_type, set_descriptive_type):
7027 New functions.
7028 * ada-lang.c (decode_constrained_packed_array_type): Use
7029 decode_constrained_packed_array_type instead of doing a standard
7030 lookup to locate a parallel type.
7031 (find_parallel_type_by_descriptive_type): New function.
7032 (ada_find_parallel_type_with_name): New function.
7033 (ada_find_parallel_type): Reimplement using
7034 ada_find_parallel_type_with_name.
7035 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
7036 to check if type has a cplus stuff.
7037 * linespec.c (total_number_of_methods): Likewise.
7038 * mdebugread.c (new_type): Likewise.
7039
7040 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7041
7042 * NEWS: Document the 0b binary number prefix parsing.
7043
7044 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7045
7046 * objfiles.c (objfile_relocate1): Change the return type to int.
7047 Describe the new return value. Return non-zero if data changed.
7048 (objfile_relocate): New variable changed. Set it. Call
7049 breakpoint_re_set depending on CHANGED.
7050
7051 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7052
7053 Implement binary numbers parsing.
7054 * c-exp.y (parse_number): New case 'b' and 'B'.
7055
7056 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7057 Tristan Gingold <gingold@adacore.com>
7058
7059 * solib.c (info_sharedlibrary_command): Replace
7060 objfile_has_partial_symbols and objfile_has_full_symbols calls by
7061 objfile_has_symbols.
7062
7063 2010-01-10 Joel Brobecker <brobecker@adacore.com>
7064
7065 * NEWS: Document the improvements made to the mips-irix port.
7066
7067 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7068
7069 Fix the documentation of valprint.c:value_print.
7070 * valprint.c (value_print): Update the function description to
7071 mention that the syntax of the output follows the current_language,
7072 not necessarily C.
7073
7074 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7075
7076 Fix displacement of separate debug info files.
7077 * objfiles.c (objfile_relocate): Rename to ...
7078 (objfile_relocate1): ... here and make it static. Extend the comment.
7079 (objfile_relocate): New function.
7080 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
7081 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
7082 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
7083 allocated using alloca.
7084 * symfile.c (copy_section_addr_info): Remove.
7085 (build_section_addr_info_from_objfile): Make it global. New variables
7086 addr_bit and mask, use them.
7087 * symfile.h (build_section_addr_info_from_objfile): New prototype.
7088 (copy_section_addr_info): Remove.
7089
7090 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7091
7092 Signal unwinder for mips-irix N32.
7093 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
7094 tramp-frame.h.
7095 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
7096 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
7097 (SIGCONTEXT_LO_OFF): New macros.
7098 (mips_irix_n32_tramp_frame_init): New function.
7099 (mips_irix_n32_tramp_frame): New static constant.
7100 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
7101
7102 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7103
7104 Breakpoint in shared library does not work on mips-irix.
7105 * procfs.c: #include "observer.h".
7106 (procfs_inferior_created): New function, moving here the code
7107 which unsets the syssgi syscall-exit notifications.
7108 (procfs_create_inferior): Remove the code which unsets the syssgi
7109 syscall-exit notifications. It is too early to do this here.
7110 (_initialize_procfs): Attach the procfs_inferior_created observer.
7111
7112 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7113
7114 Wrong return convention for arrays (mips-irix).
7115 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
7116 128 bits or smaller are returned the same way as structs
7117 and unions of the the same size.
7118
7119 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7120
7121 Cannot set the PC on mips-irix.
7122 * irix5-nat.c (fill_gregset): Check regno against the raw PC
7123 register number, no the cooked one.
7124
7125 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7126
7127 Error while loading core file on mips-irix.
7128 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
7129 if debugging from a core file.
7130
7131 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7132
7133 GDB hangs when attaching to process on mips-irix.
7134 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
7135 attaching to a process.
7136
7137 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7138
7139 Use the correct breakpoint instruction on mips-irix.
7140 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
7141 containing the correct breakpoint instruction to use on mips-irix.
7142 Use it when the osabi is GDB_OSABI_IRIX.
7143
7144 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7145
7146 -Wunused warning in procfs.c (mips-irix only).
7147 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
7148 throughout instead of using praddset and prdelset respectively.
7149
7150 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7151
7152 GDB crash while stepping into function.
7153 * infrun.c (handle_inferior_event): Refetch the current frame
7154 after handling what.main_action, in case that pointer became
7155 dangling.
7156
7157 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7158
7159 Fix build failure of solaris-hosted cross debuggers.
7160 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
7161
7162 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
7163
7164 Fix build failure on sparc-solaris.
7165 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
7166
7167 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7168
7169 Move some symfile code into subroutines.
7170 * symfile.h (relative_addr_info_to_section_offsets)
7171 (addr_info_make_relative): New prototypes.
7172 * symfile.c (default_symfile_offsets): Move a part to ...
7173 (relative_addr_info_to_section_offsets): ... this new function.
7174 (default_symfile_offsets): Call it.
7175 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
7176 this part to ...
7177 (addr_info_make_relative): ... this new function.
7178
7179 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7180
7181 Add from_tty to solib_create_inferior_hook.
7182 * infcmd.c (post_create_inferior): Move solib_add after
7183 solib_create_inferior_hook. Pass from_tty to
7184 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
7185 0 from_tty and comment why.
7186 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
7187 * linux-nat.c (linux_child_follow_fork): Likewise.
7188 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
7189 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
7190 from_tty.
7191 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
7192 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
7193 * solib-null.c (null_solib_create_inferior_hook): Likewise.
7194 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
7195 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
7196 * solib-som.c (som_solib_create_inferior_hook): Likewise.
7197 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
7198 Pass it to svr4_so_ops.solib_create_inferior_hook.
7199 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
7200 from_tty.
7201 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
7202 solib_add.
7203 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
7204 enable_break.
7205 * solib-target.c (solib_target_solib_create_inferior_hook): New
7206 parameter from_tty.
7207 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
7208 it to ops->solib_create_inferior_hook.
7209 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
7210 Move solib_add after solib_create_inferior_hook, call it now with
7211 from_tty as 0. New comment there.
7212 * solib.h (solib_create_inferior_hook): New parameter from_tty.
7213 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
7214 Likewise.
7215
7216 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
7217
7218 Fix multiexec race.
7219 * infrun.c (handle_inferior_event): Use get_thread_regcache
7220 with events ptid, not get_current_regcache.
7221
7222 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7223
7224 GDB crash with empty executable name (MinGW).
7225 * source.c (openp): Add assert that parameter string is not NULL.
7226 if parameter string is an empty string, then return with a failure
7227 immediately.
7228
7229 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7230
7231 Get rid of support for VAX Floats.
7232 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7233 (ada_vax_float_print_function): Delete.
7234 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7235 (ada_vax_float_print_function): Delete.
7236 * ada-typeprint.c (print_vax_floating_point_type): Delete.
7237 (ada_print_type): Remove support for VAX floats.
7238 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
7239
7240 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7241
7242 * stabsread.c (read_args): Handle zero arguments.
7243
7244 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7245
7246 Cannot find in-tree libiconv.a after reconfigure.
7247 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
7248 that we can use, then cache the path to this archive.
7249 * configure: Regenerate.
7250
7251 2010-01-07 Stan Shebs <stan@codesourcery.com>
7252
7253 Make tracepoint operations go through target vector.
7254 * target.h (enum trace_find_type): New enum.
7255 (struct target_ops): New fields to_trace_init,
7256 to_download_tracepoint, to_download_trace_state_variable,
7257 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
7258 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
7259 to_set_disconnected_tracing.
7260 (target_trace_init): New macro.
7261 (target_download_tracepoint): New macro.
7262 (target_download_trace_state_variable): New macro.
7263 (target_trace_start): New macro.
7264 (target_trace_set_readonly_regions): New macro.
7265 (target_get_trace_status): New macro.
7266 (target_trace_stop): New macro.
7267 (target_trace_find): New macro.
7268 (target_get_trace_state_variable_value): New macro.
7269 (target_set_disconnected_tracing): New macro.
7270 * target.c (update_current_target): Inherit and set defaults for
7271 tracepoint operations.
7272 * tracepoint.c (default_collect): Make globally visible.
7273 (target_is_remote): Remove, along with all calls.
7274 (tvariables_info): Call target_get_trace_state_variable_value.
7275 (remote_set_transparent_ranges): Remove.
7276 (trace_start_command): Call target_trace_init,
7277 target_download_tracepoint, etc.
7278 (download_tracepoint): Remove.
7279 (trace_stop_command): Simplify.
7280 (stop_tracing): Call target_trace_stop.
7281 (get_trace_status): Call target_get_trace_status.
7282 (trace_status_command): Add case for targets that cannot trace.
7283 (finish_tfind_command): Change to take numerical arguments, call
7284 target_trace_find.
7285 (trace_find_command): Update call to finish_tfind_command.
7286 (trace_find_pc_command): Ditto.
7287 (trace_find_tracepoint_command): Ditto.
7288 (trace_find_line_command): Ditto.
7289 (trace_find_range_command): Ditto.
7290 (trace_find_outside_command): Ditto.
7291 (set_disconnected_tracing_value): Call
7292 target_set_disconnected_tracing.
7293 * remote.c: Add protocol encoding bits from tracepoint.c.
7294 (trace_error): Move from tracepoint.c.
7295 (remote_get_noisy_reply): Ditto.
7296 (free_actions_list_cleanup_wrapper): Ditto.
7297 (free_actions_list): Ditto.
7298 (remote_trace_init): New function.
7299 (remote_download_tracepoint): New function.
7300 (remote_download_trace_state_variable): New function.
7301 (remote_trace_set_readonly_regions): New function.
7302 (remote_trace_start): New function.
7303 (remote_get_trace_status): New function.
7304 (remote_trace_stop): New function.
7305 (remote_trace_find): New function.
7306 (remote_download_trace_state_variable): New function.
7307 (remote_set_disconnected_tracing): New function.
7308 (init_remote_ops): Add tracepoint operations.
7309
7310 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
7311
7312 2010-01-07 Tristan Gingold <gingold@adacore.com>
7313
7314 * symfile.c (build_section_addr_info_from_objfile): New function.
7315 (symbol_file_add_separate): Don't use offsets from objfile but
7316 built an addr info.
7317
7318 2010-01-06 Stan Shebs <stan@codesourcery.com>
7319
7320 Support disconnected tracing.
7321 * infcmd.c (detach_command): Ask whether to stop tracing.
7322 * cli/cli-cmds.c (quit_command): Ditto.
7323 * breakpoint.h (struct breakpoint): New field number_on_target.
7324 * breakpoint.c (create_tracepoint_from_upload): New function.
7325 (get_tracepoint_by_number_on_target): New function.
7326 * remote.c (struct remote): New field disconnected_tracing.
7327 (remote_disconnected_tracing_feature): New function.
7328 (remote_protocol_features): Add DisconnectedTracing.
7329 (struct uploaded_tp): New struct.
7330 (uploaded_tps): New global.
7331 (get_uploaded_tp): New function.
7332 (find_matching_tracepoint): New function.
7333 (remote_get_tracing_state): New function.
7334 (remote_start_remote): Call it.
7335 * tracepoint.c (disconnected_tracing): New global.
7336 (trace_start_command): Initialize number_on_target.
7337 (stop_tracing): New function, split out from...
7338 (trace_stop_command): Call stop_tracing.
7339 (get_trace_status): New function, split out from...
7340 (trace_status_command): Call get_trace_status, add info on
7341 disconnection behavior.
7342 (disconnect_or_stop_tracing): New function.
7343 (finish_tfind_command): Translate from number on target.
7344 (trace_find_tracepoint_command): Translate to number on target.
7345 (send_disconnected_tracing_value): New function.
7346 (set_disconnected_tracing): New function.
7347 (_initialize_tracepoint): Add disconnected-tracing variable.
7348 * NEWS: Mention disconnected tracing.
7349
7350 2010-01-06 Tristan Gingold <gingold@adacore.com>
7351
7352 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
7353 parameter to main_objfile. Iterate on all separate debug objfiles.
7354 * symfile.h (symbol_file_add_separate)
7355 (find_separate_debug_file_by_debuglink): Remove parameter names.
7356 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
7357 (reread_symbols): Use free_objfile_separate_debug.
7358 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
7359 Adjust comment.
7360 (objfile_separate_debug_iterate, add_separate_debug_objfile)
7361 (free_objfile_separate_debug): New prototypes.
7362 * objfiles.c (objfile_separate_debug_iterate): New function.
7363 (add_separate_debug_objfile, free_objfile_separate_debug): New
7364 functions.
7365 (free_objfile): Use free_objfile_separate_debug. Adjust for
7366 multiple separate debug objfile.
7367 (objfile_has_symbols): Adjust comment. Iterate on all separate
7368 debug objfiles.
7369 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
7370 debug objfile.
7371 (lookup_minimal_symbol_text): Ditto.
7372 (lookup_minimal_symbol_by_pc_name): Ditto.
7373 (lookup_minimal_symbol_solib_trampoline): Ditto.
7374 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
7375 debug objfiles.
7376
7377 2010-01-05 Stan Shebs <stan@codesourcery.com>
7378
7379 Add fast tracepoints.
7380 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
7381 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
7382 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
7383 * breakpoint.c (tracepoint_type): New function.
7384 (ALL_TRACEPOINTS): Use it.
7385 (should_be_inserted): Ditto.
7386 (bpstat_check_location): Ditto.
7387 (print_one_breakpoint_location): Ditto.
7388 (user_settable_breakpoint): Ditto.
7389 (set_breakpoint_location_function): Ditto.
7390 (disable_breakpoints_in_shlibs): Ditto.
7391 (delete_trace_command): Ditto.
7392 (print_it_typical): Add bp_fast_tracepoint case.
7393 (bpstat_what): Ditto.
7394 (print_one_breakpoint_location): Ditto.
7395 (allocate_bp_location): Ditto.
7396 (mention): Ditto.
7397 (breakpoint_re_set_one): Ditto.
7398 (disable_command): Ditto.
7399 (enable_command): Ditto.
7400 (check_fast_tracepoint_sals): New function.
7401 (break_command_really): Call it.
7402 (ftrace_command): New function.
7403 (_initialize_breakpoint): Add ftrace command.
7404 * gdbarch.sh (fast_tracepoint_valid_at): New.
7405 * gdbarch.h, gdbarch.c: Regenerate.
7406 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
7407 (i386_gdbarch_init): Use it.
7408 * remote.c (struct remote_state): New field fast_tracepoints.
7409 (PACKET_FastTracepoints): New packet config type.
7410 (remote_fast_tracepoint_feature): New function.
7411 (remote_protocol_features): Add FastTracepoints.
7412 (remote_supports_fast_tracepoints): New function.
7413 (_initialize_remote): Add FastTracepoints.
7414 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
7415 * NEWS: Mention fast tracepoints.
7416
7417 2010-01-06 Joel Brobecker <brobecker@adacore.com>
7418
7419 * gdb-gdb.py: New file.
7420
7421 2010-01-05 Michael Snyder <msnyder@vmware.com>
7422
7423 * infrun.c (handle_inferior_event): Fix typo in comment.
7424
7425 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7426
7427 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
7428
7429 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7430
7431 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7432 and s390x-linux64.
7433 (s390-linux32-expedite): Define.
7434 (s390-linux64-expedite): Define.
7435 (s390x-linux64-expedite): Define.
7436 * features/s390-acr.xml: New file.
7437 * features/s390-fpr.xml: New file.
7438 * features/s390-core32.xml: New file.
7439 * features/s390-core64.xml: New file.
7440 * features/s390x-core64.xml: New file.
7441 * features/s390-linux32.xml: New file.
7442 * features/s390-linux64.xml: New file.
7443 * features/s390x-linux64.xml: New file.
7444 * features/s390-linux32.c: New generated file.
7445 * features/s390-linux64.c: New generated file.
7446 * features/s390x-linux64.c: New generated file.
7447
7448 * regformats/s390-linux32.dat: New generated file.
7449 * regformats/s390-linux64.dat: New generated file.
7450 * regformats/s390x-linux64.dat: New generated file.
7451 * regformats/reg-s390.dat: Remove.
7452 * regformats/reg-s390x.dat: Remove.
7453
7454 * s390-nat.c: Include "auxv.h" and <elf.h>.
7455 (HWCAP_S390_HIGH_GPRS): Define if undefined.
7456 (s390_target_wordsize): New function.
7457 (s390_auxv_parse): Likewise.
7458 (s390_get_hwcap): Likewise.
7459 (s390_read_description): Likewise.
7460 (_initialize_s390_nat): Install s390_auxv_parse and
7461 s390_read_description.
7462
7463 * s390-tdep.c: Include "features/s390-linux32.c",
7464 "features/s390-linux64.c", and "features/s390x-linux64.c".
7465 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
7466 (s390_register_call_saved): New function.
7467 (s390_register_name): Remove.
7468 (s390_register_type): Remove.
7469 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
7470 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
7471 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
7472 (s390_pseudo_register_name): New function.
7473 (s390_pseudo_register_type): New function.
7474 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
7475 Handle full GPR pesudos and varying pseudo register numbers.
7476 (s390_pseudo_register_write): Likewise
7477 (s390x_pseudo_register_read): Remove.
7478 (s390x_pseudo_register_write): Likewise.
7479 (s390_register_group): Remove.
7480 (s390_pseudo_register_group): New function.
7481 (s390_regmap_gregset): Add GPR upper halves.
7482 (s390x_regmap_gregset): Likewise.
7483 (s390_regmap_fpregset): Likewise.
7484 (s390_regmap_upper): New global variable.
7485 (s390_upper_regset): New global variable.
7486 (s390_upper_regset_sections): New global variable.
7487 (s390_regset_from_core_section): Handle GPR upper halves.
7488 (s390_core_read_description): New function.
7489 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
7490 register information. Handle varying pseudo register numbers.
7491 (s390_backchain_frame_unwind_cache): Likewise.
7492 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
7493 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
7494 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
7495 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
7496 Handle varying pseudo register numbers.
7497 (s390_unwind_pc): Handle varying pseudo register numbers.
7498 (s390_dwarf2_prev_register): New function.
7499 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
7500 register information. Handle varying pseudo register numbers.
7501 Install s390_dwarf2_prev_register to unwind full GPRs.
7502 (s390_gdbarch_init): Handle target descriptions. Assign varying
7503 pseudo register numbers. Install s390_adjust_frame_regnum.
7504 (_initialize_s390_tdep): Initialize target descriptions.
7505
7506 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
7507 (S390_NUM_REGS): Redefine to include upper half registers.
7508 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
7509 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
7510 (tdesc_s390_linux32): Add declaration.
7511 (tdesc_s390_linux64): Likewise.
7512 (tdesc_s390x_linux64): Likewise.
7513
7514 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7515
7516 * regset.h (struct core_regset_section): Add HUMAN_NAME.
7517 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
7518 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
7519 (ppc_linux_vmx_regset_sections): Likewise.
7520 (ppc_linux_fp_regset_sections): Likewise.
7521
7522 * corelow.c (get_core_register_section): Constify arguments.
7523 (get_core_registers): Use gdbarch_core_regset_sections instead
7524 of hard-coded platform-specific register section names.
7525
7526 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7527
7528 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
7529 a register, assume the least-significant part is used.
7530 (write_pieced_value): Likewise.
7531
7532 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7533
7534 * printcmd.c: Include "arch-utils.h".
7535 (do_one_display): Re-parse expression if current architecture changed.
7536
7537 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7538 Joel Brobecker <brobecker@adacore.com>
7539
7540 * gdbtypes.c (check_typedef): New comment on type length.
7541 * value.c (allocate_value_lazy): Remove the unused atype variable. New
7542 comment on type length.
7543 (value_primitive_field): Keep the original TYPE value, new comment.
7544
7545 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7546
7547 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
7548 p_start. Change != comparisons to > and < comparisons.
7549
7550 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7551
7552 * cli/cli-script.c (process_next_line): Check P2 overrun.
7553
7554 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7555
7556 Update the copyright hearder to add year 2010 for most GDB files.
7557
7558 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7559
7560 Fix build failure in inf-ptrace.c.
7561 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
7562
7563 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7564
7565 * top.c (print_gdb_version): Update copyright year.
7566
7567 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7568
7569 Fix break *FUN'address thread NUM.
7570 * ada-lex.l (task): Expand rule to also match the thread keyword.
7571
7572 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7573
7574 Fix break *FUN'address task NUM.
7575 * ada-lex.l (task): New rule.
7576 * ada-lang.c (valid_task_id): Make sure the Ada task list has
7577 been built before using it.
7578
7579 For older changes see ChangeLog-2009.
7580 \f
7581 Local Variables:
7582 mode: change-log
7583 left-margin: 8
7584 fill-column: 74
7585 version-control: never
7586 coding: utf-8
7587 End:
This page took 0.178425 seconds and 5 git commands to generate.