* elfxx-mips.h: Include "elf/mips.h".
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
26ab7092
JK
12010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
4 (_initialize_ia64_linux_nat): Install it.
5 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
6 (linux_nat_set_status_is_event): New.
7 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
8 cancel_breakpoints_callback, linux_nat_filter_event)
9 (linux_nat_wait_1): Use linux_nat_status_is_event.
10 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
11
283e6a52
TT
122010-07-27 Tom Tromey <tromey@redhat.com>
13
14 * NEWS: Mention labels, .gdb_index.
15
53a71c06
CR
162010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
17
18 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
19 "start,+length" form of arguments.
20 * NEWS: Add "Changed commands" (disassemble) section for "Changes
21 since GDB 7.1"; and merge two separated paragraphs of disassemble
22 description in "Changes in GDB 7.0".
23
c63a1f86
JK
242010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
25
26 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
27 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
28 (fputs_maybe_filtered): Do not do filtering also on
29 ! INPUT_FROM_TERMINAL_P.
30
abebb8b0
JB
312010-07-27 Joel Brobecker <brobecker@adacore.com>
32
33 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
34 in warning message.
35
5374244e
PM
362010-07-27 Phil Muldoon <pmuldoon@redhat.com>
37
38 * python/py-value.c (valpy_call): New Function.
39
ac0b195c
KW
402010-07-27 Ken Werner <ken.werner@de.ibm.com>
41
872e696d 42 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
43 types_list_elements variables.
44
09d8bd00
TT
452010-07-26 Tom Tromey <tromey@redhat.com>
46
47 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
48 TLS with DW_OP_const4u or DW_OP_const8u.
49
9fe70b4f
TJB
502010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
51
52 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
53 VSX registers contents.
54
caac4577
JG
552010-07-26 Jerome Guitton <guitton@adacore.com>
56
57 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
58 its adress is null. Add comment to explain why.
59 (new_symbol): Ditto.
60
857d11d0
JK
612010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
62
63 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
64 the host signal first.
65
1fd400ff
TT
662010-07-23 Tom Tromey <tromey@redhat.com>
67
68 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
69 type_comp_units>: New fields.
70 (dw2_get_cu): New function.
71 (create_cus_from_index): Remove unused argument.
72 (create_signatured_type_hash_from_index): New function.
73 (create_addrmap_from_index): Update.
74 (dwarf2_read_index): Handle version 2.
75 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
76 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
77 (dw2_print_stats, dw2_expand_all_symtabs)
78 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
79 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
80 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
81 (allocate_signatured_type_hash_table): New function.
82 (add_signatured_type_cu_to_list): Likewise.
83 (create_debug_types_hash_table): Use them. Set type_comp_units.
84 (read_signatured_type): Ensure section data is available.
85 (add_address_entry): Don't record empty ranges.
86 (struct signatured_type_index_data): New.
87 (write_one_signatured_type): New function.
88 (write_psymtabs_to_index): Write type CUs.
89 (save_gdb_index_command): Update comment.
90 (process_type_comp_unit): Move inititalization of
91 from_debug_types...
92 (create_debug_types_hash_table): ... here.
93
3a674486
JK
942010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
95
96 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
97 cleanup and generating of gdb script to it.
98 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
99 and terminal size. Convert $tmpfile to a series of -ex-es.
100
54ec275a
KS
1012010-07-23 Keith Seitz <keiths@redhat.com>
102
103 * symtab.c (basic_lookup_transparent_type): Call pre-expand
104 hook for STATIC_BLOCK types, too.
105
8fd447e6
KS
1062010-07-23 Keith Seitz <keiths@redhat.com>
107
108 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
109 and vector definition.
110
25b72dde
JK
1112010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
112
113 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
114
96d19272
JK
1152010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
116
117 * dwarf2read.c: Include completer.h.
118 (save_gdb_index_command): Use matching usage command name.
119 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
120 Set filename_completer for it.
121
ca1f3406
TT
1222010-07-22 Tom Tromey <tromey@redhat.com>
123
124 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
125 type signature's per-CU data.
126
ba25b921
PA
1272010-07-22 Pedro Alves <pedro@codesourcery.com>
128
129 * NEWS: Mention target reported shared libraries support by
130 default.
131
23bd0f7c
PA
1322010-07-21 Pedro Alves <pedro@codesourcery.com>
133
134 PR symtab/11827
135
136 Revert:
137 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
138 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
139 and DW_TAG_volatile_type.
140 (new_symbol): Likewise.
141
883df6dd
SW
1422010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
143
144 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
145 function symbols before overload resolution.
146
269b11a2
PA
1472010-07-21 Pedro Alves <pedro@codesourcery.com>
148
149 * breakpoint.c (bptype_string): New, abstracted out from
150 print_one_breakpoint_location.
151 (print_one_breakpoint_location): Adjust.
152 (breakpoint_1): Adjust the type column width dynamically.
153
569b05a5
JK
1542010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
155
156 * symfile.c (find_separate_debug_file_by_debuglink): Remove
157 a gdb_assert call, new comment.
158
ad34eb2f
JK
1592010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
160
161 * linux-nat.c (linux_handle_extended_wait): Handle case when
162 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
163
33355866
JK
1642010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
165
166 Code cleanup.
167 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
168 linux_nat_wait_1. Use always LP->STATUS afterwards.
169
26590820
HZ
1702010-07-20 Hui Zhu <teawater@gmail.com>
171
172 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
173 (inf_ptrace_attach): Ditto.
174
c0edd9ed
JK
1752010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
176
177 Make core files the process_stratum.
178 * corefile.c (core_target): New variable.
179 (core_file_command): Remove variable t, use core_target.
180 * corelow.c (core_ops): Make it static.
181 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
182 * defs.h (make_cleanup_unpush_target): New prototype.
183 * gdbarch.h: Regenerate.
184 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
185 * gdbcore.h (core_target): New declaration.
186 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
187 variables ops_already_pushed and back_to. Use push_target,
188 make_cleanup_unpush_target and discard_cleanups calls.
189 * record.c (record_open): Replace core_stratum by a core_bfd check.
190 * target.c (target_is_pushed): New function.
191 (find_core_target): Remove.
192 * target.h (enum strata) <core_stratum>: Remove.
193 (target_is_pushed): New declaration.
194 (find_core_target): Remove declaration.
195 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
196 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
197
f02253f1
HZ
1982010-07-19 Hui Zhu <teawater@gmail.com>
199
200 * breakpoint.c (single_step_breakpoints_inserted): New
201 function.
202 * breakpoint.h (single_step_breakpoints_inserted): Extern.
203 * infrun.c (maybe_software_singlestep): Add check code.
204 * record.c (record_resume): Add code for software single step.
205 (record_wait): Ditto.
206
78768c4a
JK
2072010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
208
209 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
210 a more inner block. Remove its unused declaration initializer.
211
431e49aa
TJB
2122010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
213
214 * NEWS: Mention support for the new ptrace interface and hardware
215 accelerated watchpoint conditions on powerpc-linux.
216
bd91e7ae
OS
2172010-07-16 Ozkan Sezer <sezeroz@gmail.com>
218
219 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
220 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
221 and host_address_to_string() and %s for pointers.
222 (debug_to_remove_breakpoint): Likewise.
223 (debug_to_region_ok_for_hw_watchpoint): Likewise.
224 (debug_to_can_accel_watchpoint_condition): Likewise.
225 (debug_to_stopped_data_address): Likewise.
226 (debug_to_watchpoint_addr_within_range): Likewise.
227 (debug_to_insert_hw_breakpoint): Likewise.
228 (debug_to_remove_hw_breakpoint): Likewise.
229 (debug_to_insert_watchpoint): Likewise.
230 (debug_to_remove_watchpoint): Likewise.
231
29df156d
SW
2322010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
233
234 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
235 argument.
236 (cplus_specific): New struct.
237 * symtab.c (symbol_set_demangled_name): Updated.
238 Use cplus_specific for cplus symbols.
239 (symbol_get_demangled_name): Retrive the name from the cplus_specific
240 struct for cplus symbols.
241 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
242 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
243 * symtab.c (symbol_init_cplus_specific): New function.
244
b250c185
SW
2452010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
246
247 * symtab.h (symbol_set_demangled_name): New function.
248 (symbol_get_demangled_name): New function.
249 * symtab.c (symbol_set_demangled_name): New function.
250 (symbol_get_demangled_name): New function.
251 (symbol_init_language_specific): Use demangled_name setter and getter.
252 (symbol_set_names): Ditto.
253 (symbol_natural_name): Ditto.
254 (symbol_demangled_name): Ditto.
255 * dwarf2read.c (new_symbol): Ditto.
256
afa16725
SW
2572010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
258
259 * symtab.h: Renamed cplus_specific to mangled_lang.
260 * symtab.c (symbol_init_language_specific): Updated.
261 (symbol_set_names): Updated.
262 (symbol_natural_name): Updated.
263 (symbol_demangled_name): Updated.
264 * ada-lang.c (ada_decode_symbol): Updated.
265 * dwarf2read.c (new_symbol): Updated.
266
3cbaedff
KW
2672010-07-14 Ken Werner <ken.werner@de.ibm.com>
268
269 * valops.c (value_assign): Do not call to value_coerce_to_target.
270 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
271
c932f1be
KW
2722010-07-14 Ken Werner <ken.werner@de.ibm.com>
273
274 * MAINTAINERS: Add myself for write after approval privileges.
275
91158a56
TT
2762010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
277
278 * c-valprint.c (c_val_print): Add embedded_offset to address in
279 call to val_print_array_elements.
280
b3b272e1
TT
2812010-07-13 Tom Tromey <tromey@redhat.com>
282
283 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
284
bb3fa9d0
TT
2852010-07-13 Tom Tromey <tromey@redhat.com>
286
287 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
288 objfile.
289
dd786858
TT
2902010-07-13 Tom Tromey <tromey@redhat.com>
291
292 * symfile.c (set_initial_language): Update.
293 (deduce_language_from_filename): Argument type now const.
294 * symtab.h (find_main_filename): Update.
295 (deduce_language_from_filename): Update.
296 * symtab.c (find_main_filename): Make result const.
297 * dwarf2read.c (dw2_find_symbol_file): Change return type.
298 * psymtab.c (find_symbol_file_from_partial): Change return type.
299 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
300 Make result const.
301
9291a0cd
TT
3022010-07-13 Tom Tromey <tromey@redhat.com>
303
304 * breakpoint.c (save_cmdlist): No longer static.
305 * gdbcmd.h (save_cmdlist): Declare.
306 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
307 OBJF_READNOW on objfile if readnow_symbol_files.
308 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
309 (elf_sym_fns_gdb_index): New global.
310 * dwarf2read.c: Include exceptions.h.
311 (offset_type): New.
312 (struct mapped_index): New.
313 (dwarf2_per_cu_data_ptr): New typedef.
314 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
315 New fields.
316 (GDB_INDEX_SECTION): New define.
317 (struct dwarf2_per_cu_quick_data): New.
318 (struct dwarf2_per_cu_data) <objfile>: New field.
319 <psymtab>: Removed.
320 <v>: New field.
321 (byte_swap): New function.
322 (MAYBE_SWAP): New macro.
323 (INDEX_SUFFIX): New macro.
324 (dw2_do_instantiate_symtab): New function.
325 (dw2_instantiate_symtab): Likewise.
326 (create_cus_from_index): Likewise.
327 (create_addrmap_from_index): Likewise.
328 (mapped_index_string_hash): Likewise.
329 (find_slot_in_mapped_hash): Likewise.
330 (dwarf2_read_index): Likewise.
331 (dw2_setup): Likewise.
332 (dw2_require_line_header): Likewise.
333 (dw2_require_full_path): Likewise.
334 (dw2_find_last_source_symtab): Likewise.
335 (dw2_forget_cached_source_info): Likewise.
336 (dw2_lookup_symtab): Likewise.
337 (dw2_lookup_symbol): Likewise.
338 (dw2_do_expand_symtabs_matching): Likewise.
339 (dw2_pre_expand_symtabs_matching): Likewise.
340 (dw2_print_stats): Likewise.
341 (dw2_dump): Likewise.
342 (dw2_relocate): Likewise.
343 (dw2_expand_symtabs_for_function): Likewise.
344 (dw2_expand_all_symtabs): Likewise.
345 (dw2_expand_symtabs_with_filename): Likewise.
346 (dw2_find_symbol_file): Likewise.
347 (dw2_map_ada_symtabs): Likewise.
348 (dw2_expand_symtabs_matching): Likewise.
349 (dw2_find_pc_sect_symtab): Likewise.
350 (dw2_map_symbol_names): Likewise.
351 (dw2_map_symbol_filenames): Likewise.
352 (dw2_has_symbols): Likewise.
353 (dwarf2_gdb_index_functions): New global.
354 (dwarf2_initialize_objfile): New function.
355 (process_psymtab_comp_unit): Update.
356 (add_partial_subprogram): Likewise.
357 (dwarf2_psymtab_to_symtab): Likewise.
358 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
359 (process_full_comp_unit): Update.
360 (find_file_and_directory): New function.
361 (read_file_scope): Use find_file_and_directory.
362 (dwarf2_per_cu_objfile): Update.
363 (dwarf2_per_cu_addr_size): Update.
364 (dwarf2_per_cu_offset_size): Update.
365 (dwarf2_free_objfile): Free the index, if needed.
366 (dwarf2_per_objfile_free): Unmap the index, if needed.
367 (struct strtab_entry): New.
368 (hash_strtab_entry): New function.
369 (eq_strtab_entry): Likewise.
370 (create_strtab): Likewise.
371 (add_string): Likewise.
372 (struct symtab_index_entry): New.
373 (struct mapped_symtab): New.
374 (hash_symtab_entry): New function.
375 (eq_symtab_entry): Likewise.
376 (delete_symtab_entry): Likewise.
377 (create_index_table): Likewise.
378 (create_mapped_symtab): Likewise.
379 (cleanup_mapped_symtab): Likewise.
380 (find_slot): Likewise.
381 (hash_expand): Likewise.
382 (add_index_entry): Likewise.
383 (add_indices_to_cpool): Likewise.
384 (write_hash_table): Likewise.
385 (add_address_entry): Likewise.
386 (write_psymbols): Likewise.
387 (write_obstack): Likewise.
388 (unlink_if_set): Likewise.
389 (write_psymtabs_to_index): Likewise.
390 (save_gdb_index_command): Likewise.
391 (_initialize_dwarf2_read): Install "save gdb-index"
392 command.
393 (create_all_comp_units): Initialize 'objfile' field of CU.
394 (dwarf2_locate_sections): Check for .gdb_index.
395 * psymtab.h (dwarf2_gdb_index_functions): Declare.
396 * symfile.h (dwarf2_initialize_objfile): Declare.
397
58b6ab13
TT
3982010-07-13 Tom Tromey <tromey@redhat.com>
399
400 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
401 (basic_lookup_transparent_type): Likewise.
402 * symfile.h (struct quick_symbol_functions)
403 <pre_expand_symtabs_matching>: New field.
404 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
405 (psym_functions): Update.
406
0f5238ed
TT
4072010-07-13 Tom Tromey <tromey@redhat.com>
408
409 PR breakpoints/8357:
410 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
411 * linespec.c (decode_line_1): Update comment. Call decode_label.
412 (decode_label): New function.
413 (symbol_found): Handle LOC_LABEL.
414 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
415 domain. Call add_symbol_to_list.
416
9aa1f1e3
TT
4172010-07-13 Tom Tromey <tromey@redhat.com>
418
419 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
420 * dwarf2loc.c (find_location_expression): Use
421 dwarf2_per_cu_text_offset.
422 (dwarf2_evaluate_loc_desc): Likewise.
423 (dwarf2_loc_desc_needs_frame): Likewise.
424 (compile_dwarf_to_ax): Likewise.
425 (loclist_describe_location): Likewise.
426 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
427 (dwarf2_per_cu_objfile): Update comment.
428
953ac07e
JK
4292010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
430
431 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
432 * p-lang.c (pascal_printstr): Likewise.
433
f04e4012
TT
4342010-07-09 Tom Tromey <tromey@redhat.com>
435
436 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
437 'hint' if it is NULL.
438
f4dfd9c0
HZ
4392010-07-09 Hui Zhu <teawater@gmail.com>
440
441 * source.c (print_source_lines_base): Add check for noprint.
442
7e6e39e5
JB
4432010-07-08 Joel Brobecker <brobecker@adacore.com>
444
445 * python/python-config.py: Resync with Python 2.7 version of this
446 script.
447
76b8507d
JB
4482010-07-08 Joel Brobecker <brobecker@adacore.com>
449
450 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
451
797054e6
JB
4522010-07-07 Joel Brobecker <brobecker@adacore.com>
453
454 * NEWS: Create a new section for the next release branch.
455 Rename the section of the current branch, now that it has
456 been cut.
457
c80befee 4582010-07-07 Joel Brobecker <brobecker@adacore.com>
459
460 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
461 * version.in: Bump version to 7.2.50.20100707-cvs.
462
ac56253d
TT
4632010-07-07 Tom Tromey <tromey@redhat.com>
464
465 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
466 LOC_COMPUTED symbol.
467 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
468 (dwarf2_loc_desc_needs_frame): Likewise.
469 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
470 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
471 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
472 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
473 'offset' argument.
474 (struct dwarf2_frame_cache) <text_offset>: New field.
475 (dwarf2_frame_cache): Set new field.
476 (dwarf2_frame_prev_register): Update.
477 (dwarf2_frame_sniffer): Update.
478 (dwarf2_frame_base_sniffer): Update.
479 (dwarf2_frame_find_fde): Add 'out_offset' argument.
480
0cf6dd15
TJB
4812010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
482 Thiago Jung Bauermann <bauerman@br.ibm.com>
483
484 Support for hw accelerated condition watchpoints in booke powerpc.
485
486 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
487 and move to eval.c. Change callers.
488 (insert_bp_location): Pass watchpoint condition in
489 target_insert_watchpoint.
490 (remove_breakpoint_1) Pass watchpoint condition in
491 target_remove_watchpoint.
492 (watchpoint_locations_match): Call
493 target_can_accel_watchpoint_condition.
494 * eval.c: Include wrapper.h.
495 (fetch_subexp_value): Moved from breakpoint.c.
496 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
497 Formatting fix.
498 (can_use_watchpoint_cond_accel): New function.
499 (calculate_dvc): Likewise.
500 (num_memory_accesses): Likewise.
501 (check_condition): Likewise.
502 (ppc_linux_can_accel_watchpoint_condition): Likewise
503 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
504 check_condition and calculate_dvc.
505 (ppc_linux_remove_watchpoint): Likewise.
506 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
507 ppc_linux_can_accel_watchpoint_condition
508 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
509 condition.
510 (debug_to_remove_watchpoint): Likewise.
511 (debug_to_can_accel_watchpoint_condition): New function.
512 (update_current_target): Set to_can_accel_watchpoint_condition.
513 (setup_target_debug): Set to_can_accel_watchpoint_condition.
514 * target.h: Add opaque declaration for struct expression.
515 (struct target_ops) <to_insert_watchpoint>,
516 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
517 <to_can_accel_watchpoint_condition>: New member.
518 condition. Update all callers and implementations.
519 (target_can_accel_watchpoint_condition): New macro.
520 * value.c (free_value_chain): New function.
521 * value.h (fetch_subexp_value): New prototype.
522 (free_value_chain): Likewise.
523
2f2241f1
UW
5242010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
525
526 * linux-nat.c (linux_nat_do_thread_registers): Use section size
527 from gdbarch_core_regset_sections also for .reg if present.
528
529 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
530 section size for .reg.
531 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
532 (ppc_linux_vmx_regset_sections): Likewise.
533 (ppc_linux_fp_regset_sections): Likewise.
534 (ppc64_linux_vsx_regset_sections): New variable.
535 (ppc64_linux_vmx_regset_sections): Likewise.
536 (ppc64_linux_fp_regset_sections): Likewise.
537 (ppc_linux_init_abi): Install core_regset_section lists appropriate
538 for current word size.
539
1fd7cdc2
JB
5402010-07-06 Joel Brobecker <brobecker@adacore.com>
541
542 * server.c (myresume): Make static.
543
11763c18
TT
5442010-07-06 Tom Tromey <tromey@redhat.com>
545
546 * configure, config.in: Rebuild.
547 * configure.ac (HAVE_LIBPYTHON2_7): New define.
548 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
549
a6cc4789
AS
5502010-07-06 Andreas Schwab <schwab@linux-m68k.org>
551
552 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
553 "clear".
554
f9e9243a
UW
5552010-07-06 Ken Werner <ken.werner@de.ibm.com>
556
557 * gdbtypes.h (floatformats_ieee_half): Add declaration.
558 * gdbtypes.c (floatformats_ieee_half): New variable.
559 * doublest.c (floatformat_from_length): Set format to
560 gdbarch_half_format if length matches.
561 * gdbarch.sh (half_bit): New architecture method.
562 (half_format): Likewise.
563 * gdbarch.h: Regenerate.
564 * gdbarch.c: Likewise.
565
4e5799b6
JK
5662010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
567 Joel Brobecker <brobecker@adacore.com>
568
569 Fix re-run of PIE executable, PR shlibs/11776.
570 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
571 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
572
86e4bafc
JK
5732010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
574 Joel Brobecker <brobecker@adacore.com>
575
576 * auxv.c (memory_xfer_auxv): Update attach comment.
577 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
578 svr4_relocate_main_executable.
579 (svr4_solib_create_inferior_hook): Make the call to
580 svr4_relocate_main_executable unconditional.
581
3cd07d20
JK
5822010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
583 Joel Brobecker <brobecker@adacore.com>
584
585 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
586
0a1e94c7
JK
5872010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
588 Joel Brobecker <brobecker@adacore.com>
589
590 Fix attaching to PIEs prelinked on the disk after the process was
591 started.
592 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
593 Verify it against bfd_get_arch_size. Try to match arbitrary
594 displacement for the phdrs comparison.
595
5387647f
TT
5962010-07-02 Tom Tromey <tromey@redhat.com>
597
598 PR exp/11780:
599 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
600 value as optimized-out.
601
38b6c3b3
TJB
6022010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
603 Thiago Jung Bauermann <bauerman@br.ibm.com>
604
605 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
606 represent?" question in comment. Change comment to a proper sentence.
607
a17ac5b0
TT
6082010-07-02 Ken Werner <ken.werner@de.ibm.com>
609
610 * c-valprint.c (c_val_print): Fix printing of character vectors.
611
bddaafad
JK
6122010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
613
614 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
615 create_breakpoint prototype.
616
d41c0fc8
PA
6172010-07-01 Pedro Alves <pedro@codesourcery.com>
618
619 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
620 usefulness suggestion of multiple breakpoints at same location.
621
dc10affe
PA
6222010-07-01 Pedro Alves <pedro@codesourcery.com>
623
624 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
625
cabe9ab6
PA
6262010-07-01 Pedro Alves <pedro@codesourcery.com>
627
628 * dwarf2loc.c (locexpr_tracepoint_var_ref)
629 (loclist_tracepoint_var_ref): Handle optimized out values.
630
cce7e648
PA
6312010-07-01 Pedro Alves <pedro@codesourcery.com>
632
633 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
634 unnecessary space in string.
635 * filesystem.c (_initialize_filesystem): Ditto.
636 * frame.c (_initialize_frame): Ditto.
637 * infcmd.c (step_once): Ditto.
638 * infrun.c (_initialize_infrun): Ditto.
639 * linux-nat.c (linux_child_follow_fork): Ditto.
640 * maint.c (maintenance_deprecate): Ditto.
641 * memattr.c (_initialize_mem): Ditto.
642 * mips-tdep.c (_initialize_mips_tdep): Ditto.
643 * monitor.c (monitor_open): Ditto.
644 * procfs.c (procfs_xfer_memory): Ditto.
645 * reverse.c (bookmarks_info): Ditto.
646 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
647 * stack.c (_initialize_stack): Ditto.
648 * tracepoint.c (_initialize_tracepoint): Ditto.
649 * xtensa-tdep.c (xtensa_supply_gregset,
650 xtensa_regset_from_core_section): Ditto.
651
b65c7efe
TT
6522010-07-01 Tom Tromey <tromey@redhat.com>
653
654 * value.h (struct lval_funcs) <check_any_valid>: Rename from
655 check_all_valid.
656 * value.c (value_entirely_optimized_out): Invert result. Update
657 for new function name.
658
0fb4aa4b
PA
6592010-07-01 Pedro Alves <pedro@codesourcery.com>
660
661 Static tracepoints support.
662
663 * NEWS: Mention new support for static tracepoints.
664 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
665 qXfer:statictrace:read.
666 (New features in the GDB remote stub, GDBserver): Mention static
667 tracepoints support using an UST based backend.
668 (New commands): Mention "info static-tracepoint-markers" and
669 "strace".
670 * breakpoint.c (is_marker_spec): New.
671 (is_tracepoint): Handle static tracepoints.
672 (validate_commands_for_breakpoint): Static tracepoints can't do
673 while-stepping.
674 (static_tracepoints_here): New.
675 (bpstat_what): Handle static tracepoints.
676 (print_one_breakpoint_location, allocate_bp_location, mention):
677 Ditto.
678 (create_breakpoint_sal): Ditto.
679 (decode_static_tracepoint_spec): New.
680 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
681 `type_wanted'. Adjust. Handle static tracepoint marker
682 locations.
683 (break_command_1): Adjust.
684 (update_static_tracepoint): New.
685 (update_breakpoint_locations): Handle static tracepoints.
686 (breakpoint_re_set_one): Handle static tracepoint marker
687 locations.
688 (disable_command, enable_command): Handle static tracepoints.
689 (trace_command, ftrace_command): Adjust.
690 (strace_command): New.
691 (create_tracepoint_from_upload): Adjust.
692 (save_breakpoints): Handle static tracepoints.
693 (_initialize_breakpoint): Install the "strace" command.
694 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
695 (struct breakpoint): New fields static_trace_marker_id and
696 static_trace_marker_id_idx.
697 (breakpoints_here_p): Declare.
698 (create_breakpoint): Adjust.
699 (static_tracepoints_here): Declare.
700 * remote.c (struct remote_state) <static_tracepoints>: New field.
701 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
702 (remote_static_tracepoint_marker_at): New.
703 (remote_static_tracepoint_markers_by_strid): New.
704 (remote_static_tracepoint_feature): New.
705 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
706 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
707 (remote_supports_static_tracepoints): New.
708 (remote_download_tracepoint): Download static tracepoints.
709 (init_remote_ops): Install remote_static_tracepoint_marker_at and
710 remote_static_tracepoint_markers_by_strid.
711 (_initialize_remote): Install set|show remote static-tracepoints,
712 and set|show remote read-sdata-object commands.
713 * target.c (update_current_target): Inherit and default
714 to_static_tracepoint_marker_at, and
715 to_static_tracepoint_markers_by_strid.
716 * target.h (static_tracepoint_marker): Forward declare.
717 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
718 (static_tracepoint_marker_p): New typedef.
719 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
720 (struct target_ops): New fields to_static_tracepoint_marker_at and
721 to_static_tracepoint_markers_by_strid.
722 (target_static_tracepoint_marker_at)
723 (target_static_tracepoint_markers_by_strid): New.
724 * tracepoint.c: Include source.h.
725 (validate_actionline): Handle $_sdata.
726 (struct collection_list): New field strace_data.
727 (add_static_trace_data): New.
728 (clear_collection_list): Clear strace_data.
729 (stringify_collection_list): Account for a possible static trace
730 data collection.
731 (encode_actions_1): Encode an $_sdata collection.
732 (parse_tracepoint_definition): Handle static tracepoints.
733 (parse_static_tracepoint_marker_definition): New.
734 (release_static_tracepoint_marker): New.
735 (print_one_static_tracepoint_marker): New.
736 (info_static_tracepoint_markers_command): New.
737 (sdata_make_value): New.
738 (_initialize_tracepoint): Create the $_sdata convenience variable.
739 Add the "info static-tracepoint-markers" command.
740 Mention $_sdata in the "collect" command's help output.
741 * tracepoint.h (struct static_tracepoint_marker): New.
742 (parse_static_tracepoint_marker_definition)
743 (release_static_tracepoint_marker): Declare.
744 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
745 * python/py-breakpoint.c (bppy_new): Adjust.
746
aac63f0f
JB
7472010-06-30 Joel Brobecker <brobecker@adacore.com>
748
749 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
750 including Python.h.
751
e68994a7
DE
7522010-06-29 Doug Evans <dje@google.com>
753
3863f96c
DE
754 PR gdb/11702
755 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
756 DW_AT_external is present.
757
254e6b9e
DE
758 PR gdb/11702
759 * NEWS: Add entry.
760 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
761 create a symbol for the field and record the value.
762 (new_symbol): Handle DW_TAG_member.
763 * gdbtypes.c (field_is_static): Remove FIXME.
764 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
765 only ignore LOC_CONST symbols that are enums.
766
6e70227d
DE
767 * dwarf2read.c: Remove trailing whitespace.
768
e68994a7
DE
769 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
770 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
771 (struct main_type, field loc): Delete dwarf_block.
772 (FIELD_DWARF_BLOCK): Delete.
773 (SET_FIELD_DWARF_BLOCK): Delete.
774 (TYPE_FIELD_DWARF_BLOCK): Delete.
775 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
776 Update.
777
a480d2f6
HZ
7782010-06-29 Hui Zhu <teawater@gmail.com>
779
780 * record.c (set_record_pic_cmdlist,
781 show_record_pic_cmdlist): New variables.
782 (set_record_pic_command,
783 show_record_pic_command): New functions.
784 (record_pic_function, record_pic_line, record_pic_enum,
785 set_record_pic_type, record_pic_hide_nofunction,
786 record_pic_hide_nosource, record_pic_hide_same): New variables.
787 (record_pic_fputs): New function.
788 (function_list, node_list, edge_list): New struct.
789 (function_list, node_list, edge_list): New variables.
790 (record_pic_cleanups, record_pic_node,
791 record_pic_edge, cmd_record_pic): New functions.
792 (_initialize_record): Add new commands for record pic.
793
a0d7a4ff
JK
7942010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
795
796 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
797 ALLOCATE_CPLUS_STRUCT_TYPE.
798
595939de
PM
7992010-06-28 Phil Muldoon <pmuldoon@redhat.com>
800 Tom Tromey <tromey@redhat.com>
801 Thiago Jung Bauermann <bauerman@br.ibm.com>
802
803 * value.c (pack_unsigned_long): New function.
804 (value_from_ulongest): New function.
805 * value.h (value_from_ulongest): Declare.
806 * python/python.c (_initialize_python): Call
807 gdbpy_initialize_thread and gdbpy_initialize_inferior.
808 * python/python-internal.h: Define thread_object.
809 (gdbpy_inferiors, gdbpy_selected_thread)
810 (frame_info_to_frame_object, create_thread_object)
811 (find_thread_object, find_inferior_object)
812 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
813 (gdbpy_is_value_object, get_addr_from_python): Declare.
814 * python/py-value.c (builtin_type_upylong): Define.
815 (convert_value_from_python): Add logic for ulongest.
816 (gdbpy_is_value_object): New function.
817 * python/py-utils.c (get_addr_from_python): New function.
818 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
819 (gdbpy_selected_frame): Use PyObject over frame_info.
820 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
821 py-infthread.
822 (SUBDIR_PYTHON_SRCS): Likewise.
823 (py-inferior.o): New Rule.
824 (py-infthread.o): New Rule.
825 * python/py-inferior.c: New File.
826 * python/py-infthread.c: New File.
827
98751a41
JK
8282010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
829
830 * c-typeprint.c (c_type_print_base): For no fields check include also
831 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
832 * dwarf2read.c (struct typedef_field_list)
833 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
834 (dwarf2_add_typedef): New.
835 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
836 Copy also FI.TYPEDEF_FIELD_LIST.
837 * gdbtypes.h (struct typedef_field)
838 (struct cplus_struct_type) <typedef_field, typedef_field_count>
839 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
840 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
841
41f62f39
JK
8422010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
843
844 * cp-namespace.c (cp_lookup_nested_type): New variable
845 concatenated_name. Turn the current return condition into a reverse
846 one. Call also lookup_static_symbol_aux on the constructed qualified
847 name.
848 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
849 other files into a called ...
850 (lookup_static_symbol_aux): ... new function here.
851 * symtab.h (lookup_static_symbol_aux): New prototype.
852 * valops.c (value_maybe_namespace_elt): Call also
853 lookup_static_symbol_aux if we failed otherwise.
854
af53d231
JK
8552010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
856
857 Fix PR c++/11703 and PR gdb/1448.
858 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
859 FIRST_ITER check.
860
9655fd1a
JK
8612010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
862
863 Fix modification of cplus_struct_default.
864 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
865 Call ALLOCATE_CPLUS_STRUCT_TYPE.
866 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
867
9279c692
JB
8682010-06-28 Joel Brobecker <brobecker@adacore.com>
869
870 * NEWS: Add entry announcing the python directory.
871
d3f41bb1
TT
8722010-06-28 Tom Tromey <tromey@redhat.com>
873
874 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
875
23e7acfb
DE
8762010-06-28 Doug Evans <dje@google.com>
877
878 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
879 All callers updated.
880
6036c742
JK
8812010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
882
883 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
884 obstack_begin after each obstack_free.
885
9f18a3b3
DE
8862010-06-27 Doug Evans <dje@google.com>
887
1596cb5d
DE
888 * value.c (value_static_field): Use `switch' instead of `if'.
889 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
890
9f18a3b3
DE
891 * valops.c (search_struct_field): Fix typo in error message.
892
43dabe42
UW
8932010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
894
895 * dwarf2expr.c (execute_stack_op): Place preprocessor
896 directives at the start of the source line.
897
0f3bb72e
PH
8982010-06-25 Paul Hilfinger <hilfinger@adacore.com>
899
6036c742
JK
900 * defs.h (make_command_stats_cleanup): Declare.
901 (set_display_time): Declare.
902 (set_display_space): Declare.
903 * event-top.c (command_handler): Use make_command_stats_cleanup.
904 * main.c (display_time, display_space): Move definitions to utils.c.
905 (captured_main): Use make_command_stats_cleanup to get start-up
906 statistics.
907 Use set_display_time and set_display_space for processing OPT_STATISTICS
908 case.
909 * maint.c (maintenance_time_display): Use set_display_time.
910 (maintenance_space_display): Use set_display_space.
911 * top.c (execute_command): Remove obsolete 'maint time' code.
912 (command_loop): Use make_command_stats_cleanup.
913 * utils.c (struct cmd_stats): Structure for storing initial time
914 and space usage.
915 (display_time, display_space): Move definitions here from utils.c.
916 (set_display_time): New function.
917 (set_display_space): New function.
918 (make_command_stats_cleanup): New function.
919 (report_command_stats): New auxiliary function for
920 make_command_stats_cleanup.
0f3bb72e 921
070c8028
UW
9222010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
923
924 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
925 hosts where CORE_ADDR is long long.
926
bc9f0842
TT
9272010-06-25 Tom Tromey <tromey@redhat.com>
928
929 PR python/10808:
930 * python/python.c (execute_gdb_command): Add keywords. Accept
931 "to_string" argument.
932 (struct restore_ui_file_closure): New.
933 (restore_ui_file): New function.
934 (make_cleanup_restore_ui_file): Likewise.
935 (GdbMethods) <execute>: Update.
936
c0cc4c83
UW
9372010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
938
939 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
940 during inferior call stack frame setup.
941
f1d8ee66
UW
9422010-06-25 Ken Werner <ken.werner@de.ibm.com>
943
944 * solib-spu.c: Include "exception.h".
945 (ocl_program_data_key): New variable.
946 (append_ocl_sos): New function.
947 (ocl_enable_break): Likewise.
948 (spu_current_sos): Call append_ocl_sos.
949 (spu_solib_loaded): Call ocl_enable_break.
950 (_initialize_spu_solib): Register ocl_program_data_key.
951
19c0c0f8
UW
9522010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
953
954 * cp-support.c (reset_directive_searched): New function.
955 (make_symbol_overload_list_using): Prevent recursive calls.
956
0f6a939d
PM
9572010-06-25 Phil Muldoon <pmuldoon@redhat.com>
958
959 * printcmd.c (print_variable_and_value): Print error message on
960 caught exception.
961
f2c7657e
UW
9622010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
963
964 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
965 of stack values.
966 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
967 "value" member.
968 (dwarf_expr_push): Change input type to ULONGEST.
969 (dwarf_expr_fetch): Change return type to ULONGEST.
970 (dwarf_expr_fetch_address): Add prototype.
971 (dwarf2_read_address): Remove prototype.
972 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
973 Truncate stack values to ctx->addr_size bytes.
974 (dwarf_expr_fetch): Change return value to ULONGEST.
975 (dwarf_expr_fetch_address): New function.
976 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
977 when appropriate. Update for struct dwarf_expr_piece changes.
978 (dwarf2_read_address): Remove.
979 (unsigned_address_type): Remove.
980 (signed_address_type): Remove.
981 (execute_stack_op): Use dwarf_expr_fetch_address instead of
982 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
983 values. Perform operations on ULONGEST instead of on GDB values,
984 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
985 values and DW_OP_deref results as unsigned integers.
986 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
987 changes.
988 (write_pieced_value): Likewise.
989 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
990 dwarf_expr_fetch when appropriate.
991 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
992 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
993 instead of dwarf_expr_fetch when appropriate.
994
b1d61bc9
PM
9952010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
996
997 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
998
b14285f6
JB
9992010-06-24 Joel Brobecker <brobecker@adacore.com>
1000
1001 * python/python.c (_initialize_python): Add new "constant"
1002 PYTHONDIR in gdb module. Insert this path at the head of
1003 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
1004 exec its __init__.py script if it exists in that directory.
1005
fd60dc69
KB
10062010-06-24 Kevin Buettner <kevinb@redhat.com>
1007
1008 * rx-tdep.c (RX_ACC_REGNUM): Define.
1009 (RX_NUM_REGS): Redefine to 26.
1010 (rx_register_name): Add register "acc". Change order of several
1011 registers. Change name of "vct" register to "fintv" to match RX
1012 documentation.
1013 (rx_register_type): Add case for RX_ACC_REGNUM.
1014
18430289
TT
10152010-06-24 Tom Tromey <tromey@redhat.com>
1016
1017 * psymtab.c (lookup_partial_symbol): Mark definition as static.
1018
40618926
JK
10192010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1020 Tom Tromey <tromey@redhat.com>
1021
1022 Fix GDB startup on readonly filesystem.
1023 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
1024
628fe4e4
JK
10252010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1026 Pedro Alves <pedro@codesourcery.com>
1027
1028 Fix PR 9436.
1029 * breakpoint.c (handle_jit_event): New function.
1030 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
1031 jit, err, table and bs_class. New variables shlib_event, jit_event,
1032 this_action and bptype. Change bs_class assignments to this_action
1033 assignments. new unhandled bptype internal error. Move here
1034 shlib_event and jit_event handling from handle_inferior_event.
1035 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
1036 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
1037 BPSTAT_WHAT_CHECK_JIT.
1038 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
1039 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
1040 (handle_inferior_event): Reinitialize frame and gdbarch after
1041 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
1042 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
1043 gdbarch when frame gets reinitialized.
1044
f1421989
HZ
10452010-06-24 Hui Zhu <teawater@gmail.com>
1046
1047 * printcmd.c (ui_printf): New function.
1048 (printf_command): Call ui_printf.
1049 (_initialize_printcmd): New command "eval".
1050
d03285ec
UW
10512010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
1052
1053 * infrun.c (handle_inferior_event): Handle presence of single-step
1054 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
1055 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
1056 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
1057 * breakpoint.c (detach_single_step_breakpoints): New function.
1058 (detach_breakpoints): Call it.
1059 (cancel_single_step_breakpoints): New function.
1060 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
1061
1062 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
1063 (spu_gdbarch_init): Install it.
1064
38f6b338
JK
10652010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1066
1067 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
1068 * configure: Regenerate.
1069
bb08c432
HZ
10702010-06-22 Hui Zhu <teawater@gmail.com>
1071
1072 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
1073 (i386_process_record): Ditto.
1074 * record.c (record_memory_query): New variable.
1075 (_initialize_record): New command "set record memory-query".
1076 * record.h (record_memory_query): New extern.
1077
b55078be
DE
10782010-06-21 Doug Evans <dje@google.com>
1079
1080 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
1081 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
1082 (i386_syscall_p): Change type of lengthp to int.
1083 (i386_displaced_step_fixup): Handle kernels that run one past a
1084 syscall insn.
1085 * i386-linux-tdep.c (i386_linux_init_abi): Use
1086 i386_displaced_step_copy_insn instead of
1087 simple_displaced_step_copy_insn.
1088
75079b2b
TT
10892010-06-21 Tom Tromey <tromey@redhat.com>
1090
1091 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
1092 (dwarf_type_encoding_name): Likewise.
1093
b00fdb78
TT
10942010-06-21 Tom Tromey <tromey@redhat.com>
1095
1096 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
1097 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
1098 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
1099 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
1100 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
1101 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
1102 * dwarf2read.c (tag_type_to_type): Create a new error type on
1103 failure.
1104 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
1105 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
1106
84951ab5
MS
11072010-06-21 Michael Snyder <msnyder@vmware.com>
1108
1109 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
1110 not add_abbrev_prefix_cmd, for "enable breakpoints".
1111
d4a087c7
UW
11122010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
1113
1114 * dwarf2loc.c (find_location_expression): Add relocation offset
1115 to base-address-selection entry base addresses. Read addresses
1116 (and offsets) as signed/unsigned integers, depending on the
1117 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
1118 (loclist_describe_location): Likewise.
1119 (disassemble_dwarf_expression): Read DW_OP_addr operand as
1120 unsigned integer. Do not call dwarf2_read_address.
1121 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
1122
13def385
UW
11232010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
1124
1125 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
1126 value instead of hard-coded SPU_LS_SIZE.
1127 (spu_software_single_step): Likewise.
1128 * spu-tdep.h (SPU_LS_SIZE): Remove.
1129
d2ed6730
UW
11302010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
1131
1132 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
1133 limit on local store memory accesses.
1134 * spu-linux-nat.c (spu_xfer_partial): Likewise.
1135 * spu-tdep.c (spu_lslr): Remove.
1136 (spu_pointer_to_address): Do not truncate addresses.
1137 (spu_integer_to_address): Likewise.
1138 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
1139 * spu-tdep.h: Add comments.
1140 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
1141 (SPU_OVERLAY_LMA): Define.
1142
6aed2dbc
SS
11432010-06-18 Stan Shebs <stan@codesourcery.com>
1144
a61408f8
SS
1145 * osdata.c (get_osdata): Warn separately if target does not report
1146 type list.
1147 (info_osdata_command): Allow empty type, report error if target
1148 does not return available types of OS data.
1149 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
1150 types if no annex supplied.
1151
6aed2dbc
SS
1152 * thread.c (thread_id_make_value): Make a value representing the
1153 current thread.
1154 (_initialize_thread): Create $_thread.
1155
ec61707d
JB
11562010-06-17 Joel Brobecker <brobecker@adacore.com>
1157
1158 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
1159 last local variable declaration. No real code change.
1160
60606b2c
TT
11612010-06-17 Tom Tromey <tromey@redhat.com>
1162
1163 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
1164 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
1165 temporary obstack.
1166
65d79d4b
SDJ
11672010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
1168 Jan Kratochvil <jan.kratochvil@redhat.com>
1169
1170 * breakpoint.c: Include parser-defs.h.
1171 (watchpoint_exp_is_const): New function.
1172 (watch_command_1): Call watchpoint_exp_is_const to check
1173 if the expression is constant.
1174
0407b3f1
AS
11752010-06-15 Andreas Schwab <schwab@linux-m68k.org>
1176
1177 * configure.ac: Check for RDYNAMIC also for cross builds.
1178 * configure: Regenerate.
1179
98d64339
PA
11802010-06-15 Pedro Alves <pedro@codesourcery.com>
1181
1182 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
1183 (SFILES): Remove solib-null.c, add solib-target.c.
1184 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
1185 (ALLDEPFILES): Remove solib-target.c.
1186 * solib-target.c (_initialize_solib_target): Set
1187 current_target_so_ops to solib_target_so_ops if not already set.
1188 * solib-null.c: Delete.
1189
6a271cae
PA
11902010-06-14 Pedro Alves <pedro@codesourcery.com>
1191
1192 * NEWS: Mention GDBserver's JIT compilation of tracepoint
1193 bytecode.
1194
1e9beacb
UW
11952010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
1196
1197 * cp-valprint.c (cp_print_static_field): Members of
1198 dont_print_stat_array_obstack are of type "struct type *".
1199 (_initialize_cp_valprint): Likewise.
1200
21a176fb
UW
12012010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
1202
1203 * frame.c (frame_register_unwind): Do not access contents
1204 of "optimized out" unwound register value.
1205
25b524e8
JK
12062010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1207
1208 * ada-lang.h (ada_print_type): Make varstring const.
1209 * ada-typeprint.c (print_func_type): Make name const.
1210 (ada_print_type): Make varstring const.
1211 * c-lang.h (c_print_type): Make varstring const.
1212 * c-typeprint.c (c_print_type): Likewise.
1213 * f-lang.h (f_print_type): Likewise.
1214 * f-typeprint.c (f_print_type): Likewise.
1215 * jv-lang.h (java_print_type): Likewise.
1216 * jv-typeprint.c (java_print_type): Likewise.
1217 * language.c (unk_lang_print_type): Likewise.
1218 * language.h (struct language_defn) <la_print_type>: Likewise.
1219 * m2-lang.h (m2_print_type): Likewise.
1220 * m2-typeprint.c (m2_print_type): Likewise.
1221 * p-lang.h (pascal_print_type): Likewise.
1222 * p-typeprint.c (pascal_print_type): Likewise.
1223
d914c394
SS
12242010-06-11 Stan Shebs <stan@codesourcery.com>
1225
1226 Add per-operation permission flags.
1227
1228 * target.h (struct target_ops): New method to_set_permissions.
1229 (target_set_permissions): New macro.
1230 (target_insert_breakpoint): Change macro to function.
1231 (target_remove_breakpoint): Ditto.
1232 (target_stop): Ditto.
1233 (may_write_registers): Declare.
1234 (may_write_memory): Declare.
1235 (may_insert_breakpoints): Declare.
1236 (may_insert_tracepoints): Declare.
1237 (may_insert_fast_tracepoints): Declare.
1238 (may_stop): Declare.
1239 * target.c (may_write_registers, may_write_registers_1): New globals.
1240 (may_write_memory, may_write_memory_1): New globals.
1241 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
1242 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
1243 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
1244 globals.
1245 (may_stop, may_stop_1): New global.
1246 (target_xfer_partial): Test for write permission.
1247 (target_store_registers): Ditto.
1248 (target_insert_breakpoint): New function.
1249 (target_remove_breakpoint): New function.
1250 (target_stop): New function.
1251 (_initialize_targets): Add new set/show variables.
1252 (set_write_memory_permission): New function.
1253 (update_target_permissions): New function.
1254 (set_target_permissions): New function.
1255 (update_current_target): Default to_set_permissions.
1256 (_initialize_targets): Use new globals and setter function.
1257 * tracepoint.c (start_tracing): Test for permission.
1258 * inferior.h (update_observer_mode): Declare.
1259 * infrun.c (non_stop_1): Define earlier.
1260 (observer_mode, observer_mode_1): New globals.
1261 (set_observer_mode, show_observer_mode): New functions.
1262 (update_observer_mode): New function.
1263 (_initialize_infrun): Define "set observer" command.
1264 * remote.c (PACKET_QAllow): New optional packet.
1265 (remote_protocol_features): Add QAllow.
1266 (remote_set_permissions): New function.
1267 (remote_start_remote): Call it.
1268 (init_remote_ops): Add it to target vector.
1269 (_initialize_remote): Add config command for QAllow.
1270
aec5aa8b
TT
12712010-06-11 Tom Tromey <tromey@redhat.com>
1272
1273 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
1274 DW_AT_vtable_elem_location even when GCC extension is seen.
1275
0e03807e
TT
12762010-06-11 Tom Tromey <tromey@redhat.com>
1277
1278 PR gdb/9977, PR exp/11636:
1279 * value.h (value_offset): Update.
1280 (struct lval_funcs) <check_validity>: New field.
1281 <copy_closure>: Make argument const.
1282 (value_computed_closure): Update.
1283 (value_contents_for_printing): Declare.
1284 (value_bits_valid): Likewise.
1285 (val_print): Likewise.
1286 (set_value_component_location): Update.
1287 (value_entirely_optimized_out): Declare.
1288 * value.c (value_offset): Argument now const.
1289 (require_not_optimized_out): New function.
1290 (value_contents_for_printing): New function.
1291 (value_contents_all): Call require_not_optimized_out.
1292 (value_contents): Likewise.
1293 (value_bits_valid): New function.
1294 (value_computed_closure): Argument now const.
1295 (set_value_component_location): Make 'whole' argument const.
1296 (value_entirely_optimized_out): New function.
1297 (value_bitsize): Argument now 'const'.
1298 (value_bitpos): Likewise.
1299 (value_type): Likewise.
1300 * valprint.h (val_print_array_elements): Update.
1301 * valprint.c (val_print): Add 'val' argument. Use
1302 valprint_check_validity.
1303 (valprint_check_validity): New function.
1304 (value_check_printable): Use value_entirely_optimized_out.
1305 (common_val_print): Update.
1306 (value_print): Likewise.
1307 (val_print_array_elements): Add 'val' argument.
1308 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
1309 value_bits_valid. Reinit frame cache for lval_computed.
1310 * sh64-tdep.c (sh64_do_register): Update.
1311 * scm-valprint.c (scm_val_print): Add 'val' argument.
1312 * scm-lang.h (scm_val_print): Update.
1313 * python/python.h (apply_val_pretty_printer): Update.
1314 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
1315 argument. Call set_value_component_location.
1316 * printcmd.c (print_scalar_formatted): Update.
1317 * p-valprint.c (pascal_val_print): Add 'val' argument.
1318 (pascal_object_print_value_fields): Likewise.
1319 (pascal_object_print_value): Likewise.
1320 (pascal_object_print_static_field): Update.
1321 * p-lang.h (pascal_val_print): Update.
1322 (pascal_object_print_value_fields): Update.
1323 * mt-tdep.c (mt_registers_info): Update.
1324 * mi/mi-main.c (get_register): Update.
1325 (mi_cmd_data_evaluate_expression): Use common_val_print.
1326 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
1327 (m2_print_unbounded_array): Likewise.
1328 (m2_val_print): Likewise.
1329 * m2-lang.h (m2_val_print): Update.
1330 * language.h (struct language_defn) <la_val_print>: Add 'val'
1331 argument.
1332 (LA_VAL_PRINT): Likewise.
1333 * language.c (unk_lang_val_print): Add 'val' argument.
1334 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
1335 (java_val_print): Likewise.
1336 * jv-lang.h (java_val_print): Add 'val' argument.
1337 * infcmd.c (default_print_registers_info): Update.
1338 * f-valprint.c (f77_print_array_1): Add 'val' argument.
1339 (f77_print_array): Likewise.
1340 (f_val_print): Likewise.
1341 * f-lang.h (f_val_print): Add 'val' argument.
1342 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
1343 value_bitpos.
1344 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
1345 set_value_optimized_out.
1346 (write_pieced_value): Use value_bitsize and value_bitpos.
1347 <default>: Don't exit loop.
1348 (check_pieced_value_validity): New function.
1349 (pieced_value_funcs): Reference check_pieced_value_validity,
1350 check_pieced_value_invalid.
1351 (copy_pieced_value_closure): Update.
1352 (check_pieced_value_bits): New function.
1353 (check_pieced_value_invalid): New function.
1354 * d-valprint.c (dynamic_array_type): Add 'val' argument.
1355 (d_val_print): Likewise.
1356 * d-lang.h (d_val_print): Update.
1357 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
1358 (cp_print_value_fields_rtti): Likewise.
1359 (cp_print_value): Likewise.
1360 (cp_print_static_field): Update.
1361 * c-valprint.c (c_val_print): Add 'val' argument.
1362 (c_value_print): Update.
1363 * c-lang.h (c_val_print): Update.
1364 (cp_print_value_fields): Likewise.
1365 (cp_print_value_fields_rtti): Likewise.
1366 * ada-valprint.c (struct ada_val_print_args): Remove.
1367 (val_print_packed_array_elements): Add 'val' argument.
1368 (ada_val_print): Likewise. Rewrite.
1369 (ada_val_print_stub): Remove.
1370 (ada_val_print_array): Add 'val' argument.
1371 (ada_val_print_1): Likewise.
1372 (print_variant_part): Likewise.
1373 (ada_value_print): Update.
1374 (print_record): Add 'val' argument.
1375 (print_field_values): Likewise.
1376 * ada-lang.h (ada_val_print): Update.
1377
3cf03773
TT
13782010-06-11 Tom Tromey <tromey@redhat.com>
1379
1380 * vec.h (VEC_cleanup): New macro.
1381 (DEF_VEC_ALLOC_FUNC_I): Update.
1382 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1383 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1384 * dwarf2loc.c (struct axs_var_loc): Remove.
1385 (unimplemented): New function.
1386 (translate_register): Likewise.
1387 (access_memory): Likewise.
1388 (compile_dwarf_to_ax): Likewise.
1389 (dwarf2_tracepoint_var_loc): Remove.
1390 (dwarf2_tracepoint_var_access): Likewise.
1391 (dwarf2_tracepoint_var_ref): Likewise.
1392 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
1393 (loclist_tracepoint_var_ref): Likewise.
1394 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
1395 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
1396 require_composition. No longer static.
1397 (execute_stack_op): Update.
1398 * ax-gdb.h (trace_kludge): Declare.
1399
2bdf28a0
JK
14002010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1401
1402 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
1403 (should_be_inserted): Return zero also on NULL OWNER.
1404 (breakpoint_program_space_exit): New OWNER comment.
1405 (insert_breakpoint_locations): Extend comment for OWNER.
1406 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
1407 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
1408 New OWNER comment.
1409 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
1410 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
1411 (bpstat_check_location): New assert on OWNER.
1412 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
1413 and B initializations to the code block. New assert on them.
1414 (print_one_breakpoint_location): New OWNER comment.
1415 (watchpoint_locations_match): Assert on OWNER.
1416 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
1417 initializations to the code block. New assert on OWNER.
1418 (set_breakpoint_location_function): New assert on OWNER.
1419 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
1420 (bp_location_compare, update_global_location_list)
1421 (update_global_location_list): New OWNER comment.
1422
5b9a19af
UW
14232010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
1424
1425 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
1426
669211f5
UW
14272010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
1428
1429 * config/nm-linux.h (struct target_ops): Remove forward declaration.
1430 (lin_thread_get_thread_signals): Remove prototype.
1431 (GET_THREAD_SIGNALS): Remove.
1432 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
1433 * linux-thread-db.c (check_thread_signals): Directly call
1434 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
1435
b7a8b4ef
UW
14362010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
1437
1438 * gregset.h (GDB_FPXREGSET_T): Remove.
1439 (gdb_fpxregset_t): Likewise.
1440 (supply_fpxregset): Remove prototype.
1441 (fill_fpxregset): Likewise.
1442 * i386-linux-nat.c (supply_fpxregset): Remove.
1443 (fill_fpxregset): Likewise.
1444 (fetch_fpxregs): Inline supply_fpxregset call.
1445 (store_fpxregs): Inline fill_fpxregset call.
1446
1447 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
1448 * config/i386/nm-linux.h: Remove file.
1449
82892036
MS
14502010-06-09 Michael Snyder <msnyder@vmware.com>
1451
1452 * target.c (update_current_target): Fix spelling error in comment.
1453 (target_mourn_inferior): Fix spelling error in error message.
1454
5ddb52fa
PH
14552010-06-08 Paul Hilfinger <hilfingr@adacore.com>
1456
1457 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
1458 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
1459
0f2caa1b
MS
14602010-06-08 Michael Snyder <msnyder@vmware.com>
1461
1462 * remote.c (remote_close): Set inferior_ptid to null_ptid.
1463
3bebe2f2
JK
14642010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1465
1466 * configure.ac <"${have_libpython}" != no>: New workaround of
1467 python#4434.
1468 * configure: Regenerate.
1469
eaaffdf4
HZ
14702010-06-08 Hui Zhu <teawater@gmail.com>
1471
1472 * record.c (record_wait): Move signal out of replay code.
1473
5c631832
JK
14742010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1475
1476 Fix PR 10640.
1477 * dwarf2-frame.c (no_dwarf_call): New function.
1478 (execute_stack_op): Set CTX->DWARF_CALL.
1479 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
1480 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
1481 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
1482 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
1483 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
1484 (needs_frame_dwarf_call): New function.
1485 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
1486 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
1487 Update the comment. Move variables die, offset and error call to ...
1488 (follow_die_ref): ... a new function.
1489 (dwarf2_fetch_die_location_block): New function.
1490 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
1491
17ea53c3
JK
14922010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1493
1494 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
1495 (dwarf_expr_tls_address): Use per_cu instead of objfile.
1496 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
1497 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
1498 this change.
1499 (struct needs_frame_baton): New field per_cu.
1500 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
1501 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
1502
245040d7
SW
15032010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
1504
1505 * cp-support.c (make_symbol_overload_list_namespace): Only search
1506 static and global blocks.
1507 (make_symbol_overload_list_block): New function.
1508 (make_symbol_overload_list): Separate namespace search from block
1509 search.
1510 (make_symbol_overload_list_qualified): Use
1511 make_symbol_overload_list_block.
1512
4c3376c8
SW
15132010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
1514
1515 * value.h: Created oload_search_type enum.
1516 (find_overload_match): Use oload_search_type enum.
1517 * valops.c (find_overload_match): Support combined member and
1518 non-member search.
1519 * eval.c (evaluate_subexp_standard): Calls to
1520 find_overload_match now use oload_search_type enum.
1521 (oload_method_static): Verify index is a proper value.
1522 * valarith.c (value_user_defined_cpp_op): Search for and handle
1523 both member and non-member operators.
1524 (value_user_defined_cpp_op): New function.
1525 (value_user_defined_op): New function.
1526 (value_x_unop): Use value_user_defined_op.
1527 (value_x_binop): Ditto.
1528 * cp-support.c (make_symbol_overload_list_using): Added block
1529 iteration.
1530 Add check for namespace aliases and imported declarations.
1531
ee55da67
JK
15322010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1533
1534 * breakpoint.h (owner): Extend the comment.
1535
1a2ab13a
JK
15362010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1537
1538 Clear stale specific bp_location from former whole breakpoint.
1539 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
1540 code ...
1541 (free_bp_location): ... here. Rename there the called function to
1542 bpstat_remove_bp_location_callback.
1543 (bpstat_remove_breakpoint_callback): Rename to ...
1544 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
1545 to struct bp_location. Change the called function to
1546 bpstat_remove_bp_location. Create new declaration for the function.
1547 (bpstat_remove_breakpoint): Rename to ...
1548 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
1549 code for the new parameter type.
1550
16d6b4b7
NS
15512010-06-07 Nathan Sidwell <nathan@codesourcery.com>
1552
1553 * README: Make version-agnostic.
1554
7e314c57
JK
15552010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1556
1557 Fix duplicate types for single DIE.
1558 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
1559 set_die_type.
1560 (read_array_type): Remove type initialization. Recheck get_die_type
1561 after initial die_type. Move set_die_type before set_descriptive_type.
1562 (read_set_type): New variable domain_type. Recheck get_die_type after
1563 initial die_type. Move attr initialization later.
1564 (read_tag_pointer_type, read_tag_reference_type): New variable
1565 target_type. Recheck get_die_type after initial die_type.
1566 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
1567 die_type and die_containing_type.
1568 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
1569 Recheck get_die_type after initial die_type.
1570 (read_subrange_type): Recheck get_die_type after initial die_type.
1571 Move set_die_type before set_descriptive_type.
1572 (set_die_type): Extend the function comment. Call complaint if DIE has
1573 some type already set.
1574
2f296114
VP
15752010-06-05 Vladimir Prus <vladimir@codesourcery.com>
1576
1577 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
1578 for current naming of thread groups (iN, not N).
1579
554794dc
SDJ
15802010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
1581
1582 * ada-lang.c (ada_operator_length): Constify `struct expression'.
1583 * parse.c (operator_length): Likewise.
1584 (operator_length_standard): Likewise.
1585 * parser-defs.h (operator_length): Likewise.
1586 (operator_length_standard): Likewise.
1587 (struct exp_descriptor <operator_length>): Likewise.
1588
967cf477
DE
15892010-06-04 Doug Evans <dje@google.com>
1590
bddaacb9 1591 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
1592 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
1593 * python/python-internal.h (gdbpy_enabled_cst): Declare.
1594 * python/python.c (gdbpy_enabled_cst): Define.
1595 (_initialize_python): Initialize gdbpy_enabled_cst.
1596 * NEWS: Add entry.
1597
2dec564e
JK
15982010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1599
1600 * breakpoint.c (update_global_location_list): Fix comment typo.
1601
44b5680a
HZ
16022010-06-04 Hui Zhu <teawater@gmail.com>
1603
1604 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
1605
e7a30f46
DE
16062010-06-03 Doug Evans <dje@google.com>
1607
1608 * configure.ac: Don't fail if python is unusable when
1609 configured with --with-python=auto.
1610 * configure: Regenerate.
1611
84b4420f
SW
16122010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
1613
1614 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
1615
df178451
PM
16162010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
1617
1618 * valprint.h (get_array_bounds): Change low and high parameter types
1619 to LONGEST *.
0407b3f1 1620 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
1621 compute bounds.
1622 (val_print_array_elements): Adapt to change above.
1623 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
1624 * p-valprint.c (pascal_val_print): Likewise.
1625
fd5700c7
JK
16262010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1627
1628 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
1629 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
1630 .F08.
1631
f55ee35c
JK
16322010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1633
1634 Support DW_TAG_module as separate namespaces.
1635 * dwarf2read.c (typename_concat): New parameter physname.
1636 (read_module_type): New function and declaration.
1637 (scan_partial_symbols): Scan also DW_TAG_module children.
1638 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
1639 to typename_concat backward compatible physname value 0.
1640 (partial_die_full_name, read_namespace_type): Pass to typename_concat
1641 backward compatible physname value 0.
1642 (add_partial_module, read_module): Remove FIXME comment.
1643 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
1644 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
1645 DIEs under DW_TAG_module.
1646 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
1647 DW_AT_MIPS_linkage_name first, extend it for language_fortran
1648 && physname and return there instead of just setting NAME. Extend
1649 the main block for language_fortran. Pass physname parameter to the
1650 typename_concat call.
1651 (read_import_statement, read_func_scope, get_scope_pc_bounds)
1652 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
1653 (new_symbol): Fill in cplus_specific.demangled_name if it is still
1654 missing from SYMBOL_SET_NAMES in the language_fortran case.
1655 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
1656 variables.
1657 (read_type_die) <DW_TAG_module>: New.
1658 (MAX_SEP_LEN): Increase to 7.
1659 (typename_concat): New parameter physname. New variable lead. Support
1660 also language_fortran.
1661 * f-exp.y (yylex): Consider : also as a symbol name character class.
1662 * f-lang.c: Include cp-support.h.
1663 (f_word_break_characters, f_make_symbol_completion_list): New functions.
1664 (f_language_defn): Use cp_lookup_symbol_nonlocal,
1665 f_word_break_characters and f_make_symbol_completion_list.
1666 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
1667 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
1668 * symtab.c (symbol_init_language_specific): Support language_fortran.
1669 (symbol_find_demangled_name): New comment on language_fortran.
1670 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
1671 for language_fortran.
1672 (lookup_symbol_aux_local): Check imports also for language_fortran.
1673 (default_make_symbol_completion_list): Rename to ...
1674 (default_make_symbol_completion_list_break_on): ... this name. New
1675 parameter break_on, use it.
1676 (default_make_symbol_completion_list): New stub.
1677 * symtab.h (default_make_symbol_completion_list_break_on): New
1678 prototype.
1679
cb91c06a
JB
16802010-06-02 Joel Brobecker <brobecker@adacore.com>
1681
1682 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
1683 to error.
1684
5c315b68
JK
16852010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1686
1687 * dwarf2read.c (typename_concat): Add const to the variable sep.
1688
9eae7c52
TT
16892010-06-02 Tom Tromey <tromey@redhat.com>
1690
1691 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
1692 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
1693 type is const. Add 'def' argument. Add missing operators, remove
1694 unhandled ones.
1695 (decode_locdesc): Update.
1696 (dwarf2_always_disassemble): New global.
1697 (show_dwarf2_always_disassemble): New function.
1698 (_initialize_dwarf2_read): Add always-disassemble.
1699 (dwarf2_per_cu_offset_size): New function.
1700 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
1701 (piece_end_p): New function.
1702 (locexpr_describe_location_piece): Replace 'size' argument with
1703 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
1704 some constants. Remove errors.
1705 (disassemble_dwarf_expression): New function.
1706 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
1707 Add 'offset_size' argument.
1708 (loclist_describe_location): Change output formatting.
1709 * dwarf2expr.h (dwarf_stack_op_name): Declare.
1710
7d3fe98e
SW
17112010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
1712
1713 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
1714 anonymous type case.
1715
e77813c8
PM
17162010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
1717
1718 * dwarf2read.c (read_subrange_type): Handle missing base type
1719 according to Dwarf-2 specifications.
1720
7cf3118a
SDJ
17212010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
1722
1723 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
1724 BINOP_EXCL.
1725 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
1726 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
1727 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
1728 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
1729 UNOP_CHMAX, UNOP_CHMIN.
1730 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
1731 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
1732 UNOP_CHMIN>: Remove opcodes.
1733
ae4d0c03
PM
17342010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
1735
1736 * dwarf2read.c (read_func_scope): Do not complain for
1737 external function if bounds are not found.
1738
fa593d66
PA
17392010-06-01 Pedro Alves <pedro@codesourcery.com>
1740
1741 * NEWS: Mention gdbserver fast tracepoints support.
1742
cd44747c
PM
17432010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
1744
1745 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
1746 New macros.
1747 (windows_set_console_info): New function.
1748 (windows_create_inferior): Call windows_set_console_info
1749 if NEW_CONSOLE is true.
1750 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
1751 (_initialize_loadable): Initialize GetConsoleFontSize and
1752 GetCurrentConsoleFont.
1753
f6528abd
JK
17542010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1755
1756 * Makefile.in (RDYNAMIC): New.
1757 (SFILES): Add proc-service.list.
1758 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
1759 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
1760 * config/arm/linux.mh: Likewise.
1761 * config/i386/linux.mh: Likewise.
1762 * config/i386/linux64.mh: Likewise.
1763 * config/ia64/linux.mh: Likewise.
1764 * config/m32r/linux.mh: Likewise.
1765 * config/m68k/linux.mh: Likewise.
1766 * config/mips/linux.mh: Likewise.
1767 * config/pa/linux.mh: Likewise.
1768 * config/powerpc/linux.mh: Likewise.
1769 * config/powerpc/ppc64-linux.mh: Likewise.
1770 * config/s390/s390.mh: Likewise.
1771 * config/sparc/linux.mh: Likewise.
1772 * config/sparc/linux64.mh: Likewise.
1773 * config/xtensa/linux.mh: Likewise.
1774 * configure.ac: New RDYNAMIC on native host and GCC.
1775 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
1776 * configure: Regenerate.
1777 * proc-service.list: New.
1778
ca2a87a0
JK
17792010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1780
1781 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
1782 CONTENT.
1783
1e225492
JK
17842010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1785
1786 * linux-nat.c (linux_nat_wait_1): Do not call
1787 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
1788 TARGET_WAITKIND_SIGNALLED.
1789
e802dbe0
JB
17902010-05-27 Joel Brobecker <brobecker@adacore.com>
1791
1792 * ada-lang.c (ada_inferior_data): New struct.
1793 (ada_inferior_data): New static global.
1794 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
1795 (ada_get_tsd_type): New functions.
1796 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
1797 to look the tsd type up.
1798 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
1799 event. Set ada_inferior_data.
1800
176a6961
PA
18012010-05-27 Pedro Alves <pedro@codesourcery.com>
1802
1803 * remote.c (unpack_varlen_hex): Remove forward declaration.
1804 (remote_console_output): Make static, and add forward declaration.
1805 * remote.h: Drop FIXME comment.
1806 (unpack_varlen_hex): Declare.
1807 (remote_console_output, remote_cisco_objfile_relocate)
1808 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
1809 Delete declarations.
1810 * tracepoint.c: Include "remote.h".
1811 (unpack_varlen_hex): Delete declaration.
1812
88bfdde4
TT
18132010-05-27 Tom Tromey <tromey@redhat.com>
1814
1815 * dwarf2loc.c (struct piece_closure) <refc>: New field.
1816 (allocate_piece_closure): Initialize refc.
1817 (copy_pieced_value_closure): Use refc.
1818 (free_pieced_value_closure): Likewise.
1819
8c6363cf
TT
18202010-05-27 Tom Tromey <tromey@redhat.com>
1821
1822 * arm-tdep.c (push_stack_item): 'contents' now const.
1823 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
1824 value_contents_writeable. Introduce new temporary.
1825
7ecb917e
TT
18262010-05-27 Tom Tromey <tromey@redhat.com>
1827
1828 * findcmd.c (parse_find_args): Use value_contents, not
1829 value_contents_raw.
1830
f42a0a33
TT
18312010-05-27 Tom Tromey <tromey@redhat.com>
1832
1833 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
1834 const. Use value_contents, not value_contents_writeable.
1835
12b795ad
JB
18362010-05-27 Joel Brobecker <brobecker@adacore.com>
1837
1838 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
1839 by call to value_contents.
1840
5a2e11c7
OS
18412010-05-27 Ozkan Sezer <sezeroz@gmail.com>
1842
1843 * MAINTAINERS: Add myself for write after approval privileges.
1844
ec685c5e
DE
18452010-05-26 Doug Evans <dje@google.com>
1846
0c4a4063
DE
1847 Allow python to find its files if moved from original location.
1848 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
1849 (GDB_AC_WITH_DIR): Call it.
1850 * configure.ac: Define WITH_PYTHON_PATH if we can find the
1851 python installation directory.
1852 * config.in: Regenerate.
1853 * configure: Regenerate.
1854 * defs.h (python_libdir): Declare.
1855 * main.c (python_libdir): Define.
1856 (captured_main): Initialize python_libdir.
1857 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
1858 call Py_SetProgramName to make sure python can find its libraries
1859 and modules.
1860
ec685c5e
DE
1861 * configure.ac: Try to use python's distutils to fetch compilation
1862 parameters.
1863 * configure: Regenerate.
1864 * python/python-config.py: New file.
1865
363a6e9f
OS
18662010-05-26 Ozkan Sezer <sezeroz@gmail.com>
1867
1868 * ser-tcp.c (net_open): Check error return from socket() call by its
1869 equality to -1 not by it being negative.
1870 (net_close): Likewise.
1871
dde08ee1
PA
18722010-05-26 Pedro Alves <pedro@codesourcery.com>
1873
1874 * NEWS: Mention the `qRelocInsn' feature.
1875 * gdbarch.sh (relocate_instruction): New.
1876 * amd64-tdep.c (rip_relative_offset): New.
1877 (append_insns): New.
1878 (amd64_relocate_instruction): New.
1879 (amd64_init_abi): Install it.
1880 * i386-tdep.c (append_insns): New.
1881 (i386_relocate_instruction): New.
1882 (i386_gdbarch_init): Install it.
1883 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
1884 * gdbarch.h, gdbarch.c: Regenerate.
1885
947bb88f
TT
18862010-05-26 Tom Tromey <tromey@redhat.com>
1887
1888 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
1889 (struct dwarf2_loclist_baton) <data>: Likewise.
1890 * dwarf2loc.c (find_location_expression): Constify return type.
1891 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
1892 (dwarf2_loc_desc_needs_frame): Likewise.
1893 (loclist_read_variable): Constify.
1894 (loclist_describe_location): Likewise.
1895 (loclist_tracepoint_var_ref): Likewise.
1896
0d45f56e
TT
18972010-05-25 Tom Tromey <tromey@redhat.com>
1898
1899 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
1900 (dwarf_expr_frame_base_1): Likewise.
1901 (read_pieced_value): Update.
1902 (needs_frame_frame_base): Constify.
1903 (dwarf2_tracepoint_var_loc): Likewise.
1904 (dwarf2_tracepoint_var_access): Likewise.
1905 (locexpr_describe_location_piece): Likewise.
1906 (locexpr_describe_location_1): Likewise.
1907 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
1908 Constify.
1909 (data): Now const.
1910 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
1911 (dwarf_expr_eval, read_uleb128, read_sleb128)
1912 (dwarf2_read_address): Update.
1913 * dwarf2expr.c (dwarf_expr_eval): Constify.
1914 (read_uleb128): Likewise.
1915 (read_sleb128): Likewise.
1916 (dwarf2_read_address): Likewise.
1917 (require_composition): Likewise.
1918 (execute_stack_op): Likewise.
1919 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
1920 "const gdb_byte *".
1921 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
1922 Now const.
1923 (no_get_frame_base): Constify.
1924 (execute_stack_op): Likewise.
1925 (execute_cfa_program): Likewise.
1926 (read_encoded_value): Likewise.
1927
07ca107c
DE
19282010-05-25 Doug Evans <dje@google.com>
1929
e34838f0
DE
1930 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
1931
01f69b38
DE
1932 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
1933 * event-loop.c: ... here.
1934 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
1935 `error' for clarity.
1936 (tui_getc): Pass correct value for `error' parameter to
1937 tui_readline_output.
1938
07ca107c
DE
1939 Add python gdb.GdbError and gdb.string_to_argv.
1940 * NEWS: Document them.
1941 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
1942 the exception is gdb.GdbError. Print a second traceback if there's
1943 an error computing the error message.
1944 (gdbpy_string_to_argv): New function.
1945 * python/py-utils.c (gdbpy_obj_to_string): New function.
1946 (gdbpy_exception_to_string): New function.
1947 * python/python-internal.h (gdbpy_string_to_argv): Declare.
1948 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
1949 (gdbpy_gdberror_exc): Declare.
1950 * python/python.c (gdbpy_gdberror_exc): New global.
1951 (_initialize_python): Initialize gdbpy_gdberror_exc and create
1952 gdb.GdbError.
1953 (GdbMethods): Add string_to_argv.
1954
5572ce1f
PM
19552010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1956
1957 * windows-nat.c (display_selector): Call GetLastError to give better
1958 failure explanation.
1959
acd5838a
PA
19602010-05-24 Pedro Alves <pedro@codesourcery.com>
1961
1962 * config.in: Regenerate.
1963
b26a4dcb
JK
19642010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1965
1966 Code cleanup.
1967 * target.c (push_target): Return only void. Remove the return value
1968 comment.
1969 * target.h (push_target): Return only void.
1970
f434ba03
PA
19712010-05-23 Pedro Alves <pedro@codesourcery.com>
1972
1973 Update gnulib from latest git.
1974 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1975
1976 * gnulib/memcmp.c: Removed.
1977 * gnulib/memchr.valgrind: New.
1978 * gnulib/stddef.in.h: New.
1979 * gnulib/Makefile.am: Updated.
1980 * gnulib/memchr.c: Updated.
1981 * gnulib/memmem.c: Updated.
1982 * gnulib/stdint.in.h: Updated.
1983 * gnulib/str-two-way.h: Updated.
1984 * gnulib/string.in.h: Updated.
1985 * gnulib/wchar.in.h: Updated.
1986
1987 * gnulib/extra/link-warning.h: Removed.
1988 * gnulib/extra/c++defs.h: New.
1989 * gnulib/extra/warn-on-use.h: New.
1990 * gnulib/extra/arg-nonnull.h: Updated.
1991
1992 * gnulib/m4/extensions.m4: Updated.
1993 * gnulib/m4/gnulib-cache.m4: Updated.
1994 * gnulib/m4/gnulib-common.m4: Updated.
1995 * gnulib/m4/gnulib-comp.m4: Updated.
1996 * gnulib/m4/gnulib-tool.m4: Updated.
1997 * gnulib/m4/include_next.m4: Updated.
1998 * gnulib/m4/longlong.m4: Updated.
1999 * gnulib/m4/memchr.m4: Updated.
2000 * gnulib/m4/memmem.m4: Updated.
2001 * gnulib/m4/stdint.m4: Updated.
2002 * gnulib/m4/string_h.m4: Updated.
2003 * gnulib/m4/memcmp.m4: Removed.
2004 * gnulib/m4/onceonly_2_57.m4: Removed.
2005 * gnulib/m4/00gnulib.m4: New.
2006 * gnulib/m4/mmap-anon.m4: New.
2007 * gnulib/m4/multiarch.m4: New.
2008 * gnulib/m4/onceonly.m4: New.
2009 * gnulib/m4/stddef_h.m4: New.
2010 * gnulib/m4/warn-on-use.m4: New.
2011 * gnulib/m4/wchar.m4: Removed.
2012 * gnulib/m4/wchar_h.m4: New.
2013 * gnulib/m4/wchar_t.m4: New.
2014 * gnulib/m4/wint_t.m4: New.
2015
2016 * aclocal.m4: Regenerate.
2017 * config.in: Likewise.
2018 * configure: Likewise.
2019 * gnulib/Makefile.in: Likewise.
2020
d3b1e874
TT
20212010-05-21 Tom Tromey <tromey@redhat.com>
2022
2023 * dwarf2loc.c (extract_bits_primitive): New function.
2024 (extract_bits): Likewise.
2025 (insert_bits): Likewise.
2026 (copy_bitwise): Likewise.
2027 (read_pieced_value): Do all operations in bits.
2028 (write_pieced_value): Likewise.
2029 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
2030 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
2031 Always use xrealloc to resize piece array.
2032 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
2033 <DW_OP_piece>: Update.
2034 <DW_OP_bit_piece>: New case.
2035
cb826367
TT
20362010-05-21 Tom Tromey <tromey@redhat.com>
2037
2038 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
2039 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
2040 * dwarf2expr.h (enum dwarf_value_location)
2041 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
2042 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
2043 (add_piece): Handle empty piece.
2044 (execute_stack_op) <DW_OP_piece>: Handle
2045 DWARF_VALUE_OPTIMIZED_OUT.
2046
74de6778
TT
20472010-05-21 Tom Tromey <tromey@redhat.com>
2048
2049 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
2050 evaluate_subexp, not evaluate_subexp_with_coercion.
2051
f346a30d
PM
20522010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2053
2054 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2055 attribute.
2056
afd74c5f
TT
20572010-05-21 Tom Tromey <tromey@redhat.com>
2058
2059 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
2060 offset.
2061 (write_pieced_value): Likewise.
2062
90e7c2c5
PM
20632010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2064
2065 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2066 and DW_TAG_volatile_type.
2067 (new_symbol): Likewise.
2068
8148cf8d
PM
20692010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
2070
2071 * p-valprint.c (pascal_val_print): Call get_array_bounds
2072 to obtain the number of elements in an array.
2073
3a1d4620
DE
20742010-05-19 Doug Evans <dje@google.com>
2075
0bf0f8c4
DE
2076 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
2077
3a1d4620
DE
2078 * python.c (source_python_script): Add comment.
2079 (source_python_script_for_objfile): Remove unnecessary call to
2080 gdbpy_print_stack.
2081
dc21167c
JK
20822010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2083 Sergio Durigan Junior <sergiodj@redhat.com>
2084
2085 Code cleanup.
2086 * parse.c (exp_iterate): Use operator_length wrapper function.
2087
5b4ee69b
MS
20882010-05-18 Michael Snyder <msnyder@vmware.com>
2089
2090 * ada-lang.c: White space.
2091 * ada-typeprint.c: White space.
2092 * ada-valprint.c: White space.
2093 * addrmap.c: White space.
2094 * auxv.c: White space.
2095 * ax-gdb.c: White space.
2096
e17c9e56
HZ
20972010-05-18 Hui Zhu <teawater@gmail.com>
2098
2099 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
2100 for oldfp.
2101 (inferior_call_waitpid): Move make_cleanup out of check.
2102 Check the return of waitpid.
2103 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
2104
a109c7c1
MS
21052010-05-17 Michael Snyder <msnyder@vmware.com>
2106
1c5313c5
MS
2107 * tui/tui.c: White space.
2108 * tui/tui-data.c: White space.
2109 * tui/tui-disasm.c: White space.
2110 * tui/tui-file.c: White space.
2111 * tui/tui-interp.c: White space.
2112 * tui/tui-main.c: White space.
2113 * tui/tui-out.c: White space.
2114 * tui/tui-regs.c: White space.
2115 * tui/tui-source.c: White space.
2116 * tui/tui-stack.c: White space.
2117 * tui/tui-win.c: White space.
2118 * tui/tui-winsource.c: White space.
2119
f4a14ae6
MS
2120 * procfs.c: White space.
2121
d59b6f6c
MS
2122 * python/py-auto-load.c: White space.
2123 * python/py-block.c: White space.
2124 * python/py-breakpoint.c: White space.
2125 * python/py-cmd.c: White space.
2126 * python/py-function.c: White space.
2127 * python/py-lazy-string.c: White space.
2128 * python/py-objfile.c: White space.
2129 * python/py-param.c: White space.
2130 * python/py-prettyprint.c: White space.
2131 * python/py-progspace.c: White space.
2132 * python/py-symtab.c: White space.
2133 * python/python.c: White space.
2134 * python/py-type.c: White space.
2135 * python/py-utils.c: White space.
2136 * python/py-value.c: White space.
2137
102040f0
MS
2138 * mi/mi-cmd-break.c: White space.
2139 * mi/mi-cmd-env.c: White space.
2140 * mi/mi-cmds.c: White space.
2141 * mi/mi-cmd-stack.c: White space.
2142 * mi/mi-cmd-var.c: White space.
2143 * mi/mi-console.c: White space.
2144 * mi/mi-getopt.c: White space.
2145 * mi/mi-interp.c: White space.
2146 * mi/mi-main.c: White space.
2147 * mi/mi-out.c: White space.
2148 * mi/mi-parse.c: White space.
2149
cdb27c12
MS
2150 * cli/cli-cmds.c: White space.
2151 * cli/cli-decode.c: White space.
2152 * cli/cli-dump.c: White space.
2153 * cli/cli-interp.c: White space.
2154 * cli/cli-logging.c: White space.
2155 * cli/cli-script.c: White space.
2156 * cli/cli-setshow.c: White space.
2157
a109c7c1
MS
2158 * valarith.c: White space.
2159 * valops.c: White space.
2160 * valprint.c: White space.
2161 * value.c: White space.
2162 * varobj.c: White space.
2163 * xcoffread.c: White space.
2164 * xml-support.c: White space.
2165 * xml-tdesc.c: White space.
2166
3872d37d
AS
21672010-05-17 Andreas Schwab <schwab@redhat.com>
2168
2169 PR gdb/11092
2170 * c-lang.c (c_printstr): Compute real length of NUL terminated
2171 string at first.
2172
0cce5bd9
JB
21732010-05-17 Joel Brobecker <brobecker@adacore.com>
2174
2175 * parse.c (parse_exp_in_context): When block is not NULL, use
2176 its associated language to parse the expression instead of
2177 the current_language.
2178
5f19d646
JB
21792010-05-17 Joel Brobecker <brobecker@adacore.com>
2180
2181 * jv-lang.c (java_lookup_class): Remove commented out code.
2182 (type_from_class): Likewise.
2183 (java_op_print_tab): Remove commented-out elements.
2184
28c85d6c
JB
21852010-05-17 Joel Brobecker <brobecker@adacore.com>
2186
2187 * ada-lang.c (to_fixed_range_type): The the raw index type as
2188 argument instead of the raw type name. Remove orig_type parameter.
2189 Update calls throughout.
2190 (ada_fixup_array_indexes_type): New function.
2191 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
2192 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
2193 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
2194 Remove name parameter.
2195 (print_array_type): Add call to ada_fixup_array_indexes_type.
2196 Update calls to print_range_type.
2197 (ada_print_type): Update calls to print_range_type.
2198
d09039dd
PM
21992010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
2200
2201 * dwarf2read.c (read_set_type): Set type length if
2202 DW_AT_byte_size attribute is present.
2203
7a081a30
PM
22042010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
2205
2206 * p-valprint.c (pascal_val_print): Handle set type if range limits
2207 are undefined but size is known.
2208
77382aee
PA
22092010-05-17 Pedro Alves <pedro@codesourcery.com>
2210
2211 * procfs.c: Reformat.
2212
433759f7
MS
22132010-05-16 Michael Snyder <msnyder@vmware.com>
2214
5d502164
MS
2215 * target.c: White space.
2216 * target-descriptions.c: White space.
2217 * target-memory.c: White space.
2218 * thread.c: White space.
2219 * top.c: White space.
2220 * tracepoint.c: White space.
2221 * trad-frame.c: White space.
2222 * tramp-frame.c: White space.
2223 * ui-file.c: White space.
2224 * ui-out.c: White space.
2225 * user-regs.c: White space.
2226 * utils.c: White space.
2227
433759f7
MS
2228 * scm-exp.c: White space.
2229 * scm-lang.c: White space.
2230 * scm-valprint.c: White space.
2231 * sentinel-frame.c: White space.
2232 * ser-base.c: White space.
2233 * ser-go32.c: White space.
2234 * serial.c: White space.
2235 * ser-mingw.c: White space.
2236 * ser-pipe.c: White space.
2237 * ser-tcp.c: White space.
2238 * ser-unix.c: White space.
2239 * solib.c: White space.
2240 * solib-darwin.c: White space.
2241 * solib-frv.c: White space.
2242 * solib-irix.c: White space.
2243 * solib-osf.c: White space.
2244 * solib-pa64.c: White space.
2245 * solib-som.c: White space.
2246 * solib-spu.c: White space.
2247 * solib-svr4.c: White space.
2248 * solib-target.c: White space.
2249 * source.c: White space.
2250 * stabsread.c: White space.
2251 * stack.c: White space.
2252 * std-regs.c: White space.
2253 * symfile.c: White space.
2254 * symmisc.c: White space.
2255 * symtab.c: White space.
2256
dd304d53
MS
22572010-05-16 Michael Snyder <msnyder@vmware.com>
2258
2259 * source.c (_initialize_source): Add "rev" as an abbreviation
2260 for the "reverse-search" command.
2261
a744cf53
MS
22622010-05-16 Michael Snyder <msnyder@vmware.com>
2263
123f5f96
MS
2264 * record.c: White space.
2265 * regcache.c: White space.
2266 * reggroups.c: White space.
2267 * remote-fileio.c: White space.
2268 * remote-m32r-sdi.c: White space.
2269 * remote-mips.c: White space.
2270 * remote-sim.c: White space.
a744cf53
MS
2271 * remote.c: White space.
2272 (process_g_packet): Remove orphan braces.
2273
b8d56208
MS
22742010-05-15 Michael Snyder <msnyder@vmware.com>
2275
ad3bbd48
MS
2276 * parse.c: White space.
2277 * p-lang.c: White space.
2278 * posix-hdep.c: White space.
2279 * printcmd.c: White space.
2280 * progspace.c: White space.
2281 * prologue-value.c: White space.
2282 * psymtab.c: White space.
2283 * p-typeprint.c: White space.
2284 * p-valprint.c: White space.
2285
5cc80db3
MS
2286 * objc-lang.c: White space.
2287 * objfiles.c: White space.
2288 * observer.c: White space.
2289 * osabi.c: White space.
2290 * osdata.c: White space.
2291
b8d56208
MS
2292 * m2-lang.c: White space.
2293 * m2-valprint.c: White space.
2294 * macrocmd.c: White space.
2295 * macroexp.c: White space.
2296 * macroscope.c: White space.
2297 * macrotab.c: White space.
2298 * main.c: White space.
2299 * maint.c: White space.
2300 * mdebugread.c: White space.
2301 * memattr.c: White space.
2302 * minsyms.c: White space.
2303 * monitor.c: White space.
2304
9a619af0
MS
23052010-05-14 Michael Snyder <msnyder@vmware.com>
2306
e0881a8e
MS
2307 * jv-lang.c: White space.
2308 * jv-typeprint.c: White space.
2309 * jv-valprint.c: White space.
2310 * language.c: White space.
2311 * libunwind-frame.c: White space.
2312 * linespec.c: White space.
2313 * linux-nat.c: White space.
2314 * linux-record.c: White space.
2315 * linux-thread-db.c: White space.
2316
abbb1732
MS
2317 * infcall.c: White space.
2318 * inf-child.c: White space.
2319 * infcmd.c: White space.
2320 * inferior.c: White space.
2321 * inf-loop.c: White space.
2322 * inflow.c: White space.
2323 * inline-frame.c: White space.
2324 * interps.c: White space.
2325
d8734c88
MS
2326 * gcore.c: White space.
2327 * gdb.c: White space.
2328 * gdbtypes.c: White space.
2329 * gnu-nat.c: White space.
2330 * gnu-v2-abi.c: White space.
2331 * gnu-v3-abi.c: White space.
2332
bb9bcb69
MS
2333 * findcmd.c: White space.
2334 * findvar.c: White space.
2335 * fork-child.c: White space.
2336 * frame-base.c: White space.
2337 * frame.c: White space.
2338 * frame-unwind.c: White space.
2339 * f-valprint.c: White space.
2340
d7f9d729
MS
2341 * elfread.c: White space.
2342 * environ.c: White space.
2343 * eval.c: White space.
2344 * event-loop.c: White space.
2345 * event-top.c: White space.
2346 * exceptions.c: White space.
2347 * exec.c: White space.
2348 * expprint.c: White space.
2349
9a619af0
MS
2350 * dbxread.c: White space.
2351 * dcache.c: White space.
2352 * disasm.c: White space.
2353 * doublest.c: White space.
2354 * dsrec.c: White space.
2355 * dummy-frame.c: White space.
2356 * dwarf2expr.c: White space.
2357 * dwarf2-frame.c: White space.
2358 * dwarf2loc.c: White space.
2359 * dwarf2read.c: White space.
2360
88d4aea7
PM
23612010-05-14 Phil Muldoon <pmuldoon@redhat.com>
2362
2363 PR python/11482
2364
2365 * python/py-value.c (valpy_hash): New function.
2366 (value_object_type): Register valpy_hash.
2367
7a298875 23682010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 2369 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
2370
2371 * linux-fork.c (gdbthread.h): New include.
2372 (fork_info): Add parent_ptid.
2373 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
2374 functions.
2375 (delete_checkpoint_command): Call inferior_call_waitpid.
2376 (checkpoint_command): Set parent_ptid.
2377
c14feecc
MS
23782010-05-13 Michael Snyder <msnyder@vmware.com>
2379
6595d32b
MS
2380 * dictionary.c: Re-indent to GNU coding standard.
2381
c5504eaf
MS
2382 * charset.c: White space.
2383 * c-lang.c: White space.
2384 * cli-out.c: White space.
2385 * coffread.c: White space.
2386 * complaints.c: White space.
2387 * completer.c: White space.
2388 * corefile.c: White space.
2389 * corelow.c: White space.
2390 * cp-abi.c: White space.
2391 * cp-namespace.c: White space.
2392 * cp-support.c: White space.
2393 * cp-valprint.c: White space.
2394 * c-typeprint.c: White space.
2395 * c-valprint.c: White space.
cc59ec59
MS
2396 * blockframe.c: White space.
2397 * breakpoint.c: White space.
2398 * buildsym.c: White space.
2399 * blockframe.c: White space.
b6de9da4 2400 * bcache.c: White space.
05c547f6
MS
2401 * gdbarch.sh: White space, add blank lines.
2402 * arch-utils.c: Ditto.
2403 * gdbarch.c: Regenerate.
1c4d3f96 2404 * frame.c: White space, add blank lines.
f89b749f
MS
2405 * stack.c: White space, add blank lines.
2406 (initialize_stack): Remove long-dead code.
c14feecc 2407
a2d33775
JK
24082010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2409
2410 Code cleanup.
2411 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
2412 (locexpr_read_variable, loclist_read_variable): Update the callers.
2413
33ac96f0
JK
24142010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2415
2416 Code cleanup.
2417 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
2418 Remove check of NULL returned by tag_type_to_type.
2419 (die_containing_type): Remove variable type. Remove type_die variable
2420 initialization. Remove check of NULL returned by tag_type_to_type.
2421
f5a010c0
PM
24222010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
2423
2424 PR exp/11530.
2425 * gdbtypes.c (lookup_struct_elt_type): Also lookup
2426 names of unnamed structures or unions.
2427
bf701c2c
PM
24282010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
2429
2430 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 2431 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
2432 find_procinfo_or_die call.
2433 (procfs_stopped_data_address): New function.
2434 (procfs_use_watchpoints): Register new watchpoint related function.
2435
d02691ef
TT
24362010-05-11 Tom Tromey <tromey@redhat.com>
2437
2438 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
2439
e0627e85
MS
24402010-05-10 Michael Snyder <msnyder@vmware.com>
2441
2442 * utils.c: White space cleanup.
2443
cc73bb8c
TT
24442010-05-10 Tom Tromey <tromey@redhat.com>
2445
2446 * eval.c (ptrmath_type_p): Add 'lang' argument.
2447 (evaluate_subexp_standard): Update.
2448 (evaluate_subexp_with_coercion): Update.
2449 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
2450
c02866a0
MS
24512010-05-10 Michael Snyder <msnyder@vmware.com>
2452
2453 * utils.c (do_fclose_cleanup) Restore local variable.
2454
06280d23
DE
24552010-05-09 Doug Evans <dje@google.com>
2456
2457 * record.c (init_record_core_ops): Rename record_core to record-core.
2458
fa07e785
JB
24592010-05-08 Joel Brobecker <brobecker@adacore.com>
2460
2461 Implement task switching on pa-hpux.
2462 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
2463 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
2464
4c680d1d
PM
24652010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
2466
2467 * valops.c (find_overload_match): Add missing i18n markup.
2468
28e176a6
PM
24692010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
2470
2471 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
2472
48cb83fd
JK
24732010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2474
2475 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
2476 list for the obconcat call.
2477 * mdebugread.c (parse_symbol): Likewise.
2478 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
2479 Likewise.
2480 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
2481 New variable ap. Remove variables len and val.
2482 * symfile.h (obconcat): Likewise for the prototype.
2483
f92adf3c
MS
24842010-05-07 Michael Snyder <msnyder@vmware.com>
2485
2486 * python/python.c (execute_gdb_command): Remove unused variables.
2487 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 2488 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
2489 Remove unused variable.
2490 * python/py-cmd.c (cmdpy_function): Remove unused variable.
2491 (cmdpy_completer): Remove unused variable.
2492 * python/py-frame.c (frapy_find_sal): Remove unused variable.
2493 * python/py-function.c (fnpy_call): Remove unused variable.
2494 * python/py-objfile.c (objfile_to_objfile_object):
2495 Remove unused variable.
2496 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 2497 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
2498 Remove unused variable.
2499 (gdbpy_default_visualizer): Remove unused variable.
2500 * python/py-progspace.c (pspace_to_pspace_object):
2501 Remove unused variable.
0407b3f1 2502 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 2503 Remove unused variable.
0407b3f1 2504 * python/py-type.c (typy_template_argument):
f92adf3c
MS
2505 Remove unused variable.
2506 * python/py-value.c (valpy_string): Remove unused variable.
2507 (convert_value_from_python): Remove unused variables.
2508
d160942f
MS
25092010-05-07 Michael Snyder <msnyder@vmware.com>
2510
2511 * valops.c (value_cast_pointers): Restore unused variable 'type1',
2512 and use it to compute variable 't1'.
2513
587542ab
JB
25142010-05-07 Joel Brobecker <brobecker@adacore.com>
2515
2516 * ada-lang.c (assign_aggregate): Remove unused variable.
2517
7322dca9
SW
25182010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
2519
2520 PR C++/7943:
2521 * valops.c (find_overload_match): Handle fsym == NULL case.
2522 Add int no_adl argument.
2523 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
2524 when appropriate.
2525 Add int no_adl argument.
2526 (find_oload_champ_namespace): Add int no_adl argument.
2527 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
2528 expression.
2529 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
2530 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
2531 Evaluate arguments and use them to perform ADL lookup.
2532 Pass no_adl argument to find_overload_match.
2533 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
2534 * cp-support.h: Added prototype for
2535 make_symbol_overload_list_namespace.
2536 * cp-support.c (make_symbol_overload_list_namespace): New function.
2537 (make_symbol_overload_list_adl_namespace): New function.
2538 (make_symbol_overload_list_adl): New function.
2539 (make_symbol_overload_list_using): Moved code to add function to
2540 overload set to make_symbol_overload_list_namespace.
2541 * c-exp.y: create UNKNOWN_CPP_NAME token.
2542 Add parse rule for ADL functions.
2543 (classify_name): Recognize an UNKNOWN_CPP_NAME.
2544
3f1f6884
JK
25452010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2546
2547 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
2548 sentinel.
2549
3caf13b4
JB
25502010-05-07 Joel Brobecker <brobecker@adacore.com>
2551
2552 Implement task switching on solaris targets.
2553 * sol-thread.c (thread_db_find_thread_from_tid)
2554 (sol_get_ada_task_ptid): New functions.
2555 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
2556
94b0dee1
PA
25572010-05-07 Pedro Alves <pedro@codesourcery.com>
2558
2559 * remote.c (remote_query_supported_append): Use reconcat.
2560 (remote_query_supported): Install a cleanup. Use reconcat.
2561
1408c251
PA
25622010-05-07 Pedro Alves <pedro@codesourcery.com>
2563
2564 * gdbarch.sh (qsupported): Delete.
2565 * gdbarch.h, gdbarch.c: Regenerate.
2566 * remote.c (remote_query_supported): Remove use of
2567 gdbarch_qsupported.
2568
f8e50cfe
SDJ
25692010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
2570
2571 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
2572 function.
2573
8ea13695
MS
25742010-05-06 Michael Snyder <msnyder@vmware.com>
2575
c6913b7d
MS
2576 * xml-support.c (xinclude_start_include): Delete unused variable.
2577 (xml_process_xincludes): Delete unused variable.
2578 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
2579 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
2580 (tdesc_find_arch_register): Delete unused variable.
2581 (tdesc_use_registers): Delete unused variable.
2582 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
2583 * inferior.c (print_inferior): Delete unused variable.
2584 * record.c (record_open_1): Delete unused variable.
2585 (record_restore): Delete unused variable.
2586 (cmd_record_save): Delete unused variable.
2587 * gcore.c (derive_heap_segment): Delete unused variable.
2588 (objfile_find_memory_regions): Use unused variable.
2589 * jit.c (jit_inferior_init): Delete unused variable.
2590 * progspace.c (clone_program_space): Delete unused variable.
2591 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
2592
2593 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
2594 Delete unused variable.
2595 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
2596 * cp-support.c (mangled_name_to_comp): Delete unused variable.
2597 (method_name_from_physname): Delete unused variable.
2598 (cp_func_name): Delete unused variable.
2599 (cp_validate_operator): Delete unused variable.
0407b3f1 2600 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 2601 Delete unused variable.
0407b3f1 2602 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
2603 Delete unused variable.
2604 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
2605
1be757cf
MS
2606 * serial.c (serial_for_fd): Delete unused variable.
2607 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
2608 * top.c (execute_command): Delete unused variable.
2609 (init_main): Delete unused variable.
2610 * utils.c (do_fclose_cleanup): Delete unused variable.
2611 (do_all_inferior_continuations): Delete unused variable.
2612 (initialize_utils): Delete unused variable.
2613 (internal_problem_mode): Delete unused global.
2614 * frame.c (get_prev_frame): Delete unused global.
2615 (get_frame_locals_address): Delete unused global.
2616 (get_frame_args_address): Delete unused global.
2617
9216103f
MS
2618 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
2619 (pascal_type_print_varspec_prefix): Delete unused variable.
2620 * f-typeprint.c (f_type_print_base): Delete unused variable.
2621 (f_type_print_varspec_suffix): Delete unused variable.
2622 * m2-typeprint.c (m2_print_type): Delete unused variable.
2623 (m2_long_set): Delete unused variable.
2624 * ada-valprint.c (ada_val_print_1): Delete unused variable.
2625 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 2626 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
2627 Delete unused variable.
2628 (f77_create_arrayprint_offset_tbl): Delete unused variable.
2629 * m2-valprint.c (m2_val_print): Delete unused variable.
2630
34fa1d9d
MS
2631 * ui-out.c (ui_out_field_int): Delete unused variable.
2632 (ui_out_field_fmt_int): Delete unused variable.
2633 * varobj.c (varobj_list_children): Delete unused variable.
2634 (varobj_set_value): Delete unused variable.
2635 (install_new_value_visualizer): Delete unused variable.
2636 (varobj_set_visualizer): Delete unused variable.
2637 (varobj_update): Delete unused variable.
2638 (varobj_editable_p): Delete unused variable.
2639 (c_value_of_root): Delete unused variable.
2640 (cplus_describe_child): Delete unused variable.
2641
b5385fc0
MS
2642 * ada-lang.c (add_defn_to_vec): Delete unused variable.
2643 (decode_constrained_packed_array_type): Delete unused variable.
2644 (add_defn_to_vec): Delete unused variable.
2645 (symbol_completion_match): Delete unused variable.
2646 (value_tag_from_contents_and_address): Delete unused variable.
2647 (ada_evaluate_subexp): Delete unused variable.
2648 * c-lang.c (classify_type): Delete unused variable.
2649 * f-lang.c (f_printstr): Delete unused variable.
2650 * objc-lang.c (objc_printstr): Delete unused variable.
2651 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
2652 * jv-lang.c (type_from_class): ifdef unused variable.
2653 (java_class_name_from_physname): Delete unused variable.
2654 * m2-lang.c (m2_printstr): Delete unused variable.
2655
4fc06681
MS
2656 * objfiles.c (objfile_relocate): Delete unused variable.
2657 * maint.c (_initialize_maint_cmds): Delete unused variable.
2658 * demangle.c (_initialize_demangler): Delete unused variable.
2659 * corefile.c (reopen_exec_file): Delete unused variable.
2660 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
2661 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
2662
6b4398f7
MS
2663 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
2664 * memattr.c (mem_delete): Delete unused variable.
2665 (invalidate_target_mem_regions): Delete unused variable.
2666 * mem-break.c (default_memory_insert_breakpoint):
2667 Delete unused variable.
2668 * target.c (target_get_osdata): Delete unused variable.
2669 * parse.c (length_of_subexp): Delete unused variable.
2670 (prefixify_subexp): Delete unused variable.
2671 (exp_iterate): Delete unused variable.
2672 * reverse.c (delete_bookmark_command): Delete unused variable.
2673
308d96ed
MS
2674 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
2675 * macroexp.c (gather_arguments): Delete unused variable.
2676 (substitute_args): Delete unused variable.
2677 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
2678 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
2679 (_initialize_gdbarch): Delete unused variable.
2680 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 2681 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
2682 Delete unused variable.
2683 (_initialize_gdbarch_utils): Delete unused variable.
2684 * gdbtypes.c (make_cv_type): Delete unused variable.
2685 (make_type_with_address_space): Delete unused variable.
2686
167e4384
MS
2687 * linespec.c (decode_compound): Delete unused variable.
2688 * dictionary.c (iterator_next_hashed): Delete unused variable.
2689 * infcall.c (call_function_by_hand): Delete unused variable.
2690 * infcmd.c (step_1): Delete unused variable.
2691 (registers_info): Delete unused variable.
2692 (attach_command): Delete unused variable.
2693 * infrun.c (follow_exec): Delete unused variable.
2694 (handle_step_into_function_backwards): Delete unused variable.
2695 (_initialize_infrun): Delete unused variable.
2696 * stack.c (parse_frame_specification_1): Delete unused variable.
2697 (frame_info): Delete unused variable.
2698 (backtrace_command_1): Delete unused variable.
2699 (catch_info): Delete unused variable.
2700
8f78b329
MS
2701 * eval.c (evaluate_subexp_standard): Delete unused variable.
2702 * valops.c (value_cast_pointers): Delete unused variable.
2703 (value_dynamic_cast): Delete unused variable.
2704 (value_array): Delete unused variable.
2705 (find_overload_match): Delete unused variable.
2706 * valarith.c (value_subscript): Delete unused variable.
2707 (value_binop): Delete unused variable.
2708 * valprint.c (_initialize_valprint): Delete unused variable.
2709 * printcmd.c (print_command_1): Delete unused variable.
2710 (address_info): Delete unused variable.
2711 (printf_command): Delete unused variable.
2712
8ea13695
MS
2713 * auxv.c (target_auxv_search): Delete unused variable.
2714 * blockframe.c (get_frame_block): Delete unused variable.
2715 * regcache.c (regcache_cpy): Delete unused variable.
2716 (regcache_cpy_no_passthrough): Delete unused variable.
2717 * charset.c (wchar_iterate): Delete unused variable.
2718 (find_charset_names): Delete unused variable.
2719 (_initialize_charset): Delete unused variable.
0407b3f1 2720 * disasm.c (do_mixed_source_and_assembly):
8ea13695 2721 Delete unused variable.
0407b3f1 2722 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
2723 Delete unused variable.
2724 (set_substitute_path_command): Delete unused variable.
2725 * value.c (preserve_values): Delete unused variable.
2726 (value_from_double): Delete unused variable.
2727
afe38095
MS
27282010-05-05 Michael Snyder <msnyder@vmware.com>
2729
952a6d41
MS
2730 * psymtab.c (lookup_partial_symbol): Delete unused variable.
2731 (find_last_source_symtab_from_partial): Delete unused variable.
2732 * symfile.c (place_section): Delete unused variable.
2733 (default_symfile_offsets): Delete unused variable.
2734 (get_debug_link_info): Delete unused variable.
2735 (find_separate_debug_file_by_debuglink): Delete unused variable.
2736 (add_symbol_file_command): Delete unused variable.
2737 (symfile_find_segment_sections): Delete unused variable.
2738 * symmisc.c (free_symtab): Delete unused variable.
2739 (dump_symtab_1): Delete unused variable.
2740 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
2741 (find_pc_sect_symtab): Delete unused variable.
2742 (skip_prologue_using_lineinfo): Delete unused variable.
2743 (sources_info): Delete unused variable.
2744 (completion_list_add_name): Delete unused variable.
2745 (expand_line_sal): Delete unused variable.
2746
0407b3f1 2747 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
2748 Delete unused variables.
2749 (insert_catchpoint): Delete unused variable.
2750 (update_watchpoint): Delete unused variable.
2751 (insert_bp_location): Delete unused variable.
2752 (insert_breakpoint_locations): Delete unused variable.
2753 (remove_breakpoint_1): Delete unused variable.
2754 (software_breakpoint_inserted_here_p): Delete unused variable.
2755 (watchpoints_triggered): Delete unused variable.
2756 (bpstat_check_watchpoint): Delete unused variable.
2757 (bpstat_stop_status): Delete unused variable.
2758 (print_one_breakpoint_location): Delete unused variable.
2759 (allocate_bp_location): Delete unused variable.
2760 (create_breakpoint): Delete unused variable.
2761 (watch_command_1): Delete unused variable.
2762 (catch_exception_command_1): Delete unused variable.
2763 (catch_ada_exception_command): Delete unused variable.
2764 (delete_breakpoint): Delete unused variable.
2765 (breakpoint_re_set_one): Delete unused variable.
2766 (do_enable_breakpoint): Delete unused variable.
2767
eda5a4d7
PA
27682010-05-06 Pedro Alves <pedro@codesourcery.com>
2769
2770 * amd64-tdep.c: Include disasm.h.
2771 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
2772 (amd64_insn_length): Moved to disasm.c and renamed.
2773 (fixup_riprel): Adjust.
2774 * disasm.c (do_ui_file_delete): New.
2775 (gdb_insn_length): New.
2776 (gdb_buffered_insn_length_fprintf)
2777 (gdb_buffered_insn_length_init_dis)
2778 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
2779 renamed.
2780 * disasm.h (gdb_insn_length): Declare.
2781 (gdb_buffered_insn_length): Declare.
2782
02357a4a
PA
27832010-05-06 Pedro Alves <pedro@codesourcery.com>
2784
2785 * remote.c (clear_threads_parsing_context): New.
2786 (remote_threads_info): Delete unused null_cleanup. Install a
2787 cleanup to clear the threads_parsing_context in case parsing
2788 throws.
2789
8c5630cb
MS
27902010-05-05 Michael Snyder <msnyder@vmware.com>
2791
2792 * c-exp.y (parse_string_or_char): Delete unused variable.
2793 (c_lex): Delete unused variable.
2794 * cp-name-parser.y (cpname_lex): Delete unused variable.
2795 * ada-exp.y (find_primitive_type): Delete unused variable.
2796 (write_var_or_type): Delete unused variable.
2797 * jv-exp.y (java_parse): Delete unused variable.
2798 (push_expression_name): Delete unused variable.
2799 * p-exp.y (pascal_lex): Delete unused variable.
2800
46c162d4
PA
28012010-05-05 Pedro Alves <pedro@codesourcery.com>
2802
2803 * remote.c (remote_threads_info): Really revert previous previous
2804 change.
2805
0043e6a5
MS
28062010-05-05 Michael Snyder <msnyder@vmware.com>
2807
fa238c03
MS
2808 * elfread.c (elf_symtab_read): Delete unused variable.
2809 (find_separate_debug_file_by_buildid): Delete unused variables.
2810 (elf_symfile_read): Delete unused variable.
2811
2812 * coffread.c (coff_symfile_read): Delete unused variables.
2813
2814 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
2815 (read_pe_exported_syms): Delete unused variable.
2816
2817 * stabsread.c (define_symbol): Delete unused variable.
2818
2819 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
2820 (process_psymtab_comp_unit): Delete unused variable.
2821 (dwarf2_build_psymtabs_hard): Delete unused variable.
2822 (load_partial_comp_unit): Delete unused variable.
2823 (create_all_comp_units): Delete unused variable.
2824 (scan_partial_symbols): Delete unused variable.
2825 (add_partial_symbol): Delete unused variable.
2826 (add_partial_namespace): Delete unused variable.
2827 (add_partial_enumeration): Delete unused variable.
2828 (load_full_comp_unit): Delete unused variable.
2829 (process_full_comp_unit): Delete unused variable.
2830 (read_file_scope): Delete unused variable.
2831 (read_type_unit_scope): Delete unused variable.
2832 (process_structure_scope): Delete unused variable.
2833 (process_enumeration_scope): Delete unused variable.
2834 (read_tag_ptr_to_member_type): Delete unused variable.
2835 (read_typedef): Delete unused variable.
2836 (read_partial_die): Delete unused variable.
2837 (decode_locdesc): Delete unused variable.
2838 (zeroed_partial_die): Delete unused global variable.
2839
0407b3f1 2840 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 2841 Delete unused variable.
0407b3f1 2842 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
2843 Delete unused variable.
2844 (tui_check_register_values): Delete unused variable.
2845 (tui_register_format): Delete unused variable.
2846 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 2847 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
2848 Delete unused variables.
2849 (tui_vertical_data_scroll): Delete unused variables.
2850
75721c66
MS
28512010-05-05 Michael Snyder <msnyder@vmware.com>
2852
c31a71f4
MS
2853 * remote.c (remote_threads_info): Revert questionable part of
2854 the previous change.
2855
28562010-05-05 Michael Snyder <msnyder@vmware.com>
2857
2858 * mi/mi-out.c (mi_table_begin): Delete unused variable.
2859 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
2860 (mi_cmd_var_list_children): Delete unused variable.
2861 (varobj_update_one): Delete unused variable.
2862 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 2863 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
2864 Delete unused variable.
2865 (mi_cmd_stack_list_variables): Delete unused variable.
2866 (list_args_or_locals): Delete unused variable.
0407b3f1 2867 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
2868 Delete unused variables.
2869 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 2870 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
2871 Delete unused variable.
2872 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
2873 (mi_cmd_interpreter_exec): Delete unused variable.
2874 (mi_on_normal_stop): Delete unused variable.
2875 * mi/mi-main.c (run_one_inferior): Delete unused variable.
2876 (print_one_inferior): Delete unused variables.
2877 (mi_execute_command): Delete unused variable.
2878 (mi_cmd_execute): Delete unused variable.
2879 (timestamp): Delete unused variable.
2880
2881 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 2882 (restore_binary_file): Delete unused variable.
c31a71f4
MS
2883 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
2884 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
2885 (recurse_read_control_structure): Delete unused variable.
2886 (script_from_file): Delete unused variable.
c31a71f4 2887 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
2888 (disassemble_command): Delete unused variable.
2889
2890 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 2891 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
2892 Delete unused variables.
2893 (encode_actions_1): Delete unused variables.
2894 (start_tracing): Delete unused variable.
2895 (trace_status_mi): Delete unused variable.
2896 (tfind_1): Delete unused variable.
2897 (trace_find_pc_command): Delete unused variable.
2898 (trace_find_line_command): Delete unused variables.
2899 (trace_find_range_command): Delete unused variables.
2900 (trace_find_outside_command): Delete unused variables.
2901 (parse_tracepoint_definition): Delete unused variables.
2902 (tfile_fetch_registers): Delete unused variable.
2903
9128a503
MS
2904 * dcache.c (dcache_init): Delete unused variable.
2905 (dcache_info): Delete unused variable.
2906
aa369b55 2907 * remote.c (remote_threads_info): Delete unused variable.
9128a503 2908 (process_stop_reply) :Delete unused variable.
aa369b55
MS
2909 (remote_get_trace_status): Delete unused variables.
2910
9e9547e4
MS
2911 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
2912 (thread_from_lwp): Delete unused variable.
2913 (enable_thread_event_reporting): Delete unused variable.
2914 (check_for_thread_db): Delete unused variables.
2915 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 2916
9e9547e4
MS
2917 * linux-fork.c (info_checkpoints_command): Delete unused variables.
2918 (checkpoint_command): Delete unused variable.
2919 (linux_fork_context): Delete unused variables.
2920
fa238c03 2921 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
2922 (linux_tracefork_child): Delete unused variable.
2923 (linux_child_follow_fork): Delete unused variable.
2924 (linux_nat_detach): Delete unused variable.
2925 (linux_handle_extended_wait): Delete unused variable.
2926 (linux_nat_has_pending_sigint): Delete unused variable.
2927 (linux_nat_find_memory_regions): Delete unused variable.
2928 (linux_nat_make_corefile_notes): Delete unused variables.
2929 (linux_nat_info_proc_cmd): Delete unused variable.
2930 (linux_proc_pending_signals): Delete unused variable.
2931 (linux_nat_stop_lwp): Delete unused variables.
2932 (_initialize_linux_nat): Delete unused variable.
2933
fa238c03 2934 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 2935
0407b3f1 2936 * linux-record.c (record_linux_system_call):
e0f069a3
MS
2937 Delete unused variables.
2938
789d24f0
MS
2939 * corelow.c (core_xfer_partial): Delete unused variables.
2940
1cd337a5 2941 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 2942 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
2943 conditionally-used variable declarations.
2944
b00e3f56
MS
2945 * solib.c (solib_find): Delete unused variable.
2946 (free_so_symbols): Delete unused variable.
2947 (info_sharedlibrary_command): Delete unused variable.
2948 (reload_shared_libraries_1): Delete unused variable.
2949 (_initialize_solib): Delete unused variable.
2950
90f62196
MS
2951 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
2952 (i386_collect_xstateregset): Delete unused variable.
2953 * i387-tdep.c (i387_print_float_info): Delete unused variable.
2954
75721c66
MS
2955 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
2956 Delete unused variable 'type'.
2957
af33db37
JB
29582010-05-05 Joel Brobecker <brobecker@adacore.com>
2959
90f62196 2960 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
2961 ada-lang.c: Remove comment mentioning these macros.
2962 * m2-exp.y: Delete commented out code.
af33db37 2963
0497f5b0
JB
29642010-05-05 Joel Brobecker <brobecker@adacore.com>
2965
2966 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
2967 for array types.
2968 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
2969
6e39997a
PM
29702010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2971
2972 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 2973 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
2974 ATTRIBUTE_UNUSED.
2975 (cleanup_kernel_helper_return): Likewise.
2976 * arm-tdep.c (copy_unmodified): Likewise.
2977 (copy_preload): Likewise.
2978 (copy_copro_load_store): Likewise.
2979 (cleanup_branch): Likewise.
2980 (copy_b_bl_blx): Likewise.
2981 (copy_bx_blx_reg): Likewise.
2982 (copy_alu_imm): Likewise.
2983 (copy_alu_reg): Likewise.
2984 (copy_alu_shifted_reg): Likewise.
2985 (cleanup_load): Likewise.
2986 (cleanup_store): Likewise.
2987 (cleanup_block_load_pc): Likewise.
2988 (cleanup_svc): Likewise.
2989 (copy_undef): Likewise.
2990 (copy_unpred): Likewise.
2991 * remote.c (register_remote_support_xml): Likewise.
2992
1412f70b
HZ
29932010-05-05 Hui Zhu <teawater@gmail.com>
2994
2995 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
2996
c4f7c687
MK
29972010-05-04 Mark Kettenis <kettenis@gnu.org>
2998
2999 * remote.c (register_remote_support_xml)
3000 (remote_query_supported_append, remote_query_supported): Add cast
3001 to NULL used as sentinel.
3002 * tracepoint.c (tvariables_info_1): Likewise.
3003 * utils.c (add_internal_problem_command): Likewise.
3004
63b4f126
MGD
30052010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3006
3007 * dwarf2loc.c (read_pieced_value, write_pieced_value,
3008 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
3009 registers gracefully.
3010
2f1bdd26
MGD
30112010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3012
0407b3f1 3013 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
3014 specific parts.
3015
e1c34c5d
PM
30162010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
3017
3018 PR exp/11349.
3019 * printcmd.c (x_command): Only dereference once implicitly for
3020 TYPE_CODE_REF.
3021
ae462839
DE
30222010-05-03 Doug Evans <dje@google.com>
3023
3024 * event-loop.c (gdb_timer): Delete unused global.
3025 (create_timer): Update.
3026
1ac77ea1
JK
30272010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3028
3029 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
3030 CURRENT->DECLARATION case.
3031 * cp-support.h (struct using_direct): Provide extended comment.
3032
7c54a108
MK
30332010-05-03 Mark Kettenis <kettenis@gnu.org>
3034
3035 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
3036 HPPABSD_SIZEOF_GREGS.
3037 (HPPAOBSD_SIZEOF_FPREGS): New define.
3038 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
3039 (hppaobsd_supply_fpregset): New function.
3040 (hppaobsd_gregset): Renamed from hppabsd_gregset.
3041 (hppaobsd_fpregset): New variable.
3042 (hppaobsd_regset_from_core_section): Handle floating-point registers.
3043 (_initialize_hppabsd_tdep): Remove spurious blank line.
3044
278582cb
PM
30452010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3046
3047 PR pascal/11349.
3048 * p-valprint.c (pascal_value_print): Always dereference a value with
3049 type code TYPE_CODE_REF.
0407b3f1 3050
f0223081
PA
30512010-05-03 Pedro Alves <pedro@codesourcery.com>
3052
3053 * remote.c (remote_notice_signals): New.
3054 (remote_start_remote): In non-stop mode, update the remote end on
3055 which signals it can silently pass.
3056 (init_remote_ops): Install remote_notice_signals.
3057
c25c4a8b
JK
30582010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3059
3060 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
3061 * command.h (error_no_arg): ... here. Remove NORETURN, change
3062 ATTR_NORETURN to ATTRIBUTE_NORETURN.
3063 * defs.h (NORETURN, ATTR_NORETURN): Remove.
3064 (perror_with_name, verror, error, error_stream, vfatal, fatal)
3065 (internal_verror, internal_error, nomem): Remove NORETURN, change
3066 ATTR_NORETURN to ATTRIBUTE_NORETURN.
3067 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
3068 (throw_vfatal, throw_error): Remove NORETURN.
3069 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
3070 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
3071 (throw_error, deprecated_throw_reason): Remove NORETURN, change
3072 ATTR_NORETURN to ATTRIBUTE_NORETURN.
3073 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
3074 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
3075 NORETURN.
3076 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
3077 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
3078 ATTRIBUTE_NORETURN.
3079 * target.c (tcomplain): Likewise.
3080 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
3081 ATTRIBUTE_NORETURN.
3082 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
3083 (internal_error, perror_with_name, nomem): Remove NORETURN.
3084 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
3085 ATTRIBUTE_NORETURN.
3086
a0b31db1
JK
30872010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3088
3089 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3090 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
3091 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
3092 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3093 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
3094 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3095 * complaints.h (complaint, internal_complaint): Likewise.
3096 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
3097 (ATTR_FORMAT): Remove.
3098 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
3099 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
3100 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
3101 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
3102 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
3103 (internal_error, internal_vwarning, internal_warning, warning)
3104 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3105 * disasm.c (fprintf_disasm): Likewise.
3106 * exceptions.c (throw_it): Likewise.
3107 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
3108 (throw_error): Likewise.
3109 * language.h (type_error, range_error): Likewise.
3110 * linespec.c (cplusplus_error): Likewise.
3111 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
3112 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
3113 * monitor.c (monitor_debug): Likewise.
3114 * parser-defs.h (parser_fprintf): Likewise.
3115 * serial.h (serial_printf): Likewise.
3116 * tui/tui-hooks.c (tui_query_hook): Likewise.
3117 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
3118 (uo_message): Likewise.
3119 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
3120 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
3121 Likewise.
3122 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
3123
02a45ac0
PA
31242010-05-02 Pedro Alves <pedro@codesourcery.com>
3125
3126 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
3127 (cli_table_header, cli_begin, cli_end, cli_field_int)
3128 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
3129 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
3130 Delete forward declarations.
3131 (cli_ui_out_impl): Move below the callbacks.
3132 (_initialize_cli_out): Delete.
3133
1915ef4f
PA
31342010-05-02 Pedro Alves <pedro@codesourcery.com>
3135
3136 * README: Use consistent `GDB' and `GDBserver' spellings.
3137
0dfb946f
JK
31382010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3139
3140 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
3141
4d533103
PA
31422010-05-01 Pedro Alves <pedro@codesourcery.com>
3143
3144 * infrun.c (prepare_for_detach): In non-stop, context switch to
3145 the thread that got the event before handling the event.
3146
705b5767
TT
31472010-04-30 Tom Tromey <tromey@redhat.com>
3148
3149 * symtab.c (symbol_set_names): Fix typo.
3150
3c0ee1a4
PM
31512010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
3152
3153 * python/py-param.c (parm_constants): Avoid ARI warning
3154 by adding ARI comment.
3155 (parmpy_init): Likewise.
3156
ea1fae46
PM
31572010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
3158
3159 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
3160 and created type for re-use.
3161
c24d0242
PM
31622010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
3163
3164 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
3165
a26d8d11
DE
31662010-04-29 Doug Evans <dje@google.com>
3167
3168 * ser-base.h (reschedule): Delete prototype.
3169 * ser-base.c (reschedule): Make static.
3170
f8624c62
MGD
31712010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3172
3173 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
3174 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 3175 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 3176 EABI.
0407b3f1 3177 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
3178 use.
3179
e66408ed
PA
31802010-04-29 Pedro Alves <pedro@codesourcery.com>
3181
3182 PR gdb/11557
3183
3184 * regcache.c (registers_changed): Rename to ...
3185 (registers_changed_ptid): ... this, and only delete register cache
3186 entries matching the ptid filter argument.
3187 (registers_changed): Reimplement on top of registers_changed_ptid.
3188 * regcache.h (registers_changed_ptid): Declare.
3189 * target.c (target_resume): Flush register caches.
3190
d7b32ed3 31912010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
3192 Tom Tromey <tromey@redhat.com>
3193 Thiago Jung Bauermann <bauerman@br.ibm.com>
3194
3195 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
3196 (SUBDIR_PYTHON_SRCS): Likewise.
3197 (py-parameter.o): New rule.
3198 * python/py-parameter.c: New file.
3199 * python/python-internal.h (gdbpy_initialize_parameter)
3200 (gdbpy_parameter, gdbpy_parameter_value)
3201 (gdbpy_parse_command_name): Declare.
3202 * python/py-cmd.c (parse_command_name): Rename to
3203 gdbpy_parse_command_name.
3204 (gdbpy_parse_command_name): Accept a starting list parameter and
3205 use over cmdlist.
3206 (cmdpy_init): Use gdbpy_parse_command_name.
3207 * python/python.c (parameter_to_python): Rename to
3208 gdbpy_parameter_to_python. Accept enum var_types and value.
3209 (gdbpy_parameter): Use gdbpy_parameter_value.
3210 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 3211
ce72ce41
MGD
32122010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3213
3214 * MAINTAINERS: Add myself for write after approval privileges.
3215
6aecb9c2
JB
32162010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
3217
3218 D language support.
3219 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
3220 (COMMON_OBS): Add d-lang.o d-valprint.o.
3221 (HFILES_NO_SRCDIR): Add d-lang.h.
3222 * NEWS: Mention D language support.
3223 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
3224 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
3225 * d-lang.c: New file.
3226 * d-lang.h: New file.
3227 * d-valprint.c: New file.
3228 * defs.h (enum language): Add language_d.
3229 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
3230 * language.c (binop_result_type, integral_type, character_type)
3231 (string_type, boolean_type, structured_type): Add language_d.
3232 * symfile.c (init_filename_language_table): Add language_d.
3233 * symtab.c: Include d-lang.h.
3234 (symbol_init_language_specific, symbol_find_demangled_name)
3235 (symbol_natural_name, lookup_symbol_in_language)
3236 (symbol_demangled_name, symbol_matches_domain): Add language_d.
3237
6f992fbf
JB
32382010-04-27 Joel Brobecker <brobecker@adacore.com>
3239
3240 * solib-svr4.c (solib_svr4_r_map): Expand function description.
3241
dde59185
JB
32422010-04-27 Joel Brobecker <brobecker@adacore.com>
3243
3244 * symfile.c (init_filename_language_table): Register .dg files
3245 with language_ada.
3246
d09ce91e
JB
32472010-04-27 Joel Brobecker <brobecker@adacore.com>
3248
3249 * gdbtypes.h (struct main_type): Expand comment about target_type
3250 field.
3251
67f1675e
JB
32522010-04-27 Pedro Alves <pedro@codesourcery.com>
3253 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
3254
3255 * symfile.c (reread_symbols): Also search for file in libraries.
3256 Update comment.
3257
dfd0fe27
JB
32582010-04-27 Joel Brobecker <brobecker@adacore.com>
3259
3260 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
3261 in terms of configuration.
3262
0133421a
JK
32632010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3264
3265 * objfiles.c: Include solist.h.
3266 (free_all_objfiles): New variable so. Check stale solist objfiles.
3267 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
3268 and no_shared_libraries.
3269
e78f4312
JB
32702010-04-27 Joel Brobecker <brobecker@adacore.com>
3271
3272 ARI warning fix.
3273 * python/py-auto-load.c (source_section_scripts): Remove trailing
3274 new-line in i18n string.
3275
9214d371
DE
32762010-04-26 Doug Evans <dje@google.com>
3277
3278 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
3279
3f172e24
TT
32802010-04-26 Tom Tromey <tromey@redhat.com>
3281
3282 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
3283 command list.
3284
e790e06e
PM
32852010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
3286
3287 Removal of config/i386/nm-i386sol2.h native configuration file.
3288 * config/i386/nm-i386sol2.h: Remove file.
3289 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
3290 * config/i386/sol2-64.mh: Idem.
88562582
PM
3291 * config/djgpp/fnchange.lst: Remove reference to that file.
3292 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 3293
b7da9e9f
PM
32942010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
3295
3296 PR breakpoints/11531.
3297 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
3298 macro definition and related comment.
3299 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
3300 (resume): Remove code and comment related to this macro.
3301
72f6eb52
JK
33022010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3303
3304 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
3305 Fix whitespace.
3306
ab38a727
PA
33072010-04-24 Pedro Alves <pedro@codesourcery.com>
3308
3309 * defs.h: Adjust comment.
3310 * filesystem.h, filesystem.c: New files.
3311 * Makefile.in (SFILES): Add filesystem.c.
3312 (COMMON_OBS): Add filesystem.o.
3313 * solib.c (solib_find): Handle DOS-based filesystems. Handle
3314 different target and host path flavours.
3315 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
3316 has_dos_based_file_system on the gdbarch.
3317 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
3318 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
3319 * i386-tdep.c (i386_go32_init_abi): Ditto.
3320 * gdbarch.sh (has_dos_based_file_system): New.
3321 * gdbarch.h, gdbarch.c: Regenerate.
3322 * NEWS: Mention improved support for remote targets with DOS-based
3323 filesystems. Mention new `set/show target-file-system-kind'
3324 commands.
3325
35c9c7ba
SS
33262010-04-23 Stan Shebs <stan@codesourcery.com>
3327
3328 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
3329 comments.
3330 (struct agent_reqs): Remove.
3331 (ax_reg_mask): Declare.
3332 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
3333 (free_agent_expr): Free reg_mask.
3334 (ax_print): Add scope and register mask info.
3335 (ax_reqs): Remove agent_reqs argument, use agent expression
3336 fields, and move part of register mask computation to...
3337 (ax_reg_mask): New function.
3338 * ax-gdb.c (gen_trace_static_fields): Call it.
3339 (gen_traced_pop): Ditto.
3340 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
3341 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
3342 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
3343 (gen_eval_for_expr): Ditto, and require an rvalue.
3344 (agent_command): Call ax_reqs.
3345 (agent_eval_command): Ditto.
3346 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
3347 (validate_action_line): Ditto.
3348 (collect_symbol): Ditto.
3349 (encode_actions_1): Ditto.
3350
492928e4
JK
33512010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
3352 Paul Pluzhnikov <ppluzhnikov@google.com>
3353 Jan Kratochvil <jan.kratochvil@redhat.com>
3354
3355 Fix deadlock on looped list of loaded shared objects.
3356 * solib-svr4.c (LM_PREV): New function.
3357 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
3358 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
3359 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
3360 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
3361
66d09542
DE
33622010-04-23 Doug Evans <dje@google.com>
3363
88a1906b
DE
3364 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
3365 python.
3366 * configure: Regenerate.
3367 * main.c: #include "python/python.h".
3368 (captured_main): Defer loading auto-loaded scripts until after
3369 local_gdbinit has been sourced.
3370 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
3371 (load_auto_scripts_for_objfile): New function.
3372 (auto_load_new_objfile): Call it.
3373 * python/python.h (gdbpy_global_auto_load): Declare.
3374 (load_auto_scripts_for_objfile): Declare.
3375
66d09542
DE
3376 Add support for auto-loading scripts from .debug_gdb_scripts section.
3377 * NEWS: Add entry for .debug_gdb_scripts.
3378 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
3379 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
3380 (py-auto-load.o): New rule.
3381 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
3382 * cli/cli-cmds.h (find_and_open_script): Update prototype.
3383 * python/py-auto-load.c: New file.
3384 * python/python-internal.h: #include <stdio.h>.
3385 (set_python_list, show_python_list): Declare.
3386 (gdbpy_initialize_auto_load): Declare.
3387 (source_python_script_for_objfile): Declare.
3388 * python/python.c: Remove #include of observer.h.
3389 (gdbpy_auto_load): Moved to py-auto-load.c.
3390 (GDBPY_AUTO_FILENAME): Ditto.
3391 (gdbpy_new_objfile): Delete.
3392 (source_python_script_for_objfile): New function.
3393 (set_python_list, show_python_list): Make externally visible.
3394 (_initialize_python): Move "auto-load" command to py-auto-load.c
3395 and observer_attach_new_objfile to py-auto-load.c.
3396
3a48e6ff 33972010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 3398
3a48e6ff
JG
3399 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
3400 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
3401 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
3402 New constants.
3403 (alpha_heuristic_analyze_probing_loop): New function.
3404 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
3405 and handle cases when a stack probe loop is generated.
3406 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
3407 (alpha_mdebug_max_frame_size_exceeded): New function.
3408 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
3409 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
3410 Return 0 when the maximum debuggable frame size has been exceeded.
3411
e4166a49
JB
34122010-04-23 Joel Brobecker <brobecker@adacore.com>
3413
3414 Fix ARI warning.
3415 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
3416
8bd10a10
CM
34172010-04-20 Chris Moller <cmoller@redhat.com>
3418
3419 PR 10179
3420
3421 * symtab.c (rbreak_command): Added code to include a filename
3422 specification in the rbreak argument.
3423 * NEWS: Added a brief description of filename-qualified rbreak.
3424
c0201579
JK
34252010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3426
3427 Fix crashes on dangling display expressions.
3428 * ada-lang.c (ada_operator_check): New function.
3429 (ada_exp_descriptor): Fill-in the field operator_check.
3430 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
3431 * jv-lang.c (exp_descriptor_java): Likewise.
3432 * m2-lang.c (exp_descriptor_modula2): Likewise.
3433 * scm-lang.c (exp_descriptor_scm): Likewise.
3434 * parse.c (exp_descriptor_standard): Likewise.
3435 (operator_check_standard): New function.
3436 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
3437 * parser-defs.h (struct exp_descriptor): New field operator_check.
3438 (operator_check_standard, exp_uses_objfile): New declarations.
3439 * printcmd.c: Remove the inclusion of solib.h.
3440 (display_uses_solib_p): Remove the function.
3441 (clear_dangling_display_expressions): Call lookup_objfile_from_block
3442 and exp_uses_objfile instead of display_uses_solib_p.
3443 * solist.h (struct so_list) <objfile>: New comment.
3444 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
3445 * symtab.h (lookup_objfile_from_block): New declaration.
3446 (struct general_symbol_info) <obj_section>: Extend the comment.
3447
6ffbb7ab
TJB
34482010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3449 Thiago Jung Bauermann <bauerman@br.ibm.com>
3450
3451 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
3452 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
3453 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
3454 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
3455 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
3456 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
3457 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
3458 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
3459 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
3460 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
3461 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
3462 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
3463 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
3464 Define, in case <ptrace.h> doesn't provide it.
3465 (booke_debug_info): New variable.
3466 (max_slots_number): Ditto.
3467 (hw_break_tuple): New struct.
3468 (thread_points): Ditto.
3469 (ppc_threads): New variable.
3470 (PPC_DEBUG_CURRENT_VERSION): New define.
3471 (have_ptrace_new_debug_booke): New function.
3472 (ppc_linux_check_watch_resources): Renamed to ...
3473 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
3474 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
3475 (booke_cmp_hw_point): New function.
3476 (booke_find_thread_points_by_tid): Ditto.
3477 (booke_insert_point): Ditto.
3478 (booke_remove_point): Ditto.
3479 (ppc_linux_insert_hw_breakpoint): Ditto.
3480 (ppc_linux_remove_hw_breakpoint): Ditto.
3481 (get_trigger_type): Ditto.
3482 (ppc_linux_insert_watchpoint): Handle BookE processors.
3483 (ppc_linux_remove_watchpoint): Ditto.
3484 (ppc_linux_new_thread): Ditto.
3485 (ppc_linux_thread_exit): New function..
3486 (ppc_linux_stopped_data_address): Handle BookE processors.
3487 (ppc_linux_watchpoint_addr_within_range): Ditto.
3488 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
3489 to_remove_hw_breakpoint fields of the target operations struct.
3490 Add observe for the thread_exit event.
3491
be0d2954
L
34922010-04-22 H.J. Lu <hongjiu.lu@intel.com>
3493
3494 * i386-linux-nat.c (regmap): Removed.
3495 (fetch_register): Replace regmap with
3496 i386_linux_gregset_reg_offset.
3497 (store_register): Likewise.
3498 (supply_gregset): Likewise.
3499 (fill_gregset): Likewise.
3500
3501 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
3502 global.
3503
3504 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
3505
f56dcb88
CM
35062010-04-22 Chris Moller <cmoller@redhat.com>
3507
3508 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
3509 method of popping recursion-detection stack with a method based on
3510 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
3511 the static array obstack rather than the static member obstack.)
3512
6cd6a2ae
L
35132010-04-22 H.J. Lu <hongjiu.lu@intel.com>
3514
3515 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
3516 (_initialize_amd64_linux_nat): Replace
3517 amd64_linux_gregset64_reg_offset with
3518 amd64_linux_gregset_reg_offset.
3519
3520 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
3521 global.
3522
3523 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
3524
621791b8
PM
35252010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
3526
3527 PR stabs/11479.
3528 * stabsread.c (set_length_in_type_chain): New function.
3529 (read_struct_type): Call set_length_in_type_chain function.
3530 (read_enum_type): Idem.
3531
105c2d85
SS
35322010-04-21 Stan Shebs <stan@codesourcery.com>
3533 Nathan Sidwell <nathan@codesourcery.com>
3534
3535 * tracepoint.c (trace_save): Open in binary mode.
3536
9a22f0d0
PM
35372010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
3538
3539 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
3540 fields.
0407b3f1 3541 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
3542 builtin_char32 fields.
3543 * printcmd.c (decode_format): Set char size to '\0'
3544 for strings unless explicit size is given.
3545 (print_formatted): Correct calculation of NEXT_ADDRESS
3546 for 16 or 32 bit strings.
3547 (do_examine): Do not force byte size for strings.
3548 Use builtin_char16 and builtin_char32 types to display
0407b3f1 3549 16 or 32 bit-wide strings.
9a22f0d0
PM
3550 (x_command): Set LAST_SIZE to 'b' for string type.
3551
f335d1b3
L
35522010-04-21 H.J. Lu <hongjiu.lu@intel.com>
3553
3554 PR corefiles/11523
3555 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3556 XCR0 first.
3557
3558 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
3559 there is no .reg-xstate section.
3560 (i386_linux_core_read_description): Check XCR0 first.
3561
a9789a6b
MF
35622010-04-21 Mike Frysinger <vapier@gentoo.org>
3563
3564 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
3565 for len <= 8.
3566
0b66f317
CM
35672010-04-21 Chris Moller <cmoller@redhat.com>
3568
3569 PR 9167
3570 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
3571 method of popping recursion-detection stack with a method based on
3572 obstack_object_size().
0b66f317 3573
6e354e5e
PM
35742010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3575
3576 PR pascal/11492.
3577 * p-valprint.c (pascal_val_print): Fix default printing of integer
3578 arrays.
3579
57174f31
PM
35802010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3581
3582 Fix compilation warning on gcc-4.1.2.
3583 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
3584 local variable`pc' to zero.
3585
6fbc7cd8
JB
35862010-04-20 Joel Brobecker <brobecker@adacore.com>
3587
3588 Implement thread support with core files on alpha-tru64.
3589 * dec-thread.c (dec_thread_find_new_threads): New function,
3590 extracted from resync_thread_list.
3591 (resync_thread_list): Add OPS parameter. Replace extracted-out
3592 code by call to dec_thread_find_new_threads.
3593 (dec_thread_wait): Update call to resync_thread_list.
3594 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
3595
438c98a1
JB
35962010-04-20 Joel Brobecker <brobecker@adacore.com>
3597
3598 * ada-lang.c (value_pointer): New function.
3599 (make_array_descriptor): Call value_pointer to convert addresses to
3600 pointers.
3601
2971b56b
JB
36022010-04-20 Joel Brobecker <brobecker@adacore.com>
3603
3604 * rs6000-aix-tdep.c: #include exceptions.h.
3605 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
3606 while reading the memory at ADDR, then ADDR cannot be a function
3607 descriptor.
3608
be942545
JB
36092010-04-20 Joel Brobecker <brobecker@adacore.com>
3610
3611 * ada-typeprint.c (ada_print_typedef): New function.
3612 * ada-lang.h (ada_print_typedef): Add declaration.
3613 * ada-lang.c (ada_language_defn): set la_print_typdef field
3614 to ada_print_typedef.
3615
1ca8fce0
JB
36162010-04-20 Joel Brobecker <brobecker@adacore.com>
3617
3618 * procfs.c (procfs_address_to_host_pointer): Only define when used.
3619
e9ef4f39
JB
36202010-04-20 Joel Brobecker <brobecker@adacore.com>
3621
3622 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
3623 (iterate_over_mappings): Adjust function profile. Add declaration.
3624 (insert_dbx_link_bpt_in_region, info_mappings_callback):
3625 Adjust accordingly.
3626
e294797a
JB
36272010-04-20 Joel Brobecker <brobecker@adacore.com>
3628
3629 * procfs.c (solib_mappings_callback): Move function up to avoid
3630 a compiler warning.
3631
a223f1e7
JB
36322010-04-20 Joel Brobecker <brobecker@adacore.com>
3633
3634 * procfs.c (find_signalled_thread, find_stop_signal): Move
3635 these functions down to define them only when used.
3636
0c3acc09
JB
36372010-04-20 Joel Brobecker <brobecker@adacore.com>
3638
3639 * valprint.c (common_val_print): Fix the value before extracting
3640 its contents.
3641 * ada-lang.c (ada_to_fixed_value): Make this function extern.
3642 * ada-lang.h (ada_to_fixed_value): New function declaration.
3643 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
3644 to avoid code duplication and fix a bug in the handling of
3645 fixed types contents.
3646
31ef98ae
TT
36472010-04-20 Tom Tromey <tromey@redhat.com>
3648
3649 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
3650 (read_partial_die): Likewise.
3651 (dwarf_attr_name): Likewise.
3652
ec31cde5 36532010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 3654
ec31cde5
CM
3655 PR 10867
3656
3657 * cp-valprint.c (global): Adding new static array recursion
3658 detection obstack.
3659 (cp_print_value_fields, cp_print_static_field): Added new static
3660 array recursion detection code.
3661
e0e0e543
MK
36622010-04-20 Mark Kettenis <kettenis@gnu.org>
3663
3664 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
3665 general-purpose register set should be 68 instead of 144.
3666 (i386_linux_sse_regset_sections): Likewise.
3667 (i386_linux_avx_regset_sections): Likewise.
3668
08922a10
SS
36692010-04-20 Stan Shebs <stan@codesourcery.com>
3670 Nathan Sidwell <nathan@codesourcery.com>
3671
3672 * dwarf2loc.c (struct axs_var_loc): New struct.
3673 (dwarf2_tracepoint_var_loc): New function.
3674 (dwarf2_tracepoint_var_access): New function.
3675 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
3676 with DW_OP_piece.
3677 (locexpr_describe_location_piece): New function.
3678 (locexpr_describe_location_1): New function.
3679 (locexpr_describe_location): Call it, update signature.
3680 (loclist_describe_location): Rewrite to loop over locations,
3681 update signature.
3682 * symtab.h (struct symbol_computed_ops): Add address to
3683 describe_location arguments, return void.
3684 * printcmd.c (address_info): Get context PC, pass to computed
3685 location description.
3686 * tracepoint.c (scope_info): Ditto.
3687 * ax-gdb.c (trace_kludge): Export.
3688
2dc7f7b3
TT
36892010-04-20 Tom Tromey <tromey@redhat.com>
3690
3691 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
3692 (struct dwarf2_cie) <segment_size>: New field.
3693 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
3694 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
3695 DW_FORM_exprloc.
3696 (read_attribute_value): Handle DW_FORM_flag_present,
3697 DW_FORM_sec_offset, DW_FORM_exprloc.
3698 (dump_die_shallow): Likewise.
3699 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
3700 (dwarf2_const_value): Handle DW_FORM_exprloc.
3701 (attr_form_is_block): Likewise.
3702 (struct line_header) <maximum_ops_per_instruction>: New field.
3703 (dwarf_decode_line_header): Set new field.
3704 (dwarf_decode_lines): Handle new field.
3705
ce4b0682
SDJ
37062010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3707
3708 * f-exp.y: Add new production to recognize the `logical*8' type.
3709 (LOGICAL_S8_KEYWORD): New token.
3710 * f-lang.c (enum f_primitive_types)
3711 <f_primitive_type_logical_s8>: New field.
3712 (f_language_arch_info): Handling `logical*8' type.
3713 (build_fortran_types): Building `logical*8' type.
3714 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
3715
ff9f22f1
DE
37162010-04-19 Doug Evans <dje@google.com>
3717
3718 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
3719 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
3720 (pipe_close): Ditto.
3721
437125bd
PM
37222010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3723
3724 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
3725
e8e6c82e
PM
37262010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3727
3728 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
3729 type to void function.
3730
4136fdd2
SS
37312010-04-19 Stan Shebs <stan@codesourcery.com>
3732 Vladimir Prus <vladimir@codesourcery.com>
3733
3734 * tracepoint.c (tfind_1): Add missing newline, report exit from
3735 tfind mode as such.
3736 * target.c (update_current_target): Make default
3737 to_trace_find return -1.
3738
0c4b2e63
MF
37392010-04-19 Mike Frysinger <vapier@gentoo.org>
3740
3741 * objc-lang.c (find_methods): Move symname check up.
3742
78076abc
PA
37432010-04-19 Pedro Alves <pedro@codesourcery.com>
3744
3745 * ada-lang.c (print_recreate_exception)
3746 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
3747 not "catch unhandled".
3748
6149aea9
PA
37492010-04-19 Pedro Alves <pedro@codesourcery.com>
3750
3751 PR breakpoints/8554.
3752
3753 Implement `save-breakpoints'.
3754
3755 * breakpoint.c (save_cmdlist): New.
3756 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
3757 to save_cmdlist.
3758 (print_recreate_catch_fork): New.
3759 (catch_fork_breakpoint_ops): Install it.
3760 (print_recreate_catch_vfork): New.
3761 (catch_vfork_breakpoint_ops): Install it.
3762 (print_recreate_catch_syscall): New.
3763 (catch_syscall_breakpoint_ops): Install it.
3764 (print_recreate_catch_exec): New.
3765 (catch_exec_breakpoint_ops): Install it.
3766 (print_recreate_exception_catchpoint): New.
3767 (gnu_v3_exception_catchpoint_ops): Install it.
3768 (save_breakpoints): New, based on tracepoint_save_command, but
3769 handle all breakpoint types.
3770 (save_breakpoints_command): New.
3771 (tracepoint_save_command): Rename to...
3772 (save_tracepoints_command): ... this, and reimplement using
3773 save_breakpoints.
3774 (save_command): New.
3775 (_initialize_breakpoints): Install the "save" command prefix.
3776 Install the "save breakpoints" command. Make "save-tracepoints" a
3777 deprecated alias for "save tracepoints".
3778 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
3779 * ada-lang.c (print_recreate_exception): New.
3780 (print_recreate_catch_exception): New.
3781 (catch_exception_breakpoint_ops): Install it.
3782 (print_recreate_catch_exception_unhandled): New.
3783 (catch_exception_unhandled_breakpoint_ops): Install it.
3784 (print_recreate_catch_assert): New.
3785 (catch_assert_breakpoint_ops): Install it.
3786
3787 * NEWS: Mention the new `save breakpoints' command. Mention the
3788 new `save tracepoints' alias and that `save-tracepoints' is now
3789 deprecated.
3790
0a8fce9a
PA
37912010-04-18 Pedro Alves <pedro@codesourcery.com>
3792
3793 PR tui/9217
3794
3795 * tui/tui-out.c: Include cli-out.h.
3796 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3797 (tui_begin, tui_end, tui_field_int, tui_field_skip)
3798 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
3799 (tui_message, tui_wrap_hint, tui_flush): Delete forward
3800 declarations.
3801 (struct ui_out_data): Rename to...
3802 (struct tui_ui_out_data): ... this. Remove `stream' and
3803 `suppress_output' fields, and inherit cli_ui_out_data.
3804 (tui_out_data): New typedef.
3805 (tui_ui_out_impl): Don't initialize fields staticaly.
3806 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3807 (tui_begin, tui_end): Delete.
3808 (tui_field_int): Adjust to delegate most work to the base type.
3809 (tui_field_skip): Delete.
3810 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
3811 delegate most work to the base type.
3812 (tui_spaces): Delete.
3813 (tui_text): Adjust to delegate most work to the base type.
3814 (tui_message): Delete.
3815 (tui_wrap_hint): Delete.
3816 (tui_flush): Delete.
3817 (out_field_fmt): Delete.
3818 (field_separator): Delete.
3819 (tui_out_new): Adjust to initialize the base type.
3820 (_initialize_tui_out): Initialize tui_ui_out_impl.
3821 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
3822 cli_ui_out_data.
3823 (cli_out_data): Adjust.
3824 (cli_ui_out_impl): Make extern.
3825 (cli_table_header, cli_field_int, cli_field_skip): Use
3826 uo_field_string instead of cli_field_string.
3827 (cli_redirect): Adjust to use cli_out_data.
3828 (cli_out_data_ctor): New.
3829 (cli_out_new): Use it.
3830 * cli-out.h (struct ui_file): Remove forward declaration.
3831 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
3832 (cli_ui_out_impl): Declare.
3833 (cli_out_data_ctor): Declare.
3834 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
3835 (uo_field_string): No longer static.
3836 (ui_out_data): Change return type to void pointer.
3837 (ui_out_new): Change `data' parameter type to void pointer.
3838 * ui-out.h (struct ui_out_data): Don't forward declare.
3839 (ui_out_data): Change return type to void pointer.
3840 (ui_out_new): Change `data' parameter type to void pointer.
3841 (uo_field_string): Declare.
3842
172240dd
PA
38432010-04-17 Pedro Alves <pedro@codesourcery.com>
3844
3845 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
3846 instead of always false.
3847
ed41462c
L
38482010-04-17 H.J. Lu <hongjiu.lu@intel.com>
3849
3850 PR corefiles/11511
3851 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
3852 orig_rax.
3853
cc60f2e3
PA
38542010-04-17 Pedro Alves <pedro@codesourcery.com>
3855
3856 * breakpoint.c (watchpoints_triggered): Use
3857 is_hardware_watchpoint.
3858 (watchpoints_triggered): Ditto.
3859 (bpstat_check_location): Use is_watchpoint and
3860 is_hardware_watchpoint.
3861 (bpstat_check_watchpoint): Use is_watchpoint and
3862 is_hardware_watchpoint.
3863 (bpstat_stop_status): Fix comment.
3864 (user_settable_breakpoint): Use is_watchpoint.
3865 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
3866 (disable_watchpoints_before_interactive_call_start): Use
3867 is_watchpoint.
3868 (enable_watchpoints_after_interactive_call_stop): Use
3869 is_watchpoint.
3870 (clear_command): Use is_watchpoint.
3871 (do_enable_breakpoint): Use is_watchpoint.
3872
cb7db0f2
MF
38732010-04-16 Mike Frysinger <vapier@gentoo.org>
3874
3875 * solib-frv.c (enable_break1_done): Delete.
3876 (enable_break2): Do not check enable_break1_done. Move the
3877 enable_break2_done setting and call to
3878 remove_solib_event_breakpoints() to the end. Return without
3879 warning when the contents of _dl_debug_addr are 0.
3880 (enable_break): Do not set enable_break1_done.
3881 (frv_clear_solib): Likewise.
3882
d77b48cf
KB
38832010-04-16 Kevin Buettner <kevinb@redhat.com>
3884
3885 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
3886 instead of an error if no PLT entry is found. Return a
3887 potentially useful result.
3888 (m32c_m16c_pointer_to_address): Add code to search for function
3889 address when no .plt entry is found.
3890
f90824dc
SS
38912010-04-16 Stan Shebs <stan@codesourcery.com>
3892
3893 * tracepoint.c (trace_variable_command): Run a cleanup.
3894
9b79b476
PM
38952010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3896
3897 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
3898
711e434b
PM
38992010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3900
3901 Support for Windows OS Thread Information Block.
3902 * NEWS: Document new feature.
3903 * remote.c (PACKET_qGetTIBAddr): New enum element.
3904 (remote_get_tib_address): New function.
3905 (init_remote_ops): Set to_get_tib_address field
3906 to remote_get_tib_address.
3907 (_initialize_remote): Add add_packet_config_cmd
3908 for PACKET_qGetTIBAddr.
3909 * target.c (update_current_target): Set default value for
3910 new to_get_tib_address field.
3911 * target.h (target_ops): New field to_get_tib_address.
3912 (target_get_tib_address): New macro.
3913 * windows-nat.c (thread_info): Add thread_local_base field.
3914 (windows_add_thread): Add tlb argument of type 'void *'.
3915 (fake_create_process): Adapt windows_add_thread call.
3916 (get_windows_debug_event): Idem.
3917 (windows_get_tib_address): New function.
3918 (init_windows_ops): Set to_get_tib_address field
3919 to remote_get_tib_address.
3920 (_initialize_windows_nat): Replace info_w32_cmdlist
3921 initialization by a call to init_w32_command_list.
3922 (info_w32_command, info_w32_cmdlist): Removed from here...
3923 to windows-tdep.c file.
3924 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 3925 (init_w32_command_list): New external function
711e434b
PM
3926 declaration.
3927 * windows-tdep.c: Add several headers.
3928 (info_w32_cmdlist): to here, made global.
3929 (thread_information_32): New struct.
3930 (thread_information_64): New struct.
3931 (TIB_NAME): New char array.
3932 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
3933 (maint_display_all_tib): New static variable.
3934 (windows_get_tlb_type): New function.
3935 (tlb_value_read, tlb_value_write): New functions.
3936 (tlb_value_funcs): New static struct.
3937 (tlb_make_value): New function.
3938 (display_one_tib): New function.
3939 (display_tib): New function.
3940 (show_maint_show_all_tib):New function.
3941 (info_w32_command): Moved from windows-nat.c.
3942 (init_w32_command_list): New function.
3943 (_initialize_windows_tdep): New function.
3944 New "maint set/show show-all-tib" command
3945 New "$_tlb" internal variable.
3946
cae3f17b
JB
39472010-04-16 Joel Brobecker <brobecker@adacore.com>
3948
3949 * tui/tui-regs.c (tui_display_register): Add comment about
3950 a couple of casts.
3951 * tui/tui-stack.c (tui_show_locator_content): Ditto.
3952
2ce6d6bf
SS
39532010-04-15 Stan Shebs <stan@codesourcery.com>
3954
3955 * frame.c: Include tracepoint.h.
3956 (get_current_frame): Allow a trace frame to be an alternate source
3957 of stack frame data.
3958 * tracepoint.c (tfind_1): Don't try to get current stack frame if
3959 it won't succeed.
3960
7e559477
PA
39612010-04-15 Pedro Alves <pedro@codesourcery.com>
3962
3963 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
3964 flags.
3965 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
3966
3f7b2faa
DE
39672010-04-15 Doug Evans <dje@google.com>
3968
fa33c3cd
DE
3969 * NEWS: Add entry for python program space support.
3970 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
3971 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
3972 (py-progspace.o): New rule.
3973 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
3974 function.
3975 (find_pretty_printer_from_progspace): New function.
3976 (find_pretty_printer_from_gdb): New function.
3977 (find_pretty_printer): Rewrite.
3978 * python/py-progspace.c: New file.
3979 * python/python-internal.h (program_space): Add forward decl.
3980 (pspace_to_pspace_object, pspy_get_printers): Declare.
3981 (gdbpy_initialize_pspace): Declare.
3982 * python/python.c: #include "progspace.h".
3983 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
3984 (_initialize_python): Call gdbpy_initialize_pspace.
3985 (GdbMethods): Add current_progspace, progspaces.
3986
3f7b2faa
DE
3987 Add -s option to source command.
3988 * NEWS: Document new option.
3989 * cli/cli-cmds.c (find_and_open_script): Add function comment.
3990 Delete from_tty and cleanupp args. Split filep arg into file and
3991 full_pathp. New arg search_path.
3992 (source_script_from_stream): New function.
3993 (source_script_with_search): New function.
3994 (source_script): Rewrite.
3995 (source_command): Parse "-s" option.
3996 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
3997 * python/python.c (source_python_script): Make file arg a const char *.
3998 Don't call fclose, leave for caller.
3999 * python/python.h (source_python_script): Update.
4000
a86988f2
PA
40012010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4002 Pedro Alves <pedro@codesourcery.com>
4003
4004 Avoid rereading shared libraries that haven't changed.
4005
4006 * solib.c (free_so_symbols): New function, from ...
4007 (free_so): ... here. Call it.
4008 (solib_read_symbols): Don't warn here if symbols have already been
4009 loaded.
4010 (solib_add): Warn here instead, if a pattern was specified.
4011 (reload_shared_libraries_1): New.
4012 (reload_shared_libraries): Rewrite to not fetch the library list.
4013
e6d9b9c2
DE
40142010-04-14 Doug Evans <dje@google.com>
4015
589390d6 4016 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
4017 concatenating string to search path.
4018
516ba659
PA
40192010-04-14 Pedro Alves <pedro@codesourcery.com>
4020
4021 * objfiles.h (gdb_bfd_close_or_warn): Declare.
4022 * objfiles.c (gdb_bfd_close_or_warn): New.
4023 * corelow.c: Include objfiles.h
4024 (core_close): Use gdb_bfd_close_or_warn.
4025 * elfread.c (build_id_verify): Ditto.
4026 * exec.c (exec_close, exec_close_1): Ditto.
4027
048d532d
PA
40282010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4029 Pedro Alves <pedro@codesourcery.com>
4030
4031 Group errors for many missing shared libraries.
4032
4033 * solist.h (struct so_list): Remove from_tty.
4034 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
4035 (solib_map_sections): Take so_list argument. Return 0 if we
4036 failed to open a BFD. Add target sections here.
4037 (symbol_add_stub): Delete.
4038 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
4039 not from_tty copied from the so_list. Don't warn a second time
4040 for a missing library.
4041 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
4042 add to the section table here. Print out a single warning for all
4043 missing libraries.
4044 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
4045 flags.
4046
044c0f87
PM
40472010-04-14 Phil Muldoon <pmuldoon@redhat.com>
4048
4049 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
4050 error/warning messages. Capitalize and use complete sentences.
4051 (blpy_block_syms_iternext): Likewise.
4052 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
4053 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
4054 (frame_info_to_frame_object, frapy_read_var)
4055 (gdbpy_frame_stop_reason_string): Likewise.
4056 * python/py-lazy-string.c (stpy_convert_to_value)
4057 (gdbpy_create_lazy_string_object): Likewise.
4058 * python/py-objfile.c (objfpy_set_printers): Likewise.
4059 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
4060 * python/python.c (parameter_to_python): Likewise.
4061 * python/py-type.c (typy_range, typy_target): Likewise.
4062 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
4063 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
4064
4065
79f283fe
PM
40662010-04-14 Phil Muldoon <pmuldoon@redhat.com>
4067
4068 PR python/11381
4069
4070 * python/py-prettyprint.c (pretty_print_one_value): Test for
4071 Py_None.
4072 (print_string_repr): Test for Py_None. Set flags accordingly.
4073 Return value depending on return type.
4074 (print_children): Take a value indicating whether data was printed
4075 before this function was called. Alter output accordingly.
4076 (apply_val_pretty_printer): Capture return value from
4077 print_string_repr and pass to print_children.
4078
4ac5d44e
MK
40792010-04-13 Mark Kettenis <kettenis@gnu.org>
4080
e1caee70 4081 PR corefiles/11481
4ac5d44e
MK
4082 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
4083 register note sections.
4084 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
4085 New variables.
4086 (i386_linux_init_abi): Install list of supported register note
4087 sections that matches the target description.
4088
ad91cd99
PA
40892010-04-13 Pedro Alves <pedro@codesourcery.com>
4090
4091 * remote.c (remote_get_noisy_reply): Don't error out on empty
4092 replies.
4093 (remote_start_remote): Update and merge tracepoints and trace
4094 state variables as long as the target supports tracepoints.
4095 (remote_trace_init): Fix prototype.
4096 (remote_download_trace_state_variable): Validate reply.
4097 (remote_trace_set_readonly_regions): Fix prototype.
4098 (remote_trace_start): Fix prototype. Check for empty reply.
4099 (remote_get_trace_status): Small cleanup.
4100 (remote_trace_stop): Fix prototype. Check for empty reply.
4101 (remote_trace_find): Check for empty reply.
4102 (remote_save_trace_data): Validate reply.
4103 (remote_set_disconnected_tracing): Check for empty reply, and
4104 validate reply.
4105 (remote_set_circular_trace_buffer): Ditto.
4106
ae3bccd4
PM
41072010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
4108
4109 Suppress unused value warning during compilation.
4110 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
4111 calls to void.
4112 * tui/tui-stack.c (tui_show_locator_content): Likewise.
4113
523136f2
SS
41142010-04-12 Stan Shebs <stan@codesourcery.com>
4115
4116 * tracepoint.c (tfile_xfer_partial): Check read result.
4117
0d18d720
MF
41182010-04-12 Mike Frysinger <vapier@gentoo.org>
4119
4120 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
4121 * remote-sim.c (gdbsim_files_info): Likewise.
4122
3b273a55
RE
41232010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4124
4125 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
4126 * arm-linux-nat.c (arm_linux_vfp_register_count): New
4127 variable.
4128 (fetch_vfp_registers): New function to fetch VFP registers.
4129 (store_vfp_registers): New function to store VFP registers.
4130 (arm_linux_fetch_inferior_registers): Add support for VFP
4131 registers.
4132 (arm_linux_store_inferior_registers): Likewise.
4133 (arm_linux_read_description): Likewise.
4134 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
4135 until we need it.
4136
778c7095
L
41372010-04-11 H.J. Lu <hongjiu.lu@intel.com>
4138
4139 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
4140 tdep.
4141 (amd64_collect_xstateregset): Likewise.
4142
2114d44c
SS
41432010-04-09 Stan Shebs <stan@codesourcery.com>
4144
87290684
SS
4145 * tracepoint.c (trace_status_mi): Report frames created.
4146
2114d44c
SS
4147 * tracepoint.c (trace_dump_command): Include default-collect
4148 expressions.
4149
86da934b
UW
41502010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
4151
4152 * symtab.c (find_function_start_sal): Never return SAL pointing
4153 before function start address, even if line info is missing.
4154
2d6e647a 41552010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
4156
4157 * NEWS: Mention tracepoints support.
4158
a97153c7
PA
41592010-04-09 Pedro Alves <pedro@codesourcery.com>
4160
4161 * tracepoint.c (trace_status_mi): Report disconnected tracing and
4162 circular trace buffer statuses.
4163
7a66d603
JK
41642010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4165
4166 * config/djgpp/fnchange.lst: Fix typo in translations for
4167 symbol-without-target_section.exp and symbol-without-target_section.c.
4168
2566ad2d
PA
41692010-04-09 Pedro Alves <pedro@codesourcery.com>
4170
4171 * breakpoint.c (condition_command): Pass condition expression to
4172 set_breakpoint_condition stripped from breakpoint number.
4173
adc36818
PM
41742010-04-09 Phil Muldoon <pmuldoon@redhat.com>
4175 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 4176 Tom Tromey <tromey@redhat.com>
adc36818
PM
4177
4178 * breakpoint.c (condition_command): Simplify. Move condition
4179 setting code to ...
4180 (set_breakpoint_condition): ... here. New function.
4181 * breakpoint.h (set_breakpoint_condition): Declare.
4182 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
4183 (SUBDIR_PYTHON_SRCS): Likewise.
4184 (py-breakpoint.o): New rule.
4185 * python/py-breakpoint.c: New file.
4186 * python/python-internal.h (gdbpy_breakpoints)
4187 (gdbpy_initialize_breakpoints): Declare.
4188 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
4189
219f2f23
PA
41902010-04-09 Pedro Alves <pedro@codesourcery.com>
4191
4192 * regformats/regdat.sh: Include server.h. Don't include
4193 regcache.h.
4194
33da3f1c
SS
41952010-04-08 Stan Shebs <stan@codesourcery.com>
4196 Pedro Alves <pedro@codesourcery.com>
4197
4198 * tracepoint.h (struct trace_status): New fields disconnected_tracing
4199 and circular_buffer.
4200 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
4201 * tracepoint.c (trace_status_command): Display target's status for
4202 disconnected tracing and circular buffer.
4203 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
4204 query for non-disconnected-tracing case, remove the stop_tracing
4205 call.
4206 (tfile_open): Clear disconnected and circular buffer status.
4207 (trace_save): Save disconnected and circular buffer status.
4208 (parse_trace_status): Parse disconnected and circular buffer status,
4209 also recognize disconnected as a stop reason.
4210 * remote.c (remote_set_disconnected_tracing): Only set
4211 QTDisconnected if the remote end supports disconnected tracing.
4212 Warn otherwise, if trying to enable disconnected tracing.
4213 * infcmd.c (detach_command): Update disconnect_tracing call.
4214 * cli/cli-cmds.c (quit_command): Ditto.
4215
4e4d8374
L
42162010-04-08 H.J. Lu <hongjiu.lu@intel.com>
4217
4218 * i387-tdep.c (i387_collect_xsave): Replace abort with
4219 internal_error.
4220
ad443146
SS
42212010-04-08 Stan Shebs <stan@codesourcery.com>
4222
4223 * breakpoint.c (default_collect_info): New function.
4224 (breakpoints_info): Call it.
4225 (maintenance_info_breakpoints): Ditto.
4226 (tracepoints_info): Ditto.
4227
40936b0d
L
42282010-04-08 H.J. Lu <hongjiu.lu@intel.com>
4229
4230 * i387-tdep.c (i387_collect_xsave): Re-indent.
4231
3a13a53b
L
42322010-04-08 H.J. Lu <hongjiu.lu@intel.com>
4233
4234 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
4235 if HAVE_PTRACE_GETFPXREGS is defined.
4236 (i386_linux_read_description): Set have_ptrace_getfpxregs and
4237 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
4238
4239 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
4240 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
4241 if .reg-xfp section doesn't exist.
4242 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
4243
4244 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
4245
4246 * i386-tdep.c: Include "features/i386/i386-mmx.c".
4247 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
4248 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
4249 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
4250 (i386_gdbarch_init): Update comments.
4251 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
4252
4253 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
4254
4255 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
4256
4257 * features/Makefile (i386/i386-mmx-expedite): New.
4258 (i386/i386-mmx-linux-expedite): Likewise.
4259 ($(outdir)/i386/i386-mmx.dat): Likewise.
4260 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
4261
4262 * features/i386/i386-mmx-linux.c: New.
4263 * features/i386/i386-mmx-linux.xml: Likewise.
4264 * features/i386/i386-mmx.c: Likewise.
4265 * features/i386/i386-mmx.xml: Likewise.
4266 * regformats/i386/i386-mmx-linux.dat: Likewise.
4267 * regformats/i386/i386-mmx.dat: Likewise.
4268
4269 * features/Makefile (WHICH): Add i386/i386-mmx and
4270 i386/i386-mmx-linux.
4271
08001717
DE
42722010-04-08 Doug Evans <dje@google.com>
4273
4274 * source.c (openp): Skip $cdir in PATH.
4275
fff5cc64
PM
42762010-04-08 Phil Muldoon <pmuldoon@redhat.com>
4277
4278 PR python/11417
fff5cc64 4279 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
4280 a NULL address.
4281 (gdbpy_create_lazy_string_object): Allow strings with a NULL
4282 address and a zero length.
fff5cc64 4283
f8c4f480
HZ
42842010-04-08 Hui Zhu <teawater@gmail.com>
4285
4286 * i386-tdep.c (i386_process_record): Add support for insn
4287 rdtsc.
4288
eb5cda86
DE
42892010-04-07 Doug Evans <dje@google.com>
4290
4291 * python/python.c (source_python_script): Use ensure_python_env
4292 to prepare environment for script.
4293
a055a187
L
42942010-04-07 H.J. Lu <hongjiu.lu@intel.com>
4295
4296 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
4297 <sys/uio.h> and "i386-xstate.h".
4298 (PTRACE_GETREGSET): New.
4299 (PTRACE_SETREGSET): Likewise.
4300 (have_ptrace_getregset): Likewise.
4301 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
4302 registers.
4303 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
4304 registers.
4305 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
4306 (amd64_linux_store_inferior_registers): Likewise.
4307 (amd64_linux_read_description): Check and enable AVX target
4308 descriptions.
4309
4310 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
4311 and "features/i386/amd64-avx-linux.c".
4312 (amd64_linux_regset_sections): New.
4313 (amd64_linux_core_read_description): Check and enable AVX
4314 target description.
4315 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
4316 set_gdbarch_core_regset_sections.
4317 (_initialize_amd64_linux_tdep): Call
4318 initialize_tdesc_amd64_avx_linux.
4319
4320 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
4321 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
4322 (tdesc_amd64_avx_linux): New.
4323 (amd64_linux_update_xstateregset): Likewise.
4324
4325 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
4326 (amd64_ymm_names): New.
4327 (amd64_ymmh_names): Likewise.
4328 (amd64_register_name): Likewise.
4329 (amd64_supply_xstateregset): Likewise.
4330 (amd64_collect_xstateregset): Likewise.
4331 (amd64_supply_xsave): Likewise.
4332 (amd64_collect_xsave): Likewise.
4333 (AMD64_NUM_REGS): Removed.
4334 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
4335 %xmmN if AVX is available.
4336 (amd64_pseudo_register_name): Support pseudo YMM registers.
4337 (amd64_regset_from_core_section): Support .reg-xstate section.
4338 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
4339 and ymm0h_regnum. Call set_gdbarch_register_name.
4340 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
4341
4342 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
4343 AMD64_YMM15H_REGNUM.
4344 (AMD64_NUM_REGS): New.
4345 (amd64_supply_xsave): Likewise.
4346 (amd64_collect_xsave): Likewise.
4347 (amd64_register_name): Removed.
4348 (amd64_register_type): Likewise.
4349
31aeac78
L
43502010-04-07 H.J. Lu <hongjiu.lu@intel.com>
4351
4352 * i387-tdep.c: Include "i386-xstate.h".
4353 (XSAVE_XSTATE_BV_ADDR): New.
4354 (xsave_avxh_offset): Likewise.
4355 (XSAVE_AVXH_ADDR): Likewise.
4356 (i387_supply_xsave): Likewise.
4357 (i387_collect_xsave): Likewise.
4358
4359 * i387-tdep.h (I387_NUM_YMM_REGS): New.
4360 (I387_YMM0H_REGNUM): Likewise.
4361 (I387_YMMENDH_REGNUM): Likewise.
4362 (i387_supply_xsave): Likewise.
4363 (i387_collect_xsave): Likewise.
4364
c131fcee
L
43652010-04-07 H.J. Lu <hongjiu.lu@intel.com>
4366
4367 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
4368 <sys/uio.h> and "i386-xstate.h".
4369 (PTRACE_GETREGSET): New.
4370 (PTRACE_SETREGSET): Likewise.
4371 (fetch_xstateregs): Likewise.
4372 (store_xstateregs): Likewise.
4373 (GETXSTATEREGS_SUPPLIES): Likewise.
4374 (regmap): Include 8 upper YMM registers.
4375 (i386_linux_fetch_inferior_registers): Support XSAVE extended
4376 state.
4377 (i386_linux_store_inferior_registers): Likewise.
4378 (i386_linux_read_description): Check and enable AVX target
4379 descriptions.
4380
4381 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
4382 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
4383 (i386_linux_regset_sections): Add ".reg-xstate".
4384 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
4385 (i386_linux_core_read_xcr0): New.
4386 (i386_linux_core_read_description): Check and enable AVX target
4387 description.
4388 (i386_linux_init_abi): Set xsave_xcr0_offset.
4389 (_initialize_i386_linux_tdep): Call
4390 initialize_tdesc_i386_avx_linux.
4391
4392 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
4393 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
4394 (i386_linux_core_read_xcr0): New.
4395 (tdesc_i386_avx_linux): Likewise.
4396 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
4397
4398 * i386-tdep.c: Include "i386-xstate.h" and
4399 "features/i386/i386-avx.c".
4400 (i386_ymm_names): New.
4401 (i386_ymmh_names): Likewise.
4402 (i386_ymmh_regnum_p): Likewise.
4403 (i386_ymm_regnum_p): Likewise.
4404 (i386_xmm_regnum_p): Likewise.
4405 (i386_register_name): Likewise.
4406 (i386_ymm_type): Likewise.
4407 (i386_supply_xstateregset): Likewise.
4408 (i386_collect_xstateregset): Likewise.
4409 (i386_sse_regnum_p): Removed.
4410 (i386_pseudo_register_name): Support pseudo YMM registers.
4411 (i386_pseudo_register_type): Likewise.
4412 (i386_pseudo_register_read): Likewise.
4413 (i386_pseudo_register_write): Likewise.
4414 (i386_dbx_reg_to_regnum): Return %ymmN register number for
4415 %xmmN if AVX is available.
4416 (i386_regset_from_core_section): Support .reg-xstate section.
4417 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
4418 (i386_process_record): Replace i386_sse_regnum_p with
4419 i386_xmm_regnum_p.
4420 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
4421 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 4422 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
4423 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
4424 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
4425 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
4426 Set ymm0_regnum.
4427 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
4428
4429 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
4430 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
4431 i386_ymm_type.
4432 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
4433 (I386_AVX_NUM_REGS): New.
4434 (i386_xmm_regnum_p): Likewise.
4435 (i386_ymm_regnum_p): Likewise.
4436 (i386_ymmh_regnum_p): Likewise.
4437
4438 * common/i386-xstate.h: New.
4439
98adf0f3
L
44402010-04-07 H.J. Lu <hongjiu.lu@intel.com>
4441
4442 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
4443
4444 * features/Makefile (WHICH): Add i386/i386-avx,
4445 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
4446 (i386/i386-avx-expedite): New.
4447 (i386/i386-avx-linux-expedite): Likewise.
4448 (i386/x86-64-avx-expedite):Likewise.
4449 (i386/x86-64-avx-linux-expedite): Likewise.
4450 ($(outdir)/i386/i386-avx.dat): New dependency.
4451 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
4452 ($(outdir)/i386/x86-avx-64.dat): Likewise.
4453 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
4454
4455 * features/i386/32bit-avx.xml: New.
4456 * features/i386/64bit-avx.xml: Likewise.
4457 * features/i386/i386-avx-linux.c: Likewise.
4458 * features/i386/i386-avx-linux.xml: Likewise.
4459 * features/i386/i386-avx.c: Likewise.
4460 * features/i386/i386-avx.xml: Likewise.
4461 * features/i386/x86-64-avx-linux.c: Likewise.
4462 * features/i386/x86-64-avx-linux.xml: Likewise.
4463 * features/i386/x86-64-avx.c: Likewise.
4464 * features/i386/x86-64-avx.xml: Likewise.
4465 * regformats/i386/i386-avx-linux.dat: Likewise.
4466 * regformats/i386/i386-avx.dat: Likewise.
4467 * regformats/i386/x86-64-avx-linux.dat: Likewise.
4468 * regformats/i386/x86-64-avx.dat: Likewise.
4469
05159abe
DE
44702010-04-07 Doug Evans <dje@google.com>
4471
4472 * top.c (source_file_name): Make const char *.
4473 * top.h (source_file_name): Update.
4474 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
4475 const char *.
4476 (script_from_file): Change `file' arg to const char *.
4477 * cli/cli-script.h (script_from_file): Update.
4478
96e39866
DE
44792010-04-06 Doug Evans <dje@google.com>
4480
4481 * cli/cli-cmds.c (source_command): Run cleanups.
4482
3149d8c1
SS
44832010-04-06 Stan Shebs <stan@codesourcery.com>
4484
4485 * defs.h (char_ptr): Move typedef here from...
4486 * ada-lang.c (char_ptr): Remove.
4487 * charset.c (char_ptr): Remove.
4488 * tracepoint.h (struct uploaded_string): Remove.
4489 (struct uploaded_tp): Use vectors for string arrays.
4490 * tracepoint.c (trace_save): Use vectors of actions.
4491 (parse_tracepoint_definition): Ditto.
4492 (get_uploaded_tp): Clear vectors.
4493 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
4494 (next_cmd): Change to an int.
4495 (read_next_cmd): Use vector of command strings.
4496
4cc23ede
DE
44972010-04-06 Doug Evans <dje@google.com>
4498
4499 * top.h (source_script, cd_command): Delete.
4500 * main.c: #include "cli/cli-cmds.h"
4501
bd333fb7
KB
45022010-04-06 Kevin Buettner <kevinb@redhat.com>
4503
4504 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
4505 type in bytes, not bits.
4506
ec8a089a
PM
45072010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
4508
4509 * stabsread.c (define_symbol): Add support for char
4510 and string constants.
4511
2244ba2e
PM
45122010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
4513
4514 Remove remaining "%ll" uses.
4515 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
4516 hex_string call.
4517 * rs6000-nat.c (rs6000_ptrace64): Idem.
4518 * solib-pa64.c (pa64_current_sos): Idem.
4519 * solib-spu.c (spu_current_sos): Idem.
4520 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
4521 plongest call.
4522 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
4523 phex (VAR, 8) call.
4524 * sh64-tdep.c (sh64_show_media_regs): Idem.
4525
fce3c1f0
SS
45262010-04-05 Stan Shebs <stan@codesourcery.com>
4527
4528 * tracepoint.c: Include gdbcore.h.
4529 (tfile_xfer_partial): Return partial results, also try reading
4530 from executable.
4531 (tfile_has_all_memory): New function.
4532 (init_tfile_ops): Use it.
4533
626ea16d
SDJ
45342010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
4535
4536 PR gdb/10736:
4537 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
4538 the changes in data-directory.
4539 (init_sysinfo): Reload the syscall XML file if the data-directory
4540 has changed.
4541
1f7ccab2
JK
45422010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4543
4544 Code cleanup.
4545 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
4546
d77f58be
SS
45472010-04-04 Stan Shebs <stan@codesourcery.com>
4548 Nathan Sidwell <nathan@codesourcery.com>
4549
4550 * breakpoint.c (breakpoint_1): Add filter argument, return number of
4551 breakpoints printed.
4552 (is_hardware_watchpoint): Make argument const.
4553 (is_watchpoint): Ditto.
4554 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
4555 use it everywhere.
4556 (breakpoints_info): Pass NULL to breakpoint_1.
4557 (maintenance_info_breakpoints): Ditto.
4558 (watchpoints_info): New function.
4559 (tracepoints_info): Use breakpoint_1 filter.
4560 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
4561 (_initialize_breakpoint): Make "info watchpoints" its own command.
4562 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
4563 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
4564
af54718e
SS
45652010-04-04 Stan Shebs <stan@codesourcery.com>
4566
4567 * tracepoint.c (tfile_fetch_registers): Add fallback case.
4568
74d1f91e
JK
45692010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4570
4571 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
4572 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
4573
91d91ceb
JK
45742010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4575
4576 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
4577 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
4578
60531b24
JK
45792010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4580
4581 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
4582 code form.
4583
a3c4230a
HZ
45842010-04-02 Hui Zhu <teawater@gmail.com>
4585
4586 * i386-tdep.c (OT_DQUAD): New enum.
4587 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
4588 SSE3, SSSE3 and SSE4.
4589
b15758fe
HZ
45902010-04-02 Hui Zhu <teawater@gmail.com>
4591
4592 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
4593 "*addr = 0".
4594
afd02f27
PA
45952010-04-02 Pedro Alves <pedro@codesourcery.com>
4596
4597 * tracepoint.c (trace_dump_actions): New, factored out from
4598 trace_dump_command, and adjusted to recurse into while-stepping's
4599 action list.
4600 (trace_dump_command): Use it.
4601
5cea2a26
PA
46022010-04-02 Pedro Alves <pedro@codesourcery.com>
4603
4604 * breakpoint.h (struct counted_command_line): Moved definition to
4605 breakpoint.c, and forward declare.
4606 (breakpoint_commands): Declare.
4607 * breakpoint.c (struct counted_command_line): Moved here.
4608 (breakpoint_commands): New.
4609 * tracepoint.c (encode_actions): Use breakpoint_commands.
4610 * remote.c (remote_download_tracepoint): Ditto.
4611
7c47795c
L
46122010-04-01 H.J. Lu <hongjiu.lu@intel.com>
4613
4614 * remote.c (remote_parse_stop_reply): Use hex_string instead
4615 of phex_nz for error.
4616
fff87407
SS
46172010-04-01 Stan Shebs <stan@codesourcery.com>
4618 Nathan Sidwell <nathan@codesourcery.com>
4619
4620 * tracepoint.h (enum actionline_type): Remove.
4621 (validate_actionline): Change return to void.
4622 * tracepoint.c (report_agent_reqs_errors): New function.
4623 (validate_actionline): Call it, change return to void, report errors
4624 more consistently.
4625 (collect_symbol): Call report_agent_reqs_errors.
4626 (encode_actions_1): Ditto.
4627 (encode_actions): Don't expect a result from validate_actionline.
4628
615bcdef
SS
46292010-04-01 Stan Shebs <stan@codesourcery.com>
4630
4631 * tracepoint.c (trace_start_command): Confirm if trace is running.
4632 (trace_stop_command): Error if trace not running.
4633
fe01d668
L
46342010-04-01 H.J. Lu <hongjiu.lu@intel.com>
4635
4636 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
4637 (AMD64_NUM_LOWER_BYTE_REGS): New.
4638 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
4639 (amd64_pseudo_register_write): Likewise.
4640 (amd64_init_abi): Set num_byte_regs to 20.
4641
86b17b60
PA
46422010-04-01 Pedro Alves <pedro@codesourcery.com>
4643
4644 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
4645 (prev_breakpoint_count): New.
4646 (set_breakpoint_count): Adjust.
4647 (rbreak_start_breakpoint_count): New.
4648 (start_rbreak_breakpoints): Adjust.
4649 (end_rbreak_breakpoints): Adjust.
4650 (struct commands_info) <arg>: New field.
4651 (do_map_commands_command): Tweak output to include breakpoint spec
4652 range.
4653 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
4654 ARG was empty on entry. Set INFO's arg.
4655 (create_breakpoint): Adjust.
4656
4657 * NEWS: Clarify `commands' changes.
4658
2c58c0a9
PA
46592010-04-01 Pedro Alves <pedro@codesourcery.com>
4660
4661 * tracepoint.c: Include stack.h.
4662 (struct add_local_symbols_data): New.
4663 (do_collect_symbol): New.
4664 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
4665 iterate_over_block_local_vars.
4666 * stack.c (print_block_frame_locals): Rewrite as ...
4667 (iterate_over_block_locals): ... this. Take a callback function
4668 pointer and generic data pointer, and call that instead of
4669 print_variable_and_value.
4670 (struct print_variable_and_value_data): New.
4671 (do_print_variable_and_value): New.
4672 (iterate_over_block_local_vars): New, abstracted out from
4673 print_frame_local_vars.
4674 (print_frame_local_vars): Rewrite using
4675 iterate_over_block_local_vars.
4676 (iterate_over_block_arg_vars): New, abstracted out from
4677 print_frame_arg_vars.
4678 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
4679 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
4680 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
4681
d476da0e
RE
46822010-03-31 Richard Earnshaw <rearnsha@arm.com>
4683
4684 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 4685 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
4686 PC register.
4687
8072405b
JK
46882010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4689
4690 Fix crash on reading wrong function declaration DWARF.
4691 * dwarf2read.c (read_subroutine_type): New variable void_type.
4692 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
4693 more close to their use.
4694
8bf6485c
SS
46952010-03-31 Stan Shebs <stan@codesourcery.com>
4696
4697 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 4698 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
4699 * tracepoint.c (save_trace_state_variables): New function.
4700 * tracepoint.h (save_trace_state_variables): Declare it.
4701
2ae2a0b7
PM
47022010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
4703
1a161f72 4704 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 4705
86ffb506
KS
47062010-03-30 Keith Seitz <keiths@redhat.com>
4707
4708 * c-typeprint.c (c_type_print_args): Don't print "void"
4709 for java, regardless of whether it is TYPE_PROTOTYPED.
4710 Use the passed-in language instead of current_language.
4711 (c_type_print_varspec_suffix): Use current_language instead
4712 of assuming language_c.
4713 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
4714 any return type specifier from the physname.
4715
956c2c8b
PA
47162010-03-30 Pedro Alves <pedro@codesourcery.com>
4717
4718 * tui/tui-interp.c (tui_is_toplevel): New.
4719 (tui_init): Set it.
4720 (tui_allowed_p): New.
4721 * tui/tui.c (tui_enable): Check if the TUI is allowed before
4722 enabling it.
4723 * tui/tui.h (tui_allowed_p): Declare.
4724
98e5a990
TT
47252010-03-30 Ozkan Sezer <sezeroz@gmail.com>
4726
4727 * serial.h: Include winsock2.h before windows.h.
4728
c8d5aac9
L
47292010-03-30 H.J. Lu <hongjiu.lu@intel.com>
4730
4731 * NEWS: Mention xmlRegisters= in qSupported packet.
4732
4733 * i386-tdep.c: Include "remote.h".
4734 (_initialize_i386_tdep): Call register_remote_support_xml.
4735
4736 * remote.c (remote_support_xml): New.
4737 (register_remote_support_xml): Likewise.
4738 (remote_query_supported_append): Likewise.
4739 (remote_query_supported): Support remote_support_xml.
4740
4741 * remote.h (register_remote_support_xml): New.
4742
76a2b958
SS
47432010-03-29 Stan Shebs <stan@codesourcery.com>
4744
42e08e69
SS
4745 * tracepoint.c (trace_find_line_command): Remove dead code.
4746
409873ef
SS
4747 * tracepoint.h (struct uploaded_string): New struct.
4748 (struct uploaded_tp): New fields for source strings.
4749 * breakpoint.c (this_utp, next_cmd): New globals.
4750 (read_uploaded_action): New function.
4751 (create_tracepoint_from_upload): Fill in more parts
4752 of a tracepoint.
4753 * tracepoint.c (encode_source_string): New function.
4754 (trace_save): Write out source strings, fix error checks.
4755 (parse_tracepoint_definition): Add source string parsing.
4756 * remote.c (PACKET_TracepointSource): New packet type.
4757 (remote_download_command_source): New function.
4758 (remote_download_tracepoint): Download source pieces also.
4759 (_initialize_remote): Add packet config command.
4760
a0405854
SS
4761 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
4762 expression handler.
4763
76a2b958
SS
4764 * tracepoint.c (start_tracing): Check tracepoints before sending
4765 commands to target, don't start if all tracepoints disabled.
4766
d350db38
PA
47672010-03-28 Pedro Alves <pedro@codesourcery.com>
4768
12f2d601 4769 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 4770
8b9b7ef8
SS
47712010-03-26 Stan Shebs <stan@codesourcery.com>
4772
4773 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
4774
9766ced4
SS
47752010-03-26 Tom Tromey <tromey@redhat.com>
4776
4777 * breakpoint.c (commands_command_1): Duplicate 'arg'.
4778
059acae7
UW
47792010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4780
4781 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
4782 (skip_prologue_sal): Remove local definition.
4783 (resolve_sal_pc): Remove now unnecessary code.
4784 * linespec.c (minsym_found): Call skip_prologue_sal.
4785 * symtab.c (find_function_start_pc): Remove.
4786 (find_function_start_sal): Extract prologue skipping into ...
4787 (skip_prologue_sal): ... this new function. Handle code both
4788 with and without debug info. Respect SAL's explicit_pc and
4789 explicit_line flags. Inline old find_function_start_pc.
4790 * symtab.h (find_function_start_pc): Remove.
4791 (skip_prologue_sal): Add prototype.
4792
4a811a97
UW
47932010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4794
4795 * dwarf2read.c (read_func_scope): Also scan specification DIEs
4796 for DW_TAG_imported_module children.
4797
907af001
UW
47982010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4799
4800 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
4801 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
4802 * completer.c (add_struct_fields): Fix inverted logic.
4803
dde2d684
UW
48042010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4805
4806 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
4807
a609a0c8
PA
48082010-03-26 Pedro Alves <pedro@codesourcery.com>
4809
4810 * tracepoint.c (current_trace_status): Don't make sure error_desc
4811 is non-NULL here.
4812 (parse_trace_status): Release a previous error_desc string, and
4813 set it to NULL by default. If stop reason is tracepoint_error,
4814 make sure error_desc is not left NULL.
4815
610197fd
PA
48162010-03-26 Pedro Alves <pedro@codesourcery.com>
4817
4818 * tracepoint.c (trace_save): Remove X from tracepoint error
4819 description.
4820
99b5e152
PA
48212010-03-26 Pedro Alves <pedro@codesourcery.com>
4822
4823 * tracepoint.c (parse_trace_status): Don't allow plain strings in
4824 the terror description. Don't expect an X prefix.
4825
6c28cbf2
SS
48262010-03-25 Stan Shebs <stan@codesourcery.com>
4827
4828 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
4829 (struct trace_status): New field error_desc.
4830 * tracepoint.c (stop_reason_names): Add terror.
4831 (current_trace_status): Ensure non-NULL error description.
4832 (trace_status_command): Add error report.
4833 (trace_status_mi): Ditto.
4834 (trace_save): Add special case for error description.
4835 (parse_trace_status): Add case for errors.
4836
418835cc
KS
48372010-03-25 Keith Seitz <keiths@redhat.com>
4838
4839 * dwarf2read.c (read_subroutine_type): If the compilation unit
4840 language is Java, mark any formal parameter named "this" as
4841 artificial (GCC/43521).
4842 (dwarf2_name): Add special handling for Java constructors.
4843
aa7d318d
TT
48442010-03-25 Tom Tromey <tromey@redhat.com>
4845
4846 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
4847 * infrun.c (handle_inferior_event): Change initialization of
4848 stop_stack_dummy.
4849 (handle_inferior_event): Change assignment to stop_stack_dummy.
4850 (normal_stop): Update use of stop_stack_dummy.
4851 (struct inferior_status) <stop_stack_dummy>: Change type.
4852 * inferior.h (stop_stack_dummy): Update.
4853 * infcmd.c (stop_stack_dummy): Change type.
4854 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
4855 function.
4856 (call_function_by_hand): Call set_std_terminate_breakpoint.
4857 Rewrite std::terminate handling.
4858 * breakpoint.h (enum bptype) <bp_std_terminate,
4859 bp_std_terminate_master>: New.
4860 (enum stop_stack_kind): New.
4861 (struct bpstat_what) <call_dummy>: Change type.
4862 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
4863 Declare.
4864 * breakpoint.c (create_std_terminate_master_breakpoint): New
4865 function.
4866 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
4867 Call create_std_terminate_master_breakpoint.
4868 (print_it_typical): Handle new breakpoint kinds.
4869 (bpstat_stop_status): Handle bp_std_terminate_master.
4870 (bpstat_what): Correctly set call_dummy field. Handle
4871 bp_std_terminate_master and bp_std_terminate.
4872 (print_one_breakpoint_location): Update.
4873 (allocate_bp_location): Update.
4874 (set_std_terminate_breakpoint): New function.
4875 (delete_std_terminate_breakpoint): Likewise.
4876 (create_thread_event_breakpoint): Update.
4877 (delete_command): Update.
4878 (breakpoint_re_set_one): Update.
4879 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
4880
82ccf5a5
JK
48812010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4882
4883 * symfile.c (build_section_addr_info_from_bfd): New.
4884 (build_section_addr_info_from_objfile): Base it on
4885 build_section_addr_info_from_bfd.
4886 (addrs_section_compar, addrs_section_sort): New.
4887 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
4888 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
4889 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
4890
737c4c52
MS
48912010-03-24 Michael Snyder <msnyder@localhost.localdomain>
4892
8d95cc3b 4893 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
4894 Remove unused local variable.
4895
95a42b64
TT
48962010-03-24 Tom Tromey <tromey@redhat.com>
4897
4898 PR breakpoints/9352:
4899 * NEWS: Mention changes to `commands' and `rbreak'.
4900 * symtab.c (do_end_rbreak_breakpoints): New function.
4901 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
4902 end_rbreak_breakpoints.
4903 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
4904 (set_breakpoint_count): Likewise. Clear last_was_multi.
4905 (multi_start, multi_end, last_was_multi): New globals.
4906 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
4907 functions.
4908 (struct commands_info): New
4909 (do_map_commands_command): New function.
4910 (commands_command_1): New function.
4911 (commands_command): Use it.
4912 (commands_from_control_command): Likewise.
4913 (do_delete_breakpoint): New function.
4914 (delete_command): Use it.
4915 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
4916 (do_map_disable_breakpoint): New function.
4917 (disable_command): Use it.
4918 (do_map_enable_breakpoint): New function.
4919 (enable_command): Use it.
4920 (enable_once_breakpoint): Add argument.
4921 (enable_once_command): Update.
4922 (enable_delete_breakpoint): Add argument.
4923 (enable_delete_command): Update.
4924 (break_command_really): Set last_was_multi when needed.
4925 (check_tracepoint_command): Fix formatting.
4926 (validate_commands_for_breakpoint): New function.
4927 (breakpoint_set_commands): Use it.
4928 (tracepoint_save_command): Update.
4929 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
4930 Declare.
4931
9add0f1b
TT
49322010-03-24 Tom Tromey <tromey@redhat.com>
4933
4934 * breakpoint.h (struct counted_command_line): New struct.
4935 (struct breakpoint) <commands>: Change type.
4936 (struct bpstats) <commands>: Change type.
4937 <commands_left>: New field.
4938 * breakpoint.c (alloc_counted_command_line): New function.
4939 (incref_counted_command_line): Likewise.
4940 (decref_counted_command_line): Likewise.
4941 (do_cleanup_counted_command_line): Likewise.
4942 (make_cleanup_decref_counted_command_line): Likewise.
4943 (breakpoint_set_commands): Use decref_counted_command_line and
4944 alloc_counted_command_line.
4945 (commands_command): Don't error if breakpoint commands are
4946 executing.
4947 (commands_from_control_command): Likewise.
4948 (bpstat_free): Update.
4949 (bpstat_copy): Likewise.
4950 (bpstat_clear_actions): Likewise.
4951 (bpstat_do_actions_1): Likewise.
4952 (bpstat_stop_status): Likewise.
4953 (print_one_breakpoint_location): Likewise.
4954 (delete_breakpoint): Likewise.
4955 (bpstat_alloc): Initialize new field.
4956 (tracepoint_save_command): Update.
4957 * tracepoint.c (encode_actions): Update.
4958 (trace_dump_command): Update.
4959
a6c727b2
DJ
49602010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4961
4962 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
4963 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
4964 (read_structure_type): For RealView, set TYPE_STUB on structures with
4965 no byte size and no children.
4966 (read_subroutine_type): Mark functions as prototyped by default.
4967 * symtab.c (producer_is_realview): New function.
4968 * symtab.h (expand_line_sal): Fix declaration formatting.
4969 (producer_is_realview): Declare.
4970
0d39a070
DJ
49712010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4972
4973 * arm-tdep.c (skip_prologue_function): New function.
4974 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
4975 (thumb_analyze_prologue): Document return value. Recognize more
4976 Thumb instructions, skippable calls, and some Thumb-2 instructions.
4977 Add debug output.
4978 (arm_skip_prologue): Remove call dummy check. Check the prologue
4979 for non-GNU compilers.
4980 (arm_instruction_changes_pc): New function.
4981 (arm_analyze_prologue): New function, broken out from
4982 arm_scan_prologue. Recognize more ARM instructions and skippable
4983 calls. Update comments. Handle NULL cache. Return the address
4984 of the first unrecognized instruction. Do not skip past other
4985 instructions which change control flow. Add debug output.
4986 (arm_scan_prologue): Use arm_analyze_prologue.
4987 (ARM_PC_32): Delete.
4988 (shifted_reg_val): Simplify ARM_PC_32 check.
4989
4baf5cf4
VP
49902010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4991
4992 * tracepoint.c (tvariables_info_1): Actually compute
4993 the number of rows in the result.
4994
4a5e7a5b
PA
49952010-03-24 Pedro Alves <pedro@codesourcery.com>
4996
4997 * remote.c (crc32): Constify `buf' parameter.
4998 (remote_verify_memory): New, abstracted out from...
4999 (compare_sections_command): ... this. Remove hardcoded target
5000 checks.
5001 (init_remote_ops): Install remote_verify_memory.
5002 * target.c (target_verify_memory): New.
5003 * target.h (struct target_ops) <to_verify_memory>: New field.
5004 (target_verify_memory): Declare.
5005
011aacb0
VP
50062010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5007
5008 Implement -trace-save.
5009
5010 * mi-cmds.h (mi_cmds_trace_save): Declare.
5011 * mi-cmds.c (mi_cmds): Register -trace-save.
5012 * mi/mi-main.c (mi_cmd_trace_save): New.
5013 * remote.c (remote_save_trace_data): Take const parameter.
5014 * target.h (struct target_ops::to_save_trace_data): Take
5015 const parameter.
5016 * target.c (update_current_target): Adjust to the above.
5017 * tracepoint.c (trave_save): New, extracted from
5018 (trace_save_command): ...this.
5019 (tfile_trace_find): Remove message that is unnecessary now
5020 that 'tfind' reports found frame.
5021 * tracepoint.h (trace_save): Declare.
5022
f197e0f1
VP
50232010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5024
5025 Implement -trace-find.
5026
5027 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
5028 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
5029 * mi/mi-main.c (mi_cmd_trace_find): New.
5030 * target.h (struct target_ops): Document to_trace_find.
5031 * tracepoint.h (tfind_1): Declare.
5032 * tracepoint.c (finish_tfind_command): Rename to...
5033 (tfind_1): ...this.
5034 * remote.c (remote_trace_find): Return -1 if target say
5035 there's no frame. Improve error diagnostics.
5036
40e1c229
VP
50372010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5038
5039 -trace-define-variable and -trace-list-variables.
5040
5041 * tracepoint.c (create_trace_state_variable): Make
5042 private copy of name, as opposed to assuming the
5043 pointer lives forever.
5044 (tvariables_info_1): New.
5045 (tvariables_info): Use the above.
5046 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
5047 Declare.
5048 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
5049 and -trace-list-variables.
5050 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
5051 (mi_cmd_trace_list_variables): New.
5052 * mi/mi-main.c (mi_cmd_trace_define_variable)
5053 (mi_cmd_trace_list_variables): New.
5054
9b4c786c
VP
50552010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5056
5057 Implement -break-passcount.
5058
5059 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
5060 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
5061 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
5062
f224b49d
VP
50632010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5064
5065 -trace-start/-trace-end/-trace-status.
5066
5067 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
5068 and -trace-stop.
5069 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
5070 (mi_cmd_trace_stop): Declare.
5071 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
5072 (mi_cmd_trace_stop): New.
5073 * tracepoint.c (start_tracing): New, extracted from...
5074 (trace_start_command): ...this.
5075 (trace_status_mi): New.
5076 * tracepoint.h (struct trace_status): Document
5077 stopping_tracepoint.
5078 (start_tracing, stop_tracing, trace_status_mi): Declare.
5079
6534d786
VP
50802010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5081
5082 Implement creating tracepoints with -break-insert.
5083
5084 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
5085 to mean that tracepoint should be created.
5086
51661e93
VP
50872010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5088
5089 * breakpoint.c (check_no_tracepoint_commands): Use
5090 current spelling of 'teval'.
5091
a7bdde9e
VP
50922010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5093
5094 Unify actions and commands
5095
5096 * defs.h (read_command_lines, read_command_lines_1): New
5097 parameters validator and closure.
5098 * tracepoint.h (struct action_line): Remove.
5099 * breakpoint.h (struct breakpoint): Remove the 'actions'
5100 field.
5101 * defs.h (enum command_control_type): New value
5102 while_stepping_control.
5103 (struct command_line): Add comments.
5104 * breakpoint.c (breakoint_is_tracepoint): New.
5105 (breakpoint_set_commands): For tracepoints,
5106 verify the commands are permissible.
5107 (check_tracepoint_commands): New.
5108 (commands_command): Require that each new line is validated using
5109 check_tracepoint_command, if we set commands for a tracepoint.
5110 (create_tracepoint_from_upload): Likewise.
5111 (print_one_breakpoint_location): Remove the code to print
5112 actions specifically.
5113 (tracepoint_save_command): Relay to print_command_lines.
5114 * cli/cli-script.c (process_next_line): New parameters validator
5115 and closure. Handle 'while-stepping'. Call validator if not null.
5116 (read_command_lines, read_command_lines1): Likewise.
5117 (recurse_read_control_structure): New parameters validator and
5118 closure. Handle while_stepping_control.
5119 (print_command_lines): Handle while-stepping.
5120 (get_command_line, define_command, document_command): Adjust.
5121 * remote.c (remote_download_tracepoint): Adjust.
5122 * tracepoint.c (make_cleanup_free_actions, read_actions)
5123 (free_actions, do_free_actions_cleanup): Remove.
5124 (trace_actions_command): Use read_command_lines.
5125 (validate_actionline): Use error in one place.
5126 (encode_actions_1): New, extracted from...
5127 (encode_actions): ...this. Also use cleanups for exception
5128 safety.
5129 (trace_dump_command): Adjust.
5130 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
5131 it's tracepoint.
5132
64e3cf3d
MF
51332010-03-23 Mike Frysinger <vapier@gentoo.org>
5134
5135 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
5136
52e9fde8
SS
51372010-03-22 Stan Shebs <stan@codesourcery.com>
5138
5139 * value.c (value_static_field): Be lazy about the field's value.
5140
508ccb1f
TT
51412010-03-22 Reid Kleckner <reid@kleckner.net>
5142
5143 PR gdb/11094
5144 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
5145 bp_jit_event.
5146 (disable_breakpoints_in_shlibs): Likewise.
5147
acebe513
UW
51482010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
5149
5150 * dwarf2read.c (partial_die_parent_scope): Work around buggy
5151 GCC 4.1 debug info generation (GCC PR c++/28460).
5152 (determine_prefix): Likewise.
5153
957b8b5a
DJ
51542010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
5155
5156 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
5157 get_current_arch.
5158 * tui/tui-layout.c (extract_display_start_addr): Likewise.
5159
3b11a015
SS
51602010-03-19 Stan Shebs <stan@codesourcery.com>
5161
5162 * ax-gdb.c (gen_fetch): Handle bool.
5163 (gen_usual_unary): Ditto.
5164 (gen_cast): Ditto.
5165 (gen_equal): New function.
5166 (gen_less): New function.
5167 (gen_expr_binop_rest): Call them, also return integer type from
5168 logical operations.
5169 (gen_expr): Ditto.
5170
20781792
TT
51712010-03-19 Tom Tromey <tromey@redhat.com>
5172
5173 * jv-lang.c (jv_dynamics_objfile_data_key)
5174 (jv_type_objfile_data_key): New globals.
5175 (class_symtab): Move earlier.
5176 (jv_per_objfile_free): New function.
5177 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
5178 parameter.
5179 Remove ancient #if 1.
5180 (add_class_symbol): Remove redundant declaration.
5181 (java_lookup_class): Use alloc_type, not alloc_type_arch.
5182 (java_link_class_type): Mark as static. Update.
5183 (jv_clear_object_type): New function.
5184 (set_java_object_type): Likewise.
5185 (get_java_object_type): Use set_java_object_type.
5186 (is_object_type): Likewise.
5187 (_initialize_java_language): Register new objfile keys.
5188 (get_java_class_symtab): Add 'gdbarch' parameter.
5189 (add_class_symtab_symbol): Update.
5190 (type_from_class): Update.
5191
cf3e25ca
SS
51922010-03-19 Stan Shebs <stan@codesourcery.com>
5193
8d95cc3b 5194 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 5195
f1ae44c9 51962010-03-18 Joel Brobecker <brobecker@adacore.com>
5197
5198 GDB 7.1 released.
5199
4daf5ac0
SS
52002010-03-18 Stan Shebs <stan@codesourcery.com>
5201 Pedro Alves <pedro@codesourcery.com>
5202
5203 * target.h (struct target_ops): New method
5204 to_set_circular_trace_buffer.
5205 (target_set_circular_trace_buffer): New macro.
5206 * target.c (update_current_target): Add
5207 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
5208 default behavior.
5209 * remote.c (remote_set_circular_trace_buffer): New function.
5210 (init_remote_ops): Add it to vector.
5211 * tracepoint.h (struct trace_status): New field traceframes_created,
5212 change buffer_size and buffer_free to int.
5213 * tracepoint.c (circular_trace_buffer): New global.
5214 (start_tracing): Send values of disconnected tracing and circular
5215 trace buffer settings.
5216 (set_circular_trace_buffer): New function.
5217 (parse_trace_state): Handle total space and frames created.
5218 (trace_status_command): Display total space and total frames
5219 created.
5220 (trace_save): Write out new status values.
5221 (parse_trace_status): Set traceframe_count, traceframes_created,
5222 buffer_free and buffer_size to -1 by default.
5223 (_initialize_tracepoint): New setshow for circular-trace-buffer.
5224 * NEWS: Mention the circular trace buffer option.
5225
40c549d6
TT
52262010-03-18 Tom Tromey <tromey@redhat.com>
5227
5228 * infcmd.c (finish_command_continuation): Wrap print_return_value
5229 in TRY_CATCH.
5230
e8d05480
JB
52312010-03-18 Joel Brobecker <brobecker@adacore.com>
5232
5233 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
5234 DIE has a name before creating the associated partial symbol.
5235 (read_func_scope): Emit a complaint if the subprogram does not
5236 have a name or when we can't extract the subprogram PC bounds.
5237
441b986a
UW
52382010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
5239
5240 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
5241 instead of selected frame architecture.
5242
4247603b
PA
52432010-03-18 Pedro Alves <pedro@codesourcery.com>
5244
5245 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
5246 a valid selected thread, and that it is not running.
5247 (advance_command): Ditto.
5248 (finish_command): Ditto.
5249
400c6af0
SS
52502010-03-17 Stan Shebs <stan@codesourcery.com>
5251
3a96536b
SS
5252 * ax-gdb.c (require_rvalue): Disallow non-scalars.
5253
573cda03
SS
5254 * infcall.c: Include tracepoint.h.
5255 (call_function_by_hand): Disallow calls in tfind mode.
5256 * infcmd.c: Include tracepoint.h.
5257 (ensure_not_tfind_mode): New function.
5258 (continue_1): Call it.
5259 (step_1) Ditto.
5260 (jump_command): Ditto.
5261 (signal_command): Ditto.
5262 (advance_command): Ditto.
5263 (until_command): Ditto.
5264 (finish_command): Ditto.
5265 * tracepoint.h (disconnect_or_stop_tracing): Declare.
5266
400c6af0
SS
5267 * ax-gdb.h (struct axs_value): New field optimized_out.
5268 (gen_trace_for_var): Add gdbarch argument.
5269 * ax-gdb.c (gen_trace_static_fields): New function.
5270 (gen_traced_pop): Call it, add gdbarch argument.
5271 (gen_trace_for_expr): Update call to it.
5272 (gen_trace_for_var): Ditto, and report optimized-out variables.
5273 (gen_struct_ref_recursive): Check for optimized-out value.
5274 (gen_struct_elt_for_reference): Ditto.
5275 (gen_static_field): Pass gdbarch instead of expression, assume
5276 optimization if field not found.
5277 (gen_var_ref): Set the optimized_out flag.
5278 (gen_expr): Error on optimized-out variable.
5279 * tracepoint.c (collect_symbol): Handle struct-valued vars as
5280 expressions, skip optimized-out variables with computed locations.
5281 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
5282 erroring out if location expression missing.
5283 (loclist_tracepoint_var_ref): Don't error out here.
5284
a3b2a86b
TT
52852010-03-17 Tom Tromey <tromey@redhat.com>
5286
5287 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
5288 DWARF data is available.
5289
38963c97
DJ
52902010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
5291
5292 * symfile.c (generic_load): Reset breakpoints after loading.
5293
ddabfc73
TT
52942010-03-17 Tom Tromey <tromey@redhat.com>
5295
5296 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
5297
d8c09fb5
JK
52982010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5299
5300 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
5301 create_breakpoint call, adjust the parameters.
5302
bbb0eef6
JK
53032010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5304 Chandru <chandru@in.ibm.com>
5305
5306 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
5307 * valarith.c (value_subscripted_rvalue): Suppress error if
5308 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
5309
46956e39
HZ
53102010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
5311
5312 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
5313
b8d088ac
JB
53142010-03-16 Joel Brobecker <brobecker@adacore.com>
5315
5316 * ada-tasks.c (task_command_1): Check that the task ptid is valid
5317 before doing the associated thread switch.
5318
322be962
DJ
53192010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
5320
5321 * MAINTAINERS: Update my email address.
5322
8cdf0e15
VP
53232010-03-16 Vladimir Prus <vladimir@codesourcery.com>
5324
5325 Simplify MI breakpoint setting.
5326
5327 * breakpoint.c (break_command_really): Make nonstatic and
5328 rename to...
5329 (create_breakpoint): ...this. Rename prior function by this name
5330 to...
5331 (create_breakpoint_sal): ...this.
5332 (create_breakpoints): Rename to...
5333 (create_breakpoints_sal): ...this.
5334 (set_breakpoint): Remove.
5335 * breakpoint.h: Adjust to above changes.
5336 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
5337
b6e7192f
SS
53382010-03-15 Stan Shebs <stan@codesourcery.com>
5339
5340 * ax-gdb.c: Include cp-support.h.
5341 (find_field): Remove.
5342 (gen_primitive_field): New function.
5343 (gen_struct_ref_recursive): New function.
5344 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
5345 of find_field.
5346 (gen_static_field): New function.
5347 (gen_struct_elt_for_reference): New.
5348 (gen_namespace_elt): New.
5349 (gen_maybe_namespace_elt): New.
5350 (gen_aggregate_elt_ref): New.
5351 (gen_expr): Add OP_SCOPE, display opcode name in error message.
5352
1054b214
TT
53532010-03-15 Tom Tromey <tromey@redhat.com>
5354
5355 * dwarf2read.c (die_needs_namespace): Also return 0 for
5356 DW_TAG_subprogram.
5357
13387711
SW
53582010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
5359
5360 PR c++/7936:
5361 * cp-support.h: Added char *declaration element to using_direct
5362 data struct.
5363 (cp_add_using): Added char *declaration argument.
5364 (cp_add_using_directive): Ditto.
5365 (cp_lookup_symbol_imports): made extern.
5366 * cp-namespace.c: Updated with the above changes.
5367 * dwarf2read.c (read_import_statement): Ditto.
5368 (read_namespace): Ditto.
5369 (read_import_statement): Support import declarations.
5370 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
5371 declarations.
5372 Added support for 'declaration_only' search.
5373 (cp_lookup_symbol_namespace): Attempt to search for the name as
5374 is before consideration of imports.
5375 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
5376 search at every block level search.
5377 Now takes language argument.
5378 (lookup_symbol_aux): Updated.
5379
6e31430b
TT
53802010-03-15 Tom Tromey <tromey@redhat.com>
5381
5382 * c-exp.y (name_not_typename): Add 'operator' clause.
5383
4dea3bb7 53842010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
5385
5386 * configure.ac: Exit if ${gdb_target_obs}" is not set.
5387 * configure: Regenerate.
5388
4d9743af
JK
53892010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5390
5391 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
5392 and ".sdynbss". Update the comment.
5393
f75150fe
JZ
53942010-03-15 Jie Zhang <jie@codesourcery.com>
5395
5396 * MAINTAINERS: Update my email address.
5397
3c13bc11
DJ
53982010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
5399
5400 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
5401
43484f03
DJ
54022010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
5403
5404 * charset.c [USE_WIN32API]: Include <windows.h>.
5405 (_initialize_charset): Correct type of w32_host_default_charset.
5406
5f25d77d
PA
54072010-03-14 Pedro Alves <pedro@codesourcery.com>
5408
5409 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
5410
1c809c68
TT
54112010-03-12 Tom Tromey <tromey@redhat.com>
5412
5413 PR c++/9708:
5414 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
5415 in a lexical block does not need a namespace.
5416 (new_symbol) <DW_TAG_variable>: Put extern variables on
5417 list_in_scope in all cases.
5418
948103cf
SS
54192010-03-12 Stan Shebs <stan@codesourcery.com>
5420
5421 * ax-gdb.c (gen_expr): Add shift expressions.
5422 (gen_expr_binop_rest): Ditto.
5423
00ae8fef
SW
54242010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
5425
5426 * buildsym.c (finish_block): Reset using_directives pointer
5427 after block initialization.
5428
9cad29ac
L
54292010-03-12 H.J. Lu <hongjiu.lu@intel.com>
5430
5431 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
5432 * i386-tdep.c (i386_word_names): Likewise.
5433
2f4d8875
PA
54342010-03-12 Pedro Alves <pedro@codesourcery.com>
5435
5436 * target.c (memory_xfer_partial): Don't use the stack cache if
5437 inspecting trace frames.
5438 * tracepoint.c (finish_tfind_command): Invalidate the target
5439 dcache.
5440
ccf26247
JK
54412010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5442
5443 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
5444 for the PIC displacement, print also the displacement value.
5445 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
5446
477c84a7
KB
54472010-03-10 Kevin Buettner <kevinb@redhat.com>
5448
5449 * remote-mips.c (close_ports, mips_initialize_cleanups)
5450 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
5451 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
5452 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
5453 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
5454 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
5455 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
5456 comments describing each of these functions.
5457 (mips_enter_debug, mips_exit_debug, common_open)
5458 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
5459 blank line after the comment describing the function.
5460
01c30d6e
JK
54612010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5462
5463 * solib-svr4.c (svr4_exec_displacement): Return now success, new
5464 parameter displacementp. Update comment.
5465 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
5466 element exists. Return if svr4_exec_displacement was not successful.
5467 Update comment.
5468
09919ac2
JK
54692010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5470 Daniel Jacobowitz <dan@codesourcery.com>
5471
5472 * solib-svr4.c (read_program_header): Support type == -1 to read
5473 all program headers.
5474 (read_program_headers_from_bfd): New function.
5475 (svr4_static_exec_displacement): Remove and move the comment ...
5476 (svr4_exec_displacement): ... here. Remove variable found. New
5477 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
5478 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
5479 targets using read_program_headers_from_bfd. Remove the call of
5480 svr4_static_exec_displacement.
5481
d146bf1e
TT
54822010-03-10 Tom Tromey <tromey@redhat.com>
5483
5484 * dwarf2read.c (struct pubnames_header): Remove.
5485 (_PUBNAMES_HEADER): Remove.
5486 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
5487 (struct aranges_header): Remove.
5488 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
5489 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
5490 (PUBNAMES_SECTION): Remove.
5491 (ARANGES_SECTION): Remove.
5492 (dwarf2_locate_sections): Don't handle pubnames or aranges.
5493 (dwarf2_build_psymtabs): Remove dead code.
5494 (dwarf2_build_psymtabs_easy): Remove.
5495
be391dca
TT
54962010-03-10 Tom Tromey <tromey@redhat.com>
5497
5498 * elfread.c (elf_symfile_read): Don't call
5499 dwarf2_build_frame_info.
5500 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
5501 (struct dwarf2_per_objfile) <objfile>: New field.
5502 (dwarf2_has_info): Now idempotent. Set objfile field.
5503 (dwarf2_read_section): Check and set readin field. Call
5504 posix_madvise.
5505 (dwarf2_build_psymtabs): Don't read all sections.
5506 (read_type_comp_unit_head): Read types section.
5507 (create_debug_types_hash_table): Likewise.
5508 (init_cu_die_reader): Add asserts.
5509 (process_type_comp_unit): Add assert.
5510 (dwarf2_build_psymtabs_hard): Read info section.
5511 (load_partial_comp_unit): Add assert.
5512 (create_all_comp_units): Read info section.
5513 (load_full_comp_unit): Likewise.
5514 (dwarf2_ranges_read): Read ranges section.
5515 (dwarf2_record_block_ranges): Add assert.
5516 (dwarf2_read_abbrevs): Read abbrev section.
5517 (read_indirect_string): Read str section.
5518 (dwarf_decode_line_header): Read line section.
5519 (read_signatured_type_at_offset): Read types section.
5520 (dwarf_decode_macros): Read macinfo section.
5521 (dwarf2_symbol_mark_computed): Read loc section.
5522 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
5523 dwarf2_build_frame_info.
5524 (dwarf2_build_frame_info): Unconditionally set
5525 dwarf2_frame_objfile_data on the objfile.
5526 * configure.ac: Check for posix_madvise.
5527 * config.in, configure: Rebuild.
5528
ccefe4c4
TT
55292010-03-10 Tom Tromey <tromey@redhat.com>
5530
e38df1d0
TT
5531 * xcoffread.c (xcoff_start_psymtab): Update.
5532 (xcoff_end_psymtab): Update.
5533 * psymtab.c (allocate_psymtab): Remove dead code.
5534 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
5535 void*.
5536 * mdebugread.c (parse_partial_symbols): Update.
5537 (new_psymtab): Likewise.
5538 * dwarf2read.c (process_psymtab_comp_unit): Update.
5539 (psymtab_to_symtab_1): Update.
5540 * dbxread.c (start_psymtab): Update.
5541 (end_psymtab): Likewise.
5542
be391dca 55432010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 5544
ccefe4c4
TT
5545 * xcoffread.c: Include psymtab.h.
5546 (xcoff_sym_fns): Update.
5547 * symtab.h (struct partial_symbol): Remove.
5548 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
5549 (struct partial_symtab): Remove.
5550 (PSYMTAB_TO_SYMTAB): Remove.
5551 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
5552 (find_pc_sect_psymtab): Remove.
5553 (find_pc_sect_symtab_via_partial): Declare.
5554 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
5555 (find_main_psymtab): Remove.
5556 (find_main_filename): Declare.
5557 (fixup_psymbol_section): Remove.
5558 (fixup_section): Declare.
5559 * symtab.c: Include psymtab.h.
5560 (lookup_symtab): Use lookup_symtab method.
5561 (lookup_partial_symtab): Remove.
5562 (find_pc_sect_psymtab_closer): Remove.
5563 (find_pc_sect_psymtab): Remove.
5564 (find_pc_sect_symtab_via_partial): New function.
5565 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
5566 (fixup_section): No longer static.
5567 (fixup_psymbol_section): Remove.
5568 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
5569 (lookup_global_symbol_from_objfile): Likewise.
5570 (lookup_symbol_aux_psymtabs): Remove.
5571 (lookup_symbol_aux_quick): New function.
5572 (lookup_symbol_global): Use lookup_symbol_aux_quick.
5573 (lookup_partial_symbol): Remove.
5574 (basic_lookup_transparent_type_quick): New function.
5575 (basic_lookup_transparent_type): Use it.
5576 (find_main_psymtab): Remove.
5577 (find_main_filename): New function.
5578 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
5579 (find_line_symtab): Use expand_symtabs_with_filename method.
5580 (output_partial_symbol_filename): New function.
5581 (sources_info): Use map_partial_symbol_filenames.
5582 (struct search_symbols_data): New type.
5583 (search_symbols_file_matches): New function.
5584 (search_symbols_name_matches): Likewise.
5585 (search_symbols): Use expand_symtabs_matching method.
5586 (struct add_name_data): Rename from add_macro_name_data.
5587 (add_macro_name): Update.
5588 (add_partial_symbol_name): New function.
5589 (default_make_symbol_completion_list): Use
5590 map_partial_symbol_names.
5591 (struct add_partial_symbol_name): New type.
5592 (maybe_add_partial_symtab_filename): New function.
5593 (make_source_files_completion_list): Use
5594 map_partial_symbol_filenames.
5595 (expand_line_sal): Use expand_symtabs_with_filename method.
5596 * symmisc.c: Include psymtab.h.
5597 (print_objfile_statistics): Use print_stats method.
5598 (dump_objfile): Use dump method.
5599 (dump_psymtab, maintenance_print_psymbols)
5600 (maintenance_info_psymtabs, maintenance_check_symtabs)
5601 (extend_psymbol_list): Remove.
5602 * symfile.h (struct quick_symbol_functions): New struct.
5603 (struct sym_fns) <qf>: New field.
5604 (sort_pst_symbols): Remove.
5605 (increment_reading_symtab): Declare.
5606 * symfile.c: Include psymtab.h.
5607 (compare_psymbols, sort_pst_symbols): Remove.
5608 (psymtab_to_symtab): Remove.
5609 (increment_reading_symtab): New function.
5610 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
5611 method.
5612 (set_initial_language): Use find_main_filename.
5613 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
5614 (free_named_symtabs): Remove unused code.
5615 (start_psymtab_common, add_psymbol_to_bcache)
5616 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
5617 Remove.
5618 * stack.c: Include psymtab.h, symfile.h.
5619 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
5620 * source.h (psymtab_to_fullname): Don't declare.
5621 * source.c: Include psymtab.h.
5622 (select_source_symtab): Use find_last_source_symtab method.
5623 (forget_cached_source_info): Use forget_cached_source_info
5624 method.
5625 (find_and_open_source): No longer static.
5626 (psymtab_to_fullname): Remove.
5627 * somread.c: Include psymtab.h.
5628 (som_sym_fns): Update.
5629 * psympriv.h: New file.
5630 * psymtab.h: New file.
5631 * psymtab.c: New file.
5632 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
5633 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
5634 * objfiles.c: Include psymtab.h.
5635 (objfile_relocate1): Use relocate method.
5636 (objfile_has_partial_symbols): Use has_symbols method.
5637 * mipsread.c: Include psymtab.h.
5638 (ecoff_sym_fns): Update.
5639 * mi/mi-cmd-file.c: Include psymtab.h.
5640 (print_partial_file_name): New function.
5641 (mi_cmd_file_list_exec_source_files): Use
5642 map_partial_symbol_filenames.
5643 * mdebugread.c: Include psympriv.h.
5644 * machoread.c: Include psympriv.h.
5645 (macho_sym_fns): Update.
5646 * m2-exp.y (yylex): Use lookup_symtab.
5647 * elfread.c: Include psympriv.h.
5648 (elf_sym_fns): Update.
5649 * dwarf2read.c: Include psympriv.h.
5650 * dbxread.c: Include psympriv.h.
5651 (aout_sym_fns): Update.
5652 * cp-support.c: Include psymtab.h.
5653 (read_in_psymtabs): Remove.
5654 (make_symbol_overload_list_qualified): Use
5655 expand_symtabs_for_function method.
5656 * coffread.c: Include psympriv.h.
5657 (coff_sym_fns): Update.
5658 * blockframe.c: Include psymtab.h.
5659 (find_pc_partial_function): Use find_pc_sect_symtab method.
5660 * ada-lang.h (ada_update_initial_language): Update.
5661 * ada-lang.c: Include psymtab.h.
5662 (ada_update_initial_language): Remove 'main_pst' argument.
5663 (ada_lookup_partial_symbol): Remove.
5664 (struct ada_psym_data): New type.
5665 (ada_add_psyms): New function.
5666 (ada_add_non_local_symbols): Use map_ada_symtabs method.
5667 (struct add_partial_datum): New type.
5668 (ada_add_partial_symbol_completions): New function.
5669 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
5670 (ada_exception_support_info_sniffer): Update.
5671 * Makefile.in (SFILES): Add psymtab.c.
5672 (COMMON_OBS): Add psymtab.o.
5673 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
5674
7d8500b7
PM
56752010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
5676
5677 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
5678
c0cc3a76
SW
56792010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
5680
5681 PR C++/11236:
5682 * cp-namespace.c (cp_add_using): Deleted.
5683 (cp_add_using_directive): Use obstack allocations.
5684 Merged the function cp_add_using into this one.
5685 Added 'struct obstack *' argument.
5686 (cp_scan_for_anonymous_namespaces): Updated.
5687 * cp-support.h: Updated.
5688 * dwarf2read.c (read_import_statement): Updated.
5689 (read_namespace): Updated.
5690
452fa064
CF
56912010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
5692
5693 * windows-nat.c (cygwin_conv_path): Remove old macro.
5694
60e1c644
PA
56952010-03-10 Pedro Alves <pedro@codesourcery.com>
5696
5697 * breakpoint.c (condition_command): Handle watchpoint conditions.
5698 (is_hardware_watchpoint): Add comment.
5699 (is_watchpoint): New.
5700 (update_watchpoint): Don't reparse the watchpoint's condition
5701 unless necessary.
5702 (WP_IGNORE): New.
5703 (watchpoint_check): Use it.
5704 (bpstat_check_watchpoint): Handle it.
5705 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
5706 conditions in a frame where it makes sense.
5707 (watch_command_1): Store the innermost block of the condition
5708 expression.
5709 (delete_breakpoint): Delete the watchpoint condition expression.
5710 * breakpoint.h (struct bp_location) <cond>: Update comment.
5711 (struct breakpoint): New field `cond_exp_valid_block'.
5712
af6b7be1
JB
57132010-03-09 Joel Brobecker <brobecker@adacore.com>
5714
5715 Adjust handling of Ada DIEs after dwarf2_physname patch.
5716 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
5717
60c5c021
CF
57182010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
5719 Pierre Muller <muller@ics.u-strasbg.fr>
5720
5721 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
5722 from/to posix/win32.
5723 (windows_make_so): Use non-Cygwin 1.7 specific function.
5724 (windows_create_inferior): Make sure that cygallargs points to
5725 original args in non Cygwin 1.7. case.
5726
60a1502a
MS
57272010-03-09 Michael Snyder <msnyder@vmware.com>
5728
5729 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
5730 after target_read_memory to get host byte order.
5731 (i386_process_record): Ditto.
5732
94af9270
KS
57332010-03-09 Keith Seitz <keiths@redhat.com>
5734
5735 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
5736 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
5737 print out const or volatile qualifiers, too.
5738 (c_type_print_args): Add parameters show_artificial and language.
5739 Skip artificial parameters when requested.
5740 Use the appropriate language printer.
5741 (c_type_print_varspec): Tell c_type_print_args to skip artificial
5742 parameters and pass language_c.
5743 * dwarf2read.c (die_list): New file global.
5744 (struct partial_die_info): Update comments for name field.
5745 (pdi_needs_namespace): Renamed to ...
5746 (die_needs_namespace): ... this. Rewrite.
5747 (dwarf2_linkage_name): Remove.
5748 (add_partial_symbol): Do not predicate the call to
5749 partial_die_full_name based on pdi_needs_namespace.
5750 Remove call to cp_check_possible_namespace_symbols and associated
5751 outdated comments.
5752 (guess_structure_name): Do not inspect child subprogram DIEs.
5753 (dwarf2_fullname): Update comments.
5754 Use die_needs_namespace to assist in computing the name.
5755 (read_func_scope): Use dwarf2_name to get the DIE's name.
5756 Use dwarf2_physname to get the "linkage name" of the DIE.
5757 (dwarf2_add_member_field): Use dwarf2_physname instead of
5758 dwarf2_linkage_name.
5759 (read_structure_type): For structs and classes, set TYPE_NAME, too.
5760 (determine_class): Remove.
5761 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
5762 except Ada.
5763 (new_symbol): Unconditionally call dwarf2_name.
5764 Compute the "linkage name" using dwarf2_physname.
5765 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
5766 When determining to scan for anonymous C++ namespaces, ignore
5767 the linkage name.
5768 (dwarf2_physname): New function.
5769 (dwarf2_full_name): Move content to new function and call
5770 that.
5771 (dwarf2_compute_name): "New" function.
5772 (_initialize_dwarf2_read): Initialize die_list.
5773 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
5774 physname.
5775 (gnu_v3_print_method_ptr): Use the physname for virtual methods
5776 without a demangled name.
5777 Print out type information for non-virtual methods.
c8d5aac9 5778 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 5779 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
5780 If we found a file symtab, re-evaluate whether the remainder is_quoted.
5781 (decode_compound): Stop consuming at an open parenthesis.
5782 Keep template parameters.
5783 Keep any overload information.
5784 Keep keywords like "const".
5785 Remove paren_pointer.
5786 Move is_quoted check from set_flags to here.
5787 Remove #if 0 code from 2000. Ten years is long enough.
5788 (find_method): Before comparing symbol names, canonicalize the string
5789 from the user.
5790 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
5791 (find_method_overload_end): New function.
5792 (set_flags): Remove.
c8d5aac9
L
5793 (decode_compound): Assume that parentheses are matched.
5794 It's a lot easier.
94af9270
KS
5795 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
5796 to cplus_demangle.
5797 * linespec.c (decode_line_1): Keep important keywords like
5798 "const" and "volatile".
5799 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
5800 * typeprint.h (c_type_print_args): Add declaration.
5801 * ui-file.c (do_ui_file_obsavestring): New function.
5802 (ui_file_obsavestring): New function.
5803 * ui-file.h (ui_file_obsavestring): Add declaration.
5804 * valops.c (find_overload_match): Resolve the object to
5805 a non-pointer type.
5806 If the object is a data member, search the object for the member
5807 and return with staticp set.
5808 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
5809 Do not attempt to extract a function name from non-function types.
5810 If the extracted function name and the original name are the same,
5811 we don't have a C++ method.
5812
8d95cc3b
PA
5813 From Jan Kratochvil <jan.kratochvil@redhat.com>:
5814 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
5815
5816 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
5817 and arguments from symbol lookups.
5818 * ax-gdb.c (gen_expr): Likewise.
5819 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
5820 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
5821 lookup_possible_namespace_symbol): Likewise.
5822 * cp-support.c (read_in_psymtabs): Likewise.
5823 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
5824 * language.h (la_lookup_symbol_nonlocal): Likewise.
5825 * scm-valprint.c (scm_inferior_print): Likewise.
5826 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
5827 * solib-svr.c (elf_lookup_lib): Likewise.
5828 * solib.c (show_auto_solib_add): Likewise.
5829 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
5830 * symmisc.c (maintenance_check_symtabs): Likewise.
5831 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
5832 lookup_symbol_aux_local, lookup_symbol_aux_block,
5833 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
5834 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
5835 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
5836 basic_lookup_transparent_type, find_main_psymtab,
5837 lookup_block_symbol): Likewise.
5838 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
5839 lookup_symbol_global, lookup_symbol_aux_block,
5840 lookup_symbol_partial_symbol, lookup_block_symbol,
5841 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
5842
9cb74f47
PM
58432010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
5844
5845 * python/python-internal.h: Include symtab.h.
5846
af6b7be1
JB
58472010-03-09 Joel Brobecker <brobecker@adacore.com>
5848 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
5849
5850 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
5851 * p-valprint.c (pascal_val_print): Remove undeed block and fix
5852 indentation.
5853
bad56014
TT
58542010-03-08 Tom Tromey <tromey@redhat.com>
5855
5856 * breakpoint.c (breakpoint_1): Add "QUIT".
5857
08105857
PA
58582010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
5859 Pedro Alves <pedro@codesourcery.com>
5860
5861 * solib.c (solib_find): Replace extension if
5862 solib_symbols_extension is set in the target gdbarch.
5863 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5864 solib_symbols_extension to "sym".
5865 * gdbarch.sh (solib_symbols_extension): New variable.
5866 (pstring): New function.
5867 * gdbarch.h, gdbarch.c: Regenerate.
5868
7c953934
TT
58692010-03-08 Tom Tromey <tromey@redhat.com>
5870
5871 PR cli/9591:
5872 * NEWS: Update.
5873 * utils.c: Include main.h.
5874 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
5875 (defaulted_query): Use default answer if `batch_flag'.
5876 * main.h (batch_flag): Declare.
5877 * main.c (batch_flag): New global.
5878 (captured_main): Remove 'batch'. Update.
5879
bbd2783e
KB
58802010-03-08 Kevin Buettner <kevinb@redhat.com>
5881
5882 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
5883 and Kevin Buettner:
5884
5885 * remote-mips.c (rockhopper_ops): New target_ops struct.
5886 (MON_ROCKHOPPER): New mips_monitor_type.
5887 (read_hex_value): New function.
5888 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 5889 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
5890 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
5891 (rockhopper_open): New function.
5892 (mips_wait): Read the PC, FP and SP fields as strings. Use
5893 read_hex_value to parse them and mips_set_register to commit them.
5894 (mips_set_register): New function.
5895 (mips_fetch_registers): Do not cast register value to "unsigned"
5896 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
5897 (mips_store_registers): Use a 'T' packet to set registers when
5898 using MON_ROCKHOPPER.
5899 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
5900 and expect the total to be printed before the entry address.
5901 (_initialize_remote_mips): Initialize and add rockhopper_ops.
5902
566f3d17
KB
59032010-03-08 Kevin Buettner <kevinb@redhat.com>
5904
5905 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
5906 Change return value to int. Store value fetched in location
5907 addressed by `val'. Use function's return value as success
5908 or failure indicator. Adjust all callers.
5909
9c8ee2ab 59102010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
5911
5912 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
5913
7155de5a
HZ
59142010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5915 Hui Zhu <teawater@gmail.com>
5916
5917 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
5918 tmp_to_stopped_data_address.
5919 (record_open): Reset tmp_to_stopped_by_watchpoint and
5920 tmp_to_stopped_data_address.
5921 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
5922 to_stopped_data_address.
5923
580879fc
HZ
59242010-03-08 Hui Zhu <teawater@gmail.com>
5925
5926 * i386-tdep.c (i386_process_record): Initialize regnum.
5927
b0fcb67f
JK
59282010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5929
5930 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
5931 Do not warn on ".gnu.liblist" and ".gnu.conflict".
5932
08597104
JB
59332010-03-08 Joel Brobecker <brobecker@adacore.com>
5934
5935 Memory error when reading wrong core file.
5936 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
5937 errors while reading the inferior memory, and return zero if
5938 an exception was raised.
5939
425b824a
MS
59402010-03-07 Michael Snyder <msnyder@vmware.com>
5941
ec6dbf37
MS
5942 * record.c (record_restore): Rename tmpu8 to rectype.
5943
648d0c8b
MS
5944 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
5945 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
5946
5947 (i386_record_push): Rename local tmpulongest to addr.
5948
5949 (i386_process_record): Rename local tmpulongest to addr.
5950
5951 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
5952 addr64.
955db0c0
MS
5953
5954 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 5955
10760264
JB
59562010-03-07 Joel Brobecker <brobecker@adacore.com>
5957
5958 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 5959 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 5960
b3c613f2
CF
59612010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
5962
5963 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
5964 block. Define helper macros to reduce ifdefs in code.
5965 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
5966 size. Call unadorned GetModuleFileNameEx rather than
5967 GetModuleFileNameEx*.
5968 (windows_make_so): Use __PMAX to denote maximum buffer size and
5969 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
5970 appropriate.
5971 (get_image_name): Use __PMAX to denote maximum buffer size.
5972 (handle_load_dll): Likewise.
5973 (windows_pid_to_exec_file): Likewise.
5974 (windows_create_inferior): Add many accommodations for older Cygwin and
5975 non-Cygwin.
5976 (bad_GetModuleFileNameExW): Control inclusion of this function based on
5977 __USEWIDE conditional.
5978 (bad_GetModuleFileNameExA): Likewise.
5979 (_initialize_loadable): Just use real function names without the dyn_
5980 part since they are defined earlier.
5981
f870a310
TT
59822010-03-05 Corinna Vinschen <vinschen@redhat.com>
5983 Tom Tromey <tromey@redhat.com>
5984
5985 * utils.c (host_char_to_target): Add 'gdbarch' argument.
5986 (parse_escape): Likewise.
5987 * python/py-utils.c (unicode_to_target_string): Update.
5988 (unicode_to_target_python_string): Update.
5989 (target_string_to_unicode): Update.
5990 * printcmd.c (printf_command): Update.
5991 * p-exp.y (yylex): Update.
5992 * objc-exp.y (yylex): Update.
5993 * mi/mi-parse.c: Include charset.h.
5994 (mi_parse_escape): New function.
5995 (mi_parse_argv): Use it.
5996 * jv-exp.y (yylex): Update.
5997 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
5998 function.
5999 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
6000 * gdbarch.sh (auto_charset, auto_wide_charset): New.
6001 * gdbarch.c: Rebuild.
6002 * gdbarch.h: Rebuild.
6003 * defs.h (parse_escape): Update.
6004 * cli/cli-setshow.c: Include arch-utils.h.
6005 (do_setshow_command): Update.
6006 * cli/cli-cmds.c (echo_command): Update.
6007 * charset.h (target_charset, target_wide_charset): Update.
6008 * charset.c: Include arch-utils.h.
6009 (target_charset_name): Default to "auto".
6010 (target_wide_charset_name): Likewise.
6011 (show_target_charset_name): Handle "auto".
6012 (show_target_wide_charset_name): Likewise.
6013 (be_le_arch): New global.
6014 (set_be_le_names): Add 'gdbarch' argument.
6015 (validate): Likewise. Don't call set_be_le_names.
6016 (set_charset_sfunc, set_host_charset_sfunc)
6017 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
6018 Update.
6019 (target_charset): Add 'gdbarch' argument.
6020 (target_wide_charset): Likewise. Remove 'byte_order' argument.
6021 (auto_target_charset_name): New global.
6022 (default_auto_charset, default_auto_wide_charset): New functions.
6023 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
6024 for target charsets. Copy result of nl_langinfo. Use GetACP if
6025 USE_WIN32API.
6026 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
6027 remove 'byte_order' argument. Update.
6028 (classify_type): Likewise.
6029 (c_emit_char): Update.
6030 (c_printchar): Update.
6031 (c_printstr): Update.
6032 (c_get_string): Update.
6033 (evaluate_subexp_c): Update.
6034 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
6035 Declare.
6036 * python/python.c (gdbpy_target_charset): New function.
6037 (gdbpy_target_wide_charset): Likewise.
6038 (GdbMethods): Update.
6039 * NEWS: Update.
6040
4e7386b0
UW
60412010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
6042
6043 * symfile.c (build_section_addr_info_from_objfile): Do not mask
6044 off high address bits.
6045
aab48ede
UW
60462010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
6047
6048 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
6049 address as UnsignedLongLong, not LongLong.
6050
8eeafb51 60512010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 6052 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
6053
6054 * remote-mips.c (gdbthread.h): Include.
6055 (remote_mips_ptid): Declare.
6056 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
6057 (common_open): Set inferior_ptid, add it as an inferior, and
6058 as a thread too. Delete FIXME comment regarding start_remote().
6059 (mips_close): Invoke generic_mourn_inferior().
6060 (mips_kill): Make sure that target_mourn_inferior is invoked.
6061 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
6062 it's now invoked from mips_close().
6063 (mips_load): Don't null out inferior_ptid. Don't call
6064 clear_symtab_users().
6065 (mips_thread_alive, mips_pid_to_str): New functions.
6066 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
6067 to_thread_alive and to_pid_to_str operations.
6068
ae411497
TT
60692010-03-04 Tom Tromey <tromey@redhat.com>
6070
6071 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
6072 in DWARF 3 and later.
6073 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
6074
0e0b460e
KS
60752010-03-04 Keith Seitz <keiths@redhat.com>
6076
6077 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
6078 If the filename portion of the linespec was quoted, recheck the
6079 remainder for additional quoting.
6080 (locate_first_half): Skip over completer chars, too.
6081
1b93ff13
TT
60822010-03-04 Tom Tromey <tromey@redhat.com>
6083
6084 * printcmd.c (printf_command): Pass dummy argument to
6085 printf_filtered.
6086
fc36e839
DE
60872010-03-04 Doug Evans <dje@google.com>
6088
111f853c
DE
6089 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
6090 unwound_fp.
6091
fc36e839
DE
6092 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
6093
c7437ca6
PA
60942010-03-04 Pedro Alves <pedro@codesourcery.com>
6095
6096 * breakpoint.c (update_watchpoint): Create a sentinel location if
6097 the software watchpoint isn't watching any memory.
6098 (breakpoint_address_bits): Skip dummy software watchpoint locations.
6099
58dadb1b
PA
61002010-03-04 Pedro Alves <pedro@codesourcery.com>
6101
6102 * utils.c (fputs_maybe_filtered): Check if there's already a top
6103 level interpreter before dereferencing it. If there isn't one,
6104 don't paginate either.
6105
50e98be4
DJ
61062010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6107
6108 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
6109 the state right when single stepping.
6110 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
6111 Get the next PC along with the instruction state.
6112 (thumb_get_next_pc): Remove.
6113 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
6114
2e3ceee9
HZ
61152010-03-04 Hui Zhu <teawater@gmail.com>
6116
6117 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
6118
390a8aca
PA
61192010-03-03 Pedro Alves <pedro@codesourcery.com>
6120
6121 * utils.c (fputs_maybe_filtered): Always disable pagination if the
6122 top level interpreter is MI.
6123
9355b391
SS
61242010-03-03 Stan Shebs <stan@codesourcery.com>
6125
6126 * remote.c (remote_download_tracepoint): Iterate over locations.
6127 * tracepoint.c (validate_actionline): Ditto.
6128 (encode_actions): Add location argument.
6129 (trace_dump_command): Check all locations to see if stepping
6130 frame.
390a8aca 6131
8685c86f
L
61322010-03-03 H.J. Lu <hongjiu.lu@intel.com>
6133 Eli Zaretskii <eliz@gnu.org>
6134
6135 * NEWS: Add X86 general purpose registers section.
6136
e8f781e2
TT
61372010-03-03 Tom Tromey <tromey@redhat.com>
6138
6139 PR mi/11098:
6140 * varobj.c (install_new_value): Handle case where new print_value
6141 is NULL.
6142
a0e0ef55
TT
61432010-03-03 Dainis Jonitis <jonitis@gmail.com>
6144
6145 PR gdb/11345:
6146 * printcmd.c (printf_command): Print end of format string using
6147 printf_filtered.
6148
a58d7472
TT
61492010-03-02 Tom Tromey <tromey@redhat.com>
6150
6151 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
6152 * defs.h (read_command_lines_1): Add missing 'void'.
6153 * cli/cli-script.c (recurse_read_control_structure): Add missing
6154 'void'.
6155 (read_next_line): Likewise.
6156 (read_command_lines_1): Likewise.
6157
ce50d78b
UW
61582010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6159
6160 * spu-tdep.c (spu_analyze_prologue): Track instruction to
6161 store backchain as part of prologue.
6162
7e9af34a
DJ
61632010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
6164
6165 * progspace.c (update_address_spaces): Update inferior address spaces
6166 also.
6167
01637564
DE
61682010-03-02 Doug Evans <dje@google.com>
6169
6170 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
6171 lowpc,highpc args to addrmap_set_empty.
6172
1ba53b71
L
61732010-03-02 H.J. Lu <hongjiu.lu@intel.com>
6174
6175 * amd64-tdep.c (amd64_byte_names): New.
6176 (amd64_word_names): Likewise.
6177 (amd64_dword_names): Likewise.
6178 (amd64_pseudo_register_name): Likewise.
6179 (amd64_pseudo_register_read): Likewise.
6180 (amd64_pseudo_register_write): Likewise.
6181 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
6182 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
6183 set_gdbarch_pseudo_register_write and
6184 set_tdesc_pseudo_register_name. Don't call
6185 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
6186
6187 * i386-tdep.c (i386_num_mmx_regs): Removed.
6188 (i386_num_pseudo_regs): Likewise.
6189 (i386_byte_names): New.
6190 (i386_word_names): Likewise.
6191 (i386_byte_regnum_p): Likewise.
6192 (i386_word_regnum_p): Likewise.
6193 (i386_mmx_regnum_p): Updated.
6194 (i386_pseudo_register_name): Make it global. Handle byte and
6195 word pseudo-registers.
6196 (i386_pseudo_register_read): Likewise.
6197 (i386_pseudo_register_write): Likewise.
6198 (i386_pseudo_register_type): Handle byte, word and dword
6199 pseudo-registers
6200 (i386_register_reggroup_p): Don't include pseudo
6201 registers, except for MXX, in any register groups. Don't
6202 include pseudo byte, word, dword registers in general_reggroup.
6203 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
6204 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
6205 pseudo-registers after word pseudo-registers. Call
6206 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
6207
6208 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
6209 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
6210 eax_regnum.
6211 (i386_byte_regnum_p): New.
6212 (i386_word_regnum_p): Likewise.
6213 (i386_dword_regnum_p): Likewise.
6214 (i386_pseudo_register_name): Likewise.
6215 (i386_pseudo_register_read): Likewise.
6216 (i386_pseudo_register_write): Likewise.
6217
a6f5ef51
L
62182010-03-01 H.J. Lu <hongjiu.lu@intel.com>
6219
6220 * target-descriptions.c (tdesc_type): Remove
6221 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6222 (tdesc_predefined_types): Likewise.
6223 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
6224 if flag name is empty.
6225 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
6226
6227 * features/i386/32bit-core.xml: Define i386_eflags.
6228 * features/i386/64bit-core.xml: Likewise.
6229
6230 * features/i386/32bit-sse.xml: Define i386_mxcsr.
6231 * features/i386/64bit-sse.xml: Likewise.
6232
6233 * features/i386/amd64-linux.c: Regenerated.
6234 * features/i386/amd64.c: Likewise.
6235 * features/i386/i386-linux.c: Likewise.
6236 * features/i386/i386.c: Likewise.
6237
f5dff777
DJ
62382010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
6239
6240 * gdbtypes.c (append_composite_type_field_raw): New.
6241 (append_composite_type_field_aligned): Use the new function.
6242 * gdbtypes.h (append_composite_type_field_raw): Declare.
6243 * target-descriptions.c (struct tdesc_type_field): Add start and end.
6244 (struct tdesc_type_flag): New type.
6245 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
6246 kind. Add size to u.u. Add u.f for flags.
6247 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
6248 (tdesc_free_type): Likewise.
6249 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
6250 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
6251 (tdesc_add_bitfield, tdesc_add_flag): New.
6252 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
6253 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
6254 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
6255 current_type. Add current_type_size and current_type_is_flags.
6256 (tdesc_start_union): Clear the new fields.
6257 (tdesc_start_struct, tdesc_start_flags): New.
6258 (tdesc_start_field): Handle struct fields, including bitfields.
6259 (field_attributes): Make type optional. Add start and end.
6260 (union_children): Rename to struct_union_children.
6261 (union_attributes): Rename to struct_union_attributes. Add optional
6262 size.
6263 (flags_attributes): New.
6264 (feature_children): Add struct and flags.
6265 * features/gdb-target.dtd: Add flags and struct to features.
6266 Make field type optional. Add field start and end.
6267
90884b2b
L
62682010-03-01 H.J. Lu <hongjiu.lu@intel.com>
6269
6270 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
6271 (amd64_linux_read_description): Likewise.
6272 (_initialize_amd64_linux_nat): Set to_read_description to
6273 amd64_linux_read_description.
6274
6275 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
6276 (amd64_linux_register_name): Removed.
6277 (amd64_linux_register_type): Likewise.
6278 (amd64_linux_core_read_description): New.
6279 (amd64_linux_init_abi): Set target description to
6280 tdesc_amd64_linux if needed. Support orig_rax in target
6281 description. Don't call set_gdbarch_register_name nor
6282 set_gdbarch_register_type. Call
6283 set_gdbarch_core_read_description.
6284 (_initialize_amd64_linux_tdep): Call
6285 initialize_tdesc_amd64_linux.
6286
6287 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
6288
6289 * amd64-tdep.c: Include "features/i386/amd64.c".
6290 (amd64_register_names): Removed.
6291 (amd64_register_name): Likewise.
6292 (amd64_register_type): Likewise.
6293 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 6294 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
6295 set_gdbarch_register_name nor set_gdbarch_register_type.
6296 (_initialize_amd64_tdep): New.
6297
6298 * i386-linux-nat.c (i386_linux_read_description): New.
6299 (_initialize_i386_linux_nat): Set to_read_description to
6300 i386_linux_read_description.
6301
6302 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
6303 (i386_linux_register_name): Removed.
6304 (i386_linux_core_read_description): New.
6305 (i386_linux_read_description): Likewise.
6306 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
6307 Set target description to tdesc_i386_linux if needed. Support
6308 orig_eax. Set register_reggroup_p. Call
6309 set_gdbarch_core_read_description.
6310 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
6311
6312 * i386-linux-tdep.h (tdesc_i386_linux): New.
6313
6314 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
6315 with I387_NUM_REGS.
6316
6317 * i386-tdep.c: Include "features/i386/i386.c".
6318 (i386_register_names): Make it const.
6319 (i386_mmx_names): Likewise.
6320 (i386_num_register_names): Removed.
6321 (i386_register_name): Likewise.
6322 (i386_eflags_type): Likewise.
6323 (i386_mxcsr_type): Likewise.
6324 (i386_sse_type): Likewise.
6325 (i386_register_type): Likewise.
6326 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
6327 (i386_pseudo_register_name): New.
6328 (i386_pseudo_register_type): Likewise.
6329 (i386_mmx_type): Make it static.
6330 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
6331 I387_NUM_REGS. Set num_core_regs and register_names. Don't
6332 call set_gdbarch_register_name nor set_gdbarch_register_type.
6333 Set register_reggroup_p. Set target description to tdesc_i386
6334 if needed. Call set_tdesc_pseudo_register_type,
6335 set_tdesc_pseudo_register_name and tdesc_use_registers.
6336 (_initialize_i386_tdep): Call initialize_tdesc_i386.
6337 initialize_tdesc_x86_64.
6338
6339 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
6340 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
6341 register_names, tdesc and register_reggroup_p.
6342 (I386_NUM_FREGS): Removed.
6343 (i386_eflags_type): Likewise.
6344 (i386_mxcsr_type): Likewise.
6345 (i386_mmx_type): Likewise.
6346 (i386_sse_type): Likewise.
6347 (i386_register_name): Likewise.
6348 (i386_regnum): Add I386_MXCSR_REGNUM.
6349 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
6350
6351 * i387-tdep.h (I387_NUM_REGS): New.
6352
6353 * regformats/i386/i386-linux.dat: Generated.
6354 * regformats/i386/i386.dat: Likewise.
6355 * regformats/i386/amd64-linux.dat: Likewise.
6356 * regformats/i386/amd64.dat: Likewise.
6357
6358 * regformats/reg-i386-linux.dat: Removed.
6359 * regformats/reg-i386.dat: Likewise.
6360 * regformats/reg-x86-64-linux.dat: Likewise.
6361 * regformats/reg-x86-64.dat: Likewise.
6362
d0d0ab16
CV
63632010-03-01 Corinna Vinschen <vinschen@redhat.com>
6364
6365 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
6366 cygwin_conv_path API rather than the deprecated
6367 cygwin_conv_to_full_posix_path.
6368 * windows-nat.c:
6369 (GetModuleFileNameExA): Undefine for Cygwin.
6370 (GetModuleFileNameExW): Define for Cygwin.
6371 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
6372 Call GetModuleFileNameExW and convert path to POSIX using
6373 cygwin_conv_path.
6374 (windows_make_so): Always define p. Drop unused variable m.
6375 Don't use Win32 functions to check file existance, rather use
6376 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
6377 Use canonicalize_file_name to get full path.
6378 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
6379 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
6380 use correct target buffer size in call to WideCharToMultiByte.
6381 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
6382 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
6383 (windows_create_inferior): Convert all paths and arguments to wchar_t
6384 and use CreateProcessW on Cygwin.
6385 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
6386 (bad_GetModuleFileNameExA): Undefine for Cygwin.
6387 (bad_GetModuleFileNameExW): Define for Cygwin.
6388 (_initialize_loadable): Load GetModuleFileNameExW into
6389 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
6390
dc00d89f
PM
63912010-02-28 Phil Muldoon <pmuldoon@redhat.com>
6392
6393 PR python/11036
6394 * python/py-frame.c (frapy_read_var): Add block argument and logic
6395 to cope with user provided blocks.
6396
0e095b7e
JK
63972010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6398
6399 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
6400 New comment.
6401
2f9e05b4
CV
64022010-02-28 Corinna Vinschen <vinschen@redhat.com>
6403
6404 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
6405 (COMMON_OBS): ... to here since it's used unconditionally.
6406 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
6407 (SFILES): To here.
6408
eb195664
DD
64092010-02-26 David Daney <ddaney@caviumnetworks.com>
6410
6411 * mips-linux-tdep.c: Update struct sigframe comments.
6412 (SIGFRAME_CODE_OFFSET): Delete macro.
6413 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
6414 this_frame's sp.
6415 (mips_linux_n32n64_sigframe_init): Same.
6416
97b0f3e2
KB
64172010-02-26 Kevin Buettner <kevinb@redhat.com>
6418
6419 * remote-mips.c (mips_load): Don't use pseudo-register when
6420 invalidating regcache.
6421
4069ebbe
DJ
64222010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6423
6424 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
6425
05071a4d
PA
64262010-02-26 Pedro Alves <pedro@codesourcery.com>
6427
6428 * NEWS: Add "New targets" section, and mention ARM Symbian
6429 support.
6430
6063c216
UW
64312010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
6432
6433 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
6434 add ADDR_SIZE member.
6435 (allocate_piece_closure): Update.
6436 (copy_pieced_value_closure): Likewise.
6437 (dwarf2_evaluate_loc_desc): Likewise.
6438 (read_pieced_value): Use DWARF address size instead of
6439 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
6440
5107b149 64412010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 6442 Tom Tromey <tromey@redhat.com>
5107b149
PM
6443
6444 * python/py-type.c (typy_lookup_typename): Add in block argument.
6445 If provided restrict lookup to specified blocks.
6446 (gdbpy_lookup_type): Likewise.
6447 (typy_lookup_type): Likewise.
6448
78664fa3 64492010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 6450
78664fa3
PA
6451 Symbian config
6452
6453 gdb/
6454 * arm-symbian-tdep.c: New.
6455 * configure.tgt (arm*-*-symbianelf*): New target.
6456 (*-*-symbianelf*): New OS.
6457 * osabi.c (gdb_osabi_names): Add Symbian.
6458 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
6459 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
6460 (ALLDEPFILES): Add arm-symbian-tdep.c.
6461
eb73e134
DJ
64622010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
6463
6464 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
6465
46ef47e5
PA
64662010-02-24 Pedro Alves <pedro@codesourcery.com>
6467
6468 * mi/mi-main.c (mi_cmd_execute): Fix typo.
6469
f3e9a817 64702010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 6471 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
6472 Thiago Jung Bauermann <bauerman@br.ibm.com>
6473
6474 * python/python.c (_initialize_python): Call
6475 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
6476 gdbpy_initialize_blocks.
6477 * python/python-internal.h: Declare struct symbol, block and
6478 symtab_and_line. Declare block_object_type and
6479 symbol_object_type
6480 (gdbpy_lookup_symbol gdbpy_block_for_pc)
6481 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
6482 (symbol_to_symbol_object, block_to_block_object)
6483 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
6484 (gdbpy_initialize_blocks ): Declare.
6485 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
6486 (frapy_select): Add methods.
6487 (frapy_read_var): Add symbol branch.
6488 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
6489 py-block.
6490 (SUBDIR_PYTHON_SRCS): Likewise.
6491 (py-symbol.o): New rule.
6492 (py-symtab.o): Likewise.
6493 (py-block.o): Likewise.
6494 * python/py-symbol.c: New file.
6495 * python/py-symtab.c: Likewise.
6496 * python/py-block.c: Likewise.
6497
24291992
PA
64982010-02-24 Pedro Alves <pedro@codesourcery.com>
6499
6500 PR gdb/11321
6501
6502 * inferior.h (prepare_for_detach): Declare.
6503 (struct inferior) <detaching>: New field.
6504 * infrun.c (prepare_for_detach): New.
6505 (handle_inferior_event) <random signal>: Don't stop if detaching.
6506 * target.c (target_detach): Call prepare_for_detach.
6507
fc1cf338
PA
65082010-02-24 Pedro Alves <pedro@codesourcery.com>
6509
6510 Per-process displaced stepping queue.
6511
6512 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
6513 (displaced_step_gdbarch, displaced_step_closure,
6514 (displaced_step_original, displaced_step_copy): Move globals to
6515 this...
6516 (struct displaced_step_inferior_state): ... new structure.
6517 (displaced_step_inferior_states): New global.
6518 (get_displaced_stepping_state, add_displaced_stepping_state)
6519 (remove_displaced_stepping_state, infrun_inferior_exit): New
6520 functions.
6521 (displaced_step_clear): Add displaced_step_inferior_state
6522 parameter, and adjust to handle it.
6523 (displaced_step_clear_cleanup): Parameter is now a
6524 displaced_step_inferior_state. Adjust.
6525 (displaced_step_prepare): Adjust.
6526 (displaced_step_fixup, displaced_step_fixup)
6527 (infrun_thread_ptid_changed, resume): Adjust.
6528 (init_wait_for_inferior): Don't call displaced_step_clear.
6529 (infrun_thread_stop_requested): Rewrite.
6530 (_initialize_infrun): Install infrun_inferior_exit as
6531 inferior_exit observer.
6532
0723dbf5
PA
65332010-02-24 Pedro Alves <pedro@codesourcery.com>
6534
6535 * inferior.h (ptid_match): Declare.
6536 * infrun.c (ptid_match): New.
6537 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
6538 (handle_notification): Add debug output.
6539 * linux-nat.c (ptid_match): Delete.
6540
09de9781
DM
65412010-02-24 David S. Miller <davem@davemloft.net>
6542
6543 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
6544 * syscalls/sparc-linux.xml: New.
6545 * syscalls/sparc64-linux.xml: New.
6546 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
6547 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
6548 (sparc32_linux_get_syscall_number): New function.
6549 (sparc32_linux_init_abi): Set syscall XML file name and hook up
6550 syscall number fetcher.
6551 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
6552 (sparc64_linux_get_syscall_number): New function.
6553 (sparc64_linux_init_abi): Set syscall XML file name and hook up
6554 syscall number fetcher.
6555
a79b8f6e
VP
65562010-02-24 Vladimir Prus <vladimir@codesourcery.com>
6557
6558 Multiexec MI
6559
6560 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
6561 * inferior.c (add_inferior_silent): Notify inferior_added
6562 observer.
6563 (delete_inferior_1): Notify inferior_removed observer.
6564 (exit_inferior_1): Pass inferior, not pid, to observer.
6565 (inferior_appeared): Likewise.
6566 (add_inferior_with_spaces): New.
6567 (add_inferior_command): Use the above.
6568 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
6569 Declare.
6570
6571 * inflow.c (inflow_inferior_exit): Likewise.
6572 * jit.c (jit_inferior_exit_hook): Likewise.
6573
6574 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
6575 remove-inferior.
6576 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
6577 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
6578 (report_initial_inferior): New.
6579 (mi_inferior_removed): Register the above. Make sure
6580 inferior_added observer is called on the first inferior.
6581 (mi_new_thread, mi_thread_exit): Thread group is now identified by
6582 inferior number, not pid.
6583 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
6584 affected.
6585 * mi/mi-main.c (current_context): New.
6586 (proceed_thread_callback): Use typed closure.
6587 Proceed everything if pid is 0. Most implementation split into
6588 (proceed_thread): ... this.
6589 (run_one_inferior): New.
6590 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
6591 Adjust for multiexec behaviour.
6592 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
6593 (mi_cmd_execute): Handle the 'thread-group' option here.
6594 Do some extra checks.
6595 * mi-parse.c (mi_parse): Handle the --all and --thread-group
6596 options.
6597 * mi-parse.h (struct mi_parse): New fields all and thread_group.
6598
115d30f9
VP
65992010-02-24 Vladimir Prus <vladimir@codesourcery.com>
6600
6601 Make -exec-run a proper MI commands.
6602
6603 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
6604 * mi/mi-cmds.c (mi_cmds): Adjust.
6605 * mi/mi-main.c (mi_cmd_exec_run): New.
6606
06cd862c
PA
66072010-02-24 Pedro Alves <pedro@codesourcery.com>
6608 Stan Shebs <stan@codesourcery.com>
6609
6610 * tracepoint.h (set_traceframe_number)
6611 (cleanup_restore_current_traceframe): Declare.
6612 * tracepoint.c (set_traceframe_number): New.
6613 (struct current_traceframe_cleanup): New.
6614 (do_restore_current_traceframe_cleanup)
6615 (restore_current_traceframe_cleanup_dtor)
6616 (make_cleanup_restore_current_traceframe): New.
6617 * infrun.c: Include tracepoint.h.
6618 (fetch_inferior_event): Switch out and in of tfind mode.
6619
ab92d69b
PA
66202010-02-24 Pedro Alves <pedro@codesourcery.com>
6621
6622 * breakpoint.c (breakpoint_init_inferior): Also delete
6623 bp_shlib_event breakpoints.
6624 * solib-frv.c (enable_break): Remove call to
6625 remove_solib_event_breakpoints.
6626 * solib-svr4.c (enable_break): Ditto.
6627 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
6628 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
6629 * solib-som.c (som_solib_create_inferior_hook): Ditto.
6630 * solib-spu.c (spu_enable_break): Ditto.
6631
e707a91d
PA
66322010-02-23 Harald Koenig <H.Koenig@science-computing.de>
6633
6634 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
6635
cfce2ea2
PA
66362010-02-23 Harald Koenig <H.Koenig@science-computing.de>
6637
6638 * varobj.c (varobj_update): Avoid non-constants in initializers.
6639
05566b3b
TT
66402010-02-23 Tom Tromey <tromey@redhat.com>
6641
6642 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
6643 handle big-endian values.
6644 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
6645
85d721b8
PA
66462010-02-22 Pedro Alves <pedro@codesourcery.com>
6647
6648 PR9605
6649
6650 gdb/
6651 * breakpoint.c (insert_bp_location): If inserting the read
6652 watchpoint failed, fallback to an access watchpoint.
6653 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
6654 if the value changed, if not watching the same memory for writes.
6655 (watchpoint_locations_match): Add comment.
6656 (update_global_location_list): Copy the location's watchpoint type.
6657 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
6658 handle read watchpoints here.
6659 (i386_insert_watchpoint): Read watchpoints aren't supported.
6660 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
6661 packets.
6662 * target.h (target_insert_watchpoint): Update description.
6663
48ea67a7
TT
66642010-02-19 Tom Tromey <tromey@redhat.com>
6665
6666 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
6667 * m2-typeprint.c (m2_print_type): Update.
6668 * gdbtypes.c (recursive_dump_type): Update.
6669 (copy_type_recursive): Update.
6670 * c-typeprint.c (c_type_print_varspec_prefix): Update.
6671 (c_type_print_base): Update.
6672 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
6673 Remove.
6674 (struct cplus_struct_type) <ntemplate_args>: Remove.
6675 <struct template_arg>: Remove.
6676 <is_dynamic>: Move earlier.
6677 (TYPE_TEMPLATE_ARGS): Remove.
6678 (TYPE_NTEMPLATE_ARGS): Remove.
6679 (TYPE_TEMPLATE_ARG): Remove.
6680
48e32051
TT
66812010-02-19 Tom Tromey <tromey@redhat.com>
6682
6683 PR c++/8693, PR c++/9496:
6684 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
6685 * c-exp.y (lex_one_token): Rename from yylex. Don't call
6686 write_dollar_variable. Don't try to classify NAME tokens.
6687 (token_and_value): New type.
6688 (token_fifo, popping, name_obstack): New globals.
6689 (classify_name): New function.
6690 (classify_inner_name): Likewise.
6691 (yylex): Likewise.
6692 (VARIABLE): Now has type sval.
6693 (exp : VARIABLE): Call write_dollar_variable.
6694 (qualified_name): Use TYPENAME, not typebase. Add production for
6695 multiple "::" instances.
6696 (variable): Use name_not_typename.
6697 (qualified_type): Remove.
6698 (typebase): Update.
6699
672d9c23
JK
67002010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6701
6702 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
6703 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
6704 found by bfd_get_section_by_name.
6705 * symfile.h (struct section_addr_info) <sectindex>: New comment.
6706
bfbf3774
JB
67072010-02-19 Joel Brobecker <brobecker@adacore.com>
6708
6709 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
6710 7.0 section" into "Changes in 7.1".
6711
6756b09b 67122010-02-19 Joel Brobecker <brobecker@adacore.com>
6713
6714 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
6715 * version.in: Bump version to 7.1.50.20100219-cvs.
6716
202b96c1
PA
67172010-02-18 Harald Koenig <H.Koenig@science-computing.de>
6718
6719 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
6720 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
6721
de2e5182
TT
67222010-02-17 Tom Tromey <tromey@redhat.com>
6723
6724 * NEWS: Add Python API Improvements section.
6725
7280022e
DJ
67262010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
6727
6728 * NEWS: Correct typo.
6729
6f451e5e
TT
67302010-02-17 Tom Tromey <tromey@redhat.com>
6731
6732 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
6733
012836ea
JK
67342010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6735
6736 * symfile.c (build_section_addr_info_from_objfile): Include sections
6737 only if they are SEC_ALLOC or SEC_LOAD.
6738
d182d057
L
67392010-02-17 H.J. Lu <hongjiu.lu@intel.com>
6740
6741 PR shlibs/11293
6742 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
6743 of ULONGEST for address size.
6744
4eef138c
TT
67452010-02-17 Tom Tromey <tromey@redhat.com>
6746
6747 * NEWS: Add C++ improvements section.
6748
548a926a
UW
67492010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
6750
6751 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
6752 PyThreadState_Swap): Avoid "statement with no effect" warning.
6753
ad3a0e5b
JK
67542010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6755
6756 * solib-svr4.c (enable_break <target_auxv_search>): New variable
6757 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
6758
243e2c5d 67592010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 6760 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
6761
6762 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
6763 gdb_assert. Fix info->size for SIG prologue.
6764
275f2e57
DJ
67652010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6766
6767 * infcmd.c (show_inferior_tty_command): Check for NULL.
6768 Correct output message.
6769
791dfb64
DJ
67702010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6771
6772 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
6773 FUNCTION contains parentheses. Improve removal of a trailing
6774 single quote.
6775
14d1346b
DJ
67762010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6777
6778 * gcore.c (do_bfd_delete_cleanup): New function.
6779 (gcore_command): Use it. Discard the cleanup after success.
6780 (gcore_copy_callback): Delete dead code.
6781
e76ab67f
DJ
67822010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6783
6784 * symfile.c (addr_info_make_relative): Always use
6785 find_lowest_section.
6786
71dee663
SW
67872010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
6788
6789 * NEWS: Added entry for namespace fixes.
6790
a9854bd5
TT
67912010-02-15 Tom Tromey <tromey@redhat.com>
6792
6793 * dwarf2read.c (guess_structure_name): Allocate name on the
6794 objfile obstack.
6795
fd9e29b5
TT
67962010-02-15 Tom Tromey <tromey@redhat.com>
6797
6798 * c-typeprint.c (c_type_print_base): Reverse order of test.
6799
4e1fc9c9
JK
68002010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6801
6802 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
6803 initialize it from ELF BFD. Extend the prelink condition by it.
6804
74164c56
JK
68052010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6806
6807 * defs.h (parse_pid_to_attach): New.
6808 * utils.c (parse_pid_to_attach): New.
6809 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
6810 * gnu-nat.c (gnu_attach): Likewise.
6811 * nto-procfs.c (procfs_attach): Likewise.
6812 * procfs.c (procfs_attach): Likewise.
6813 * windows-nat.c (windows_attach): Likewise.
6814 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
6815 * inf-ttrace.c (inf_ttrace_attach): Likewise.
6816 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
6817 check.
6818
bf6adea8
MM
68192010-02-14 Masaki Muranaka <monaka@monami-software.com>
6820
6821 * MAINTAINERS: Add myself for write after approval privileges.
6822
28f34a8f
JK
68232010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6824
6825 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
6826 block.
6827
701ed6dc
JK
68282010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6829
6830 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
6831 only if INFO_VERBOSE.
6832
e5829bee
MS
68332010-02-12 Tomas Holmberg <th@virtutech.com>
6834
6835 * mi/mi-main.c: Added the --reverse flag to the following MI
6836 commands: exec-continue, exec-finish, exec-next, exec-step,
6837 exec-next-instruction, exec-step-instruction. This is to
6838 support reverse execution over the MI interface to gdb.
6839
081dfbf7
PA
68402010-02-12 Pedro Alves <pedro@codesourcery.com>
6841
6842 * tracepoint.c (_initialize_tracepoint): Specify that the address
6843 range of `tfind outsize' is exclusive, and that the address range
6844 of `tfind range' is inclusive, in the commands' help strings.
6845
ecc13e53
JB
68462010-02-12 Joel Brobecker <brobecker@adacore.com>
6847
6848 Spurious "dll not found" error messages on x64-windows.
6849 * windows-nat.c: Add include of complaints.h.
6850 (handle_unload_dll): Change dll-not-found error into a complaint.
6851
15c3d785
PA
68522010-02-12 Pedro Alves <pedro@codesourcery.com>
6853
6854 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
6855 bp_tracepoint and bp_fast_tracepoint, not
6856 bp_loc_software_breakpoint.
6857 (update_global_location_list): Tracepoints are never duplicates of
6858 anything.
6859
fd9b8c24
PA
68602010-02-12 Pedro Alves <pedro@codesourcery.com>
6861
6862 * breakpoint.c (break_command_really): Change return type to int.
6863 Return false if no breakpoint was created, true otherwise.
6864 (trace_command): Don't set the tracepoint count if no tracepoint
6865 was created.
6866 (ftrace_command): Ditto.
6867 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
6868 created in the breakpoints table.
6869
5c0d192f
JK
68702010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6871 Ulrich Weigand <uweigand@de.ibm.com>
6872
6873 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
6874
5d5b640e
PA
68752010-02-11 Pedro Alves <pedro@codesourcery.com>
6876
6877 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
6878 the offset value isn't of integral type.
6879
e5a0a904
JK
68802010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6881
6882 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
6883 New.
6884
be636754
PA
68852010-02-11 Pedro Alves <pedro@codesourcery.com>
6886
6887 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
6888 non-subscriptable types.
6889 * valarith.c (binop_types_user_defined_p): New, abstracted out
6890 from ...
6891 (binop_user_defined_p): ... this.
6892 * value.h (binop_types_user_defined_p): Declare.
6893
10ef8d6a
PA
68942010-02-11 Pedro Alves <pedro@codesourcery.com>
6895
6896 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
6897 Merge uploaded TSVs before merging uploaded tracepoints.
6898
b1028c8e
PA
68992010-02-11 Pedro Alves <pedro@codesourcery.com>
6900
6901 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
6902
7a93fb82 69032010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 6904
7a93fb82
VP
6905 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
6906 whitespace character after a dot in comment.
6907 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
6908 Likewise.
6909 (list_args_or_locals): For the 'all' (that is
6910 -stack-list-variables) case, always output list of tuples.
6911 Output 'arg' field if variable is argument.
84d90c10 6912
92981e24
TT
69132010-02-10 Tom Tromey <tromey@redhat.com>
6914
6915 * parser-defs.h (parser_debug): Declare.
6916 * parse.c (_initialize_parse): Install "debug parser" set/show
6917 command.
6918 (parser_debug): New global.
6919 (show_parserdebug): New function.
6920 * c-exp.y (c_parse): Set yydebug.
6921
9fd3625f
L
69222010-02-10 H.J. Lu <hongjiu.lu@intel.com>
6923
6924 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
6925 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6926 (tdesc_predefined_types): Add i387_ext, i386_eflags and
6927 i386_mxcsr.
6928 (tdesc_find_type): New.
6929 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
6930 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6931
6932 * target-descriptions.h (tdesc_find_type): New.
6933
2fe842e5
MS
69342010-02-10 Michael Snyder <msnyder@vmware.com>
6935
6936 * gdb-gdb.py: Comment fix.
6937
f18b4cab
TG
69382010-02-09 Tristan Gingold <gingold@adacore.com>
6939
6940 * machoread.c (macho_symfile_relocate): New function.
6941 (macho_sym_fns): Use macho_symfile_relocate instead of
6942 default_symfile_relocate.
6943 (macho_oso_data): New type.
6944 (current_oso): New variable.
6945 (macho_add_oso_symfile): Do not compute section_addr_info, but
6946 instead set vma of sections.
6947 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
6948 Set and clear current_oso.
6949
31dbc1c5
JB
69502010-02-09 Joel Brobecker <brobecker@adacore.com>
6951
6952 Wrong type description for tagged type parameter.
6953 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
6954 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
6955 reference to a tagged type.
6956
399f313b
TG
69572010-02-09 Tristan Gingold <gingold@adacore.com>
6958
6959 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
6960 brothers of the parent.
6961
714f19d5
TT
69622010-02-08 Tom Tromey <tromey@redhat.com>
6963
6964 PR c++/8017:
6965 * value.h: Update.
6966 * valops.c (search_struct_field): Make 'name' const.
6967 (search_struct_method): Likewise.
6968 (find_method_list): Make 'method' const.
6969 (value_struct_elt): Make 'name' and 'err' const.
6970 (value_find_oload_method_list): Make 'method' const.
6971 (find_overload_match): Make 'name' const.
6972 * eval.c (evaluate_subexp_standard): New locals function,
6973 function_name.
6974 <OP_FUNCALL>: Handle OP_SCOPE specially.
6975
de0a0249
UW
69762010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6977
6978 * infrun.c (handle_inferior_event): Do not look up regcache
6979 for exited processes.
6980
8d95cc3b 69812010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
6982
6983 PR gdb/10728
6984 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 6985 warn if found, and assume length = 1.
83b10087 6986
99903ae3
CM
69872010-02-08 Chris Moller <cmoller@redhat.com>
6988
6989 PR gdb/9067
6990 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 6991 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 6992
e3e9f5a2
PA
69932010-02-08 Pedro Alves <pedro@codesourcery.com>
6994
6995 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
6996 resumed LWPs as resumed.
6997 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
6998 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
6999 of throwing an internal error. If an LWP of a process we're not
7000 waiting for reports a signal, don't force collecting a SIGSTOP,
7001 and if it was breakpoint hit in non-stop mode, cancel it. Don't
7002 go through all LWPs cancelling breakpoints in non-stop mode.
7003 (resume_stopped_resumed_lwps): New.
7004 (linux_nat_wait): Use it.
7005
46763423
L
70062010-02-07 H.J. Lu <hongjiu.lu@intel.com>
7007
7008 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
7009 i386/amd64 and i386/amd64-linux.
7010 (i386/i386-expedite): New.
7011 (i386/i386-linux-expedite): Likewise.
7012 (i386/amd64-expedite):Likewise.
7013 (i386/amd64-linux-expedite): Likewise.
7014 ($(outdir)/i386/i386-linux.dat): Likewise.
7015 ($(outdir)/i386/amd64.dat): Likewise.
7016 ($(outdir)/i386/amd64-linux.dat): Likewise.
7017
7018 * features/i386/32bit-core.xml: New.
7019 * features/i386/32bit-linux.xml: Likewise.
7020 * features/i386/32bit-sse.xml: Likewise.
7021 * features/i386/64bit-core.xml: Likewise.
7022 * features/i386/64bit-linux.xml: Likewise.
7023 * features/i386/64bit-sse.xml: Likewise.
7024 * features/i386/i386-linux.xml: Likewise.
7025 * features/i386/i386.xml: Likewise.
7026 * features/i386/amd64-linux.xml: Likewise.
7027 * features/i386/amd64.xml: Likewise.
7028 * features/i386/i386-linux.c: Likewise.
7029 * features/i386/i386.c: Likewise.
7030 * features/i386/amd64-linux.c: Likewise.
7031 * features/i386/amd64.c: Likewise.
7032
82856980
SW
70332010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
7034
7035 PR c++/7935:
7036 * cp-support.h: Added char* alias element to using_direct data
7037 struct.
7038 (cp_add_using): Added char* alias argument.
7039 (cp_add_using_directive): Ditto.
7040 * cp-namespace.c: Updated with the above changes.
7041 (cp_lookup_symbol_imports): Check for aliases.
7042 * dwarf2read.c (read_import_statement): Figure out local alias
7043 for the import and pass it on to cp_add_using.
7044 (read_namespace): Pass alias argument to cp_add_using.
7045
d18b8b7a
HZ
70462010-02-05 Hui Zhu <teawater@gmail.com>
7047
7048 * defs.h (gdb_bfd_errmsg): New extern.
7049 * exec.c (exec_file_attach): Change bfd_errmsg to
7050 gdb_bfd_errmsg.
7051 * utils.c (AMBIGUOUS_MESS1): New macro.
7052 (AMBIGUOUS_MESS2): New macro.
7053 (gdb_bfd_errmsg): New function.
7054
48379de6
DE
70552010-02-04 Doug Evans <dje@google.com>
7056
7057 * solib-svr4.c (enable_break): Add comment.
7058
4ee73e90
AG
70592010-02-04 Anthony Green <green@moxielogic.com>
7060
7061 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
7062 gracefully.
7063
1a334831
TT
70642010-02-04 Tom Tromey <tromey@redhat.com>
7065
7066 * valops.c (search_struct_field): Account for
7067 value_embedded_offset. Fix check for virtual base past the end of
7068 the object. Use value_copy when making a slice of the value.
7069
1180b2c8
L
70702010-02-04 H.J. Lu <hongjiu.lu@intel.com>
7071
7072 PR tui/9622
7073 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
7074 only if gdb_stdout is a tty.
7075
c3f08eb7
L
70762010-02-04 H.J. Lu <hongjiu.lu@intel.com>
7077
7078 * target-descriptions.c: Include "osabi.h".
7079 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
7080 OSABI.
7081
2d33f7b8
TG
70822010-02-04 Tristan Gingold <gingold@adacore.com>
7083
7084 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
7085 (macho_symtab_read): Adjust calls to macho_add_oso.
7086 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
7087 (macho_symfile_read): Adjust call to macho_oso_symfile.
7088 (macho_new_init): Move this function after declarations.
7089 (macho_symfile_init): Ditto.
7090 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
7091 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
7092
11334b82
VP
70932010-02-04 Vladimir Prus <vladimir@codesourcery.com>
7094
7095 Include MI command in remotelog.
7096
7097 * mi/mi-main.c (mi_execute_command): Call target_log_command.
7098
ff97be06
L
70992010-02-03 H.J. Lu <hongjiu.lu@intel.com>
7100
7101 * remote.c (remote_state): Remove gdbarch.
7102 (init_remote_state): Don't set gdbarch.
7103 (remote_query_supported): Pass target_gdbarch instead of
7104 rs->gdbarch to gdbarch_qsupported.
7105
75cebea9
L
71062010-02-03 H.J. Lu <hongjiu.lu@intel.com>
7107
7108 * gdbarch.sh: Add qsupported.
7109
7110 * gdbarch.c: Regenerated.
7111 * gdbarch.h: Likewise.
7112
7113 * remote.c (remote_state): Add gdbarch.
7114 (init_remote_state): Set gdbarch.
7115 (remote_query_supported): Support gdbarch_qsupported.
7116
c1dec97b
DJ
71172010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
7118
7119 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
7120 __FreeBSD_kernel_version.
7121
ac8035ab
TG
71222010-02-03 Tristan Gingold <gingold@adacore.com>
7123
7124 * symfile.h (struct sym_fns): Add sym_relocate field.
7125 (default_symfile_relocate): New prototype.
7126 (symfile_relocate_debug_section): First argument is now an objfile.
7127 * symfile.c (default_symfile_relocate): Rename from
7128 symfile_relocate_debug_section, first argument is now an objfile.
7129 (symfile_relocate_debug_section): New function.
7130 * coffread.c (coff_sym_fns): Set sym_relocate field.
7131 * somread.c (som_sym_fns): Ditto.
7132 * mipsread.c (ecoff_sym_fns): Ditto.
7133 * machoread.c (macho_sym_fns): Ditto.
7134 * elfread.c (elf_sym_fns): Ditto.
7135 * dwarf2read.c (dwarf2_read_section): Ditto.
7136 * xcoffread.c (xcoff_sym_fns): Ditto.
7137 * dbxread.c (aout_sym_fns): Ditto.
7138 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
7139 (elfstab_build_psymtabs): Ditto.
7140
be52b756
L
71412010-02-03 H.J. Lu <hongjiu.lu@intel.com>
7142
7143 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
7144
9c3c02fd
TT
71452010-02-02 Tom Tromey <tromey@redhat.com>
7146
7147 * valops.c (value_cast_structs): Try downcasting using the RTTI
7148 type.
7149
f23f4c59
TT
71502010-02-02 Tom Tromey <tromey@redhat.com>
7151
7152 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
7153 (gnuv2_baseclass_offset): Now static.
7154 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
7155 * gnu-v2-abi.h: Remove.
7156
0cc2414c
TT
71572010-02-02 Tom Tromey <tromey@redhat.com>
7158
7159 * m2-typeprint.c (m2_record_fields): Don't use
7160 TYPE_DECLARED_TYPE.
7161 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
7162 (struct main_type) <flag_declared_class>: New field.
7163 (struct cplus_struct_type) <declared_type>: Remove.
7164 <ntemplate_args>: Move earlier.
7165 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
7166 (DECLARED_TYPE_TEMPLATE): Remove.
7167 (TYPE_DECLARED_TYPE): Remove.
7168 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
7169 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
7170 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
7171 TYPE_DECLARED_TYPE.
7172
edf3d5f3
TT
71732010-02-02 Tom Tromey <tromey@redhat.com>
7174
7175 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
7176 * valops.c (search_struct_field): Compute nbases after calling
7177 CHECK_TYPEDEF.
7178 (check_field): Call CHECK_TYPEDEF.
7179 * cp-valprint.c (cp_print_value): Pass correct address to
7180 baseclass_offset. Fix check for virtual base past the end of the
7181 object. Don't offset address passed to cp_print_value_fields or
7182 apply_val_pretty_printer.
7183 (cp_print_value_fields): Fix call to val_print.
7184 (cp_print_value_fields_rtti): New function.
7185 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
7186 * p-valprint.c (pascal_object_print_value_fields): Fix call to
7187 val_print.
7188 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
7189 offset to address.
7190 * language.h (struct language_defn) <la_val_print>: Document.
7191 * c-lang.h (cp_print_value_fields_rtti): Declare.
7192
e4b7f41c
JK
71932010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7194
7195 PR libc/11214:
7196 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
7197 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
7198 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
7199
7618e12b
DJ
72002010-02-01 Michael Matz <matz@suse.de>
7201 Daniel Jacobowitz <dan@codesourcery.com>
7202
e4b7f41c 7203 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
7204 functions use a frame pointer.
7205
b381ea14
JK
72062010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7207
7208 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
7209 by a conditional setting DYN_ADDR. Use DYN_ADDR.
7210 * config/djgpp/fnchange.lst: Add translations for
7211 symbol-without-target_section.exp and symbol-without-target_section.c.
7212
0e05dfcb
DJ
72132010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
7214
7215 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
7216 (remote_breakpoint_for_pc): Correct invalid_p check.
7217 * gdbarch.c: Regenerated.
7218
f9d67f43
DJ
72192010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
7220
7221 * arm-tdep.c (arm_find_mapping_symbol): New function, from
7222 arm_pc_is_thumb.
7223 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
7224 (extend_buffer_earlier): New function.
7225 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
7226 (arm_adjust_breakpoint_address): New function.
7227 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
7228
177321bd
DJ
72292010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
7230
7231 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
7232 (arm_linux_thumb2_le_breakpoint): New constants.
7233 (arm_linux_init_abi): Set thumb2_breakpoint and
7234 thumb2_breakpoint_size.
7235 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
7236 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
7237 Implement support for single stepping through IT blocks if
7238 a 32-bit Thumb breakpoint instruction is available.
7239 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
7240 is available, use it when needed.
7241 (arm_remote_breakpoint_from_pc): New function.
7242 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
7243 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
7244 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
7245
a1dcb23a
DJ
72462010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
7247
7248 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
7249 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
7250 * gdbarch.c, gdbarch.h: Regenerated.
7251 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
7252 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
7253 gdbarch_remote_breakpoint_from_pc.
7254
2b009048
DJ
72552010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7256
7257 * infrun.c (prepare_to_proceed): Handle other signals which might
7258 match a breakpoint.
7259 (handle_inferior_event): Move the check for unusual breakpoint
7260 signals earlier.
7261
e4e2711a
JB
72622010-01-29 Paul Hilfinger <hilfinger@adacore.com>
7263
7264 amd64 - function returning record with field straddling 2 registers.
7265 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
7266 a record of length <= 16 in which a field straddles the two
7267 eightbytes.
7268
cba6fab5
JB
72692010-01-29 Joel Brobecker <brobecker@adacore.com>
7270
7271 Implement return values on amd64-windows.
7272 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
7273 (amd64_windows_return_value): New function.
7274 (amd64_windows_init_abi): Call set_gdbarch_return_value with
7275 amd64_windows_return_value.
7276
3af6ddfe
JB
72772010-01-29 Joel Brobecker <brobecker@adacore.com>
7278
7279 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 7280 parameter registers.
3af6ddfe
JB
7281 * i386-tdep.h (struct gdbarch_tdep): Add new field
7282 integer_param_regs_saved_in_caller_frame.
7283 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
7284 tdep->integer_param_regs_saved_in_caller_frame to 1.
7285 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
7286 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
7287
80d19a06
JB
72882010-01-29 Joel Brobecker <brobecker@adacore.com>
7289
7290 amd64-windows: memory args passed by pointer during function calls.
7291 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
7292 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
7293 where tdep->memory_args_by_pointer is non-zero.
7294 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
7295 tdep->memory_args_by_pointer to 1.
7296
ba581dc1
JB
72972010-01-29 Joel Brobecker <brobecker@adacore.com>
7298
4966b6c2 7299 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
7300 * i386-tdep.h (enum amd64_reg_class): New, moved here from
7301 amd64-tdep.c.
7302 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
7303 call_dummy_integer_regs, and classify.
7304 * amd64-tdep.h (amd64_classify): Add declaration.
7305 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
7306 (amd64_reg_class): Delete, moved to i386-tdep.h.
7307 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
7308 Replace call to amd64_classify by call to tdep->classify.
7309 (amd64_push_arguments): Get the list of registers to use for
7310 passing integer parameters from the gdbarch tdep structure,
7311 rather than using a hardcoded one. Replace calls to amd64_classify
7312 by calls to tdep->classify.
7313 (amd64_push_dummy_call): Get the register number used for
7314 the "hidden" argument from tdep->call_dummy_integer_regs.
7315 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
7316 and tdep->call_dummy_integer_regs. Set tdep->classify.
7317 * amd64-windows-tdep.c: Add include of gdbtypes.h.
7318 (amd64_windows_dummy_call_integer_regs): New static global.
7319 (amd64_windows_classify): New function.
7320 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
7321 tdep->call_dummy_integer_regs and tdep->classify.
7322
d37346f0
DJ
73232010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
7324
7325 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
7326 for the new regcache. All callers updated.
7327 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
7328 (get_thread_arch_regcache): Do not set aspace here.
7329 * regcache.h (regcache_xmalloc): Update declaration.
7330
7331 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
7332 regcache_xmalloc updated.
7333
7434dadd
JB
73342010-01-28 Joel Brobecker <brobecker@adacore.com>
7335
7336 Another -Wunused-function error in procfs.c (sparc-solaris)
7337 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
7338 Only define if SYS_syssgi is defined.
7339 (remove_dbx_link_breakpoint): Delete declaration. Move up.
7340 (dbx_link_addr, insert_dbx_link_bpt_in_file)
7341 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
7342 is itself defined.
7343
16d905e2
CF
73442010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
7345
7346 * windows-nat.c (windows_initialization_done): New variable.
7347 (get_windows_debug_event): Issue error when process dies before
7348 completely initializing.
7349 (do_initial_windows_stuff): Set flag to indicate when we are done with
7350 the initial steps of attaching to the child.
7351
cd55e50f
JK
73522010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7353
7354 * symtab.h (struct symbol <symtab>): New comment on NULL values.
7355
99cc78aa
DE
73562010-01-27 Doug Evans <dje@google.com>
7357
4c7dcb84
DE
7358 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
7359
99cc78aa
DE
7360 * breakpoint.c (bpstat_stop_status): Delete useless code.
7361
52334bf5
JK
73622010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7363
7364 * printcmd.c (display_uses_solib_p): Remove variable section. Access
7365 objfile via SYMBOL_SYMTAB.
7366
708ead4e
TT
73672010-01-26 Tom Tromey <tromey@redhat.com>
7368
7369 PR exp/7643:
7370 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
7371 coerce_array on result.
7372
b14e635e
SW
73732010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
7374
7375 * cp-namespace.c (cp_lookup_symbol_namespace): Added
7376 search_parent argument.
7377 (cp_add_using): Initialize 'searched' field.
7378 (reset_directive_searched): New function.
7379 * cp-support.h: Add 'searched' field to using_direct struct.
7380 (cp_lookup_symbol_imports): Ditto.
7381 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
7382 Perform recursive search.
7383 Implement non parent search.
7384 * valops.c (value_maybe_namespace_elt): Updated.
7385
8540c487
SW
73862010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
7387
7388 PR gdb/10929:
7389 * dwarf2read.c (read_lexical_block_scope): Create blocks for
7390 scopes which contain using directives even if they contain no
7391 declarations.
7392 * symtab.c (lookup_symbol_aux): Pass lowest level block to
7393 la_lookup_symbol_nonlocal.
7394 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
7395 cp_lookup_symbol_namespace.
7396 (cp_lookup_symbol_namespace): Perform an import lookup at every
7397 block level.
7398 (cp_lookup_symbol_imports): New function.
7399 (cp_lookup_symbol_in_namespace): New function.
7400
421d5d99
TT
74012010-01-25 Tom Tromey <tromey@redhat.com>
7402
7403 PR gdb/11049:
7404 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
7405 result.
7406
6bcc772d
RO
74072010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7408
7409 * configure.ac: Only use host_os part when disabling TUI on osf.
7410 Use test to check variables, prefix strings with x.
7411 * configure: Regenerate.
7412
7413 * solib-osf.c (osf_current_sos): Initialize tail.
7414
1c1238a5
TG
74152010-01-25 gingold <gingold@adacore.com>
7416
c8d5aac9
L
7417 * windows-nat.c (windows_continue): Use %x to print thread id.
7418 (get_windows_debug_event): Ditto.
1c1238a5 7419
0b92b5bb
TT
74202010-01-22 Tom Tromey <tromey@redhat.com>
7421
7422 PR symtab/11199:
7423 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
7424 type and arguments. Use smash_to_methodptr_type.
7425 (read_structure_type): Call quirk_gcc_member_function_pointer
7426 later.
7427 * gdbtypes.h (smash_to_methodptr_type): Declare.
7428 * gdbtypes.c (smash_to_methodptr_type): New function.
7429 (lookup_methodptr_type): Use it.
7430
0d5392b8
TT
74312010-01-21 Tom Tromey <tromey@redhat.com>
7432
7433 PR symtab/11198:
7434 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
7435 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
7436 * glibc-tdep.c (find_minsym_and_objfile): Remove.
7437 (glibc_skip_solib_resolver): Use
7438 lookup_minimal_symbol_and_objfile.
7439
e6d088ec
KT
74402010-01-21 Kai Tietz <kai.tietz@onevision.com>
7441
7442 * inflow.c (check_syscall): Guard by #if clause for GO32 and
7443 WIN32 targets.
7444
b966cb8a
TT
74452010-01-20 Tom Tromey <tromey@redhat.com>
7446
7447 PR backtrace/10770:
7448 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
7449 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
7450 * dwarf2expr.c (new_dwarf_expr_context): Allocate
7451 dwarf_stack_values, not CORE_ADDRs.
7452 (execute_stack_op): Change DW_OP_div and comparison operators to
7453 use signed operands.
7454
3f81c18a
VP
74552010-01-20 Vladimir Prus <vladimir@codesourcery.com>
7456
7457 Per-inferior args and tty and environment.
7458
7459 * infcmd.c (inferior_args): Rename to ...
7460 (inferior_args_scratch): ... this.
7461 (inferior_io_terminal): Rename to ...
7462 (inferior_io_terminal_scratch): ... this.
7463 (inferior_argc, inferior_argv): Remove.
7464 (set_inferior_io_terminal, get_inferior_io_terminal): Store
7465 inside current_inferior().
7466 (set_inferior_tty_command, show_inferior_tty_command): New.
7467 (get_inferior_args, set_inferior_args): Store inside
7468 current_inferior().
7469 (notice_args_set): Likewise and rename to...
7470 (set_args_command): ... this.
7471 (set_inferior_args_vector): Likewise.
7472 (notice_args_read): Rename to...
7473 (show_args_command): ...new.
7474 (tty_command): Remove.
7475 (run_command_1): Don't free old args, as they are freed by
7476 set_inferior_arg now.
7477 (run_no_args_command): Likewise.
7478 (inferior_environ): Remove.
7479 (run_command_1): Use environment of the current inferior.
7480 (environment_info, set_environment_command)
7481 (unset_environment_command, path_info, path_command): Likewise.
7482 (_initialize_infcmd): Adjust for function and variable renames.
7483 Do not init inferior_environ.
7484 * inferior.h (set_inferior_arg): Adjust prototype.
7485 (struct inferior): New fields args, argc, argv, terminal, environment.
7486 (inferior_environ): Remove declaration.
7487 * inferior.c (free_inferior): Free new fields.
7488 (add_inferior_silent): Initialize 'environment' field.
7489 * main.c (captured_main): Set arguments only after the initial
7490 inferior has been created. Set set_inferior_io_terminal,
7491 not tty_command.
7492 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
7493 inferior.
7494 (_initialize_mi_cmd_env): Adjust for disappearance of global
7495 inferior_environ.
7496 * solib.c (solib_find): Use environment of the current inferior.
7497
d8b65138
JK
74982010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7499
7500 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
7501 HAVE_PYTHON.
7502 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
7503
692465f1
JB
75042010-01-20 Joel Brobecker <brobecker@adacore.com>
7505
7506 Get rid of ada-lang.c:function_name_from_pc.
7507 * ada-lang.c: Add "stack.h" #include.
7508 (function_name_from_pc): Delete.
7509 (is_known_support_routine): Replace call to function_name_from_pc
7510 by call to find_frame_funname.
7511 (ada_unhandled_exception_name_addr_from_raise): Likewise.
7512
95519e0e
TT
75132010-01-19 Tom Tromey <tromey@redhat.com>
7514
7515 PR c++/11026:
7516 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
7517 objfile obstack.
7518
95c11dc7
TT
75192010-01-19 Tom Tromey <tromey@redhat.com>
7520
7521 * top.c (stop_sig, float_handler, do_nothing): Remove.
7522
a0f49112
JK
75232010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7524
7525 * breakpoint.c (watchpoint_check): Check the call
7526 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
7527 Extend the comment.
8d95cc3b 7528 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
7529 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
7530 watchpoint-cond-gone-stripped.c.
7531
ceeb3d5a
TT
75322010-01-19 Tom Tromey <tromey@redhat.com>
7533
7534 PR c++/8000:
7535 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
7536 into parent scope, and enumerator into grandparent scope.
7537
2b71fc8e
JB
75382010-01-19 Joel Brobecker <brobecker@adacore.com>
7539
7540 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
7541
03564ed9
JB
75422010-01-19 Joel Brobecker <brobecker@adacore.com>
7543
7544 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
7545 i[34567]86-*-solaris2.1[0-9]*.
7546 * configure.tgt: Likewise.
7547
fb2e7cb4
JB
75482010-01-19 Joel Brobecker <brobecker@adacore.com>
7549
7550 * NEWS: Document the source command enhancement allowing it
7551 to load Python scripts. Document the "set/show script-extension"
7552 commands.
7553
1cb5e2a4
JB
75542010-01-19 Joel Brobecker <brobecker@adacore.com>
7555
7556 Add -Wunused-function to compile flags.
7557 * configure.ac: Add -Wunused-function to build_warnings.
7558 * configure: Regenerate.
7559
0ec6cd0c
JB
75602010-01-19 Joel Brobecker <brobecker@adacore.com>
7561
7562 "delete" ada-lex.c:input function, not used.
7563 * ada-lex.l: #define YY_NO_INPUT.
7564
b74845da
JB
75652010-01-19 Joel Brobecker <brobecker@adacore.com>
7566
7567 Delete free_named_symtabs and associated cleanup.
7568 * symfile.h (free_named_symtabs): Delete declaration.
7569 * symfile.c: Remove some commented out code (clear_symtab_users_once).
7570 (cashier_psymtab): Comment function out.
7571 Delete declaration.
7572 (free_named_symtabs): Delete.
7573 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
7574 * dbxread.c (end_psymtab): Likewise.
7575 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
7576 * exec.c (exec_close_1): Ditto.
7577 * xcoffread.c (xcoff_end_psymtab): Likewise.
7578
65c06092
JB
75792010-01-19 Joel Brobecker <brobecker@adacore.com>
7580
7581 * stack.c (print_block_frame_labels): Comment function out.
7582
d5cd6034
JB
75832010-01-19 Joel Brobecker <brobecker@adacore.com>
7584
7585 Delete unused or undefined functions.
7586 * breakpoint.c (ep_parse_optional_filename): Delete.
7587 * dcache.c (dcache_write_line): Remove declaration.
7588 * infrun.c (build_infrun): Remove declaration.
7589 * tracepoint.c (tracepoint_save_command): Remove declaration.
7590 * linux-nat.c (init_lwp_list): Delete. No longer used.
7591 * event-loop.c (check_async_signal_handlers): Delete declaration.
7592 * infrun.c (init_execution_control_state): Delete.
7593 (proceed): Update comment to avoid mentioning
7594 init_execution_control_state.
7595 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
7596 * ada-lang.c (ada_to_static_fixed_value): Delete.
7597 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
7598 * cp-namespace.c (cp_copy_usings): Delete.
7599 * xml-syscall.c (xml_number_of_syscalls): Delete.
7600 * progspace.c (find_program_space_by_num): Delete.
7601 * inflow.c (handle_sigio): Delete declaration.
7602 * hppa-tdep.c (hppa_alignof): Delete.
7603 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
7604 (mipsnbsd_core_osabi_sniffer): Delete.
7605
4e8f195d
TT
76062010-01-18 Tom Tromey <tromey@redhat.com>
7607
7608 PR c++/9680:
7609 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
7610 (CONST_CAST): New tokens.
7611 (exp): Add new productions.
7612 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
7613 reinterpret_cast.
7614 (is_cast_operator): New function.
7615 (yylex): Handle cast operators specially.
7616 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
7617 UNOP_REINTERPRET_CAST>: New cases.
7618 * expprint.c (print_subexp_standard): Likewise.
7619 (op_name_standard): Likewise.
7620 (dump_subexp_body_standard): Likewise.
7621 * parse.c (operator_length_standard): Likewise.
7622 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
7623 UNOP_REINTERPRET_CAST.
7624 * gdbtypes.c (class_types_same_p): New function.
7625 (is_ancestor): Use it.
7626 (is_public_ancestor): New function.
7627 (is_unique_ancestor_worker): Likewise.
7628 (is_unique_ancestor): Likewise.
7629 * gdbtypes.h (class_types_same_p, is_public_ancestor)
7630 (is_unique_ancestor): Declare.
7631 * valops.c (value_reinterpret_cast): New function.
7632 (dynamic_cast_check_1): Likewise.
7633 (dynamic_cast_check_2): Likewise.
7634 (value_dynamic_cast): Likewise.
7635 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
7636
d9c57d9f
JB
76372010-01-18 Joel Brobecker <brobecker@adacore.com>
7638
7639 Fix build failure when building without Python support.
7640 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
7641 is not defined.
7642
f80d3ff2
JB
76432010-01-18 Joel Brobecker <brobecker@adacore.com>
7644
7645 Use XVS field type instead of doing a parallel lookup.
7646 * ada-lang.c (ada_get_base_type): Follow the XVS field type
7647 if it is a reference type instead of doing a type lookup using
7648 the XVS field name.
7649
5bf03f13
JB
76502010-01-18 Joel Brobecker <brobecker@adacore.com>
7651
7652 Trust PAD types instead of using PAD___XVS.
7653 * ada-lang.c (trust_pad_over_xvs): New static variable.
7654 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
7655 parallel XVS type, follow the XVS type instead of the PAD type.
7656 (unwrap_value): Make sure that there is no parallel XVE type
7657 before returning the value as is.
7658 (set_ada_list, show_ada_list): New static variables.
7659 (set_ada_command, show_ada_command): New functions.
7660 (_initialize_ada_language): Add new "set/show ada" prefix commands.
7661 Add new "set/show ada trust-PAD-over-XVS" setting.
7662
973817a3
JB
76632010-01-18 Tom Tromey <tromey@redhat.com>
7664 Thiago Jung Bauermann <bauerman@br.ibm.com>
7665
7666 Allow "source" to load python scripts.
7667 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
7668 * python/python.c (source_python_script): New function.
7669 * python/python.h (source_python_script): Add declaration.
7670 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
7671 (script_ext_off, script_ext_soft, script_ext_strict)
7672 (script_ext_enums, script_ext_mode): New static constants.
7673 (show_script_ext_mode, find_and_open_script): New functions.
7674 (source_script): Enhance to handle Python scripts.
7675 (init_cli_cmds): Add set/show script-extension commands.
7676
98e03262
SS
76772010-01-16 Stan Shebs <stan@codesourcery.com>
7678
7679 * tracepoint.h (struct trace_status): Use unsigned long long
7680 instead of size_t.
7681 * tracepoint.c (trace_status_command): Fix printf directive.
7682 (trace_save_command): Check fwrite returns, fix printf directive.
7683 (trace_filename): New global.
7684 (tfile_open): Set it, check read returns.
7685 (tfile_close): Free trace_filename.
7686 (tfile_get_traceframe_address): Check read returns.
7687 (tfile_trace_find): Ditto.
7688 (tfile_fetch_registers): Ditto.
7689 (tfile_xfer_partial): Ditto.
7690 (tfile_get_trace_state_variable_value): Ditto.
7691
00bf0b85
SS
76922010-01-15 Stan Shebs <stan@codesourcery.com>
7693
7694 Add trace file support.
7695 * tracepoint.h (enum trace_stop_reason): New enum.
7696 (struct trace_status): New struct.
7697 (parse_trace_status): Declare.
7698 (struct uploaded_tp): Move here from remote.c,
7699 add fields for actions.
7700 (struct uploaded_tsv): New struct.
7701 * tracepoint.c (tfile_ops): New target vector.
7702 (trace_fd): New global.
7703 (tfile_open): New function.
7704 (tfile_close): New function.
7705 (tfile_files_info): New function.
7706 (tfile_get_trace_status): New function.
7707 (tfile_get_traceframe_address): New function.
7708 (tfile_trace_find): New function.
7709 (tfile_fetch_registers): New function.
7710 (tfile_xfer_partial): New function.
7711 (tfile_get_trace_state_variable_value): New function.
7712 (init_tfile_ops): New function.
7713 (_initialize_tracepoint): Call it, add tfile target.
7714 (trace_status): New global.
7715 (current_trace_status): New function.
7716 (trace_running_p): Remove, change all users to get from
7717 current_trace_status()->running.
7718 (get_trace_status): Remove.
7719 (trace_status_command): Call target_get_trace_status directly,
7720 report more detail including tracing stop reasons.
7721 (trace_find_command): Always allow tfind on a file.
7722 (trace_find_pc_command): Ditto.
7723 (trace_find_tracepoint_command): Ditto.
7724 (trace_find_line_command): Ditto.
7725 (trace_find_range_command): Ditto.
7726 (trace_find_outside_command): Ditto.
7727 (trace_frames_offset, cur_offset): Declare as off_t.
7728 (trace_regblock_size): Rename from reg_size, update users.
7729 (parse_trace_status): New function.
7730 (tfile_interp_line): New function.
7731 (disconnect_or_stop_tracing): Ensure current trace
7732 status before asking what to do.
7733 (stop_reason_names): New global.
7734 (trace_save_command): New command.
7735 (get_uploaded_tp): Move here from remote.c.
7736 (find_matching_tracepoint): Ditto.
7737 (merge_uploaded_tracepoints): New function.
7738 (parse_trace_status): Use stop_reason_names.
7739 (_initialize_tracepoint): Define tsave command.
7740 * target.h (target_ops): New fields to_save_trace_data,
7741 to_upload_tracepoints, to_upload_trace_state_variables,
7742 to_get_raw_trace_data, change to_get_trace_status
7743 to take a pointer to a status struct.
7744 (target_save_trace_data): New macro.
7745 (target_upload_tracepoints): New macro.
7746 (target_upload_trace_state_variables): New macro.
7747 (target_get_raw_trace_data): New macro.
7748 * target.c (update_current_target): Add new methods, change
7749 signature of to_get_trace_status.
7750 * remote.c (hex2bin): Make globally visible.
7751 (bin2hex): Ditto.
7752 (remote_download_trace_state_variable): Download name also.
7753 (remote_get_trace_status): Update parameter, use
7754 parse_trace_status.
7755 (remote_save_trace_data): New function.
7756 (remote_upload_tracepoints): New function.
7757 (remote_upload_trace_state_variables): New function.
7758 (remote_get_raw_trace_data): New function.
7759 (remote_start_remote): Use them.
7760 (_initialize_remote_ops): Add operations.
7761 * ax-gdb.c: Include breakpoint.h.
7762 * breakpoint.c (create_tracepoint_from_upload): Use
7763 break_command_really, return tracepoint, warn about unimplemented
7764 parts.
7765 * NEWS: Mention trace file addition.
7766
d904de5b
JK
77672010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7768
7769 Fix compilation warning on gcc-3.4.
7770 * exec.c (print_section_info): Move the `displacement' variable
7771 initialization to its declaration.
7772
64aa9731
JK
77732010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7774
7775 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
7776 comparison.
7777
ca1f5def 77782010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
7779
7780 "info tasks" broken by typedefs in ATCB type definitions.
7781 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
7782 ada_check_typedef before retrieving the length of the type for
7783 regular fields.
7784
12ab9e09
JB
77852010-01-15 Joel Brobecker <brobecker@adacore.com>
7786
7787 Do not use name-based lookup for unconstrained packed arrays.
7788 * ada-lang.c (find_parallel_type_by_descriptive_type):
7789 Limit the fallback to name-based lookups to the case where
7790 the type is a constrained packed array.
7791
c389c3dc
JB
77922010-01-15 Joel Brobecker <brobecker@adacore.com>
7793
7794 Enhance gdb-gdb.py to handle main_type.type_specific.
7795 * gdb-gdb.py: Print the type-specific part of struct main_type.
7796
7991dee7
JK
77972010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7798
7799 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
7800 * configure: Regenerate.
7801 * config.in: Regenerate.
7802 * utils.c: Include sys/resource.h.
7803 (dump_core, can_dump_core): New.
7804 (internal_vproblem): Update the comment. Check can_dump_core while
7805 setting dump_core_p. Replace two abort calls by dump_core calls.
7806
93c26624
JK
78072010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7808 Eli Zaretskii <eliz@gnu.org>
7809
7810 * NEWS: Document the PIE support.
7811
55235ad7
JK
78122010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7813
7814 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
7815 (check_is_pie_binary, _initialize_linux_tdep): Remove.
7816
41752192
JK
78172010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7818
7819 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
7820 Replace exec_entry_point call by bfd_get_start_address.
7821
9f2982ff
JK
78222010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7823
7824 Support Valgrind attachments broken by the PIE support.
7825 * auxv.c: Include gdbcore.h.
7826 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
7827 parameters ops, object and annex. Remove their assertions.
7828 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
7829 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
7830 (memory_xfer_auxv): ... here.
7831 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
7832 memory_xfer_auxv.
7833 * procfs.c (procfs_xfer_partial): Likewise.
7834 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
7835 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
7836 (svr4_solib_create_inferior_hook): Conditionalize the
7837 svr4_relocate_main_executable call.
7838
61f0d762
JK
78392010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7840
7841 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
7842 target_section. Find SECT in current_target_sections, gdb_assert it.
7843 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
7844 New variable abfd.
7845 * symtab.c (lookup_objfile_from_block): Return the binary file instead
7846 of separate debug info file.
7847
51bee8e9
JK
78482010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7849
7850 Support PIEs with no symfile_objfile.
7851 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
7852 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
7853
b8040f19
JK
78542010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7855
7856 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
7857 code part to ...
7858 (svr4_static_exec_displacement): ... a new function.
7859 (svr4_exec_displacement): New function.
7860 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
7861 new_offsets using alloca now. Remove variable old_chain and changed.
7862 Call objfile_relocate unconditionally now.
7863
eb90ce83
DE
78642010-01-14 Doug Evans <dje@google.com>
7865
7866 * gdbtypes.c (arch_flags_type): Fix comment.
7867 * gdbtypes.h (arch_composite_type): Fix comment.
7868
bdfed3bc
TG
78692009-01-14 Tristan Gingold <gingold@adacore.com>
7870
7871 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
7872 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
7873 to symbol_file_add_from_bfd. Add OSO as separate objfile.
7874 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
7875 macho_add_oso_symfile.
7876 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
7877
1596ad23
JB
78782010-01-14 Joel Brobecker <brobecker@adacore.com>
7879
7880 Tru64: Dead threads are never deleted.
7881 * dec-thread.c (dec_thread_ptid_is_alive): New function.
7882 (dec_thread_count_gdb_threads): Fix counter increment.
7883 (dec_thread_add_gdb_thread): Fix *listp increment.
7884 (resync_thread_list): Fix bug in deletion of dead threads that
7885 caused all threads to be deleted, instead of just the dead ones.
7886
be759fcf
PM
78872010-01-13 Phil Muldoon <pmuldoon@redhat.com>
7888
7889 PR python/10705
7890
7891 * python/python-internal.h: Add lazy_string_object_type
7892 definition.
7893 (create_lazy_string_object, gdbpy_initialize_lazy_string)
7894 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
7895 * python/py-value.c (valpy_lazy_string): New function.
7896 (convert_value_from_python): Add lazy string conversion.
7897 * python/py-prettyprint.c (pretty_print_one_value): Check if
7898 return is also a lazy string.
7899 (print_string_repr): Add lazy string printing branch.
7900 (print_children): Likewise.
7901 * python/py-lazy-string.c: New file. Implement lazy strings.
7902 * python/python.c (_initialize_python): Call
7903 gdbpy_initialize_lazy_string.
7904 * varobj.c (value_get_print_value): Add lazy string printing
7905 branch. Account for encoding.
7906 * c-lang.c (c_printstr): Account for new encoding argument. If
7907 encoding is NULL, find encoding suited for type, otherwise use
7908 user encoding.
7909 * language.h (language_defn): Add encoding argument.
7910 (LA_PRINT_STRING): Likewise.
7911 * language.c (unk_lang_printstr): Update to reflect new encoding
7912 argument to language_defn.
7913 * ada-lang.h (ada_printstr): Likewise.
7914 * c-lang.h (c_printstr): Likewise.
7915 * p-lang.h (pascal_printstr);
7916 * f-lang.c (f_printstr): Likewise.
7917 * m2-lang.c (m2_printstr): Likewise.
7918 * objc-lang.c (objc_printstr): Likewise.
7919 * p-lang.c (pascal_printstr): Likewise.
7920 * scm-lang.c (scm_printstr): Likewise.
7921 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
7922 encoding argument.
7923 * ada-valprint.c (ada_printstr): Likewise.
7924 * f-valprint.c (f_val_print): Likewise
7925 * m2-valprint.c (m2_val_print): Likewise.
7926 * p-valprint.c (pascal_val_print): Likewise.
7927 * expprint.c (print_subexp_standard): Likewise.
7928 * valprint.c (val_print_string): Likewise.
7929 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
7930 (SUBDIR_PYTHON_SRCS): Likewise.
7931 (py-lazy-string.o): New rule.
7932
1fe72117 79332010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
7934
7935 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
7936 uninitialized" warning from gcc on local `tree'.
7937
dc146f7c
VP
79382010-01-13 Vladimir Prus <vladimir@codesourcery.com>
7939
7940 Implement core awareness.
7941
7942 * bcache.c (compare_ints): Remove
7943 (print_percentage): Use compare_positive_ints.
7944 * defs.h (compare_positive_ints): Declare.
7945 * linux-nat.h (struct lin_lwp): New field core.
7946 (linux_nat_core_of_thread_1): Declare.
7947 * linux-nat.c (add_lwp): Init the 'core' field.
7948 (linux_nat_wait_1): Record the core.
7949 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
7950 (linux_nat_add_target): Register the above.
7951 * linux-thread-db.c (update_thread_core): New.
7952 (thread_db_find_new_threads): Update core information for
7953 every thread.
7954 * remote.c (struct private_thread_info): New.
7955 (free_private_thread_info, demand_private_info): New.
7956 (PACKET_qXfer_threads, use_osdata_threads): New.
7957 (struct thread_item, threads_parsing_context
7958 (start_thread, end_thread, thread_attributes)
7959 (thread_children, threads_children, threads_elements): New.
7960 (remote_threads_info): Try qXfer:threads before anything
7961 else.
7962 (remote_protocol_packets): Register qXfer:threads.
7963 (remote_open_1): Init use_osdata_threads.
7964 (struct stop_reply): New field 'core'.
7965 (remote_parse_stop_reply): Parse core number.
7966 (process_stop_reply): Record core number.
7967 (remote_xfer_partial): Handle qXfer:threads.
7968 (remote_core_of_thread): New.
7969 (init_remote_ops): Register remote_core_of_thread.
7970 (_initialize_remote): Register qXfer:read.
7971 * target.c (target_core_of_thread): New
7972 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
7973 (struct target_ops): New field to_core_of_threads.
7974 (target_core_of_thread): Declare.
7975 * gdbthread.h (struct thread_info): New field private_dtor.
7976 * thread.c (print_thread_info): Report the core.
7977 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
7978 * utils.c (compare_positive_ints): New.
7979 * features/threads.dtd: New.
7980 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
7981 * mi/mi-main.c (struct collect_cores_data, collect_cores)
7982 (do_nothing, free_vector_of_osdata_items)
7983 (splay_tree_int_comparator, free_splay_tree): New.
7984 (print_one_inferior_data): Implemented printing of selected
7985 inferiors. Collect and print cores.
7986 (output_cores): New.
7987 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
7988 thread groups together with --available.
7989
d30c5336
JK
79902010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7991
7992 * configure: Regenerate (for _STRUCTURED_PROC).
7993
02893727
JB
79942010-01-12 Joel Brobecker <brobecker@adacore.com>
7995
7996 Delete dead function.
7997 * ada-lang.c (extract_string): Delete. No longer used.
7998
46ed2d6f
JB
79992010-01-12 Joel Brobecker <brobecker@adacore.com>
8000
8001 Fix -Wunused warning in dec-thread.c.
8002 * dec-thread.c (dec_thread_count_gdb_threads)
8003 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
8004
606b8d1a
JB
80052010-01-12 Joel Brobecker <brobecker@adacore.com>
8006
8007 * ada-valprint.c (ada_print_floating): Remove trailing space.
8008
b4ba55a1
JB
80092010-01-12 Joel Brobecker <brobecker@adacore.com>
8010
8011 Add support for DW_AT_GNAT_descriptive_type.
8012 * gdbtypes.h (enum type_specific_kind): New enum.
8013 (struct main_type) [type_specific_field]: New component.
8014 [type_specific]: Add new component "gnat_stuff".
8015 (struct gnat_aux_type): New type.
8016 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
8017 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
8018 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
8019 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
8020 (TYPE_SPECIFIC_FIELD): New macros.
8021 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
8022 type does not hold any cplus-specific data.
8023 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
8024 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
8025 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
8026 cplus-specific data.
8027 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
8028 Set new component TYPE_SPECIFIC_FIELD (type).
8029 (gnat_aux_default): New constant.
8030 (allocate_gnat_aux_type): New function.
8031 (init_type): Add initialization the type-specific stuff for
8032 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
8033 (print_gnat_stuff): New function.
8034 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
8035 specific data. Adjust code that prints the contents of the
8036 type-specific union using the TYPE_SPECIFIC_FIELD value.
8037 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
8038 the type cplus stuff for Ada types.
8039 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
8040 Error out if these routines are called with an Ada type.
8041 (read_structure_type, read_array_type, read_subrange_type):
8042 Add call to set_descriptive_type.
8043 (set_die_type): Initialize the gnat-specific data if necessary.
8044 (need_gnat_info, die_descriptive_type, set_descriptive_type):
8045 New functions.
8046 * ada-lang.c (decode_constrained_packed_array_type): Use
8047 decode_constrained_packed_array_type instead of doing a standard
8048 lookup to locate a parallel type.
8049 (find_parallel_type_by_descriptive_type): New function.
8050 (ada_find_parallel_type_with_name): New function.
8051 (ada_find_parallel_type): Reimplement using
8052 ada_find_parallel_type_with_name.
8053 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
8054 to check if type has a cplus stuff.
8055 * linespec.c (total_number_of_methods): Likewise.
8056 * mdebugread.c (new_type): Likewise.
8057
b0f02ee9
JK
80582010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8059
8060 * NEWS: Document the 0b binary number prefix parsing.
8061
b260e109
JK
80622010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8063
8064 * objfiles.c (objfile_relocate1): Change the return type to int.
8065 Describe the new return value. Return non-zero if data changed.
8066 (objfile_relocate): New variable changed. Set it. Call
8067 breakpoint_re_set depending on CHANGED.
8068
b5cfddf5
JK
80692010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8070
8071 Implement binary numbers parsing.
8072 * c-exp.y (parse_number): New case 'b' and 'B'.
8073
e0ae4240
JK
80742010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8075 Tristan Gingold <gingold@adacore.com>
8076
8077 * solib.c (info_sharedlibrary_command): Replace
8078 objfile_has_partial_symbols and objfile_has_full_symbols calls by
8079 objfile_has_symbols.
8080
6e0e5977
JB
80812010-01-10 Joel Brobecker <brobecker@adacore.com>
8082
8083 * NEWS: Document the improvements made to the mips-irix port.
8084
7348c5e1
JB
80852010-01-09 Joel Brobecker <brobecker@adacore.com>
8086
8087 Fix the documentation of valprint.c:value_print.
8088 * valprint.c (value_print): Update the function description to
8089 mention that the syntax of the output follows the current_language,
8090 not necessarily C.
8091
567995e1
JK
80922010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8093
8094 Fix displacement of separate debug info files.
8095 * objfiles.c (objfile_relocate): Rename to ...
8096 (objfile_relocate1): ... here and make it static. Extend the comment.
8097 (objfile_relocate): New function.
8098 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
8099 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
8100 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
8101 allocated using alloca.
8102 * symfile.c (copy_section_addr_info): Remove.
8103 (build_section_addr_info_from_objfile): Make it global. New variables
8104 addr_bit and mask, use them.
8105 * symfile.h (build_section_addr_info_from_objfile): New prototype.
8106 (copy_section_addr_info): Remove.
8107
6d8eadbd
JB
81082010-01-09 Joel Brobecker <brobecker@adacore.com>
8109
8110 Signal unwinder for mips-irix N32.
8111 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
8112 tramp-frame.h.
8113 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
8114 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
8115 (SIGCONTEXT_LO_OFF): New macros.
8116 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
8117 (mips_irix_n32_tramp_frame): New static constant.
8118 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
8119
27087a3d
JB
81202010-01-09 Joel Brobecker <brobecker@adacore.com>
8121
8122 Breakpoint in shared library does not work on mips-irix.
8123 * procfs.c: #include "observer.h".
8124 (procfs_inferior_created): New function, moving here the code
8125 which unsets the syssgi syscall-exit notifications.
8126 (procfs_create_inferior): Remove the code which unsets the syssgi
8127 syscall-exit notifications. It is too early to do this here.
8128 (_initialize_procfs): Attach the procfs_inferior_created observer.
8129
f08877ba
JB
81302010-01-09 Joel Brobecker <brobecker@adacore.com>
8131
8132 Wrong return convention for arrays (mips-irix).
8133 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
8134 128 bits or smaller are returned the same way as structs
8135 and unions of the the same size.
8136
e4b97d48
JB
81372010-01-09 Joel Brobecker <brobecker@adacore.com>
8138
8139 Cannot set the PC on mips-irix.
8140 * irix5-nat.c (fill_gregset): Check regno against the raw PC
8141 register number, no the cooked one.
8142
11377e68
JB
81432010-01-09 Joel Brobecker <brobecker@adacore.com>
8144
8145 Error while loading core file on mips-irix.
8146 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
8147 if debugging from a core file.
8148
b2391021
JB
81492010-01-09 Joel Brobecker <brobecker@adacore.com>
8150
8151 GDB hangs when attaching to process on mips-irix.
8152 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
8153 attaching to a process.
8154
f2ec0ecf
JB
81552010-01-09 Joel Brobecker <brobecker@adacore.com>
8156
8157 Use the correct breakpoint instruction on mips-irix.
8158 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
8159 containing the correct breakpoint instruction to use on mips-irix.
8160 Use it when the osabi is GDB_OSABI_IRIX.
8161
3c95f01c
JB
81622010-01-09 Joel Brobecker <brobecker@adacore.com>
8163
8164 -Wunused warning in procfs.c (mips-irix only).
8165 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
8166 throughout instead of using praddset and prdelset respectively.
8167
4b7703ad
JB
81682010-01-09 Joel Brobecker <brobecker@adacore.com>
8169
8170 GDB crash while stepping into function.
8171 * infrun.c (handle_inferior_event): Refetch the current frame
8172 after handling what.main_action, in case that pointer became
8173 dangling.
8174
12c89474
JB
81752010-01-09 Joel Brobecker <brobecker@adacore.com>
8176
8177 Fix build failure of solaris-hosted cross debuggers.
8178 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
8179
1a3fd262 81802010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
8181
8182 Fix build failure on sparc-solaris.
8183 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
8184
75242ef4
JK
81852010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8186
8187 Move some symfile code into subroutines.
8188 * symfile.h (relative_addr_info_to_section_offsets)
8189 (addr_info_make_relative): New prototypes.
8190 * symfile.c (default_symfile_offsets): Move a part to ...
8191 (relative_addr_info_to_section_offsets): ... this new function.
8192 (default_symfile_offsets): Call it.
8193 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
8194 this part to ...
8195 (addr_info_make_relative): ... this new function.
8196
268a4a75
JK
81972010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8198
8199 Add from_tty to solib_create_inferior_hook.
8200 * infcmd.c (post_create_inferior): Move solib_add after
8201 solib_create_inferior_hook. Pass from_tty to
8202 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
8203 0 from_tty and comment why.
8204 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
8205 * linux-nat.c (linux_child_follow_fork): Likewise.
8206 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
8207 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
8208 from_tty.
8209 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
8210 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
8211 * solib-null.c (null_solib_create_inferior_hook): Likewise.
8212 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
8213 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
8214 * solib-som.c (som_solib_create_inferior_hook): Likewise.
8215 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
8216 Pass it to svr4_so_ops.solib_create_inferior_hook.
8217 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
8218 from_tty.
8219 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
8220 solib_add.
8221 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
8222 enable_break.
8223 * solib-target.c (solib_target_solib_create_inferior_hook): New
8224 parameter from_tty.
8225 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
8226 it to ops->solib_create_inferior_hook.
8227 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
8228 Move solib_add after solib_create_inferior_hook, call it now with
8229 from_tty as 0. New comment there.
8230 * solib.h (solib_create_inferior_hook): New parameter from_tty.
8231 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
8232 Likewise.
8233
cf00dfa7
VP
82342010-01-08 Vladimir Prus <vladimir@codesourcery.com>
8235
8236 Fix multiexec race.
8237 * infrun.c (handle_inferior_event): Use get_thread_regcache
8238 with events ptid, not get_current_regcache.
8239
f91e5ac3
JB
82402009-01-08 Joel Brobecker <brobecker@adacore.com>
8241
8242 GDB crash with empty executable name (MinGW).
8243 * source.c (openp): Add assert that parameter string is not NULL.
8244 if parameter string is an empty string, then return with a failure
8245 immediately.
8246
92b9ce5b
JB
82472009-01-08 Joel Brobecker <brobecker@adacore.com>
8248
8249 Get rid of support for VAX Floats.
8250 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
8251 (ada_vax_float_print_function): Delete.
8252 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
8253 (ada_vax_float_print_function): Delete.
8254 * ada-typeprint.c (print_vax_floating_point_type): Delete.
8255 (ada_print_type): Remove support for VAX floats.
8256 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
8257
268a4a75 82582010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
8259
8260 * stabsread.c (read_args): Handle zero arguments.
8261
f0f20949
JB
82622009-01-08 Joel Brobecker <brobecker@adacore.com>
8263
8264 Cannot find in-tree libiconv.a after reconfigure.
8265 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
8266 that we can use, then cache the path to this archive.
8267 * configure: Regenerate.
8268
6b6218c5
SS
82692010-01-07 Stan Shebs <stan@codesourcery.com>
8270
35b1e5cc
SS
8271 Make tracepoint operations go through target vector.
8272 * target.h (enum trace_find_type): New enum.
8273 (struct target_ops): New fields to_trace_init,
8274 to_download_tracepoint, to_download_trace_state_variable,
8275 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
8276 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
8277 to_set_disconnected_tracing.
8278 (target_trace_init): New macro.
8279 (target_download_tracepoint): New macro.
8280 (target_download_trace_state_variable): New macro.
8281 (target_trace_start): New macro.
8282 (target_trace_set_readonly_regions): New macro.
8283 (target_get_trace_status): New macro.
8284 (target_trace_stop): New macro.
8285 (target_trace_find): New macro.
8286 (target_get_trace_state_variable_value): New macro.
8287 (target_set_disconnected_tracing): New macro.
8288 * target.c (update_current_target): Inherit and set defaults for
8289 tracepoint operations.
8290 * tracepoint.c (default_collect): Make globally visible.
8291 (target_is_remote): Remove, along with all calls.
8292 (tvariables_info): Call target_get_trace_state_variable_value.
8293 (remote_set_transparent_ranges): Remove.
8294 (trace_start_command): Call target_trace_init,
8295 target_download_tracepoint, etc.
8296 (download_tracepoint): Remove.
8297 (trace_stop_command): Simplify.
8298 (stop_tracing): Call target_trace_stop.
8299 (get_trace_status): Call target_get_trace_status.
8300 (trace_status_command): Add case for targets that cannot trace.
8301 (finish_tfind_command): Change to take numerical arguments, call
8302 target_trace_find.
8303 (trace_find_command): Update call to finish_tfind_command.
8304 (trace_find_pc_command): Ditto.
8305 (trace_find_tracepoint_command): Ditto.
8306 (trace_find_line_command): Ditto.
8307 (trace_find_range_command): Ditto.
8308 (trace_find_outside_command): Ditto.
8309 (set_disconnected_tracing_value): Call
8310 target_set_disconnected_tracing.
8311 * remote.c: Add protocol encoding bits from tracepoint.c.
8312 (trace_error): Move from tracepoint.c.
8313 (remote_get_noisy_reply): Ditto.
8314 (free_actions_list_cleanup_wrapper): Ditto.
8315 (free_actions_list): Ditto.
8316 (remote_trace_init): New function.
8317 (remote_download_tracepoint): New function.
8318 (remote_download_trace_state_variable): New function.
8319 (remote_trace_set_readonly_regions): New function.
8320 (remote_trace_start): New function.
8321 (remote_get_trace_status): New function.
8322 (remote_trace_stop): New function.
8323 (remote_trace_find): New function.
8324 (remote_download_trace_state_variable): New function.
8325 (remote_set_disconnected_tracing): New function.
8326 (init_remote_ops): Add tracepoint operations.
8327
6b6218c5
SS
8328 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
8329
089b4803
TG
83302010-01-07 Tristan Gingold <gingold@adacore.com>
8331
8332 * symfile.c (build_section_addr_info_from_objfile): New function.
8333 (symbol_file_add_separate): Don't use offsets from objfile but
8334 built an addr info.
8335
d5551862
SS
83362010-01-06 Stan Shebs <stan@codesourcery.com>
8337
8338 Support disconnected tracing.
8339 * infcmd.c (detach_command): Ask whether to stop tracing.
8340 * cli/cli-cmds.c (quit_command): Ditto.
8341 * breakpoint.h (struct breakpoint): New field number_on_target.
8342 * breakpoint.c (create_tracepoint_from_upload): New function.
8343 (get_tracepoint_by_number_on_target): New function.
8344 * remote.c (struct remote): New field disconnected_tracing.
8345 (remote_disconnected_tracing_feature): New function.
8346 (remote_protocol_features): Add DisconnectedTracing.
8347 (struct uploaded_tp): New struct.
8348 (uploaded_tps): New global.
8349 (get_uploaded_tp): New function.
8350 (find_matching_tracepoint): New function.
8351 (remote_get_tracing_state): New function.
8352 (remote_start_remote): Call it.
8353 * tracepoint.c (disconnected_tracing): New global.
8354 (trace_start_command): Initialize number_on_target.
8355 (stop_tracing): New function, split out from...
8356 (trace_stop_command): Call stop_tracing.
8357 (get_trace_status): New function, split out from...
8358 (trace_status_command): Call get_trace_status, add info on
8359 disconnection behavior.
8360 (disconnect_or_stop_tracing): New function.
8361 (finish_tfind_command): Translate from number on target.
8362 (trace_find_tracepoint_command): Translate to number on target.
8363 (send_disconnected_tracing_value): New function.
8364 (set_disconnected_tracing): New function.
8365 (_initialize_tracepoint): Add disconnected-tracing variable.
8366 * NEWS: Mention disconnected tracing.
8367
15d123c9
TG
83682010-01-06 Tristan Gingold <gingold@adacore.com>
8369
8370 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
8371 parameter to main_objfile. Iterate on all separate debug objfiles.
8372 * symfile.h (symbol_file_add_separate)
8373 (find_separate_debug_file_by_debuglink): Remove parameter names.
8374 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
8375 (reread_symbols): Use free_objfile_separate_debug.
8376 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
8377 Adjust comment.
8378 (objfile_separate_debug_iterate, add_separate_debug_objfile)
8379 (free_objfile_separate_debug): New prototypes.
8380 * objfiles.c (objfile_separate_debug_iterate): New function.
8381 (add_separate_debug_objfile, free_objfile_separate_debug): New
8382 functions.
8383 (free_objfile): Use free_objfile_separate_debug. Adjust for
8384 multiple separate debug objfile.
8385 (objfile_has_symbols): Adjust comment. Iterate on all separate
8386 debug objfiles.
8387 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
8388 debug objfile.
8389 (lookup_minimal_symbol_text): Ditto.
8390 (lookup_minimal_symbol_by_pc_name): Ditto.
8391 (lookup_minimal_symbol_solib_trampoline): Ditto.
8392 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
8393 debug objfiles.
8394
7a697b8d
SS
83952010-01-05 Stan Shebs <stan@codesourcery.com>
8396
8397 Add fast tracepoints.
8398 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
8399 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
8400 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
8401 * breakpoint.c (tracepoint_type): New function.
8402 (ALL_TRACEPOINTS): Use it.
8403 (should_be_inserted): Ditto.
8404 (bpstat_check_location): Ditto.
8405 (print_one_breakpoint_location): Ditto.
8406 (user_settable_breakpoint): Ditto.
8407 (set_breakpoint_location_function): Ditto.
8408 (disable_breakpoints_in_shlibs): Ditto.
8409 (delete_trace_command): Ditto.
8410 (print_it_typical): Add bp_fast_tracepoint case.
8411 (bpstat_what): Ditto.
8412 (print_one_breakpoint_location): Ditto.
8413 (allocate_bp_location): Ditto.
8414 (mention): Ditto.
8415 (breakpoint_re_set_one): Ditto.
8416 (disable_command): Ditto.
8417 (enable_command): Ditto.
8418 (check_fast_tracepoint_sals): New function.
8419 (break_command_really): Call it.
8420 (ftrace_command): New function.
8421 (_initialize_breakpoint): Add ftrace command.
8422 * gdbarch.sh (fast_tracepoint_valid_at): New.
8423 * gdbarch.h, gdbarch.c: Regenerate.
8424 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
8425 (i386_gdbarch_init): Use it.
8426 * remote.c (struct remote_state): New field fast_tracepoints.
8427 (PACKET_FastTracepoints): New packet config type.
8428 (remote_fast_tracepoint_feature): New function.
8429 (remote_protocol_features): Add FastTracepoints.
8430 (remote_supports_fast_tracepoints): New function.
8431 (_initialize_remote): Add FastTracepoints.
8432 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
8433 * NEWS: Mention fast tracepoints.
8434
737a160e
JB
84352010-01-06 Joel Brobecker <brobecker@adacore.com>
8436
8437 * gdb-gdb.py: New file.
8438
ce6cca6d
MS
84392010-01-05 Michael Snyder <msnyder@vmware.com>
8440
8441 * infrun.c (handle_inferior_event): Fix typo in comment.
8442
0d15807d
JK
84432010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8444
8445 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
8446
7803799a
UW
84472010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8448
c8d5aac9 8449 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
8450 and s390x-linux64.
8451 (s390-linux32-expedite): Define.
8452 (s390-linux64-expedite): Define.
8453 (s390x-linux64-expedite): Define.
8454 * features/s390-acr.xml: New file.
8455 * features/s390-fpr.xml: New file.
8456 * features/s390-core32.xml: New file.
8457 * features/s390-core64.xml: New file.
8458 * features/s390x-core64.xml: New file.
8459 * features/s390-linux32.xml: New file.
8460 * features/s390-linux64.xml: New file.
8461 * features/s390x-linux64.xml: New file.
8462 * features/s390-linux32.c: New generated file.
8463 * features/s390-linux64.c: New generated file.
8464 * features/s390x-linux64.c: New generated file.
8465
8466 * regformats/s390-linux32.dat: New generated file.
8467 * regformats/s390-linux64.dat: New generated file.
8468 * regformats/s390x-linux64.dat: New generated file.
8469 * regformats/reg-s390.dat: Remove.
8470 * regformats/reg-s390x.dat: Remove.
8471
8472 * s390-nat.c: Include "auxv.h" and <elf.h>.
8473 (HWCAP_S390_HIGH_GPRS): Define if undefined.
8474 (s390_target_wordsize): New function.
8475 (s390_auxv_parse): Likewise.
8476 (s390_get_hwcap): Likewise.
8477 (s390_read_description): Likewise.
8478 (_initialize_s390_nat): Install s390_auxv_parse and
8479 s390_read_description.
8480
8481 * s390-tdep.c: Include "features/s390-linux32.c",
8482 "features/s390-linux64.c", and "features/s390x-linux64.c".
8483 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
8484 (s390_register_call_saved): New function.
8485 (s390_register_name): Remove.
8486 (s390_register_type): Remove.
8487 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
8488 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
8489 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
8490 (s390_pseudo_register_name): New function.
8491 (s390_pseudo_register_type): New function.
8492 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
8493 Handle full GPR pesudos and varying pseudo register numbers.
8494 (s390_pseudo_register_write): Likewise
8495 (s390x_pseudo_register_read): Remove.
8496 (s390x_pseudo_register_write): Likewise.
8497 (s390_register_group): Remove.
8498 (s390_pseudo_register_group): New function.
8499 (s390_regmap_gregset): Add GPR upper halves.
8500 (s390x_regmap_gregset): Likewise.
8501 (s390_regmap_fpregset): Likewise.
8502 (s390_regmap_upper): New global variable.
8503 (s390_upper_regset): New global variable.
8504 (s390_upper_regset_sections): New global variable.
8505 (s390_regset_from_core_section): Handle GPR upper halves.
8506 (s390_core_read_description): New function.
8507 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
8508 register information. Handle varying pseudo register numbers.
8509 (s390_backchain_frame_unwind_cache): Likewise.
8510 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
8511 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
8512 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
8513 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
8514 Handle varying pseudo register numbers.
8515 (s390_unwind_pc): Handle varying pseudo register numbers.
8516 (s390_dwarf2_prev_register): New function.
8517 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
8518 register information. Handle varying pseudo register numbers.
8519 Install s390_dwarf2_prev_register to unwind full GPRs.
8520 (s390_gdbarch_init): Handle target descriptions. Assign varying
8521 pseudo register numbers. Install s390_adjust_frame_regnum.
8522 (_initialize_s390_tdep): Initialize target descriptions.
8523
8524 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
8525 (S390_NUM_REGS): Redefine to include upper half registers.
8526 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
8527 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
8528 (tdesc_s390_linux32): Add declaration.
8529 (tdesc_s390_linux64): Likewise.
8530 (tdesc_s390x_linux64): Likewise.
8531
1b1818e4
UW
85322010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8533
8534 * regset.h (struct core_regset_section): Add HUMAN_NAME.
8535 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
8536 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
8537 (ppc_linux_vmx_regset_sections): Likewise.
8538 (ppc_linux_fp_regset_sections): Likewise.
8539
8540 * corelow.c (get_core_register_section): Constify arguments.
8541 (get_core_registers): Use gdbarch_core_regset_sections instead
8542 of hard-coded platform-specific register section names.
8543
dcbf108f
UW
85442010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8545
8546 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 8547 a register, assume the least-significant part is used.
dcbf108f
UW
8548 (write_pieced_value): Likewise.
8549
704e9165
UW
85502010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8551
8552 * printcmd.c: Include "arch-utils.h".
8553 (do_one_display): Re-parse expression if current architecture changed.
8554
c54eabfa
JK
85552010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8556 Joel Brobecker <brobecker@adacore.com>
8557
8558 * gdbtypes.c (check_typedef): New comment on type length.
8559 * value.c (allocate_value_lazy): Remove the unused atype variable. New
8560 comment on type length.
8561 (value_primitive_field): Keep the original TYPE value, new comment.
8562
50cb2941
JK
85632010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8564
8565 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
8566 p_start. Change != comparisons to > and < comparisons.
8567
be66db07
JK
85682010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8569
8570 * cli/cli-script.c (process_next_line): Check P2 overrun.
8571
abd775ce
JB
85722009-01-01 Joel Brobecker <brobecker@adacore.com>
8573
8574 Update the copyright hearder to add year 2010 for most GDB files.
8575
6479260d
JB
85762009-01-01 Joel Brobecker <brobecker@adacore.com>
8577
8578 Fix build failure in inf-ptrace.c.
8579 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
8580
4a70f654
JB
85812010-01-01 Joel Brobecker <brobecker@adacore.com>
8582
8583 * top.c (print_gdb_version): Update copyright year.
8584
595939de 85852010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
8586
8587 Fix break *FUN'address thread NUM.
8588 * ada-lex.l (task): Expand rule to also match the thread keyword.
8589
70575d34
JB
85902010-01-01 Joel Brobecker <brobecker@adacore.com>
8591
8592 Fix break *FUN'address task NUM.
8593 * ada-lex.l (task): New rule.
8594 * ada-lang.c (valid_task_id): Make sure the Ada task list has
8595 been built before using it.
8596
e1e4d4a4 8597For older changes see ChangeLog-2009.
c906108c
SS
8598\f
8599Local Variables:
8600mode: change-log
8601left-margin: 8
8602fill-column: 74
8603version-control: never
57da7796 8604coding: utf-8
c906108c 8605End:
This page took 1.755566 seconds and 4 git commands to generate.