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