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