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