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