2010-05-06 Michael Snyder <msnyder@vmware.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2010-05-06 Michael Snyder <msnyder@vmware.com>
2
3 * linespec.c (decode_compound): Delete unused variable.
4 * dictionary.c (iterator_next_hashed): Delete unused variable.
5 * infcall.c (call_function_by_hand): Delete unused variable.
6 * infcmd.c (step_1): Delete unused variable.
7 (registers_info): Delete unused variable.
8 (attach_command): Delete unused variable.
9 * infrun.c (follow_exec): Delete unused variable.
10 (handle_step_into_function_backwards): Delete unused variable.
11 (_initialize_infrun): Delete unused variable.
12 * stack.c (parse_frame_specification_1): Delete unused variable.
13 (frame_info): Delete unused variable.
14 (backtrace_command_1): Delete unused variable.
15 (catch_info): Delete unused variable.
16
17 * eval.c (evaluate_subexp_standard): Delete unused variable.
18 * valops.c (value_cast_pointers): Delete unused variable.
19 (value_dynamic_cast): Delete unused variable.
20 (value_array): Delete unused variable.
21 (find_overload_match): Delete unused variable.
22 * valarith.c (value_subscript): Delete unused variable.
23 (value_binop): Delete unused variable.
24 * valprint.c (_initialize_valprint): Delete unused variable.
25 * printcmd.c (print_command_1): Delete unused variable.
26 (address_info): Delete unused variable.
27 (printf_command): Delete unused variable.
28
29 * auxv.c (target_auxv_search): Delete unused variable.
30 * blockframe.c (get_frame_block): Delete unused variable.
31 * regcache.c (regcache_cpy): Delete unused variable.
32 (regcache_cpy_no_passthrough): Delete unused variable.
33 * charset.c (wchar_iterate): Delete unused variable.
34 (find_charset_names): Delete unused variable.
35 (_initialize_charset): Delete unused variable.
36 * disasm.c (do_mixed_source_and_assembly):
37 Delete unused variable.
38 * source.c (set_default_source_symtab_and_line):
39 Delete unused variable.
40 (set_substitute_path_command): Delete unused variable.
41 * value.c (preserve_values): Delete unused variable.
42 (value_from_double): Delete unused variable.
43
44 2010-05-05 Michael Snyder <msnyder@vmware.com>
45
46 * psymtab.c (lookup_partial_symbol): Delete unused variable.
47 (find_last_source_symtab_from_partial): Delete unused variable.
48 * symfile.c (place_section): Delete unused variable.
49 (default_symfile_offsets): Delete unused variable.
50 (get_debug_link_info): Delete unused variable.
51 (find_separate_debug_file_by_debuglink): Delete unused variable.
52 (add_symbol_file_command): Delete unused variable.
53 (symfile_find_segment_sections): Delete unused variable.
54 * symmisc.c (free_symtab): Delete unused variable.
55 (dump_symtab_1): Delete unused variable.
56 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
57 (find_pc_sect_symtab): Delete unused variable.
58 (skip_prologue_using_lineinfo): Delete unused variable.
59 (sources_info): Delete unused variable.
60 (completion_list_add_name): Delete unused variable.
61 (expand_line_sal): Delete unused variable.
62
63 * breakpoint.c (validate_commands_for_breakpoint):
64 Delete unused variables.
65 (insert_catchpoint): Delete unused variable.
66 (update_watchpoint): Delete unused variable.
67 (insert_bp_location): Delete unused variable.
68 (insert_breakpoint_locations): Delete unused variable.
69 (remove_breakpoint_1): Delete unused variable.
70 (software_breakpoint_inserted_here_p): Delete unused variable.
71 (watchpoints_triggered): Delete unused variable.
72 (bpstat_check_watchpoint): Delete unused variable.
73 (bpstat_stop_status): Delete unused variable.
74 (print_one_breakpoint_location): Delete unused variable.
75 (allocate_bp_location): Delete unused variable.
76 (create_breakpoint): Delete unused variable.
77 (watch_command_1): Delete unused variable.
78 (catch_exception_command_1): Delete unused variable.
79 (catch_ada_exception_command): Delete unused variable.
80 (delete_breakpoint): Delete unused variable.
81 (breakpoint_re_set_one): Delete unused variable.
82 (do_enable_breakpoint): Delete unused variable.
83
84 2010-05-06 Pedro Alves <pedro@codesourcery.com>
85
86 * amd64-tdep.c: Include disasm.h.
87 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
88 (amd64_insn_length): Moved to disasm.c and renamed.
89 (fixup_riprel): Adjust.
90 * disasm.c (do_ui_file_delete): New.
91 (gdb_insn_length): New.
92 (gdb_buffered_insn_length_fprintf)
93 (gdb_buffered_insn_length_init_dis)
94 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
95 renamed.
96 * disasm.h (gdb_insn_length): Declare.
97 (gdb_buffered_insn_length): Declare.
98
99 2010-05-06 Pedro Alves <pedro@codesourcery.com>
100
101 * remote.c (clear_threads_parsing_context): New.
102 (remote_threads_info): Delete unused null_cleanup. Install a
103 cleanup to clear the threads_parsing_context in case parsing
104 throws.
105
106 2010-05-05 Michael Snyder <msnyder@vmware.com>
107
108 * c-exp.y (parse_string_or_char): Delete unused variable.
109 (c_lex): Delete unused variable.
110 * cp-name-parser.y (cpname_lex): Delete unused variable.
111 * ada-exp.y (find_primitive_type): Delete unused variable.
112 (write_var_or_type): Delete unused variable.
113 * jv-exp.y (java_parse): Delete unused variable.
114 (push_expression_name): Delete unused variable.
115 * p-exp.y (pascal_lex): Delete unused variable.
116
117 2010-05-05 Pedro Alves <pedro@codesourcery.com>
118
119 * remote.c (remote_threads_info): Really revert previous previous
120 change.
121
122 2010-05-05 Michael Snyder <msnyder@vmware.com>
123
124 * elfread.c (elf_symtab_read): Delete unused variable.
125 (find_separate_debug_file_by_buildid): Delete unused variables.
126 (elf_symfile_read): Delete unused variable.
127
128 * coffread.c (coff_symfile_read): Delete unused variables.
129
130 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
131 (read_pe_exported_syms): Delete unused variable.
132
133 * stabsread.c (define_symbol): Delete unused variable.
134
135 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
136 (process_psymtab_comp_unit): Delete unused variable.
137 (dwarf2_build_psymtabs_hard): Delete unused variable.
138 (load_partial_comp_unit): Delete unused variable.
139 (create_all_comp_units): Delete unused variable.
140 (scan_partial_symbols): Delete unused variable.
141 (add_partial_symbol): Delete unused variable.
142 (add_partial_namespace): Delete unused variable.
143 (add_partial_enumeration): Delete unused variable.
144 (load_full_comp_unit): Delete unused variable.
145 (process_full_comp_unit): Delete unused variable.
146 (read_file_scope): Delete unused variable.
147 (read_type_unit_scope): Delete unused variable.
148 (process_structure_scope): Delete unused variable.
149 (process_enumeration_scope): Delete unused variable.
150 (read_tag_ptr_to_member_type): Delete unused variable.
151 (read_typedef): Delete unused variable.
152 (read_partial_die): Delete unused variable.
153 (decode_locdesc): Delete unused variable.
154 (zeroed_partial_die): Delete unused global variable.
155
156 * tui/tui-interp.c (_initialize_tui_interp):
157 Delete unused variable.
158 * tui/tui-regs.c tui_display_registers_from):
159 Delete unused variable.
160 (tui_check_register_values): Delete unused variable.
161 (tui_register_format): Delete unused variable.
162 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
163 * tui/tui-windata.c (tui_display_data_from_line):
164 Delete unused variables.
165 (tui_vertical_data_scroll): Delete unused variables.
166
167 2010-05-05 Michael Snyder <msnyder@vmware.com>
168
169 * remote.c (remote_threads_info): Revert questionable part of
170 the previous change.
171
172 2010-05-05 Michael Snyder <msnyder@vmware.com>
173
174 * mi/mi-out.c (mi_table_begin): Delete unused variable.
175 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
176 (mi_cmd_var_list_children): Delete unused variable.
177 (varobj_update_one): Delete unused variable.
178 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
179 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
180 Delete unused variable.
181 (mi_cmd_stack_list_variables): Delete unused variable.
182 (list_args_or_locals): Delete unused variable.
183 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
184 Delete unused variables.
185 (mi_cmd_file_list_exec_source_files): Delete unused variable.
186 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
187 Delete unused variable.
188 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
189 (mi_cmd_interpreter_exec): Delete unused variable.
190 (mi_on_normal_stop): Delete unused variable.
191 * mi/mi-main.c (run_one_inferior): Delete unused variable.
192 (print_one_inferior): Delete unused variables.
193 (mi_execute_command): Delete unused variable.
194 (mi_cmd_execute): Delete unused variable.
195 (timestamp): Delete unused variable.
196
197 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
198 (restore_binary_file): Delete unused variable.
199 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
200 * cli/cli-script.c (define_command): Delete unused variables.
201 (recurse_read_control_structure): Delete unused variable.
202 (script_from_file): Delete unused variable.
203 * cli/cli-cmds.c (complete_command): Delete unused variable.
204 (disassemble_command): Delete unused variable.
205
206 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
207 * tracepoint.c (delete_trace_variable_command):
208 Delete unused variables.
209 (encode_actions_1): Delete unused variables.
210 (start_tracing): Delete unused variable.
211 (trace_status_mi): Delete unused variable.
212 (tfind_1): Delete unused variable.
213 (trace_find_pc_command): Delete unused variable.
214 (trace_find_line_command): Delete unused variables.
215 (trace_find_range_command): Delete unused variables.
216 (trace_find_outside_command): Delete unused variables.
217 (parse_tracepoint_definition): Delete unused variables.
218 (tfile_fetch_registers): Delete unused variable.
219
220 * dcache.c (dcache_init): Delete unused variable.
221 (dcache_info): Delete unused variable.
222
223 * remote.c (remote_threads_info): Delete unused variable.
224 (process_stop_reply) :Delete unused variable.
225 (remote_get_trace_status): Delete unused variables.
226
227 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
228 (thread_from_lwp): Delete unused variable.
229 (enable_thread_event_reporting): Delete unused variable.
230 (check_for_thread_db): Delete unused variables.
231 (thread_db_find_new_threads_2): Delete unused variable.
232
233 * linux-fork.c (info_checkpoints_command): Delete unused variables.
234 (checkpoint_command): Delete unused variable.
235 (linux_fork_context): Delete unused variables.
236
237 * linux-nat.c (linux_parent_pid): Delete unused global variable.
238 (linux_tracefork_child): Delete unused variable.
239 (linux_child_follow_fork): Delete unused variable.
240 (linux_nat_detach): Delete unused variable.
241 (linux_handle_extended_wait): Delete unused variable.
242 (linux_nat_has_pending_sigint): Delete unused variable.
243 (linux_nat_find_memory_regions): Delete unused variable.
244 (linux_nat_make_corefile_notes): Delete unused variables.
245 (linux_nat_info_proc_cmd): Delete unused variable.
246 (linux_proc_pending_signals): Delete unused variable.
247 (linux_nat_stop_lwp): Delete unused variables.
248 (_initialize_linux_nat): Delete unused variable.
249
250 * ser-pipe.c (pipe_ops): Delete unused global variable.
251
252 * linux-record.c (record_linux_system_call):
253 Delete unused variables.
254
255 * corelow.c (core_xfer_partial): Delete unused variables.
256
257 * solib-svr4.c (find_program_interpreter): Delete unused variable.
258 (svr4_solib_create_inferior_hook): Add ifdef around
259 conditionally-used variable declarations.
260
261 * solib.c (solib_find): Delete unused variable.
262 (free_so_symbols): Delete unused variable.
263 (info_sharedlibrary_command): Delete unused variable.
264 (reload_shared_libraries_1): Delete unused variable.
265 (_initialize_solib): Delete unused variable.
266
267 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
268 (i386_collect_xstateregset): Delete unused variable.
269 * i387-tdep.c (i387_print_float_info): Delete unused variable.
270
271 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
272 Delete unused variable 'type'.
273
274 2010-05-05 Joel Brobecker <brobecker@adacore.com>
275
276 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
277 ada-lang.c: Remove comment mentioning these macros. * m2-exp.y:
278 Delete commented out code.
279
280 2010-05-05 Joel Brobecker <brobecker@adacore.com>
281
282 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
283 for array types.
284 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
285
286 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
287
288 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
289 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
290 ATTRIBUTE_UNUSED.
291 (cleanup_kernel_helper_return): Likewise.
292 * arm-tdep.c (copy_unmodified): Likewise.
293 (copy_preload): Likewise.
294 (copy_copro_load_store): Likewise.
295 (cleanup_branch): Likewise.
296 (copy_b_bl_blx): Likewise.
297 (copy_bx_blx_reg): Likewise.
298 (copy_alu_imm): Likewise.
299 (copy_alu_reg): Likewise.
300 (copy_alu_shifted_reg): Likewise.
301 (cleanup_load): Likewise.
302 (cleanup_store): Likewise.
303 (cleanup_block_load_pc): Likewise.
304 (cleanup_svc): Likewise.
305 (copy_undef): Likewise.
306 (copy_unpred): Likewise.
307 * remote.c (register_remote_support_xml): Likewise.
308
309 2010-05-05 Hui Zhu <teawater@gmail.com>
310
311 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
312
313 2010-05-04 Mark Kettenis <kettenis@gnu.org>
314
315 * remote.c (register_remote_support_xml)
316 (remote_query_supported_append, remote_query_supported): Add cast
317 to NULL used as sentinel.
318 * tracepoint.c (tvariables_info_1): Likewise.
319 * utils.c (add_internal_problem_command): Likewise.
320
321 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
322
323 * dwarf2loc.c (read_pieced_value, write_pieced_value,
324 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
325 registers gracefully.
326
327 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
328
329 * exec.c (print_section_info): Display entry point without arch
330 specific parts.
331
332 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
333
334 PR exp/11349.
335 * printcmd.c (x_command): Only dereference once implicitly for
336 TYPE_CODE_REF.
337
338 2010-05-03 Doug Evans <dje@google.com>
339
340 * event-loop.c (gdb_timer): Delete unused global.
341 (create_timer): Update.
342
343 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
344
345 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
346 CURRENT->DECLARATION case.
347 * cp-support.h (struct using_direct): Provide extended comment.
348
349 2010-05-03 Mark Kettenis <kettenis@gnu.org>
350
351 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
352 HPPABSD_SIZEOF_GREGS.
353 (HPPAOBSD_SIZEOF_FPREGS): New define.
354 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
355 (hppaobsd_supply_fpregset): New function.
356 (hppaobsd_gregset): Renamed from hppabsd_gregset.
357 (hppaobsd_fpregset): New variable.
358 (hppaobsd_regset_from_core_section): Handle floating-point registers.
359 (_initialize_hppabsd_tdep): Remove spurious blank line.
360
361 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
362
363 PR pascal/11349.
364 * p-valprint.c (pascal_value_print): Always dereference a value with
365 type code TYPE_CODE_REF.
366
367 2010-05-03 Pedro Alves <pedro@codesourcery.com>
368
369 * remote.c (remote_notice_signals): New.
370 (remote_start_remote): In non-stop mode, update the remote end on
371 which signals it can silently pass.
372 (init_remote_ops): Install remote_notice_signals.
373
374 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
375
376 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
377 * command.h (error_no_arg): ... here. Remove NORETURN, change
378 ATTR_NORETURN to ATTRIBUTE_NORETURN.
379 * defs.h (NORETURN, ATTR_NORETURN): Remove.
380 (perror_with_name, verror, error, error_stream, vfatal, fatal)
381 (internal_verror, internal_error, nomem): Remove NORETURN, change
382 ATTR_NORETURN to ATTRIBUTE_NORETURN.
383 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
384 (throw_vfatal, throw_error): Remove NORETURN.
385 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
386 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
387 (throw_error, deprecated_throw_reason): Remove NORETURN, change
388 ATTR_NORETURN to ATTRIBUTE_NORETURN.
389 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
390 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
391 NORETURN.
392 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
393 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
394 ATTRIBUTE_NORETURN.
395 * target.c (tcomplain): Likewise.
396 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
397 ATTRIBUTE_NORETURN.
398 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
399 (internal_error, perror_with_name, nomem): Remove NORETURN.
400 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
401 ATTRIBUTE_NORETURN.
402
403 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
404
405 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
406 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
407 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
408 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
409 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
410 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
411 * complaints.h (complaint, internal_complaint): Likewise.
412 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
413 (ATTR_FORMAT): Remove.
414 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
415 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
416 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
417 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
418 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
419 (internal_error, internal_vwarning, internal_warning, warning)
420 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
421 * disasm.c (fprintf_disasm): Likewise.
422 * exceptions.c (throw_it): Likewise.
423 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
424 (throw_error): Likewise.
425 * language.h (type_error, range_error): Likewise.
426 * linespec.c (cplusplus_error): Likewise.
427 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
428 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
429 * monitor.c (monitor_debug): Likewise.
430 * parser-defs.h (parser_fprintf): Likewise.
431 * serial.h (serial_printf): Likewise.
432 * tui/tui-hooks.c (tui_query_hook): Likewise.
433 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
434 (uo_message): Likewise.
435 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
436 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
437 Likewise.
438 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
439
440 2010-05-02 Pedro Alves <pedro@codesourcery.com>
441
442 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
443 (cli_table_header, cli_begin, cli_end, cli_field_int)
444 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
445 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
446 Delete forward declarations.
447 (cli_ui_out_impl): Move below the callbacks.
448 (_initialize_cli_out): Delete.
449
450 2010-05-02 Pedro Alves <pedro@codesourcery.com>
451
452 * README: Use consistent `GDB' and `GDBserver' spellings.
453
454 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
455
456 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
457
458 2010-05-01 Pedro Alves <pedro@codesourcery.com>
459
460 * infrun.c (prepare_for_detach): In non-stop, context switch to
461 the thread that got the event before handling the event.
462
463 2010-04-30 Tom Tromey <tromey@redhat.com>
464
465 * symtab.c (symbol_set_names): Fix typo.
466
467 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
468
469 * python/py-param.c (parm_constants): Avoid ARI warning
470 by adding ARI comment.
471 (parmpy_init): Likewise.
472
473 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
474
475 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
476 and created type for re-use.
477
478 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
479
480 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
481
482 2010-04-29 Doug Evans <dje@google.com>
483
484 * ser-base.h (reschedule): Delete prototype.
485 * ser-base.c (reschedule): Make static.
486
487 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
488
489 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
490 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
491 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
492 EABI.
493 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
494 use.
495
496 2010-04-29 Pedro Alves <pedro@codesourcery.com>
497
498 PR gdb/11557
499
500 * regcache.c (registers_changed): Rename to ...
501 (registers_changed_ptid): ... this, and only delete register cache
502 entries matching the ptid filter argument.
503 (registers_changed): Reimplement on top of registers_changed_ptid.
504 * regcache.h (registers_changed_ptid): Declare.
505 * target.c (target_resume): Flush register caches.
506
507 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
508 Tom Tromey <tromey@redhat.com>
509 Thiago Jung Bauermann <bauerman@br.ibm.com>
510
511 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
512 (SUBDIR_PYTHON_SRCS): Likewise.
513 (py-parameter.o): New rule.
514 * python/py-parameter.c: New file.
515 * python/python-internal.h (gdbpy_initialize_parameter)
516 (gdbpy_parameter, gdbpy_parameter_value)
517 (gdbpy_parse_command_name): Declare.
518 * python/py-cmd.c (parse_command_name): Rename to
519 gdbpy_parse_command_name.
520 (gdbpy_parse_command_name): Accept a starting list parameter and
521 use over cmdlist.
522 (cmdpy_init): Use gdbpy_parse_command_name.
523 * python/python.c (parameter_to_python): Rename to
524 gdbpy_parameter_to_python. Accept enum var_types and value.
525 (gdbpy_parameter): Use gdbpy_parameter_value.
526 (_initialize_python): Call gdbpy_initialize_parameters.
527
528 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
529
530 * MAINTAINERS: Add myself for write after approval privileges.
531
532 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
533
534 D language support.
535 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
536 (COMMON_OBS): Add d-lang.o d-valprint.o.
537 (HFILES_NO_SRCDIR): Add d-lang.h.
538 * NEWS: Mention D language support.
539 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
540 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
541 * d-lang.c: New file.
542 * d-lang.h: New file.
543 * d-valprint.c: New file.
544 * defs.h (enum language): Add language_d.
545 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
546 * language.c (binop_result_type, integral_type, character_type)
547 (string_type, boolean_type, structured_type): Add language_d.
548 * symfile.c (init_filename_language_table): Add language_d.
549 * symtab.c: Include d-lang.h.
550 (symbol_init_language_specific, symbol_find_demangled_name)
551 (symbol_natural_name, lookup_symbol_in_language)
552 (symbol_demangled_name, symbol_matches_domain): Add language_d.
553
554 2010-04-27 Joel Brobecker <brobecker@adacore.com>
555
556 * solib-svr4.c (solib_svr4_r_map): Expand function description.
557
558 2010-04-27 Joel Brobecker <brobecker@adacore.com>
559
560 * symfile.c (init_filename_language_table): Register .dg files
561 with language_ada.
562
563 2010-04-27 Joel Brobecker <brobecker@adacore.com>
564
565 * gdbtypes.h (struct main_type): Expand comment about target_type
566 field.
567
568 2010-04-27 Pedro Alves <pedro@codesourcery.com>
569 Tristan Gingold <gingold@adacore.com>
570
571 * symfile.c (reread_symbols): Also search for file in libraries.
572 Update comment.
573
574 2010-04-27 Joel Brobecker <brobecker@adacore.com>
575
576 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
577 in terms of configuration.
578
579 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
580
581 * objfiles.c: Include solist.h.
582 (free_all_objfiles): New variable so. Check stale solist objfiles.
583 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
584 and no_shared_libraries.
585
586 2010-04-27 Joel Brobecker <brobecker@adacore.com>
587
588 ARI warning fix.
589 * python/py-auto-load.c (source_section_scripts): Remove trailing
590 new-line in i18n string.
591
592 2010-04-26 Doug Evans <dje@google.com>
593
594 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
595
596 2010-04-26 Tom Tromey <tromey@redhat.com>
597
598 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
599 command list.
600
601 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
602
603 Removal of config/i386/nm-i386sol2.h native configuration file.
604 * config/i386/nm-i386sol2.h: Remove file.
605 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
606 * config/i386/sol2-64.mh: Idem.
607 * config/djgpp/fnchange.lst: Remove reference to that file.
608 * Makefile.in (HFILES_NO_SRCDIR): Idem.
609
610 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
611
612 PR breakpoints/11531.
613 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
614 macro definition and related comment.
615 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
616 (resume): Remove code and comment related to this macro.
617
618 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
619
620 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
621 Fix whitespace.
622
623 2010-04-24 Pedro Alves <pedro@codesourcery.com>
624
625 * defs.h: Adjust comment.
626 * filesystem.h, filesystem.c: New files.
627 * Makefile.in (SFILES): Add filesystem.c.
628 (COMMON_OBS): Add filesystem.o.
629 * solib.c (solib_find): Handle DOS-based filesystems. Handle
630 different target and host path flavours.
631 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
632 has_dos_based_file_system on the gdbarch.
633 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
634 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
635 * i386-tdep.c (i386_go32_init_abi): Ditto.
636 * gdbarch.sh (has_dos_based_file_system): New.
637 * gdbarch.h, gdbarch.c: Regenerate.
638 * NEWS: Mention improved support for remote targets with DOS-based
639 filesystems. Mention new `set/show target-file-system-kind'
640 commands.
641
642 2010-04-23 Stan Shebs <stan@codesourcery.com>
643
644 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
645 comments.
646 (struct agent_reqs): Remove.
647 (ax_reg_mask): Declare.
648 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
649 (free_agent_expr): Free reg_mask.
650 (ax_print): Add scope and register mask info.
651 (ax_reqs): Remove agent_reqs argument, use agent expression
652 fields, and move part of register mask computation to...
653 (ax_reg_mask): New function.
654 * ax-gdb.c (gen_trace_static_fields): Call it.
655 (gen_traced_pop): Ditto.
656 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
657 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
658 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
659 (gen_eval_for_expr): Ditto, and require an rvalue.
660 (agent_command): Call ax_reqs.
661 (agent_eval_command): Ditto.
662 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
663 (validate_action_line): Ditto.
664 (collect_symbol): Ditto.
665 (encode_actions_1): Ditto.
666
667 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
668 Paul Pluzhnikov <ppluzhnikov@google.com>
669 Jan Kratochvil <jan.kratochvil@redhat.com>
670
671 Fix deadlock on looped list of loaded shared objects.
672 * solib-svr4.c (LM_PREV): New function.
673 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
674 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
675 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
676 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
677
678 2010-04-23 Doug Evans <dje@google.com>
679
680 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
681 python.
682 * configure: Regenerate.
683 * main.c: #include "python/python.h".
684 (captured_main): Defer loading auto-loaded scripts until after
685 local_gdbinit has been sourced.
686 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
687 (load_auto_scripts_for_objfile): New function.
688 (auto_load_new_objfile): Call it.
689 * python/python.h (gdbpy_global_auto_load): Declare.
690 (load_auto_scripts_for_objfile): Declare.
691
692 Add support for auto-loading scripts from .debug_gdb_scripts section.
693 * NEWS: Add entry for .debug_gdb_scripts.
694 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
695 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
696 (py-auto-load.o): New rule.
697 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
698 * cli/cli-cmds.h (find_and_open_script): Update prototype.
699 * python/py-auto-load.c: New file.
700 * python/python-internal.h: #include <stdio.h>.
701 (set_python_list, show_python_list): Declare.
702 (gdbpy_initialize_auto_load): Declare.
703 (source_python_script_for_objfile): Declare.
704 * python/python.c: Remove #include of observer.h.
705 (gdbpy_auto_load): Moved to py-auto-load.c.
706 (GDBPY_AUTO_FILENAME): Ditto.
707 (gdbpy_new_objfile): Delete.
708 (source_python_script_for_objfile): New function.
709 (set_python_list, show_python_list): Make externally visible.
710 (_initialize_python): Move "auto-load" command to py-auto-load.c
711 and observer_attach_new_objfile to py-auto-load.c.
712
713 2010-04-23 Jerome Guitton <guitton@adacore.com>
714
715 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
716 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
717 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
718 New constants.
719 (alpha_heuristic_analyze_probing_loop): New function.
720 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
721 and handle cases when a stack probe loop is generated.
722 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
723 (alpha_mdebug_max_frame_size_exceeded): New function.
724 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
725 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
726 Return 0 when the maximum debuggable frame size has been exceeded.
727
728 2010-04-23 Joel Brobecker <brobecker@adacore.com>
729
730 Fix ARI warning.
731 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
732
733 2010-04-20 Chris Moller <cmoller@redhat.com>
734
735 PR 10179
736
737 * symtab.c (rbreak_command): Added code to include a filename
738 specification in the rbreak argument.
739 * NEWS: Added a brief description of filename-qualified rbreak.
740
741 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
742
743 Fix crashes on dangling display expressions.
744 * ada-lang.c (ada_operator_check): New function.
745 (ada_exp_descriptor): Fill-in the field operator_check.
746 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
747 * jv-lang.c (exp_descriptor_java): Likewise.
748 * m2-lang.c (exp_descriptor_modula2): Likewise.
749 * scm-lang.c (exp_descriptor_scm): Likewise.
750 * parse.c (exp_descriptor_standard): Likewise.
751 (operator_check_standard): New function.
752 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
753 * parser-defs.h (struct exp_descriptor): New field operator_check.
754 (operator_check_standard, exp_uses_objfile): New declarations.
755 * printcmd.c: Remove the inclusion of solib.h.
756 (display_uses_solib_p): Remove the function.
757 (clear_dangling_display_expressions): Call lookup_objfile_from_block
758 and exp_uses_objfile instead of display_uses_solib_p.
759 * solist.h (struct so_list) <objfile>: New comment.
760 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
761 * symtab.h (lookup_objfile_from_block): New declaration.
762 (struct general_symbol_info) <obj_section>: Extend the comment.
763
764 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
765 Thiago Jung Bauermann <bauerman@br.ibm.com>
766
767 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
768 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
769 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
770 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
771 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
772 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
773 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
774 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
775 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
776 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
777 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
778 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
779 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
780 Define, in case <ptrace.h> doesn't provide it.
781 (booke_debug_info): New variable.
782 (max_slots_number): Ditto.
783 (hw_break_tuple): New struct.
784 (thread_points): Ditto.
785 (ppc_threads): New variable.
786 (PPC_DEBUG_CURRENT_VERSION): New define.
787 (have_ptrace_new_debug_booke): New function.
788 (ppc_linux_check_watch_resources): Renamed to ...
789 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
790 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
791 (booke_cmp_hw_point): New function.
792 (booke_find_thread_points_by_tid): Ditto.
793 (booke_insert_point): Ditto.
794 (booke_remove_point): Ditto.
795 (ppc_linux_insert_hw_breakpoint): Ditto.
796 (ppc_linux_remove_hw_breakpoint): Ditto.
797 (get_trigger_type): Ditto.
798 (ppc_linux_insert_watchpoint): Handle BookE processors.
799 (ppc_linux_remove_watchpoint): Ditto.
800 (ppc_linux_new_thread): Ditto.
801 (ppc_linux_thread_exit): New function..
802 (ppc_linux_stopped_data_address): Handle BookE processors.
803 (ppc_linux_watchpoint_addr_within_range): Ditto.
804 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
805 to_remove_hw_breakpoint fields of the target operations struct.
806 Add observe for the thread_exit event.
807
808 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
809
810 * i386-linux-nat.c (regmap): Removed.
811 (fetch_register): Replace regmap with
812 i386_linux_gregset_reg_offset.
813 (store_register): Likewise.
814 (supply_gregset): Likewise.
815 (fill_gregset): Likewise.
816
817 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
818 global.
819
820 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
821
822 2010-04-22 Chris Moller <cmoller@redhat.com>
823
824 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
825 method of popping recursion-detection stack with a method based on
826 obstack_object_size(). (Similar to the PR9167 patch below, but for
827 the static array obstack rather than the static member obstack.)
828
829 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
830
831 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
832 (_initialize_amd64_linux_nat): Replace
833 amd64_linux_gregset64_reg_offset with
834 amd64_linux_gregset_reg_offset.
835
836 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
837 global.
838
839 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
840
841 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
842
843 PR stabs/11479.
844 * stabsread.c (set_length_in_type_chain): New function.
845 (read_struct_type): Call set_length_in_type_chain function.
846 (read_enum_type): Idem.
847
848 2010-04-21 Stan Shebs <stan@codesourcery.com>
849 Nathan Sidwell <nathan@codesourcery.com>
850
851 * tracepoint.c (trace_save): Open in binary mode.
852
853 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
854
855 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
856 fields.
857 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
858 builtin_char32 fields.
859 * printcmd.c (decode_format): Set char size to '\0'
860 for strings unless explicit size is given.
861 (print_formatted): Correct calculation of NEXT_ADDRESS
862 for 16 or 32 bit strings.
863 (do_examine): Do not force byte size for strings.
864 Use builtin_char16 and builtin_char32 types to display
865 16 or 32 bit-wide strings.
866 (x_command): Set LAST_SIZE to 'b' for string type.
867
868 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
869
870 PR corefiles/11523
871 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
872 XCR0 first.
873
874 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
875 there is no .reg-xstate section.
876 (i386_linux_core_read_description): Check XCR0 first.
877
878 2010-04-21 Mike Frysinger <vapier@gentoo.org>
879
880 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
881 for len <= 8.
882
883 2010-04-21 Chris Moller <cmoller@redhat.com>
884
885 PR 9167
886 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
887 method of popping recursion-detection stack with a method based on
888 obstack_object_size().
889
890 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
891
892 PR pascal/11492.
893 * p-valprint.c (pascal_val_print): Fix default printing of integer
894 arrays.
895
896 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
897
898 Fix compilation warning on gcc-4.1.2.
899 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
900 local variable`pc' to zero.
901
902 2010-04-20 Joel Brobecker <brobecker@adacore.com>
903
904 Implement thread support with core files on alpha-tru64.
905 * dec-thread.c (dec_thread_find_new_threads): New function,
906 extracted from resync_thread_list.
907 (resync_thread_list): Add OPS parameter. Replace extracted-out
908 code by call to dec_thread_find_new_threads.
909 (dec_thread_wait): Update call to resync_thread_list.
910 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
911
912 2010-04-20 Joel Brobecker <brobecker@adacore.com>
913
914 * ada-lang.c (value_pointer): New function.
915 (make_array_descriptor): Call value_pointer to convert addresses to
916 pointers.
917
918 2010-04-20 Joel Brobecker <brobecker@adacore.com>
919
920 * rs6000-aix-tdep.c: #include exceptions.h.
921 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
922 while reading the memory at ADDR, then ADDR cannot be a function
923 descriptor.
924
925 2010-04-20 Joel Brobecker <brobecker@adacore.com>
926
927 * ada-typeprint.c (ada_print_typedef): New function.
928 * ada-lang.h (ada_print_typedef): Add declaration.
929 * ada-lang.c (ada_language_defn): set la_print_typdef field
930 to ada_print_typedef.
931
932 2010-04-20 Joel Brobecker <brobecker@adacore.com>
933
934 * procfs.c (procfs_address_to_host_pointer): Only define when used.
935
936 2010-04-20 Joel Brobecker <brobecker@adacore.com>
937
938 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
939 (iterate_over_mappings): Adjust function profile. Add declaration.
940 (insert_dbx_link_bpt_in_region, info_mappings_callback):
941 Adjust accordingly.
942
943 2010-04-20 Joel Brobecker <brobecker@adacore.com>
944
945 * procfs.c (solib_mappings_callback): Move function up to avoid
946 a compiler warning.
947
948 2010-04-20 Joel Brobecker <brobecker@adacore.com>
949
950 * procfs.c (find_signalled_thread, find_stop_signal): Move
951 these functions down to define them only when used.
952
953 2010-04-20 Joel Brobecker <brobecker@adacore.com>
954
955 * valprint.c (common_val_print): Fix the value before extracting
956 its contents.
957 * ada-lang.c (ada_to_fixed_value): Make this function extern.
958 * ada-lang.h (ada_to_fixed_value): New function declaration.
959 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
960 to avoid code duplication and fix a bug in the handling of
961 fixed types contents.
962
963 2010-04-20 Tom Tromey <tromey@redhat.com>
964
965 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
966 (read_partial_die): Likewise.
967 (dwarf_attr_name): Likewise.
968
969 2010-04-20 Chris Moller <cmoller@redhat.com>
970
971 PR 10867
972
973 * cp-valprint.c (global): Adding new static array recursion
974 detection obstack.
975 (cp_print_value_fields, cp_print_static_field): Added new static
976 array recursion detection code.
977
978 2010-04-20 Mark Kettenis <kettenis@gnu.org>
979
980 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
981 general-purpose register set should be 68 instead of 144.
982 (i386_linux_sse_regset_sections): Likewise.
983 (i386_linux_avx_regset_sections): Likewise.
984
985 2010-04-20 Stan Shebs <stan@codesourcery.com>
986 Nathan Sidwell <nathan@codesourcery.com>
987
988 * dwarf2loc.c (struct axs_var_loc): New struct.
989 (dwarf2_tracepoint_var_loc): New function.
990 (dwarf2_tracepoint_var_access): New function.
991 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
992 with DW_OP_piece.
993 (locexpr_describe_location_piece): New function.
994 (locexpr_describe_location_1): New function.
995 (locexpr_describe_location): Call it, update signature.
996 (loclist_describe_location): Rewrite to loop over locations,
997 update signature.
998 * symtab.h (struct symbol_computed_ops): Add address to
999 describe_location arguments, return void.
1000 * printcmd.c (address_info): Get context PC, pass to computed
1001 location description.
1002 * tracepoint.c (scope_info): Ditto.
1003 * ax-gdb.c (trace_kludge): Export.
1004
1005 2010-04-20 Tom Tromey <tromey@redhat.com>
1006
1007 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
1008 (struct dwarf2_cie) <segment_size>: New field.
1009 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
1010 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
1011 DW_FORM_exprloc.
1012 (read_attribute_value): Handle DW_FORM_flag_present,
1013 DW_FORM_sec_offset, DW_FORM_exprloc.
1014 (dump_die_shallow): Likewise.
1015 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
1016 (dwarf2_const_value): Handle DW_FORM_exprloc.
1017 (attr_form_is_block): Likewise.
1018 (struct line_header) <maximum_ops_per_instruction>: New field.
1019 (dwarf_decode_line_header): Set new field.
1020 (dwarf_decode_lines): Handle new field.
1021
1022 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1023
1024 * f-exp.y: Add new production to recognize the `logical*8' type.
1025 (LOGICAL_S8_KEYWORD): New token.
1026 * f-lang.c (enum f_primitive_types)
1027 <f_primitive_type_logical_s8>: New field.
1028 (f_language_arch_info): Handling `logical*8' type.
1029 (build_fortran_types): Building `logical*8' type.
1030 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
1031
1032 2010-04-19 Doug Evans <dje@google.com>
1033
1034 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
1035 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
1036 (pipe_close): Ditto.
1037
1038 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1039
1040 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
1041
1042 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1043
1044 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
1045 type to void function.
1046
1047 2010-04-19 Stan Shebs <stan@codesourcery.com>
1048 Vladimir Prus <vladimir@codesourcery.com>
1049
1050 * tracepoint.c (tfind_1): Add missing newline, report exit from
1051 tfind mode as such.
1052 * target.c (update_current_target): Make default
1053 to_trace_find return -1.
1054
1055 2010-04-19 Mike Frysinger <vapier@gentoo.org>
1056
1057 * objc-lang.c (find_methods): Move symname check up.
1058
1059 2010-04-19 Pedro Alves <pedro@codesourcery.com>
1060
1061 * ada-lang.c (print_recreate_exception)
1062 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
1063 not "catch unhandled".
1064
1065 2010-04-19 Pedro Alves <pedro@codesourcery.com>
1066
1067 PR breakpoints/8554.
1068
1069 Implement `save-breakpoints'.
1070
1071 * breakpoint.c (save_cmdlist): New.
1072 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
1073 to save_cmdlist.
1074 (print_recreate_catch_fork): New.
1075 (catch_fork_breakpoint_ops): Install it.
1076 (print_recreate_catch_vfork): New.
1077 (catch_vfork_breakpoint_ops): Install it.
1078 (print_recreate_catch_syscall): New.
1079 (catch_syscall_breakpoint_ops): Install it.
1080 (print_recreate_catch_exec): New.
1081 (catch_exec_breakpoint_ops): Install it.
1082 (print_recreate_exception_catchpoint): New.
1083 (gnu_v3_exception_catchpoint_ops): Install it.
1084 (save_breakpoints): New, based on tracepoint_save_command, but
1085 handle all breakpoint types.
1086 (save_breakpoints_command): New.
1087 (tracepoint_save_command): Rename to...
1088 (save_tracepoints_command): ... this, and reimplement using
1089 save_breakpoints.
1090 (save_command): New.
1091 (_initialize_breakpoints): Install the "save" command prefix.
1092 Install the "save breakpoints" command. Make "save-tracepoints" a
1093 deprecated alias for "save tracepoints".
1094 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
1095 * ada-lang.c (print_recreate_exception): New.
1096 (print_recreate_catch_exception): New.
1097 (catch_exception_breakpoint_ops): Install it.
1098 (print_recreate_catch_exception_unhandled): New.
1099 (catch_exception_unhandled_breakpoint_ops): Install it.
1100 (print_recreate_catch_assert): New.
1101 (catch_assert_breakpoint_ops): Install it.
1102
1103 * NEWS: Mention the new `save breakpoints' command. Mention the
1104 new `save tracepoints' alias and that `save-tracepoints' is now
1105 deprecated.
1106
1107 2010-04-18 Pedro Alves <pedro@codesourcery.com>
1108
1109 PR tui/9217
1110
1111 * tui/tui-out.c: Include cli-out.h.
1112 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
1113 (tui_begin, tui_end, tui_field_int, tui_field_skip)
1114 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
1115 (tui_message, tui_wrap_hint, tui_flush): Delete forward
1116 declarations.
1117 (struct ui_out_data): Rename to...
1118 (struct tui_ui_out_data): ... this. Remove `stream' and
1119 `suppress_output' fields, and inherit cli_ui_out_data.
1120 (tui_out_data): New typedef.
1121 (tui_ui_out_impl): Don't initialize fields staticaly.
1122 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
1123 (tui_begin, tui_end): Delete.
1124 (tui_field_int): Adjust to delegate most work to the base type.
1125 (tui_field_skip): Delete.
1126 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
1127 delegate most work to the base type.
1128 (tui_spaces): Delete.
1129 (tui_text): Adjust to delegate most work to the base type.
1130 (tui_message): Delete.
1131 (tui_wrap_hint): Delete.
1132 (tui_flush): Delete.
1133 (out_field_fmt): Delete.
1134 (field_separator): Delete.
1135 (tui_out_new): Adjust to initialize the base type.
1136 (_initialize_tui_out): Initialize tui_ui_out_impl.
1137 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
1138 cli_ui_out_data.
1139 (cli_out_data): Adjust.
1140 (cli_ui_out_impl): Make extern.
1141 (cli_table_header, cli_field_int, cli_field_skip): Use
1142 uo_field_string instead of cli_field_string.
1143 (cli_redirect): Adjust to use cli_out_data.
1144 (cli_out_data_ctor): New.
1145 (cli_out_new): Use it.
1146 * cli-out.h (struct ui_file): Remove forward declaration.
1147 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
1148 (cli_ui_out_impl): Declare.
1149 (cli_out_data_ctor): Declare.
1150 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
1151 (uo_field_string): No longer static.
1152 (ui_out_data): Change return type to void pointer.
1153 (ui_out_new): Change `data' parameter type to void pointer.
1154 * ui-out.h (struct ui_out_data): Don't forward declare.
1155 (ui_out_data): Change return type to void pointer.
1156 (ui_out_new): Change `data' parameter type to void pointer.
1157 (uo_field_string): Declare.
1158
1159 2010-04-17 Pedro Alves <pedro@codesourcery.com>
1160
1161 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
1162 instead of always false.
1163
1164 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
1165
1166 PR corefiles/11511
1167 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
1168 orig_rax.
1169
1170 2010-04-17 Pedro Alves <pedro@codesourcery.com>
1171
1172 * breakpoint.c (watchpoints_triggered): Use
1173 is_hardware_watchpoint.
1174 (watchpoints_triggered): Ditto.
1175 (bpstat_check_location): Use is_watchpoint and
1176 is_hardware_watchpoint.
1177 (bpstat_check_watchpoint): Use is_watchpoint and
1178 is_hardware_watchpoint.
1179 (bpstat_stop_status): Fix comment.
1180 (user_settable_breakpoint): Use is_watchpoint.
1181 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
1182 (disable_watchpoints_before_interactive_call_start): Use
1183 is_watchpoint.
1184 (enable_watchpoints_after_interactive_call_stop): Use
1185 is_watchpoint.
1186 (clear_command): Use is_watchpoint.
1187 (do_enable_breakpoint): Use is_watchpoint.
1188
1189 2010-04-16 Mike Frysinger <vapier@gentoo.org>
1190
1191 * solib-frv.c (enable_break1_done): Delete.
1192 (enable_break2): Do not check enable_break1_done. Move the
1193 enable_break2_done setting and call to
1194 remove_solib_event_breakpoints() to the end. Return without
1195 warning when the contents of _dl_debug_addr are 0.
1196 (enable_break): Do not set enable_break1_done.
1197 (frv_clear_solib): Likewise.
1198
1199 2010-04-16 Kevin Buettner <kevinb@redhat.com>
1200
1201 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
1202 instead of an error if no PLT entry is found. Return a
1203 potentially useful result.
1204 (m32c_m16c_pointer_to_address): Add code to search for function
1205 address when no .plt entry is found.
1206
1207 2010-04-16 Stan Shebs <stan@codesourcery.com>
1208
1209 * tracepoint.c (trace_variable_command): Run a cleanup.
1210
1211 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
1212
1213 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
1214
1215 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
1216
1217 Support for Windows OS Thread Information Block.
1218 * NEWS: Document new feature.
1219 * remote.c (PACKET_qGetTIBAddr): New enum element.
1220 (remote_get_tib_address): New function.
1221 (init_remote_ops): Set to_get_tib_address field
1222 to remote_get_tib_address.
1223 (_initialize_remote): Add add_packet_config_cmd
1224 for PACKET_qGetTIBAddr.
1225 * target.c (update_current_target): Set default value for
1226 new to_get_tib_address field.
1227 * target.h (target_ops): New field to_get_tib_address.
1228 (target_get_tib_address): New macro.
1229 * windows-nat.c (thread_info): Add thread_local_base field.
1230 (windows_add_thread): Add tlb argument of type 'void *'.
1231 (fake_create_process): Adapt windows_add_thread call.
1232 (get_windows_debug_event): Idem.
1233 (windows_get_tib_address): New function.
1234 (init_windows_ops): Set to_get_tib_address field
1235 to remote_get_tib_address.
1236 (_initialize_windows_nat): Replace info_w32_cmdlist
1237 initialization by a call to init_w32_command_list.
1238 (info_w32_command, info_w32_cmdlist): Removed from here...
1239 to windows-tdep.c file.
1240 * windows-tdep.h (info_w32_cmdlist): Declare.
1241 (init_w32_command_list): New external function
1242 declaration.
1243 * windows-tdep.c: Add several headers.
1244 (info_w32_cmdlist): to here, made global.
1245 (thread_information_32): New struct.
1246 (thread_information_64): New struct.
1247 (TIB_NAME): New char array.
1248 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
1249 (maint_display_all_tib): New static variable.
1250 (windows_get_tlb_type): New function.
1251 (tlb_value_read, tlb_value_write): New functions.
1252 (tlb_value_funcs): New static struct.
1253 (tlb_make_value): New function.
1254 (display_one_tib): New function.
1255 (display_tib): New function.
1256 (show_maint_show_all_tib):New function.
1257 (info_w32_command): Moved from windows-nat.c.
1258 (init_w32_command_list): New function.
1259 (_initialize_windows_tdep): New function.
1260 New "maint set/show show-all-tib" command
1261 New "$_tlb" internal variable.
1262
1263 2010-04-16 Joel Brobecker <brobecker@adacore.com>
1264
1265 * tui/tui-regs.c (tui_display_register): Add comment about
1266 a couple of casts.
1267 * tui/tui-stack.c (tui_show_locator_content): Ditto.
1268
1269 2010-04-15 Stan Shebs <stan@codesourcery.com>
1270
1271 * frame.c: Include tracepoint.h.
1272 (get_current_frame): Allow a trace frame to be an alternate source
1273 of stack frame data.
1274 * tracepoint.c (tfind_1): Don't try to get current stack frame if
1275 it won't succeed.
1276
1277 2010-04-15 Pedro Alves <pedro@codesourcery.com>
1278
1279 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
1280 flags.
1281 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
1282
1283 2010-04-15 Doug Evans <dje@google.com>
1284
1285 * NEWS: Add entry for python program space support.
1286 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
1287 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
1288 (py-progspace.o): New rule.
1289 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
1290 function.
1291 (find_pretty_printer_from_progspace): New function.
1292 (find_pretty_printer_from_gdb): New function.
1293 (find_pretty_printer): Rewrite.
1294 * python/py-progspace.c: New file.
1295 * python/python-internal.h (program_space): Add forward decl.
1296 (pspace_to_pspace_object, pspy_get_printers): Declare.
1297 (gdbpy_initialize_pspace): Declare.
1298 * python/python.c: #include "progspace.h".
1299 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
1300 (_initialize_python): Call gdbpy_initialize_pspace.
1301 (GdbMethods): Add current_progspace, progspaces.
1302
1303 Add -s option to source command.
1304 * NEWS: Document new option.
1305 * cli/cli-cmds.c (find_and_open_script): Add function comment.
1306 Delete from_tty and cleanupp args. Split filep arg into file and
1307 full_pathp. New arg search_path.
1308 (source_script_from_stream): New function.
1309 (source_script_with_search): New function.
1310 (source_script): Rewrite.
1311 (source_command): Parse "-s" option.
1312 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
1313 * python/python.c (source_python_script): Make file arg a const char *.
1314 Don't call fclose, leave for caller.
1315 * python/python.h (source_python_script): Update.
1316
1317 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1318 Pedro Alves <pedro@codesourcery.com>
1319
1320 Avoid rereading shared libraries that haven't changed.
1321
1322 * solib.c (free_so_symbols): New function, from ...
1323 (free_so): ... here. Call it.
1324 (solib_read_symbols): Don't warn here if symbols have already been
1325 loaded.
1326 (solib_add): Warn here instead, if a pattern was specified.
1327 (reload_shared_libraries_1): New.
1328 (reload_shared_libraries): Rewrite to not fetch the library list.
1329
1330 2010-04-14 Doug Evans <dje@google.com>
1331
1332 * source.c (openp): Strip DOS drive letter if present before
1333 concatenating string to search path.
1334
1335 2010-04-14 Pedro Alves <pedro@codesourcery.com>
1336
1337 * objfiles.h (gdb_bfd_close_or_warn): Declare.
1338 * objfiles.c (gdb_bfd_close_or_warn): New.
1339 * corelow.c: Include objfiles.h
1340 (core_close): Use gdb_bfd_close_or_warn.
1341 * elfread.c (build_id_verify): Ditto.
1342 * exec.c (exec_close, exec_close_1): Ditto.
1343
1344 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1345 Pedro Alves <pedro@codesourcery.com>
1346
1347 Group errors for many missing shared libraries.
1348
1349 * solist.h (struct so_list): Remove from_tty.
1350 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
1351 (solib_map_sections): Take so_list argument. Return 0 if we
1352 failed to open a BFD. Add target sections here.
1353 (symbol_add_stub): Delete.
1354 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
1355 not from_tty copied from the so_list. Don't warn a second time
1356 for a missing library.
1357 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
1358 add to the section table here. Print out a single warning for all
1359 missing libraries.
1360 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
1361 flags.
1362
1363 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
1364
1365 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
1366 error/warning messages. Capitalize and use complete sentences.
1367 (blpy_block_syms_iternext): Likewise.
1368 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
1369 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
1370 (frame_info_to_frame_object, frapy_read_var)
1371 (gdbpy_frame_stop_reason_string): Likewise.
1372 * python/py-lazy-string.c (stpy_convert_to_value)
1373 (gdbpy_create_lazy_string_object): Likewise.
1374 * python/py-objfile.c (objfpy_set_printers): Likewise.
1375 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
1376 * python/python.c (parameter_to_python): Likewise.
1377 * python/py-type.c (typy_range, typy_target): Likewise.
1378 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
1379 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
1380
1381
1382 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
1383
1384 PR python/11381
1385
1386 * python/py-prettyprint.c (pretty_print_one_value): Test for
1387 Py_None.
1388 (print_string_repr): Test for Py_None. Set flags accordingly.
1389 Return value depending on return type.
1390 (print_children): Take a value indicating whether data was printed
1391 before this function was called. Alter output accordingly.
1392 (apply_val_pretty_printer): Capture return value from
1393 print_string_repr and pass to print_children.
1394
1395 2010-04-13 Mark Kettenis <kettenis@gnu.org>
1396
1397 PR corefiles/11481
1398 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
1399 register note sections.
1400 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1401 New variables.
1402 (i386_linux_init_abi): Install list of supported register note
1403 sections that matches the target description.
1404
1405 2010-04-13 Pedro Alves <pedro@codesourcery.com>
1406
1407 * remote.c (remote_get_noisy_reply): Don't error out on empty
1408 replies.
1409 (remote_start_remote): Update and merge tracepoints and trace
1410 state variables as long as the target supports tracepoints.
1411 (remote_trace_init): Fix prototype.
1412 (remote_download_trace_state_variable): Validate reply.
1413 (remote_trace_set_readonly_regions): Fix prototype.
1414 (remote_trace_start): Fix prototype. Check for empty reply.
1415 (remote_get_trace_status): Small cleanup.
1416 (remote_trace_stop): Fix prototype. Check for empty reply.
1417 (remote_trace_find): Check for empty reply.
1418 (remote_save_trace_data): Validate reply.
1419 (remote_set_disconnected_tracing): Check for empty reply, and
1420 validate reply.
1421 (remote_set_circular_trace_buffer): Ditto.
1422
1423 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
1424
1425 Suppress unused value warning during compilation.
1426 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
1427 calls to void.
1428 * tui/tui-stack.c (tui_show_locator_content): Likewise.
1429
1430 2010-04-12 Stan Shebs <stan@codesourcery.com>
1431
1432 * tracepoint.c (tfile_xfer_partial): Check read result.
1433
1434 2010-04-12 Mike Frysinger <vapier@gentoo.org>
1435
1436 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
1437 * remote-sim.c (gdbsim_files_info): Likewise.
1438
1439 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1440
1441 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
1442 * arm-linux-nat.c (arm_linux_vfp_register_count): New
1443 variable.
1444 (fetch_vfp_registers): New function to fetch VFP registers.
1445 (store_vfp_registers): New function to store VFP registers.
1446 (arm_linux_fetch_inferior_registers): Add support for VFP
1447 registers.
1448 (arm_linux_store_inferior_registers): Likewise.
1449 (arm_linux_read_description): Likewise.
1450 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
1451 until we need it.
1452
1453 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
1454
1455 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
1456 tdep.
1457 (amd64_collect_xstateregset): Likewise.
1458
1459 2010-04-09 Stan Shebs <stan@codesourcery.com>
1460
1461 * tracepoint.c (trace_status_mi): Report frames created.
1462
1463 * tracepoint.c (trace_dump_command): Include default-collect
1464 expressions.
1465
1466 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
1467
1468 * symtab.c (find_function_start_sal): Never return SAL pointing
1469 before function start address, even if line info is missing.
1470
1471 2010-04-09 Pedro Alves <pedro@codesourcery.com>
1472
1473 * NEWS: Mention tracepoints support.
1474
1475 2010-04-09 Pedro Alves <pedro@codesourcery.com>
1476
1477 * tracepoint.c (trace_status_mi): Report disconnected tracing and
1478 circular trace buffer statuses.
1479
1480 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1481
1482 * config/djgpp/fnchange.lst: Fix typo in translations for
1483 symbol-without-target_section.exp and symbol-without-target_section.c.
1484
1485 2010-04-09 Pedro Alves <pedro@codesourcery.com>
1486
1487 * breakpoint.c (condition_command): Pass condition expression to
1488 set_breakpoint_condition stripped from breakpoint number.
1489
1490 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
1491 Thiago Jung Bauermann <bauerman@br.ibm.com>
1492 Tom Tromey <tromey@redhat.com>
1493
1494 * breakpoint.c (condition_command): Simplify. Move condition
1495 setting code to ...
1496 (set_breakpoint_condition): ... here. New function.
1497 * breakpoint.h (set_breakpoint_condition): Declare.
1498 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
1499 (SUBDIR_PYTHON_SRCS): Likewise.
1500 (py-breakpoint.o): New rule.
1501 * python/py-breakpoint.c: New file.
1502 * python/python-internal.h (gdbpy_breakpoints)
1503 (gdbpy_initialize_breakpoints): Declare.
1504 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
1505
1506 2010-04-09 Pedro Alves <pedro@codesourcery.com>
1507
1508 * regformats/regdat.sh: Include server.h. Don't include
1509 regcache.h.
1510
1511 2010-04-08 Stan Shebs <stan@codesourcery.com>
1512 Pedro Alves <pedro@codesourcery.com>
1513
1514 * tracepoint.h (struct trace_status): New fields disconnected_tracing
1515 and circular_buffer.
1516 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
1517 * tracepoint.c (trace_status_command): Display target's status for
1518 disconnected tracing and circular buffer.
1519 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
1520 query for non-disconnected-tracing case, remove the stop_tracing
1521 call.
1522 (tfile_open): Clear disconnected and circular buffer status.
1523 (trace_save): Save disconnected and circular buffer status.
1524 (parse_trace_status): Parse disconnected and circular buffer status,
1525 also recognize disconnected as a stop reason.
1526 * remote.c (remote_set_disconnected_tracing): Only set
1527 QTDisconnected if the remote end supports disconnected tracing.
1528 Warn otherwise, if trying to enable disconnected tracing.
1529 * infcmd.c (detach_command): Update disconnect_tracing call.
1530 * cli/cli-cmds.c (quit_command): Ditto.
1531
1532 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
1533
1534 * i387-tdep.c (i387_collect_xsave): Replace abort with
1535 internal_error.
1536
1537 2010-04-08 Stan Shebs <stan@codesourcery.com>
1538
1539 * breakpoint.c (default_collect_info): New function.
1540 (breakpoints_info): Call it.
1541 (maintenance_info_breakpoints): Ditto.
1542 (tracepoints_info): Ditto.
1543
1544 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
1545
1546 * i387-tdep.c (i387_collect_xsave): Re-indent.
1547
1548 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
1549
1550 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
1551 if HAVE_PTRACE_GETFPXREGS is defined.
1552 (i386_linux_read_description): Set have_ptrace_getfpxregs and
1553 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
1554
1555 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
1556 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
1557 if .reg-xfp section doesn't exist.
1558 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
1559
1560 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
1561
1562 * i386-tdep.c: Include "features/i386/i386-mmx.c".
1563 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
1564 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
1565 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
1566 (i386_gdbarch_init): Update comments.
1567 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
1568
1569 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
1570
1571 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
1572
1573 * features/Makefile (i386/i386-mmx-expedite): New.
1574 (i386/i386-mmx-linux-expedite): Likewise.
1575 ($(outdir)/i386/i386-mmx.dat): Likewise.
1576 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
1577
1578 * features/i386/i386-mmx-linux.c: New.
1579 * features/i386/i386-mmx-linux.xml: Likewise.
1580 * features/i386/i386-mmx.c: Likewise.
1581 * features/i386/i386-mmx.xml: Likewise.
1582 * regformats/i386/i386-mmx-linux.dat: Likewise.
1583 * regformats/i386/i386-mmx.dat: Likewise.
1584
1585 * features/Makefile (WHICH): Add i386/i386-mmx and
1586 i386/i386-mmx-linux.
1587
1588 2010-04-08 Doug Evans <dje@google.com>
1589
1590 * source.c (openp): Skip $cdir in PATH.
1591
1592 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
1593
1594 PR python/11417
1595 * python/py-lazy-string.c (stpy_convert_to_value): Check for
1596 a NULL address.
1597 (gdbpy_create_lazy_string_object): Allow strings with a NULL
1598 address and a zero length.
1599
1600 2010-04-08 Hui Zhu <teawater@gmail.com>
1601
1602 * i386-tdep.c (i386_process_record): Add support for insn
1603 rdtsc.
1604
1605 2010-04-07 Doug Evans <dje@google.com>
1606
1607 * python/python.c (source_python_script): Use ensure_python_env
1608 to prepare environment for script.
1609
1610 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
1611
1612 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
1613 <sys/uio.h> and "i386-xstate.h".
1614 (PTRACE_GETREGSET): New.
1615 (PTRACE_SETREGSET): Likewise.
1616 (have_ptrace_getregset): Likewise.
1617 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
1618 registers.
1619 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
1620 registers.
1621 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
1622 (amd64_linux_store_inferior_registers): Likewise.
1623 (amd64_linux_read_description): Check and enable AVX target
1624 descriptions.
1625
1626 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
1627 and "features/i386/amd64-avx-linux.c".
1628 (amd64_linux_regset_sections): New.
1629 (amd64_linux_core_read_description): Check and enable AVX
1630 target description.
1631 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
1632 set_gdbarch_core_regset_sections.
1633 (_initialize_amd64_linux_tdep): Call
1634 initialize_tdesc_amd64_avx_linux.
1635
1636 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
1637 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
1638 (tdesc_amd64_avx_linux): New.
1639 (amd64_linux_update_xstateregset): Likewise.
1640
1641 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
1642 (amd64_ymm_names): New.
1643 (amd64_ymmh_names): Likewise.
1644 (amd64_register_name): Likewise.
1645 (amd64_supply_xstateregset): Likewise.
1646 (amd64_collect_xstateregset): Likewise.
1647 (amd64_supply_xsave): Likewise.
1648 (amd64_collect_xsave): Likewise.
1649 (AMD64_NUM_REGS): Removed.
1650 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
1651 %xmmN if AVX is available.
1652 (amd64_pseudo_register_name): Support pseudo YMM registers.
1653 (amd64_regset_from_core_section): Support .reg-xstate section.
1654 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
1655 and ymm0h_regnum. Call set_gdbarch_register_name.
1656 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
1657
1658 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
1659 AMD64_YMM15H_REGNUM.
1660 (AMD64_NUM_REGS): New.
1661 (amd64_supply_xsave): Likewise.
1662 (amd64_collect_xsave): Likewise.
1663 (amd64_register_name): Removed.
1664 (amd64_register_type): Likewise.
1665
1666 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
1667
1668 * i387-tdep.c: Include "i386-xstate.h".
1669 (XSAVE_XSTATE_BV_ADDR): New.
1670 (xsave_avxh_offset): Likewise.
1671 (XSAVE_AVXH_ADDR): Likewise.
1672 (i387_supply_xsave): Likewise.
1673 (i387_collect_xsave): Likewise.
1674
1675 * i387-tdep.h (I387_NUM_YMM_REGS): New.
1676 (I387_YMM0H_REGNUM): Likewise.
1677 (I387_YMMENDH_REGNUM): Likewise.
1678 (i387_supply_xsave): Likewise.
1679 (i387_collect_xsave): Likewise.
1680
1681 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
1682
1683 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
1684 <sys/uio.h> and "i386-xstate.h".
1685 (PTRACE_GETREGSET): New.
1686 (PTRACE_SETREGSET): Likewise.
1687 (fetch_xstateregs): Likewise.
1688 (store_xstateregs): Likewise.
1689 (GETXSTATEREGS_SUPPLIES): Likewise.
1690 (regmap): Include 8 upper YMM registers.
1691 (i386_linux_fetch_inferior_registers): Support XSAVE extended
1692 state.
1693 (i386_linux_store_inferior_registers): Likewise.
1694 (i386_linux_read_description): Check and enable AVX target
1695 descriptions.
1696
1697 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
1698 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
1699 (i386_linux_regset_sections): Add ".reg-xstate".
1700 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
1701 (i386_linux_core_read_xcr0): New.
1702 (i386_linux_core_read_description): Check and enable AVX target
1703 description.
1704 (i386_linux_init_abi): Set xsave_xcr0_offset.
1705 (_initialize_i386_linux_tdep): Call
1706 initialize_tdesc_i386_avx_linux.
1707
1708 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
1709 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
1710 (i386_linux_core_read_xcr0): New.
1711 (tdesc_i386_avx_linux): Likewise.
1712 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
1713
1714 * i386-tdep.c: Include "i386-xstate.h" and
1715 "features/i386/i386-avx.c".
1716 (i386_ymm_names): New.
1717 (i386_ymmh_names): Likewise.
1718 (i386_ymmh_regnum_p): Likewise.
1719 (i386_ymm_regnum_p): Likewise.
1720 (i386_xmm_regnum_p): Likewise.
1721 (i386_register_name): Likewise.
1722 (i386_ymm_type): Likewise.
1723 (i386_supply_xstateregset): Likewise.
1724 (i386_collect_xstateregset): Likewise.
1725 (i386_sse_regnum_p): Removed.
1726 (i386_pseudo_register_name): Support pseudo YMM registers.
1727 (i386_pseudo_register_type): Likewise.
1728 (i386_pseudo_register_read): Likewise.
1729 (i386_pseudo_register_write): Likewise.
1730 (i386_dbx_reg_to_regnum): Return %ymmN register number for
1731 %xmmN if AVX is available.
1732 (i386_regset_from_core_section): Support .reg-xstate section.
1733 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
1734 (i386_process_record): Replace i386_sse_regnum_p with
1735 i386_xmm_regnum_p.
1736 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
1737 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
1738 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
1739 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
1740 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
1741 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
1742 Set ymm0_regnum.
1743 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
1744
1745 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
1746 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
1747 i386_ymm_type.
1748 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
1749 (I386_AVX_NUM_REGS): New.
1750 (i386_xmm_regnum_p): Likewise.
1751 (i386_ymm_regnum_p): Likewise.
1752 (i386_ymmh_regnum_p): Likewise.
1753
1754 * common/i386-xstate.h: New.
1755
1756 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
1757
1758 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
1759
1760 * features/Makefile (WHICH): Add i386/i386-avx,
1761 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
1762 (i386/i386-avx-expedite): New.
1763 (i386/i386-avx-linux-expedite): Likewise.
1764 (i386/x86-64-avx-expedite):Likewise.
1765 (i386/x86-64-avx-linux-expedite): Likewise.
1766 ($(outdir)/i386/i386-avx.dat): New dependency.
1767 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
1768 ($(outdir)/i386/x86-avx-64.dat): Likewise.
1769 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
1770
1771 * features/i386/32bit-avx.xml: New.
1772 * features/i386/64bit-avx.xml: Likewise.
1773 * features/i386/i386-avx-linux.c: Likewise.
1774 * features/i386/i386-avx-linux.xml: Likewise.
1775 * features/i386/i386-avx.c: Likewise.
1776 * features/i386/i386-avx.xml: Likewise.
1777 * features/i386/x86-64-avx-linux.c: Likewise.
1778 * features/i386/x86-64-avx-linux.xml: Likewise.
1779 * features/i386/x86-64-avx.c: Likewise.
1780 * features/i386/x86-64-avx.xml: Likewise.
1781 * regformats/i386/i386-avx-linux.dat: Likewise.
1782 * regformats/i386/i386-avx.dat: Likewise.
1783 * regformats/i386/x86-64-avx-linux.dat: Likewise.
1784 * regformats/i386/x86-64-avx.dat: Likewise.
1785
1786 2010-04-07 Doug Evans <dje@google.com>
1787
1788 * top.c (source_file_name): Make const char *.
1789 * top.h (source_file_name): Update.
1790 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
1791 const char *.
1792 (script_from_file): Change `file' arg to const char *.
1793 * cli/cli-script.h (script_from_file): Update.
1794
1795 2010-04-06 Doug Evans <dje@google.com>
1796
1797 * cli/cli-cmds.c (source_command): Run cleanups.
1798
1799 2010-04-06 Stan Shebs <stan@codesourcery.com>
1800
1801 * defs.h (char_ptr): Move typedef here from...
1802 * ada-lang.c (char_ptr): Remove.
1803 * charset.c (char_ptr): Remove.
1804 * tracepoint.h (struct uploaded_string): Remove.
1805 (struct uploaded_tp): Use vectors for string arrays.
1806 * tracepoint.c (trace_save): Use vectors of actions.
1807 (parse_tracepoint_definition): Ditto.
1808 (get_uploaded_tp): Clear vectors.
1809 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
1810 (next_cmd): Change to an int.
1811 (read_next_cmd): Use vector of command strings.
1812
1813 2010-04-06 Doug Evans <dje@google.com>
1814
1815 * top.h (source_script, cd_command): Delete.
1816 * main.c: #include "cli/cli-cmds.h"
1817
1818 2010-04-06 Kevin Buettner <kevinb@redhat.com>
1819
1820 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
1821 type in bytes, not bits.
1822
1823 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
1824
1825 * stabsread.c (define_symbol): Add support for char
1826 and string constants.
1827
1828 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
1829
1830 Remove remaining "%ll" uses.
1831 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
1832 hex_string call.
1833 * rs6000-nat.c (rs6000_ptrace64): Idem.
1834 * solib-pa64.c (pa64_current_sos): Idem.
1835 * solib-spu.c (spu_current_sos): Idem.
1836 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
1837 plongest call.
1838 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
1839 phex (VAR, 8) call.
1840 * sh64-tdep.c (sh64_show_media_regs): Idem.
1841
1842 2010-04-05 Stan Shebs <stan@codesourcery.com>
1843
1844 * tracepoint.c: Include gdbcore.h.
1845 (tfile_xfer_partial): Return partial results, also try reading
1846 from executable.
1847 (tfile_has_all_memory): New function.
1848 (init_tfile_ops): Use it.
1849
1850 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
1851
1852 PR gdb/10736:
1853 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
1854 the changes in data-directory.
1855 (init_sysinfo): Reload the syscall XML file if the data-directory
1856 has changed.
1857
1858 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1859
1860 Code cleanup.
1861 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
1862
1863 2010-04-04 Stan Shebs <stan@codesourcery.com>
1864 Nathan Sidwell <nathan@codesourcery.com>
1865
1866 * breakpoint.c (breakpoint_1): Add filter argument, return number of
1867 breakpoints printed.
1868 (is_hardware_watchpoint): Make argument const.
1869 (is_watchpoint): Ditto.
1870 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
1871 use it everywhere.
1872 (breakpoints_info): Pass NULL to breakpoint_1.
1873 (maintenance_info_breakpoints): Ditto.
1874 (watchpoints_info): New function.
1875 (tracepoints_info): Use breakpoint_1 filter.
1876 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
1877 (_initialize_breakpoint): Make "info watchpoints" its own command.
1878 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
1879 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
1880
1881 2010-04-04 Stan Shebs <stan@codesourcery.com>
1882
1883 * tracepoint.c (tfile_fetch_registers): Add fallback case.
1884
1885 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1886
1887 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
1888 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
1889
1890 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1891
1892 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
1893 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
1894
1895 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1896
1897 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
1898 code form.
1899
1900 2010-04-02 Hui Zhu <teawater@gmail.com>
1901
1902 * i386-tdep.c (OT_DQUAD): New enum.
1903 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
1904 SSE3, SSSE3 and SSE4.
1905
1906 2010-04-02 Hui Zhu <teawater@gmail.com>
1907
1908 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
1909 "*addr = 0".
1910
1911 2010-04-02 Pedro Alves <pedro@codesourcery.com>
1912
1913 * tracepoint.c (trace_dump_actions): New, factored out from
1914 trace_dump_command, and adjusted to recurse into while-stepping's
1915 action list.
1916 (trace_dump_command): Use it.
1917
1918 2010-04-02 Pedro Alves <pedro@codesourcery.com>
1919
1920 * breakpoint.h (struct counted_command_line): Moved definition to
1921 breakpoint.c, and forward declare.
1922 (breakpoint_commands): Declare.
1923 * breakpoint.c (struct counted_command_line): Moved here.
1924 (breakpoint_commands): New.
1925 * tracepoint.c (encode_actions): Use breakpoint_commands.
1926 * remote.c (remote_download_tracepoint): Ditto.
1927
1928 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
1929
1930 * remote.c (remote_parse_stop_reply): Use hex_string instead
1931 of phex_nz for error.
1932
1933 2010-04-01 Stan Shebs <stan@codesourcery.com>
1934 Nathan Sidwell <nathan@codesourcery.com>
1935
1936 * tracepoint.h (enum actionline_type): Remove.
1937 (validate_actionline): Change return to void.
1938 * tracepoint.c (report_agent_reqs_errors): New function.
1939 (validate_actionline): Call it, change return to void, report errors
1940 more consistently.
1941 (collect_symbol): Call report_agent_reqs_errors.
1942 (encode_actions_1): Ditto.
1943 (encode_actions): Don't expect a result from validate_actionline.
1944
1945 2010-04-01 Stan Shebs <stan@codesourcery.com>
1946
1947 * tracepoint.c (trace_start_command): Confirm if trace is running.
1948 (trace_stop_command): Error if trace not running.
1949
1950 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
1951
1952 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
1953 (AMD64_NUM_LOWER_BYTE_REGS): New.
1954 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
1955 (amd64_pseudo_register_write): Likewise.
1956 (amd64_init_abi): Set num_byte_regs to 20.
1957
1958 2010-04-01 Pedro Alves <pedro@codesourcery.com>
1959
1960 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
1961 (prev_breakpoint_count): New.
1962 (set_breakpoint_count): Adjust.
1963 (rbreak_start_breakpoint_count): New.
1964 (start_rbreak_breakpoints): Adjust.
1965 (end_rbreak_breakpoints): Adjust.
1966 (struct commands_info) <arg>: New field.
1967 (do_map_commands_command): Tweak output to include breakpoint spec
1968 range.
1969 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
1970 ARG was empty on entry. Set INFO's arg.
1971 (create_breakpoint): Adjust.
1972
1973 * NEWS: Clarify `commands' changes.
1974
1975 2010-04-01 Pedro Alves <pedro@codesourcery.com>
1976
1977 * tracepoint.c: Include stack.h.
1978 (struct add_local_symbols_data): New.
1979 (do_collect_symbol): New.
1980 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
1981 iterate_over_block_local_vars.
1982 * stack.c (print_block_frame_locals): Rewrite as ...
1983 (iterate_over_block_locals): ... this. Take a callback function
1984 pointer and generic data pointer, and call that instead of
1985 print_variable_and_value.
1986 (struct print_variable_and_value_data): New.
1987 (do_print_variable_and_value): New.
1988 (iterate_over_block_local_vars): New, abstracted out from
1989 print_frame_local_vars.
1990 (print_frame_local_vars): Rewrite using
1991 iterate_over_block_local_vars.
1992 (iterate_over_block_arg_vars): New, abstracted out from
1993 print_frame_arg_vars.
1994 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
1995 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
1996 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
1997
1998 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
1999
2000 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
2001 instructions. Use the PC+4 if the base of the TBB or TBH is the
2002 PC register.
2003
2004 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2005
2006 Fix crash on reading wrong function declaration DWARF.
2007 * dwarf2read.c (read_subroutine_type): New variable void_type.
2008 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
2009 more close to their use.
2010
2011 2010-03-31 Stan Shebs <stan@codesourcery.com>
2012
2013 * breakpoint.c (tracepoint_save_command): Include variables,
2014 conditionals, tracepoint types, and default-collect.
2015 * tracepoint.c (save_trace_state_variables): New function.
2016 * tracepoint.h (save_trace_state_variables): Declare it.
2017
2018 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
2019
2020 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2021
2022 2010-03-30 Keith Seitz <keiths@redhat.com>
2023
2024 * c-typeprint.c (c_type_print_args): Don't print "void"
2025 for java, regardless of whether it is TYPE_PROTOTYPED.
2026 Use the passed-in language instead of current_language.
2027 (c_type_print_varspec_suffix): Use current_language instead
2028 of assuming language_c.
2029 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
2030 any return type specifier from the physname.
2031
2032 2010-03-30 Pedro Alves <pedro@codesourcery.com>
2033
2034 * tui/tui-interp.c (tui_is_toplevel): New.
2035 (tui_init): Set it.
2036 (tui_allowed_p): New.
2037 * tui/tui.c (tui_enable): Check if the TUI is allowed before
2038 enabling it.
2039 * tui/tui.h (tui_allowed_p): Declare.
2040
2041 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
2042
2043 * serial.h: Include winsock2.h before windows.h.
2044
2045 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
2046
2047 * NEWS: Mention xmlRegisters= in qSupported packet.
2048
2049 * i386-tdep.c: Include "remote.h".
2050 (_initialize_i386_tdep): Call register_remote_support_xml.
2051
2052 * remote.c (remote_support_xml): New.
2053 (register_remote_support_xml): Likewise.
2054 (remote_query_supported_append): Likewise.
2055 (remote_query_supported): Support remote_support_xml.
2056
2057 * remote.h (register_remote_support_xml): New.
2058
2059 2010-03-29 Stan Shebs <stan@codesourcery.com>
2060
2061 * tracepoint.c (trace_find_line_command): Remove dead code.
2062
2063 * tracepoint.h (struct uploaded_string): New struct.
2064 (struct uploaded_tp): New fields for source strings.
2065 * breakpoint.c (this_utp, next_cmd): New globals.
2066 (read_uploaded_action): New function.
2067 (create_tracepoint_from_upload): Fill in more parts
2068 of a tracepoint.
2069 * tracepoint.c (encode_source_string): New function.
2070 (trace_save): Write out source strings, fix error checks.
2071 (parse_tracepoint_definition): Add source string parsing.
2072 * remote.c (PACKET_TracepointSource): New packet type.
2073 (remote_download_command_source): New function.
2074 (remote_download_tracepoint): Download source pieces also.
2075 (_initialize_remote): Add packet config command.
2076
2077 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
2078 expression handler.
2079
2080 * tracepoint.c (start_tracing): Check tracepoints before sending
2081 commands to target, don't start if all tracepoints disabled.
2082
2083 2010-03-28 Pedro Alves <pedro@codesourcery.com>
2084
2085 * cli/cli-script.c (process_next_line): Handle 'stepping'.
2086
2087 2010-03-26 Stan Shebs <stan@codesourcery.com>
2088
2089 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
2090
2091 2010-03-26 Tom Tromey <tromey@redhat.com>
2092
2093 * breakpoint.c (commands_command_1): Duplicate 'arg'.
2094
2095 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
2096
2097 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
2098 (skip_prologue_sal): Remove local definition.
2099 (resolve_sal_pc): Remove now unnecessary code.
2100 * linespec.c (minsym_found): Call skip_prologue_sal.
2101 * symtab.c (find_function_start_pc): Remove.
2102 (find_function_start_sal): Extract prologue skipping into ...
2103 (skip_prologue_sal): ... this new function. Handle code both
2104 with and without debug info. Respect SAL's explicit_pc and
2105 explicit_line flags. Inline old find_function_start_pc.
2106 * symtab.h (find_function_start_pc): Remove.
2107 (skip_prologue_sal): Add prototype.
2108
2109 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
2110
2111 * dwarf2read.c (read_func_scope): Also scan specification DIEs
2112 for DW_TAG_imported_module children.
2113
2114 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
2115
2116 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
2117 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
2118 * completer.c (add_struct_fields): Fix inverted logic.
2119
2120 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
2121
2122 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
2123
2124 2010-03-26 Pedro Alves <pedro@codesourcery.com>
2125
2126 * tracepoint.c (current_trace_status): Don't make sure error_desc
2127 is non-NULL here.
2128 (parse_trace_status): Release a previous error_desc string, and
2129 set it to NULL by default. If stop reason is tracepoint_error,
2130 make sure error_desc is not left NULL.
2131
2132 2010-03-26 Pedro Alves <pedro@codesourcery.com>
2133
2134 * tracepoint.c (trace_save): Remove X from tracepoint error
2135 description.
2136
2137 2010-03-26 Pedro Alves <pedro@codesourcery.com>
2138
2139 * tracepoint.c (parse_trace_status): Don't allow plain strings in
2140 the terror description. Don't expect an X prefix.
2141
2142 2010-03-25 Stan Shebs <stan@codesourcery.com>
2143
2144 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
2145 (struct trace_status): New field error_desc.
2146 * tracepoint.c (stop_reason_names): Add terror.
2147 (current_trace_status): Ensure non-NULL error description.
2148 (trace_status_command): Add error report.
2149 (trace_status_mi): Ditto.
2150 (trace_save): Add special case for error description.
2151 (parse_trace_status): Add case for errors.
2152
2153 2010-03-25 Keith Seitz <keiths@redhat.com>
2154
2155 * dwarf2read.c (read_subroutine_type): If the compilation unit
2156 language is Java, mark any formal parameter named "this" as
2157 artificial (GCC/43521).
2158 (dwarf2_name): Add special handling for Java constructors.
2159
2160 2010-03-25 Tom Tromey <tromey@redhat.com>
2161
2162 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
2163 * infrun.c (handle_inferior_event): Change initialization of
2164 stop_stack_dummy.
2165 (handle_inferior_event): Change assignment to stop_stack_dummy.
2166 (normal_stop): Update use of stop_stack_dummy.
2167 (struct inferior_status) <stop_stack_dummy>: Change type.
2168 * inferior.h (stop_stack_dummy): Update.
2169 * infcmd.c (stop_stack_dummy): Change type.
2170 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
2171 function.
2172 (call_function_by_hand): Call set_std_terminate_breakpoint.
2173 Rewrite std::terminate handling.
2174 * breakpoint.h (enum bptype) <bp_std_terminate,
2175 bp_std_terminate_master>: New.
2176 (enum stop_stack_kind): New.
2177 (struct bpstat_what) <call_dummy>: Change type.
2178 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
2179 Declare.
2180 * breakpoint.c (create_std_terminate_master_breakpoint): New
2181 function.
2182 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
2183 Call create_std_terminate_master_breakpoint.
2184 (print_it_typical): Handle new breakpoint kinds.
2185 (bpstat_stop_status): Handle bp_std_terminate_master.
2186 (bpstat_what): Correctly set call_dummy field. Handle
2187 bp_std_terminate_master and bp_std_terminate.
2188 (print_one_breakpoint_location): Update.
2189 (allocate_bp_location): Update.
2190 (set_std_terminate_breakpoint): New function.
2191 (delete_std_terminate_breakpoint): Likewise.
2192 (create_thread_event_breakpoint): Update.
2193 (delete_command): Update.
2194 (breakpoint_re_set_one): Update.
2195 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
2196
2197 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2198
2199 * symfile.c (build_section_addr_info_from_bfd): New.
2200 (build_section_addr_info_from_objfile): Base it on
2201 build_section_addr_info_from_bfd.
2202 (addrs_section_compar, addrs_section_sort): New.
2203 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
2204 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
2205 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
2206
2207 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
2208
2209 * elfread.c (find_separate_debug_file_by_buildid):
2210 Remove unused local variable.
2211
2212 2010-03-24 Tom Tromey <tromey@redhat.com>
2213
2214 PR breakpoints/9352:
2215 * NEWS: Mention changes to `commands' and `rbreak'.
2216 * symtab.c (do_end_rbreak_breakpoints): New function.
2217 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
2218 end_rbreak_breakpoints.
2219 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
2220 (set_breakpoint_count): Likewise. Clear last_was_multi.
2221 (multi_start, multi_end, last_was_multi): New globals.
2222 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
2223 functions.
2224 (struct commands_info): New
2225 (do_map_commands_command): New function.
2226 (commands_command_1): New function.
2227 (commands_command): Use it.
2228 (commands_from_control_command): Likewise.
2229 (do_delete_breakpoint): New function.
2230 (delete_command): Use it.
2231 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
2232 (do_map_disable_breakpoint): New function.
2233 (disable_command): Use it.
2234 (do_map_enable_breakpoint): New function.
2235 (enable_command): Use it.
2236 (enable_once_breakpoint): Add argument.
2237 (enable_once_command): Update.
2238 (enable_delete_breakpoint): Add argument.
2239 (enable_delete_command): Update.
2240 (break_command_really): Set last_was_multi when needed.
2241 (check_tracepoint_command): Fix formatting.
2242 (validate_commands_for_breakpoint): New function.
2243 (breakpoint_set_commands): Use it.
2244 (tracepoint_save_command): Update.
2245 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
2246 Declare.
2247
2248 2010-03-24 Tom Tromey <tromey@redhat.com>
2249
2250 * breakpoint.h (struct counted_command_line): New struct.
2251 (struct breakpoint) <commands>: Change type.
2252 (struct bpstats) <commands>: Change type.
2253 <commands_left>: New field.
2254 * breakpoint.c (alloc_counted_command_line): New function.
2255 (incref_counted_command_line): Likewise.
2256 (decref_counted_command_line): Likewise.
2257 (do_cleanup_counted_command_line): Likewise.
2258 (make_cleanup_decref_counted_command_line): Likewise.
2259 (breakpoint_set_commands): Use decref_counted_command_line and
2260 alloc_counted_command_line.
2261 (commands_command): Don't error if breakpoint commands are
2262 executing.
2263 (commands_from_control_command): Likewise.
2264 (bpstat_free): Update.
2265 (bpstat_copy): Likewise.
2266 (bpstat_clear_actions): Likewise.
2267 (bpstat_do_actions_1): Likewise.
2268 (bpstat_stop_status): Likewise.
2269 (print_one_breakpoint_location): Likewise.
2270 (delete_breakpoint): Likewise.
2271 (bpstat_alloc): Initialize new field.
2272 (tracepoint_save_command): Update.
2273 * tracepoint.c (encode_actions): Update.
2274 (trace_dump_command): Update.
2275
2276 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
2277
2278 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
2279 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
2280 (read_structure_type): For RealView, set TYPE_STUB on structures with
2281 no byte size and no children.
2282 (read_subroutine_type): Mark functions as prototyped by default.
2283 * symtab.c (producer_is_realview): New function.
2284 * symtab.h (expand_line_sal): Fix declaration formatting.
2285 (producer_is_realview): Declare.
2286
2287 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
2288
2289 * arm-tdep.c (skip_prologue_function): New function.
2290 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
2291 (thumb_analyze_prologue): Document return value. Recognize more
2292 Thumb instructions, skippable calls, and some Thumb-2 instructions.
2293 Add debug output.
2294 (arm_skip_prologue): Remove call dummy check. Check the prologue
2295 for non-GNU compilers.
2296 (arm_instruction_changes_pc): New function.
2297 (arm_analyze_prologue): New function, broken out from
2298 arm_scan_prologue. Recognize more ARM instructions and skippable
2299 calls. Update comments. Handle NULL cache. Return the address
2300 of the first unrecognized instruction. Do not skip past other
2301 instructions which change control flow. Add debug output.
2302 (arm_scan_prologue): Use arm_analyze_prologue.
2303 (ARM_PC_32): Delete.
2304 (shifted_reg_val): Simplify ARM_PC_32 check.
2305
2306 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
2307
2308 * tracepoint.c (tvariables_info_1): Actually compute
2309 the number of rows in the result.
2310
2311 2010-03-24 Pedro Alves <pedro@codesourcery.com>
2312
2313 * remote.c (crc32): Constify `buf' parameter.
2314 (remote_verify_memory): New, abstracted out from...
2315 (compare_sections_command): ... this. Remove hardcoded target
2316 checks.
2317 (init_remote_ops): Install remote_verify_memory.
2318 * target.c (target_verify_memory): New.
2319 * target.h (struct target_ops) <to_verify_memory>: New field.
2320 (target_verify_memory): Declare.
2321
2322 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
2323
2324 Implement -trace-save.
2325
2326 * mi-cmds.h (mi_cmds_trace_save): Declare.
2327 * mi-cmds.c (mi_cmds): Register -trace-save.
2328 * mi/mi-main.c (mi_cmd_trace_save): New.
2329 * remote.c (remote_save_trace_data): Take const parameter.
2330 * target.h (struct target_ops::to_save_trace_data): Take
2331 const parameter.
2332 * target.c (update_current_target): Adjust to the above.
2333 * tracepoint.c (trave_save): New, extracted from
2334 (trace_save_command): ...this.
2335 (tfile_trace_find): Remove message that is unnecessary now
2336 that 'tfind' reports found frame.
2337 * tracepoint.h (trace_save): Declare.
2338
2339 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
2340
2341 Implement -trace-find.
2342
2343 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
2344 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
2345 * mi/mi-main.c (mi_cmd_trace_find): New.
2346 * target.h (struct target_ops): Document to_trace_find.
2347 * tracepoint.h (tfind_1): Declare.
2348 * tracepoint.c (finish_tfind_command): Rename to...
2349 (tfind_1): ...this.
2350 * remote.c (remote_trace_find): Return -1 if target say
2351 there's no frame. Improve error diagnostics.
2352
2353 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
2354
2355 -trace-define-variable and -trace-list-variables.
2356
2357 * tracepoint.c (create_trace_state_variable): Make
2358 private copy of name, as opposed to assuming the
2359 pointer lives forever.
2360 (tvariables_info_1): New.
2361 (tvariables_info): Use the above.
2362 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
2363 Declare.
2364 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
2365 and -trace-list-variables.
2366 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
2367 (mi_cmd_trace_list_variables): New.
2368 * mi/mi-main.c (mi_cmd_trace_define_variable)
2369 (mi_cmd_trace_list_variables): New.
2370
2371 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
2372
2373 Implement -break-passcount.
2374
2375 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
2376 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
2377 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
2378
2379 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
2380
2381 -trace-start/-trace-end/-trace-status.
2382
2383 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
2384 and -trace-stop.
2385 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
2386 (mi_cmd_trace_stop): Declare.
2387 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
2388 (mi_cmd_trace_stop): New.
2389 * tracepoint.c (start_tracing): New, extracted from...
2390 (trace_start_command): ...this.
2391 (trace_status_mi): New.
2392 * tracepoint.h (struct trace_status): Document
2393 stopping_tracepoint.
2394 (start_tracing, stop_tracing, trace_status_mi): Declare.
2395
2396 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
2397
2398 Implement creating tracepoints with -break-insert.
2399
2400 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
2401 to mean that tracepoint should be created.
2402
2403 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
2404
2405 * breakpoint.c (check_no_tracepoint_commands): Use
2406 current spelling of 'teval'.
2407
2408 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
2409
2410 Unify actions and commands
2411
2412 * defs.h (read_command_lines, read_command_lines_1): New
2413 parameters validator and closure.
2414 * tracepoint.h (struct action_line): Remove.
2415 * breakpoint.h (struct breakpoint): Remove the 'actions'
2416 field.
2417 * defs.h (enum command_control_type): New value
2418 while_stepping_control.
2419 (struct command_line): Add comments.
2420 * breakpoint.c (breakoint_is_tracepoint): New.
2421 (breakpoint_set_commands): For tracepoints,
2422 verify the commands are permissible.
2423 (check_tracepoint_commands): New.
2424 (commands_command): Require that each new line is validated using
2425 check_tracepoint_command, if we set commands for a tracepoint.
2426 (create_tracepoint_from_upload): Likewise.
2427 (print_one_breakpoint_location): Remove the code to print
2428 actions specifically.
2429 (tracepoint_save_command): Relay to print_command_lines.
2430 * cli/cli-script.c (process_next_line): New parameters validator
2431 and closure. Handle 'while-stepping'. Call validator if not null.
2432 (read_command_lines, read_command_lines1): Likewise.
2433 (recurse_read_control_structure): New parameters validator and
2434 closure. Handle while_stepping_control.
2435 (print_command_lines): Handle while-stepping.
2436 (get_command_line, define_command, document_command): Adjust.
2437 * remote.c (remote_download_tracepoint): Adjust.
2438 * tracepoint.c (make_cleanup_free_actions, read_actions)
2439 (free_actions, do_free_actions_cleanup): Remove.
2440 (trace_actions_command): Use read_command_lines.
2441 (validate_actionline): Use error in one place.
2442 (encode_actions_1): New, extracted from...
2443 (encode_actions): ...this. Also use cleanups for exception
2444 safety.
2445 (trace_dump_command): Adjust.
2446 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
2447 it's tracepoint.
2448
2449 2010-03-23 Mike Frysinger <vapier@gentoo.org>
2450
2451 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
2452
2453 2010-03-22 Stan Shebs <stan@codesourcery.com>
2454
2455 * value.c (value_static_field): Be lazy about the field's value.
2456
2457 2010-03-22 Reid Kleckner <reid@kleckner.net>
2458
2459 PR gdb/11094
2460 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
2461 bp_jit_event.
2462 (disable_breakpoints_in_shlibs): Likewise.
2463
2464 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
2465
2466 * dwarf2read.c (partial_die_parent_scope): Work around buggy
2467 GCC 4.1 debug info generation (GCC PR c++/28460).
2468 (determine_prefix): Likewise.
2469
2470 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
2471
2472 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
2473 get_current_arch.
2474 * tui/tui-layout.c (extract_display_start_addr): Likewise.
2475
2476 2010-03-19 Stan Shebs <stan@codesourcery.com>
2477
2478 * ax-gdb.c (gen_fetch): Handle bool.
2479 (gen_usual_unary): Ditto.
2480 (gen_cast): Ditto.
2481 (gen_equal): New function.
2482 (gen_less): New function.
2483 (gen_expr_binop_rest): Call them, also return integer type from
2484 logical operations.
2485 (gen_expr): Ditto.
2486
2487 2010-03-19 Tom Tromey <tromey@redhat.com>
2488
2489 * jv-lang.c (jv_dynamics_objfile_data_key)
2490 (jv_type_objfile_data_key): New globals.
2491 (class_symtab): Move earlier.
2492 (jv_per_objfile_free): New function.
2493 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
2494 parameter.
2495 Remove ancient #if 1.
2496 (add_class_symbol): Remove redundant declaration.
2497 (java_lookup_class): Use alloc_type, not alloc_type_arch.
2498 (java_link_class_type): Mark as static. Update.
2499 (jv_clear_object_type): New function.
2500 (set_java_object_type): Likewise.
2501 (get_java_object_type): Use set_java_object_type.
2502 (is_object_type): Likewise.
2503 (_initialize_java_language): Register new objfile keys.
2504 (get_java_class_symtab): Add 'gdbarch' parameter.
2505 (add_class_symtab_symbol): Update.
2506 (type_from_class): Update.
2507
2508 2010-03-19 Stan Shebs <stan@codesourcery.com>
2509
2510 * ax-general.c (ax_const_l): Fix a sizing bug.
2511
2512 2010-03-18 Joel Brobecker <brobecker@adacore.com>
2513
2514 GDB 7.1 released.
2515
2516 2010-03-18 Stan Shebs <stan@codesourcery.com>
2517 Pedro Alves <pedro@codesourcery.com>
2518
2519 * target.h (struct target_ops): New method
2520 to_set_circular_trace_buffer.
2521 (target_set_circular_trace_buffer): New macro.
2522 * target.c (update_current_target): Add
2523 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
2524 default behavior.
2525 * remote.c (remote_set_circular_trace_buffer): New function.
2526 (init_remote_ops): Add it to vector.
2527 * tracepoint.h (struct trace_status): New field traceframes_created,
2528 change buffer_size and buffer_free to int.
2529 * tracepoint.c (circular_trace_buffer): New global.
2530 (start_tracing): Send values of disconnected tracing and circular
2531 trace buffer settings.
2532 (set_circular_trace_buffer): New function.
2533 (parse_trace_state): Handle total space and frames created.
2534 (trace_status_command): Display total space and total frames
2535 created.
2536 (trace_save): Write out new status values.
2537 (parse_trace_status): Set traceframe_count, traceframes_created,
2538 buffer_free and buffer_size to -1 by default.
2539 (_initialize_tracepoint): New setshow for circular-trace-buffer.
2540 * NEWS: Mention the circular trace buffer option.
2541
2542 2010-03-18 Tom Tromey <tromey@redhat.com>
2543
2544 * infcmd.c (finish_command_continuation): Wrap print_return_value
2545 in TRY_CATCH.
2546
2547 2010-03-18 Joel Brobecker <brobecker@adacore.com>
2548
2549 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
2550 DIE has a name before creating the associated partial symbol.
2551 (read_func_scope): Emit a complaint if the subprogram does not
2552 have a name or when we can't extract the subprogram PC bounds.
2553
2554 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
2555
2556 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
2557 instead of selected frame architecture.
2558
2559 2010-03-18 Pedro Alves <pedro@codesourcery.com>
2560
2561 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
2562 a valid selected thread, and that it is not running.
2563 (advance_command): Ditto.
2564 (finish_command): Ditto.
2565
2566 2010-03-17 Stan Shebs <stan@codesourcery.com>
2567
2568 * ax-gdb.c (require_rvalue): Disallow non-scalars.
2569
2570 * infcall.c: Include tracepoint.h.
2571 (call_function_by_hand): Disallow calls in tfind mode.
2572 * infcmd.c: Include tracepoint.h.
2573 (ensure_not_tfind_mode): New function.
2574 (continue_1): Call it.
2575 (step_1) Ditto.
2576 (jump_command): Ditto.
2577 (signal_command): Ditto.
2578 (advance_command): Ditto.
2579 (until_command): Ditto.
2580 (finish_command): Ditto.
2581 * tracepoint.h (disconnect_or_stop_tracing): Declare.
2582
2583 * ax-gdb.h (struct axs_value): New field optimized_out.
2584 (gen_trace_for_var): Add gdbarch argument.
2585 * ax-gdb.c (gen_trace_static_fields): New function.
2586 (gen_traced_pop): Call it, add gdbarch argument.
2587 (gen_trace_for_expr): Update call to it.
2588 (gen_trace_for_var): Ditto, and report optimized-out variables.
2589 (gen_struct_ref_recursive): Check for optimized-out value.
2590 (gen_struct_elt_for_reference): Ditto.
2591 (gen_static_field): Pass gdbarch instead of expression, assume
2592 optimization if field not found.
2593 (gen_var_ref): Set the optimized_out flag.
2594 (gen_expr): Error on optimized-out variable.
2595 * tracepoint.c (collect_symbol): Handle struct-valued vars as
2596 expressions, skip optimized-out variables with computed locations.
2597 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
2598 erroring out if location expression missing.
2599 (loclist_tracepoint_var_ref): Don't error out here.
2600
2601 2010-03-17 Tom Tromey <tromey@redhat.com>
2602
2603 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
2604 DWARF data is available.
2605
2606 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
2607
2608 * symfile.c (generic_load): Reset breakpoints after loading.
2609
2610 2010-03-17 Tom Tromey <tromey@redhat.com>
2611
2612 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
2613
2614 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2615
2616 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
2617 create_breakpoint call, adjust the parameters.
2618
2619 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2620 Chandru <chandru@in.ibm.com>
2621
2622 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
2623 * valarith.c (value_subscripted_rvalue): Suppress error if
2624 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
2625
2626 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
2627
2628 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
2629
2630 2010-03-16 Joel Brobecker <brobecker@adacore.com>
2631
2632 * ada-tasks.c (task_command_1): Check that the task ptid is valid
2633 before doing the associated thread switch.
2634
2635 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
2636
2637 * MAINTAINERS: Update my email address.
2638
2639 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
2640
2641 Simplify MI breakpoint setting.
2642
2643 * breakpoint.c (break_command_really): Make nonstatic and
2644 rename to...
2645 (create_breakpoint): ...this. Rename prior function by this name
2646 to...
2647 (create_breakpoint_sal): ...this.
2648 (create_breakpoints): Rename to...
2649 (create_breakpoints_sal): ...this.
2650 (set_breakpoint): Remove.
2651 * breakpoint.h: Adjust to above changes.
2652 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
2653
2654 2010-03-15 Stan Shebs <stan@codesourcery.com>
2655
2656 * ax-gdb.c: Include cp-support.h.
2657 (find_field): Remove.
2658 (gen_primitive_field): New function.
2659 (gen_struct_ref_recursive): New function.
2660 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
2661 of find_field.
2662 (gen_static_field): New function.
2663 (gen_struct_elt_for_reference): New.
2664 (gen_namespace_elt): New.
2665 (gen_maybe_namespace_elt): New.
2666 (gen_aggregate_elt_ref): New.
2667 (gen_expr): Add OP_SCOPE, display opcode name in error message.
2668
2669 2010-03-15 Tom Tromey <tromey@redhat.com>
2670
2671 * dwarf2read.c (die_needs_namespace): Also return 0 for
2672 DW_TAG_subprogram.
2673
2674 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
2675
2676 PR c++/7936:
2677 * cp-support.h: Added char *declaration element to using_direct
2678 data struct.
2679 (cp_add_using): Added char *declaration argument.
2680 (cp_add_using_directive): Ditto.
2681 (cp_lookup_symbol_imports): made extern.
2682 * cp-namespace.c: Updated with the above changes.
2683 * dwarf2read.c (read_import_statement): Ditto.
2684 (read_namespace): Ditto.
2685 (read_import_statement): Support import declarations.
2686 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
2687 declarations.
2688 Added support for 'declaration_only' search.
2689 (cp_lookup_symbol_namespace): Attempt to search for the name as
2690 is before consideration of imports.
2691 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
2692 search at every block level search.
2693 Now takes language argument.
2694 (lookup_symbol_aux): Updated.
2695
2696 2010-03-15 Tom Tromey <tromey@redhat.com>
2697
2698 * c-exp.y (name_not_typename): Add 'operator' clause.
2699
2700 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
2701
2702 * configure.ac: Exit if ${gdb_target_obs}" is not set.
2703 * configure: Regenerate.
2704
2705 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2706
2707 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
2708 and ".sdynbss". Update the comment.
2709
2710 2010-03-15 Jie Zhang <jie@codesourcery.com>
2711
2712 * MAINTAINERS: Update my email address.
2713
2714 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
2715
2716 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
2717
2718 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
2719
2720 * charset.c [USE_WIN32API]: Include <windows.h>.
2721 (_initialize_charset): Correct type of w32_host_default_charset.
2722
2723 2010-03-14 Pedro Alves <pedro@codesourcery.com>
2724
2725 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
2726
2727 2010-03-12 Tom Tromey <tromey@redhat.com>
2728
2729 PR c++/9708:
2730 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
2731 in a lexical block does not need a namespace.
2732 (new_symbol) <DW_TAG_variable>: Put extern variables on
2733 list_in_scope in all cases.
2734
2735 2010-03-12 Stan Shebs <stan@codesourcery.com>
2736
2737 * ax-gdb.c (gen_expr): Add shift expressions.
2738 (gen_expr_binop_rest): Ditto.
2739
2740 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
2741
2742 * buildsym.c (finish_block): Reset using_directives pointer
2743 after block initialization.
2744
2745 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
2746
2747 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
2748 * i386-tdep.c (i386_word_names): Likewise.
2749
2750 2010-03-12 Pedro Alves <pedro@codesourcery.com>
2751
2752 * target.c (memory_xfer_partial): Don't use the stack cache if
2753 inspecting trace frames.
2754 * tracepoint.c (finish_tfind_command): Invalidate the target
2755 dcache.
2756
2757 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2758
2759 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
2760 for the PIC displacement, print also the displacement value.
2761 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
2762
2763 2010-03-10 Kevin Buettner <kevinb@redhat.com>
2764
2765 * remote-mips.c (close_ports, mips_initialize_cleanups)
2766 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
2767 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
2768 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
2769 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
2770 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
2771 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
2772 comments describing each of these functions.
2773 (mips_enter_debug, mips_exit_debug, common_open)
2774 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
2775 blank line after the comment describing the function.
2776
2777 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2778
2779 * solib-svr4.c (svr4_exec_displacement): Return now success, new
2780 parameter displacementp. Update comment.
2781 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
2782 element exists. Return if svr4_exec_displacement was not successful.
2783 Update comment.
2784
2785 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2786 Daniel Jacobowitz <dan@codesourcery.com>
2787
2788 * solib-svr4.c (read_program_header): Support type == -1 to read
2789 all program headers.
2790 (read_program_headers_from_bfd): New function.
2791 (svr4_static_exec_displacement): Remove and move the comment ...
2792 (svr4_exec_displacement): ... here. Remove variable found. New
2793 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
2794 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
2795 targets using read_program_headers_from_bfd. Remove the call of
2796 svr4_static_exec_displacement.
2797
2798 2010-03-10 Tom Tromey <tromey@redhat.com>
2799
2800 * dwarf2read.c (struct pubnames_header): Remove.
2801 (_PUBNAMES_HEADER): Remove.
2802 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
2803 (struct aranges_header): Remove.
2804 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
2805 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
2806 (PUBNAMES_SECTION): Remove.
2807 (ARANGES_SECTION): Remove.
2808 (dwarf2_locate_sections): Don't handle pubnames or aranges.
2809 (dwarf2_build_psymtabs): Remove dead code.
2810 (dwarf2_build_psymtabs_easy): Remove.
2811
2812 2010-03-10 Tom Tromey <tromey@redhat.com>
2813
2814 * elfread.c (elf_symfile_read): Don't call
2815 dwarf2_build_frame_info.
2816 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
2817 (struct dwarf2_per_objfile) <objfile>: New field.
2818 (dwarf2_has_info): Now idempotent. Set objfile field.
2819 (dwarf2_read_section): Check and set readin field. Call
2820 posix_madvise.
2821 (dwarf2_build_psymtabs): Don't read all sections.
2822 (read_type_comp_unit_head): Read types section.
2823 (create_debug_types_hash_table): Likewise.
2824 (init_cu_die_reader): Add asserts.
2825 (process_type_comp_unit): Add assert.
2826 (dwarf2_build_psymtabs_hard): Read info section.
2827 (load_partial_comp_unit): Add assert.
2828 (create_all_comp_units): Read info section.
2829 (load_full_comp_unit): Likewise.
2830 (dwarf2_ranges_read): Read ranges section.
2831 (dwarf2_record_block_ranges): Add assert.
2832 (dwarf2_read_abbrevs): Read abbrev section.
2833 (read_indirect_string): Read str section.
2834 (dwarf_decode_line_header): Read line section.
2835 (read_signatured_type_at_offset): Read types section.
2836 (dwarf_decode_macros): Read macinfo section.
2837 (dwarf2_symbol_mark_computed): Read loc section.
2838 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
2839 dwarf2_build_frame_info.
2840 (dwarf2_build_frame_info): Unconditionally set
2841 dwarf2_frame_objfile_data on the objfile.
2842 * configure.ac: Check for posix_madvise.
2843 * config.in, configure: Rebuild.
2844
2845 2010-03-10 Tom Tromey <tromey@redhat.com>
2846
2847 * xcoffread.c (xcoff_start_psymtab): Update.
2848 (xcoff_end_psymtab): Update.
2849 * psymtab.c (allocate_psymtab): Remove dead code.
2850 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
2851 void*.
2852 * mdebugread.c (parse_partial_symbols): Update.
2853 (new_psymtab): Likewise.
2854 * dwarf2read.c (process_psymtab_comp_unit): Update.
2855 (psymtab_to_symtab_1): Update.
2856 * dbxread.c (start_psymtab): Update.
2857 (end_psymtab): Likewise.
2858
2859 2010-03-10 Tom Tromey <tromey@redhat.com>
2860
2861 * xcoffread.c: Include psymtab.h.
2862 (xcoff_sym_fns): Update.
2863 * symtab.h (struct partial_symbol): Remove.
2864 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
2865 (struct partial_symtab): Remove.
2866 (PSYMTAB_TO_SYMTAB): Remove.
2867 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
2868 (find_pc_sect_psymtab): Remove.
2869 (find_pc_sect_symtab_via_partial): Declare.
2870 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
2871 (find_main_psymtab): Remove.
2872 (find_main_filename): Declare.
2873 (fixup_psymbol_section): Remove.
2874 (fixup_section): Declare.
2875 * symtab.c: Include psymtab.h.
2876 (lookup_symtab): Use lookup_symtab method.
2877 (lookup_partial_symtab): Remove.
2878 (find_pc_sect_psymtab_closer): Remove.
2879 (find_pc_sect_psymtab): Remove.
2880 (find_pc_sect_symtab_via_partial): New function.
2881 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
2882 (fixup_section): No longer static.
2883 (fixup_psymbol_section): Remove.
2884 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
2885 (lookup_global_symbol_from_objfile): Likewise.
2886 (lookup_symbol_aux_psymtabs): Remove.
2887 (lookup_symbol_aux_quick): New function.
2888 (lookup_symbol_global): Use lookup_symbol_aux_quick.
2889 (lookup_partial_symbol): Remove.
2890 (basic_lookup_transparent_type_quick): New function.
2891 (basic_lookup_transparent_type): Use it.
2892 (find_main_psymtab): Remove.
2893 (find_main_filename): New function.
2894 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
2895 (find_line_symtab): Use expand_symtabs_with_filename method.
2896 (output_partial_symbol_filename): New function.
2897 (sources_info): Use map_partial_symbol_filenames.
2898 (struct search_symbols_data): New type.
2899 (search_symbols_file_matches): New function.
2900 (search_symbols_name_matches): Likewise.
2901 (search_symbols): Use expand_symtabs_matching method.
2902 (struct add_name_data): Rename from add_macro_name_data.
2903 (add_macro_name): Update.
2904 (add_partial_symbol_name): New function.
2905 (default_make_symbol_completion_list): Use
2906 map_partial_symbol_names.
2907 (struct add_partial_symbol_name): New type.
2908 (maybe_add_partial_symtab_filename): New function.
2909 (make_source_files_completion_list): Use
2910 map_partial_symbol_filenames.
2911 (expand_line_sal): Use expand_symtabs_with_filename method.
2912 * symmisc.c: Include psymtab.h.
2913 (print_objfile_statistics): Use print_stats method.
2914 (dump_objfile): Use dump method.
2915 (dump_psymtab, maintenance_print_psymbols)
2916 (maintenance_info_psymtabs, maintenance_check_symtabs)
2917 (extend_psymbol_list): Remove.
2918 * symfile.h (struct quick_symbol_functions): New struct.
2919 (struct sym_fns) <qf>: New field.
2920 (sort_pst_symbols): Remove.
2921 (increment_reading_symtab): Declare.
2922 * symfile.c: Include psymtab.h.
2923 (compare_psymbols, sort_pst_symbols): Remove.
2924 (psymtab_to_symtab): Remove.
2925 (increment_reading_symtab): New function.
2926 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
2927 method.
2928 (set_initial_language): Use find_main_filename.
2929 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
2930 (free_named_symtabs): Remove unused code.
2931 (start_psymtab_common, add_psymbol_to_bcache)
2932 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
2933 Remove.
2934 * stack.c: Include psymtab.h, symfile.h.
2935 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
2936 * source.h (psymtab_to_fullname): Don't declare.
2937 * source.c: Include psymtab.h.
2938 (select_source_symtab): Use find_last_source_symtab method.
2939 (forget_cached_source_info): Use forget_cached_source_info
2940 method.
2941 (find_and_open_source): No longer static.
2942 (psymtab_to_fullname): Remove.
2943 * somread.c: Include psymtab.h.
2944 (som_sym_fns): Update.
2945 * psympriv.h: New file.
2946 * psymtab.h: New file.
2947 * psymtab.c: New file.
2948 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
2949 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
2950 * objfiles.c: Include psymtab.h.
2951 (objfile_relocate1): Use relocate method.
2952 (objfile_has_partial_symbols): Use has_symbols method.
2953 * mipsread.c: Include psymtab.h.
2954 (ecoff_sym_fns): Update.
2955 * mi/mi-cmd-file.c: Include psymtab.h.
2956 (print_partial_file_name): New function.
2957 (mi_cmd_file_list_exec_source_files): Use
2958 map_partial_symbol_filenames.
2959 * mdebugread.c: Include psympriv.h.
2960 * machoread.c: Include psympriv.h.
2961 (macho_sym_fns): Update.
2962 * m2-exp.y (yylex): Use lookup_symtab.
2963 * elfread.c: Include psympriv.h.
2964 (elf_sym_fns): Update.
2965 * dwarf2read.c: Include psympriv.h.
2966 * dbxread.c: Include psympriv.h.
2967 (aout_sym_fns): Update.
2968 * cp-support.c: Include psymtab.h.
2969 (read_in_psymtabs): Remove.
2970 (make_symbol_overload_list_qualified): Use
2971 expand_symtabs_for_function method.
2972 * coffread.c: Include psympriv.h.
2973 (coff_sym_fns): Update.
2974 * blockframe.c: Include psymtab.h.
2975 (find_pc_partial_function): Use find_pc_sect_symtab method.
2976 * ada-lang.h (ada_update_initial_language): Update.
2977 * ada-lang.c: Include psymtab.h.
2978 (ada_update_initial_language): Remove 'main_pst' argument.
2979 (ada_lookup_partial_symbol): Remove.
2980 (struct ada_psym_data): New type.
2981 (ada_add_psyms): New function.
2982 (ada_add_non_local_symbols): Use map_ada_symtabs method.
2983 (struct add_partial_datum): New type.
2984 (ada_add_partial_symbol_completions): New function.
2985 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
2986 (ada_exception_support_info_sniffer): Update.
2987 * Makefile.in (SFILES): Add psymtab.c.
2988 (COMMON_OBS): Add psymtab.o.
2989 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
2990
2991 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
2992
2993 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
2994
2995 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
2996
2997 PR C++/11236:
2998 * cp-namespace.c (cp_add_using): Deleted.
2999 (cp_add_using_directive): Use obstack allocations.
3000 Merged the function cp_add_using into this one.
3001 Added 'struct obstack *' argument.
3002 (cp_scan_for_anonymous_namespaces): Updated.
3003 * cp-support.h: Updated.
3004 * dwarf2read.c (read_import_statement): Updated.
3005 (read_namespace): Updated.
3006
3007 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
3008
3009 * windows-nat.c (cygwin_conv_path): Remove old macro.
3010
3011 2010-03-10 Pedro Alves <pedro@codesourcery.com>
3012
3013 * breakpoint.c (condition_command): Handle watchpoint conditions.
3014 (is_hardware_watchpoint): Add comment.
3015 (is_watchpoint): New.
3016 (update_watchpoint): Don't reparse the watchpoint's condition
3017 unless necessary.
3018 (WP_IGNORE): New.
3019 (watchpoint_check): Use it.
3020 (bpstat_check_watchpoint): Handle it.
3021 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
3022 conditions in a frame where it makes sense.
3023 (watch_command_1): Store the innermost block of the condition
3024 expression.
3025 (delete_breakpoint): Delete the watchpoint condition expression.
3026 * breakpoint.h (struct bp_location) <cond>: Update comment.
3027 (struct breakpoint): New field `cond_exp_valid_block'.
3028
3029 2010-03-09 Joel Brobecker <brobecker@adacore.com>
3030
3031 Adjust handling of Ada DIEs after dwarf2_physname patch.
3032 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
3033
3034 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
3035 Pierre Muller <muller@ics.u-strasbg.fr>
3036
3037 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
3038 from/to posix/win32.
3039 (windows_make_so): Use non-Cygwin 1.7 specific function.
3040 (windows_create_inferior): Make sure that cygallargs points to
3041 original args in non Cygwin 1.7. case.
3042
3043 2010-03-09 Michael Snyder <msnyder@vmware.com>
3044
3045 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
3046 after target_read_memory to get host byte order.
3047 (i386_process_record): Ditto.
3048
3049 2010-03-09 Keith Seitz <keiths@redhat.com>
3050
3051 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
3052 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
3053 print out const or volatile qualifiers, too.
3054 (c_type_print_args): Add parameters show_artificial and language.
3055 Skip artificial parameters when requested.
3056 Use the appropriate language printer.
3057 (c_type_print_varspec): Tell c_type_print_args to skip artificial
3058 parameters and pass language_c.
3059 * dwarf2read.c (die_list): New file global.
3060 (struct partial_die_info): Update comments for name field.
3061 (pdi_needs_namespace): Renamed to ...
3062 (die_needs_namespace): ... this. Rewrite.
3063 (dwarf2_linkage_name): Remove.
3064 (add_partial_symbol): Do not predicate the call to
3065 partial_die_full_name based on pdi_needs_namespace.
3066 Remove call to cp_check_possible_namespace_symbols and associated
3067 outdated comments.
3068 (guess_structure_name): Do not inspect child subprogram DIEs.
3069 (dwarf2_fullname): Update comments.
3070 Use die_needs_namespace to assist in computing the name.
3071 (read_func_scope): Use dwarf2_name to get the DIE's name.
3072 Use dwarf2_physname to get the "linkage name" of the DIE.
3073 (dwarf2_add_member_field): Use dwarf2_physname instead of
3074 dwarf2_linkage_name.
3075 (read_structure_type): For structs and classes, set TYPE_NAME, too.
3076 (determine_class): Remove.
3077 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
3078 except Ada.
3079 (new_symbol): Unconditionally call dwarf2_name.
3080 Compute the "linkage name" using dwarf2_physname.
3081 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
3082 When determining to scan for anonymous C++ namespaces, ignore
3083 the linkage name.
3084 (dwarf2_physname): New function.
3085 (dwarf2_full_name): Move content to new function and call
3086 that.
3087 (dwarf2_compute_name): "New" function.
3088 (_initialize_dwarf2_read): Initialize die_list.
3089 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
3090 physname.
3091 (gnu_v3_print_method_ptr): Use the physname for virtual methods
3092 without a demangled name.
3093 Print out type information for non-virtual methods.
3094 * linespec.c (decode_line_1): Force ANY string using "::" (or
3095 "." for java) to use decode_compound, and clean up any stray quoting.
3096 If we found a file symtab, re-evaluate whether the remainder is_quoted.
3097 (decode_compound): Stop consuming at an open parenthesis.
3098 Keep template parameters.
3099 Keep any overload information.
3100 Keep keywords like "const".
3101 Remove paren_pointer.
3102 Move is_quoted check from set_flags to here.
3103 Remove #if 0 code from 2000. Ten years is long enough.
3104 (find_method): Before comparing symbol names, canonicalize the string
3105 from the user.
3106 If a specific overload is requested, find it. Otherwise throw an error.
3107 (find_method_overload_end): New function.
3108 (set_flags): Remove.
3109 (decode_compound): Assume that parentheses are matched.
3110 It's a lot easier.
3111 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
3112 to cplus_demangle.
3113 * linespec.c (decode_line_1): Keep important keywords like
3114 "const" and "volatile".
3115 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
3116 * typeprint.h (c_type_print_args): Add declaration.
3117 * ui-file.c (do_ui_file_obsavestring): New function.
3118 (ui_file_obsavestring): New function.
3119 * ui-file.h (ui_file_obsavestring): Add declaration.
3120 * valops.c (find_overload_match): Resolve the object to
3121 a non-pointer type.
3122 If the object is a data member, search the object for the member
3123 and return with staticp set.
3124 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
3125 Do not attempt to extract a function name from non-function types.
3126 If the extracted function name and the original name are the same,
3127 we don't have a C++ method.
3128
3129 From Jan Kratochvil <jan.kratochvil@redhat.com>:
3130 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
3131
3132 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
3133 and arguments from symbol lookups.
3134 * ax-gdb.c (gen_expr): Likewise.
3135 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
3136 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
3137 lookup_possible_namespace_symbol): Likewise.
3138 * cp-support.c (read_in_psymtabs): Likewise.
3139 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
3140 * language.h (la_lookup_symbol_nonlocal): Likewise.
3141 * scm-valprint.c (scm_inferior_print): Likewise.
3142 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
3143 * solib-svr.c (elf_lookup_lib): Likewise.
3144 * solib.c (show_auto_solib_add): Likewise.
3145 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
3146 * symmisc.c (maintenance_check_symtabs): Likewise.
3147 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
3148 lookup_symbol_aux_local, lookup_symbol_aux_block,
3149 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
3150 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
3151 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
3152 basic_lookup_transparent_type, find_main_psymtab,
3153 lookup_block_symbol): Likewise.
3154 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
3155 lookup_symbol_global, lookup_symbol_aux_block,
3156 lookup_symbol_partial_symbol, lookup_block_symbol,
3157 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
3158
3159 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
3160
3161 * python/python-internal.h: Include symtab.h.
3162
3163 2010-03-09 Joel Brobecker <brobecker@adacore.com>
3164 Pierre Muller <muller@ics.u-strasbg.fr>
3165
3166 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
3167 * p-valprint.c (pascal_val_print): Remove undeed block and fix
3168 indentation.
3169
3170 2010-03-08 Tom Tromey <tromey@redhat.com>
3171
3172 * breakpoint.c (breakpoint_1): Add "QUIT".
3173
3174 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
3175 Pedro Alves <pedro@codesourcery.com>
3176
3177 * solib.c (solib_find): Replace extension if
3178 solib_symbols_extension is set in the target gdbarch.
3179 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
3180 solib_symbols_extension to "sym".
3181 * gdbarch.sh (solib_symbols_extension): New variable.
3182 (pstring): New function.
3183 * gdbarch.h, gdbarch.c: Regenerate.
3184
3185 2010-03-08 Tom Tromey <tromey@redhat.com>
3186
3187 PR cli/9591:
3188 * NEWS: Update.
3189 * utils.c: Include main.h.
3190 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
3191 (defaulted_query): Use default answer if `batch_flag'.
3192 * main.h (batch_flag): Declare.
3193 * main.c (batch_flag): New global.
3194 (captured_main): Remove 'batch'. Update.
3195
3196 2010-03-08 Kevin Buettner <kevinb@redhat.com>
3197
3198 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
3199 and Kevin Buettner:
3200
3201 * remote-mips.c (rockhopper_ops): New target_ops struct.
3202 (MON_ROCKHOPPER): New mips_monitor_type.
3203 (read_hex_value): New function.
3204 (mips_request): Send 8-byte values with a 'T' packet. Read the
3205 packet argument as a string and use read_hex_value to parse it.
3206 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
3207 (rockhopper_open): New function.
3208 (mips_wait): Read the PC, FP and SP fields as strings. Use
3209 read_hex_value to parse them and mips_set_register to commit them.
3210 (mips_set_register): New function.
3211 (mips_fetch_registers): Do not cast register value to "unsigned"
3212 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
3213 (mips_store_registers): Use a 'T' packet to set registers when
3214 using MON_ROCKHOPPER.
3215 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
3216 and expect the total to be printed before the entry address.
3217 (_initialize_remote_mips): Initialize and add rockhopper_ops.
3218
3219 2010-03-08 Kevin Buettner <kevinb@redhat.com>
3220
3221 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
3222 Change return value to int. Store value fetched in location
3223 addressed by `val'. Use function's return value as success
3224 or failure indicator. Adjust all callers.
3225
3226 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
3227
3228 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
3229
3230 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3231 Hui Zhu <teawater@gmail.com>
3232
3233 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
3234 tmp_to_stopped_data_address.
3235 (record_open): Reset tmp_to_stopped_by_watchpoint and
3236 tmp_to_stopped_data_address.
3237 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
3238 to_stopped_data_address.
3239
3240 2010-03-08 Hui Zhu <teawater@gmail.com>
3241
3242 * i386-tdep.c (i386_process_record): Initialize regnum.
3243
3244 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3245
3246 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
3247 Do not warn on ".gnu.liblist" and ".gnu.conflict".
3248
3249 2010-03-08 Joel Brobecker <brobecker@adacore.com>
3250
3251 Memory error when reading wrong core file.
3252 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
3253 errors while reading the inferior memory, and return zero if
3254 an exception was raised.
3255
3256 2010-03-07 Michael Snyder <msnyder@vmware.com>
3257
3258 * record.c (record_restore): Rename tmpu8 to rectype.
3259
3260 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
3261 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
3262
3263 (i386_record_push): Rename local tmpulongest to addr.
3264
3265 (i386_process_record): Rename local tmpulongest to addr.
3266
3267 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
3268 addr64.
3269
3270 Rename local variable tmpu8 to opcode8 and regnum.
3271
3272 2010-03-07 Joel Brobecker <brobecker@adacore.com>
3273
3274 * remote.c (remote_get_ada_task_ptid): New function.
3275 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
3276
3277 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
3278
3279 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
3280 block. Define helper macros to reduce ifdefs in code.
3281 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
3282 size. Call unadorned GetModuleFileNameEx rather than
3283 GetModuleFileNameEx*.
3284 (windows_make_so): Use __PMAX to denote maximum buffer size and
3285 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
3286 appropriate.
3287 (get_image_name): Use __PMAX to denote maximum buffer size.
3288 (handle_load_dll): Likewise.
3289 (windows_pid_to_exec_file): Likewise.
3290 (windows_create_inferior): Add many accommodations for older Cygwin and
3291 non-Cygwin.
3292 (bad_GetModuleFileNameExW): Control inclusion of this function based on
3293 __USEWIDE conditional.
3294 (bad_GetModuleFileNameExA): Likewise.
3295 (_initialize_loadable): Just use real function names without the dyn_
3296 part since they are defined earlier.
3297
3298 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
3299 Tom Tromey <tromey@redhat.com>
3300
3301 * utils.c (host_char_to_target): Add 'gdbarch' argument.
3302 (parse_escape): Likewise.
3303 * python/py-utils.c (unicode_to_target_string): Update.
3304 (unicode_to_target_python_string): Update.
3305 (target_string_to_unicode): Update.
3306 * printcmd.c (printf_command): Update.
3307 * p-exp.y (yylex): Update.
3308 * objc-exp.y (yylex): Update.
3309 * mi/mi-parse.c: Include charset.h.
3310 (mi_parse_escape): New function.
3311 (mi_parse_argv): Use it.
3312 * jv-exp.y (yylex): Update.
3313 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
3314 function.
3315 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
3316 * gdbarch.sh (auto_charset, auto_wide_charset): New.
3317 * gdbarch.c: Rebuild.
3318 * gdbarch.h: Rebuild.
3319 * defs.h (parse_escape): Update.
3320 * cli/cli-setshow.c: Include arch-utils.h.
3321 (do_setshow_command): Update.
3322 * cli/cli-cmds.c (echo_command): Update.
3323 * charset.h (target_charset, target_wide_charset): Update.
3324 * charset.c: Include arch-utils.h.
3325 (target_charset_name): Default to "auto".
3326 (target_wide_charset_name): Likewise.
3327 (show_target_charset_name): Handle "auto".
3328 (show_target_wide_charset_name): Likewise.
3329 (be_le_arch): New global.
3330 (set_be_le_names): Add 'gdbarch' argument.
3331 (validate): Likewise. Don't call set_be_le_names.
3332 (set_charset_sfunc, set_host_charset_sfunc)
3333 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
3334 Update.
3335 (target_charset): Add 'gdbarch' argument.
3336 (target_wide_charset): Likewise. Remove 'byte_order' argument.
3337 (auto_target_charset_name): New global.
3338 (default_auto_charset, default_auto_wide_charset): New functions.
3339 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
3340 for target charsets. Copy result of nl_langinfo. Use GetACP if
3341 USE_WIN32API.
3342 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
3343 remove 'byte_order' argument. Update.
3344 (classify_type): Likewise.
3345 (c_emit_char): Update.
3346 (c_printchar): Update.
3347 (c_printstr): Update.
3348 (c_get_string): Update.
3349 (evaluate_subexp_c): Update.
3350 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
3351 Declare.
3352 * python/python.c (gdbpy_target_charset): New function.
3353 (gdbpy_target_wide_charset): Likewise.
3354 (GdbMethods): Update.
3355 * NEWS: Update.
3356
3357 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
3358
3359 * symfile.c (build_section_addr_info_from_objfile): Do not mask
3360 off high address bits.
3361
3362 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
3363
3364 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
3365 address as UnsignedLongLong, not LongLong.
3366
3367 2010-03-05 Kevin Buettner <kevinb@redhat.com>
3368 Pedro Alves <pedro@codesourcery.com>
3369
3370 * remote-mips.c (gdbthread.h): Include.
3371 (remote_mips_ptid): Declare.
3372 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
3373 (common_open): Set inferior_ptid, add it as an inferior, and
3374 as a thread too. Delete FIXME comment regarding start_remote().
3375 (mips_close): Invoke generic_mourn_inferior().
3376 (mips_kill): Make sure that target_mourn_inferior is invoked.
3377 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
3378 it's now invoked from mips_close().
3379 (mips_load): Don't null out inferior_ptid. Don't call
3380 clear_symtab_users().
3381 (mips_thread_alive, mips_pid_to_str): New functions.
3382 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
3383 to_thread_alive and to_pid_to_str operations.
3384
3385 2010-03-04 Tom Tromey <tromey@redhat.com>
3386
3387 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
3388 in DWARF 3 and later.
3389 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
3390
3391 2010-03-04 Keith Seitz <keiths@redhat.com>
3392
3393 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
3394 If the filename portion of the linespec was quoted, recheck the
3395 remainder for additional quoting.
3396 (locate_first_half): Skip over completer chars, too.
3397
3398 2010-03-04 Tom Tromey <tromey@redhat.com>
3399
3400 * printcmd.c (printf_command): Pass dummy argument to
3401 printf_filtered.
3402
3403 2010-03-04 Doug Evans <dje@google.com>
3404
3405 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
3406 unwound_fp.
3407
3408 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
3409
3410 2010-03-04 Pedro Alves <pedro@codesourcery.com>
3411
3412 * breakpoint.c (update_watchpoint): Create a sentinel location if
3413 the software watchpoint isn't watching any memory.
3414 (breakpoint_address_bits): Skip dummy software watchpoint locations.
3415
3416 2010-03-04 Pedro Alves <pedro@codesourcery.com>
3417
3418 * utils.c (fputs_maybe_filtered): Check if there's already a top
3419 level interpreter before dereferencing it. If there isn't one,
3420 don't paginate either.
3421
3422 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3423
3424 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
3425 the state right when single stepping.
3426 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
3427 Get the next PC along with the instruction state.
3428 (thumb_get_next_pc): Remove.
3429 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
3430
3431 2010-03-04 Hui Zhu <teawater@gmail.com>
3432
3433 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
3434
3435 2010-03-03 Pedro Alves <pedro@codesourcery.com>
3436
3437 * utils.c (fputs_maybe_filtered): Always disable pagination if the
3438 top level interpreter is MI.
3439
3440 2010-03-03 Stan Shebs <stan@codesourcery.com>
3441
3442 * remote.c (remote_download_tracepoint): Iterate over locations.
3443 * tracepoint.c (validate_actionline): Ditto.
3444 (encode_actions): Add location argument.
3445 (trace_dump_command): Check all locations to see if stepping
3446 frame.
3447
3448 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
3449 Eli Zaretskii <eliz@gnu.org>
3450
3451 * NEWS: Add X86 general purpose registers section.
3452
3453 2010-03-03 Tom Tromey <tromey@redhat.com>
3454
3455 PR mi/11098:
3456 * varobj.c (install_new_value): Handle case where new print_value
3457 is NULL.
3458
3459 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
3460
3461 PR gdb/11345:
3462 * printcmd.c (printf_command): Print end of format string using
3463 printf_filtered.
3464
3465 2010-03-02 Tom Tromey <tromey@redhat.com>
3466
3467 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
3468 * defs.h (read_command_lines_1): Add missing 'void'.
3469 * cli/cli-script.c (recurse_read_control_structure): Add missing
3470 'void'.
3471 (read_next_line): Likewise.
3472 (read_command_lines_1): Likewise.
3473
3474 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
3475
3476 * spu-tdep.c (spu_analyze_prologue): Track instruction to
3477 store backchain as part of prologue.
3478
3479 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
3480
3481 * progspace.c (update_address_spaces): Update inferior address spaces
3482 also.
3483
3484 2010-03-02 Doug Evans <dje@google.com>
3485
3486 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
3487 lowpc,highpc args to addrmap_set_empty.
3488
3489 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
3490
3491 * amd64-tdep.c (amd64_byte_names): New.
3492 (amd64_word_names): Likewise.
3493 (amd64_dword_names): Likewise.
3494 (amd64_pseudo_register_name): Likewise.
3495 (amd64_pseudo_register_read): Likewise.
3496 (amd64_pseudo_register_write): Likewise.
3497 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
3498 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
3499 set_gdbarch_pseudo_register_write and
3500 set_tdesc_pseudo_register_name. Don't call
3501 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
3502
3503 * i386-tdep.c (i386_num_mmx_regs): Removed.
3504 (i386_num_pseudo_regs): Likewise.
3505 (i386_byte_names): New.
3506 (i386_word_names): Likewise.
3507 (i386_byte_regnum_p): Likewise.
3508 (i386_word_regnum_p): Likewise.
3509 (i386_mmx_regnum_p): Updated.
3510 (i386_pseudo_register_name): Make it global. Handle byte and
3511 word pseudo-registers.
3512 (i386_pseudo_register_read): Likewise.
3513 (i386_pseudo_register_write): Likewise.
3514 (i386_pseudo_register_type): Handle byte, word and dword
3515 pseudo-registers
3516 (i386_register_reggroup_p): Don't include pseudo
3517 registers, except for MXX, in any register groups. Don't
3518 include pseudo byte, word, dword registers in general_reggroup.
3519 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
3520 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
3521 pseudo-registers after word pseudo-registers. Call
3522 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
3523
3524 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
3525 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
3526 eax_regnum.
3527 (i386_byte_regnum_p): New.
3528 (i386_word_regnum_p): Likewise.
3529 (i386_dword_regnum_p): Likewise.
3530 (i386_pseudo_register_name): Likewise.
3531 (i386_pseudo_register_read): Likewise.
3532 (i386_pseudo_register_write): Likewise.
3533
3534 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
3535
3536 * target-descriptions.c (tdesc_type): Remove
3537 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
3538 (tdesc_predefined_types): Likewise.
3539 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
3540 if flag name is empty.
3541 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
3542
3543 * features/i386/32bit-core.xml: Define i386_eflags.
3544 * features/i386/64bit-core.xml: Likewise.
3545
3546 * features/i386/32bit-sse.xml: Define i386_mxcsr.
3547 * features/i386/64bit-sse.xml: Likewise.
3548
3549 * features/i386/amd64-linux.c: Regenerated.
3550 * features/i386/amd64.c: Likewise.
3551 * features/i386/i386-linux.c: Likewise.
3552 * features/i386/i386.c: Likewise.
3553
3554 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
3555
3556 * gdbtypes.c (append_composite_type_field_raw): New.
3557 (append_composite_type_field_aligned): Use the new function.
3558 * gdbtypes.h (append_composite_type_field_raw): Declare.
3559 * target-descriptions.c (struct tdesc_type_field): Add start and end.
3560 (struct tdesc_type_flag): New type.
3561 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
3562 kind. Add size to u.u. Add u.f for flags.
3563 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
3564 (tdesc_free_type): Likewise.
3565 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
3566 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
3567 (tdesc_add_bitfield, tdesc_add_flag): New.
3568 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
3569 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
3570 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
3571 current_type. Add current_type_size and current_type_is_flags.
3572 (tdesc_start_union): Clear the new fields.
3573 (tdesc_start_struct, tdesc_start_flags): New.
3574 (tdesc_start_field): Handle struct fields, including bitfields.
3575 (field_attributes): Make type optional. Add start and end.
3576 (union_children): Rename to struct_union_children.
3577 (union_attributes): Rename to struct_union_attributes. Add optional
3578 size.
3579 (flags_attributes): New.
3580 (feature_children): Add struct and flags.
3581 * features/gdb-target.dtd: Add flags and struct to features.
3582 Make field type optional. Add field start and end.
3583
3584 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
3585
3586 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
3587 (amd64_linux_read_description): Likewise.
3588 (_initialize_amd64_linux_nat): Set to_read_description to
3589 amd64_linux_read_description.
3590
3591 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
3592 (amd64_linux_register_name): Removed.
3593 (amd64_linux_register_type): Likewise.
3594 (amd64_linux_core_read_description): New.
3595 (amd64_linux_init_abi): Set target description to
3596 tdesc_amd64_linux if needed. Support orig_rax in target
3597 description. Don't call set_gdbarch_register_name nor
3598 set_gdbarch_register_type. Call
3599 set_gdbarch_core_read_description.
3600 (_initialize_amd64_linux_tdep): Call
3601 initialize_tdesc_amd64_linux.
3602
3603 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
3604
3605 * amd64-tdep.c: Include "features/i386/amd64.c".
3606 (amd64_register_names): Removed.
3607 (amd64_register_name): Likewise.
3608 (amd64_register_type): Likewise.
3609 (amd64_init_abi): Set num_core_regs and register_names. Set
3610 target description to tdesc_amd64 if needed. Don't call
3611 set_gdbarch_register_name nor set_gdbarch_register_type.
3612 (_initialize_amd64_tdep): New.
3613
3614 * i386-linux-nat.c (i386_linux_read_description): New.
3615 (_initialize_i386_linux_nat): Set to_read_description to
3616 i386_linux_read_description.
3617
3618 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
3619 (i386_linux_register_name): Removed.
3620 (i386_linux_core_read_description): New.
3621 (i386_linux_read_description): Likewise.
3622 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
3623 Set target description to tdesc_i386_linux if needed. Support
3624 orig_eax. Set register_reggroup_p. Call
3625 set_gdbarch_core_read_description.
3626 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
3627
3628 * i386-linux-tdep.h (tdesc_i386_linux): New.
3629
3630 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
3631 with I387_NUM_REGS.
3632
3633 * i386-tdep.c: Include "features/i386/i386.c".
3634 (i386_register_names): Make it const.
3635 (i386_mmx_names): Likewise.
3636 (i386_num_register_names): Removed.
3637 (i386_register_name): Likewise.
3638 (i386_eflags_type): Likewise.
3639 (i386_mxcsr_type): Likewise.
3640 (i386_sse_type): Likewise.
3641 (i386_register_type): Likewise.
3642 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
3643 (i386_pseudo_register_name): New.
3644 (i386_pseudo_register_type): Likewise.
3645 (i386_mmx_type): Make it static.
3646 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
3647 I387_NUM_REGS. Set num_core_regs and register_names. Don't
3648 call set_gdbarch_register_name nor set_gdbarch_register_type.
3649 Set register_reggroup_p. Set target description to tdesc_i386
3650 if needed. Call set_tdesc_pseudo_register_type,
3651 set_tdesc_pseudo_register_name and tdesc_use_registers.
3652 (_initialize_i386_tdep): Call initialize_tdesc_i386.
3653 initialize_tdesc_x86_64.
3654
3655 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
3656 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
3657 register_names, tdesc and register_reggroup_p.
3658 (I386_NUM_FREGS): Removed.
3659 (i386_eflags_type): Likewise.
3660 (i386_mxcsr_type): Likewise.
3661 (i386_mmx_type): Likewise.
3662 (i386_sse_type): Likewise.
3663 (i386_register_name): Likewise.
3664 (i386_regnum): Add I386_MXCSR_REGNUM.
3665 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
3666
3667 * i387-tdep.h (I387_NUM_REGS): New.
3668
3669 * regformats/i386/i386-linux.dat: Generated.
3670 * regformats/i386/i386.dat: Likewise.
3671 * regformats/i386/amd64-linux.dat: Likewise.
3672 * regformats/i386/amd64.dat: Likewise.
3673
3674 * regformats/reg-i386-linux.dat: Removed.
3675 * regformats/reg-i386.dat: Likewise.
3676 * regformats/reg-x86-64-linux.dat: Likewise.
3677 * regformats/reg-x86-64.dat: Likewise.
3678
3679 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
3680
3681 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
3682 cygwin_conv_path API rather than the deprecated
3683 cygwin_conv_to_full_posix_path.
3684 * windows-nat.c:
3685 (GetModuleFileNameExA): Undefine for Cygwin.
3686 (GetModuleFileNameExW): Define for Cygwin.
3687 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
3688 Call GetModuleFileNameExW and convert path to POSIX using
3689 cygwin_conv_path.
3690 (windows_make_so): Always define p. Drop unused variable m.
3691 Don't use Win32 functions to check file existance, rather use
3692 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
3693 Use canonicalize_file_name to get full path.
3694 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
3695 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
3696 use correct target buffer size in call to WideCharToMultiByte.
3697 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
3698 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
3699 (windows_create_inferior): Convert all paths and arguments to wchar_t
3700 and use CreateProcessW on Cygwin.
3701 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
3702 (bad_GetModuleFileNameExA): Undefine for Cygwin.
3703 (bad_GetModuleFileNameExW): Define for Cygwin.
3704 (_initialize_loadable): Load GetModuleFileNameExW into
3705 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
3706
3707 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
3708
3709 PR python/11036
3710 * python/py-frame.c (frapy_read_var): Add block argument and logic
3711 to cope with user provided blocks.
3712
3713 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3714
3715 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
3716 New comment.
3717
3718 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
3719
3720 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
3721 (COMMON_OBS): ... to here since it's used unconditionally.
3722 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
3723 (SFILES): To here.
3724
3725 2010-02-26 David Daney <ddaney@caviumnetworks.com>
3726
3727 * mips-linux-tdep.c: Update struct sigframe comments.
3728 (SIGFRAME_CODE_OFFSET): Delete macro.
3729 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
3730 this_frame's sp.
3731 (mips_linux_n32n64_sigframe_init): Same.
3732
3733 2010-02-26 Kevin Buettner <kevinb@redhat.com>
3734
3735 * remote-mips.c (mips_load): Don't use pseudo-register when
3736 invalidating regcache.
3737
3738 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
3739
3740 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
3741
3742 2010-02-26 Pedro Alves <pedro@codesourcery.com>
3743
3744 * NEWS: Add "New targets" section, and mention ARM Symbian
3745 support.
3746
3747 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
3748
3749 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
3750 add ADDR_SIZE member.
3751 (allocate_piece_closure): Update.
3752 (copy_pieced_value_closure): Likewise.
3753 (dwarf2_evaluate_loc_desc): Likewise.
3754 (read_pieced_value): Use DWARF address size instead of
3755 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
3756
3757 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
3758 Tom Tromey <tromey@redhat.com>
3759
3760 * python/py-type.c (typy_lookup_typename): Add in block argument.
3761 If provided restrict lookup to specified blocks.
3762 (gdbpy_lookup_type): Likewise.
3763 (typy_lookup_type): Likewise.
3764
3765 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
3766
3767 Symbian config
3768
3769 gdb/
3770 * arm-symbian-tdep.c: New.
3771 * configure.tgt (arm*-*-symbianelf*): New target.
3772 (*-*-symbianelf*): New OS.
3773 * osabi.c (gdb_osabi_names): Add Symbian.
3774 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
3775 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
3776 (ALLDEPFILES): Add arm-symbian-tdep.c.
3777
3778 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
3779
3780 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
3781
3782 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3783
3784 * mi/mi-main.c (mi_cmd_execute): Fix typo.
3785
3786 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
3787 Tom Tromey <tromey@redhat.com>
3788 Thiago Jung Bauermann <bauerman@br.ibm.com>
3789
3790 * python/python.c (_initialize_python): Call
3791 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
3792 gdbpy_initialize_blocks.
3793 * python/python-internal.h: Declare struct symbol, block and
3794 symtab_and_line. Declare block_object_type and
3795 symbol_object_type
3796 (gdbpy_lookup_symbol gdbpy_block_for_pc)
3797 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
3798 (symbol_to_symbol_object, block_to_block_object)
3799 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
3800 (gdbpy_initialize_blocks ): Declare.
3801 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
3802 (frapy_select): Add methods.
3803 (frapy_read_var): Add symbol branch.
3804 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
3805 py-block.
3806 (SUBDIR_PYTHON_SRCS): Likewise.
3807 (py-symbol.o): New rule.
3808 (py-symtab.o): Likewise.
3809 (py-block.o): Likewise.
3810 * python/py-symbol.c: New file.
3811 * python/py-symtab.c: Likewise.
3812 * python/py-block.c: Likewise.
3813
3814 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3815
3816 PR gdb/11321
3817
3818 * inferior.h (prepare_for_detach): Declare.
3819 (struct inferior) <detaching>: New field.
3820 * infrun.c (prepare_for_detach): New.
3821 (handle_inferior_event) <random signal>: Don't stop if detaching.
3822 * target.c (target_detach): Call prepare_for_detach.
3823
3824 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3825
3826 Per-process displaced stepping queue.
3827
3828 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
3829 (displaced_step_gdbarch, displaced_step_closure,
3830 (displaced_step_original, displaced_step_copy): Move globals to
3831 this...
3832 (struct displaced_step_inferior_state): ... new structure.
3833 (displaced_step_inferior_states): New global.
3834 (get_displaced_stepping_state, add_displaced_stepping_state)
3835 (remove_displaced_stepping_state, infrun_inferior_exit): New
3836 functions.
3837 (displaced_step_clear): Add displaced_step_inferior_state
3838 parameter, and adjust to handle it.
3839 (displaced_step_clear_cleanup): Parameter is now a
3840 displaced_step_inferior_state. Adjust.
3841 (displaced_step_prepare): Adjust.
3842 (displaced_step_fixup, displaced_step_fixup)
3843 (infrun_thread_ptid_changed, resume): Adjust.
3844 (init_wait_for_inferior): Don't call displaced_step_clear.
3845 (infrun_thread_stop_requested): Rewrite.
3846 (_initialize_infrun): Install infrun_inferior_exit as
3847 inferior_exit observer.
3848
3849 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3850
3851 * inferior.h (ptid_match): Declare.
3852 * infrun.c (ptid_match): New.
3853 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
3854 (handle_notification): Add debug output.
3855 * linux-nat.c (ptid_match): Delete.
3856
3857 2010-02-24 David S. Miller <davem@davemloft.net>
3858
3859 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
3860 * syscalls/sparc-linux.xml: New.
3861 * syscalls/sparc64-linux.xml: New.
3862 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
3863 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
3864 (sparc32_linux_get_syscall_number): New function.
3865 (sparc32_linux_init_abi): Set syscall XML file name and hook up
3866 syscall number fetcher.
3867 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
3868 (sparc64_linux_get_syscall_number): New function.
3869 (sparc64_linux_init_abi): Set syscall XML file name and hook up
3870 syscall number fetcher.
3871
3872 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
3873
3874 Multiexec MI
3875
3876 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
3877 * inferior.c (add_inferior_silent): Notify inferior_added
3878 observer.
3879 (delete_inferior_1): Notify inferior_removed observer.
3880 (exit_inferior_1): Pass inferior, not pid, to observer.
3881 (inferior_appeared): Likewise.
3882 (add_inferior_with_spaces): New.
3883 (add_inferior_command): Use the above.
3884 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
3885 Declare.
3886
3887 * inflow.c (inflow_inferior_exit): Likewise.
3888 * jit.c (jit_inferior_exit_hook): Likewise.
3889
3890 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
3891 remove-inferior.
3892 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
3893 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
3894 (report_initial_inferior): New.
3895 (mi_inferior_removed): Register the above. Make sure
3896 inferior_added observer is called on the first inferior.
3897 (mi_new_thread, mi_thread_exit): Thread group is now identified by
3898 inferior number, not pid.
3899 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
3900 affected.
3901 * mi/mi-main.c (current_context): New.
3902 (proceed_thread_callback): Use typed closure.
3903 Proceed everything if pid is 0. Most implementation split into
3904 (proceed_thread): ... this.
3905 (run_one_inferior): New.
3906 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
3907 Adjust for multiexec behaviour.
3908 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
3909 (mi_cmd_execute): Handle the 'thread-group' option here.
3910 Do some extra checks.
3911 * mi-parse.c (mi_parse): Handle the --all and --thread-group
3912 options.
3913 * mi-parse.h (struct mi_parse): New fields all and thread_group.
3914
3915 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
3916
3917 Make -exec-run a proper MI commands.
3918
3919 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
3920 * mi/mi-cmds.c (mi_cmds): Adjust.
3921 * mi/mi-main.c (mi_cmd_exec_run): New.
3922
3923 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3924 Stan Shebs <stan@codesourcery.com>
3925
3926 * tracepoint.h (set_traceframe_number)
3927 (cleanup_restore_current_traceframe): Declare.
3928 * tracepoint.c (set_traceframe_number): New.
3929 (struct current_traceframe_cleanup): New.
3930 (do_restore_current_traceframe_cleanup)
3931 (restore_current_traceframe_cleanup_dtor)
3932 (make_cleanup_restore_current_traceframe): New.
3933 * infrun.c: Include tracepoint.h.
3934 (fetch_inferior_event): Switch out and in of tfind mode.
3935
3936 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3937
3938 * breakpoint.c (breakpoint_init_inferior): Also delete
3939 bp_shlib_event breakpoints.
3940 * solib-frv.c (enable_break): Remove call to
3941 remove_solib_event_breakpoints.
3942 * solib-svr4.c (enable_break): Ditto.
3943 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
3944 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
3945 * solib-som.c (som_solib_create_inferior_hook): Ditto.
3946 * solib-spu.c (spu_enable_break): Ditto.
3947
3948 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
3949
3950 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
3951
3952 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
3953
3954 * varobj.c (varobj_update): Avoid non-constants in initializers.
3955
3956 2010-02-23 Tom Tromey <tromey@redhat.com>
3957
3958 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
3959 handle big-endian values.
3960 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
3961
3962 2010-02-22 Pedro Alves <pedro@codesourcery.com>
3963
3964 PR9605
3965
3966 gdb/
3967 * breakpoint.c (insert_bp_location): If inserting the read
3968 watchpoint failed, fallback to an access watchpoint.
3969 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
3970 if the value changed, if not watching the same memory for writes.
3971 (watchpoint_locations_match): Add comment.
3972 (update_global_location_list): Copy the location's watchpoint type.
3973 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
3974 handle read watchpoints here.
3975 (i386_insert_watchpoint): Read watchpoints aren't supported.
3976 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
3977 packets.
3978 * target.h (target_insert_watchpoint): Update description.
3979
3980 2010-02-19 Tom Tromey <tromey@redhat.com>
3981
3982 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
3983 * m2-typeprint.c (m2_print_type): Update.
3984 * gdbtypes.c (recursive_dump_type): Update.
3985 (copy_type_recursive): Update.
3986 * c-typeprint.c (c_type_print_varspec_prefix): Update.
3987 (c_type_print_base): Update.
3988 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
3989 Remove.
3990 (struct cplus_struct_type) <ntemplate_args>: Remove.
3991 <struct template_arg>: Remove.
3992 <is_dynamic>: Move earlier.
3993 (TYPE_TEMPLATE_ARGS): Remove.
3994 (TYPE_NTEMPLATE_ARGS): Remove.
3995 (TYPE_TEMPLATE_ARG): Remove.
3996
3997 2010-02-19 Tom Tromey <tromey@redhat.com>
3998
3999 PR c++/8693, PR c++/9496:
4000 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
4001 * c-exp.y (lex_one_token): Rename from yylex. Don't call
4002 write_dollar_variable. Don't try to classify NAME tokens.
4003 (token_and_value): New type.
4004 (token_fifo, popping, name_obstack): New globals.
4005 (classify_name): New function.
4006 (classify_inner_name): Likewise.
4007 (yylex): Likewise.
4008 (VARIABLE): Now has type sval.
4009 (exp : VARIABLE): Call write_dollar_variable.
4010 (qualified_name): Use TYPENAME, not typebase. Add production for
4011 multiple "::" instances.
4012 (variable): Use name_not_typename.
4013 (qualified_type): Remove.
4014 (typebase): Update.
4015
4016 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4017
4018 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
4019 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
4020 found by bfd_get_section_by_name.
4021 * symfile.h (struct section_addr_info) <sectindex>: New comment.
4022
4023 2010-02-19 Joel Brobecker <brobecker@adacore.com>
4024
4025 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
4026 7.0 section" into "Changes in 7.1".
4027
4028 2010-02-19 Joel Brobecker <brobecker@adacore.com>
4029
4030 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
4031 * version.in: Bump version to 7.1.50.20100219-cvs.
4032
4033 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
4034
4035 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
4036 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
4037
4038 2010-02-17 Tom Tromey <tromey@redhat.com>
4039
4040 * NEWS: Add Python API Improvements section.
4041
4042 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
4043
4044 * NEWS: Correct typo.
4045
4046 2010-02-17 Tom Tromey <tromey@redhat.com>
4047
4048 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
4049
4050 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4051
4052 * symfile.c (build_section_addr_info_from_objfile): Include sections
4053 only if they are SEC_ALLOC or SEC_LOAD.
4054
4055 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
4056
4057 PR shlibs/11293
4058 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
4059 of ULONGEST for address size.
4060
4061 2010-02-17 Tom Tromey <tromey@redhat.com>
4062
4063 * NEWS: Add C++ improvements section.
4064
4065 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
4066
4067 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
4068 PyThreadState_Swap): Avoid "statement with no effect" warning.
4069
4070 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4071
4072 * solib-svr4.c (enable_break <target_auxv_search>): New variable
4073 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
4074
4075 2010-02-17 Tristan Gingold <gingold@adacore.com>
4076 Petr Hluzin <petr.hluzin@gmail.com>
4077
4078 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
4079 gdb_assert. Fix info->size for SIG prologue.
4080
4081 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
4082
4083 * infcmd.c (show_inferior_tty_command): Check for NULL.
4084 Correct output message.
4085
4086 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
4087
4088 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
4089 FUNCTION contains parentheses. Improve removal of a trailing
4090 single quote.
4091
4092 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
4093
4094 * gcore.c (do_bfd_delete_cleanup): New function.
4095 (gcore_command): Use it. Discard the cleanup after success.
4096 (gcore_copy_callback): Delete dead code.
4097
4098 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
4099
4100 * symfile.c (addr_info_make_relative): Always use
4101 find_lowest_section.
4102
4103 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
4104
4105 * NEWS: Added entry for namespace fixes.
4106
4107 2010-02-15 Tom Tromey <tromey@redhat.com>
4108
4109 * dwarf2read.c (guess_structure_name): Allocate name on the
4110 objfile obstack.
4111
4112 2010-02-15 Tom Tromey <tromey@redhat.com>
4113
4114 * c-typeprint.c (c_type_print_base): Reverse order of test.
4115
4116 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4117
4118 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
4119 initialize it from ELF BFD. Extend the prelink condition by it.
4120
4121 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4122
4123 * defs.h (parse_pid_to_attach): New.
4124 * utils.c (parse_pid_to_attach): New.
4125 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
4126 * gnu-nat.c (gnu_attach): Likewise.
4127 * nto-procfs.c (procfs_attach): Likewise.
4128 * procfs.c (procfs_attach): Likewise.
4129 * windows-nat.c (windows_attach): Likewise.
4130 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
4131 * inf-ttrace.c (inf_ttrace_attach): Likewise.
4132 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
4133 check.
4134
4135 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
4136
4137 * MAINTAINERS: Add myself for write after approval privileges.
4138
4139 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4140
4141 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
4142 block.
4143
4144 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4145
4146 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
4147 only if INFO_VERBOSE.
4148
4149 2010-02-12 Tomas Holmberg <th@virtutech.com>
4150
4151 * mi/mi-main.c: Added the --reverse flag to the following MI
4152 commands: exec-continue, exec-finish, exec-next, exec-step,
4153 exec-next-instruction, exec-step-instruction. This is to
4154 support reverse execution over the MI interface to gdb.
4155
4156 2010-02-12 Pedro Alves <pedro@codesourcery.com>
4157
4158 * tracepoint.c (_initialize_tracepoint): Specify that the address
4159 range of `tfind outsize' is exclusive, and that the address range
4160 of `tfind range' is inclusive, in the commands' help strings.
4161
4162 2010-02-12 Joel Brobecker <brobecker@adacore.com>
4163
4164 Spurious "dll not found" error messages on x64-windows.
4165 * windows-nat.c: Add include of complaints.h.
4166 (handle_unload_dll): Change dll-not-found error into a complaint.
4167
4168 2010-02-12 Pedro Alves <pedro@codesourcery.com>
4169
4170 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
4171 bp_tracepoint and bp_fast_tracepoint, not
4172 bp_loc_software_breakpoint.
4173 (update_global_location_list): Tracepoints are never duplicates of
4174 anything.
4175
4176 2010-02-12 Pedro Alves <pedro@codesourcery.com>
4177
4178 * breakpoint.c (break_command_really): Change return type to int.
4179 Return false if no breakpoint was created, true otherwise.
4180 (trace_command): Don't set the tracepoint count if no tracepoint
4181 was created.
4182 (ftrace_command): Ditto.
4183 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
4184 created in the breakpoints table.
4185
4186 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4187 Ulrich Weigand <uweigand@de.ibm.com>
4188
4189 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
4190
4191 2010-02-11 Pedro Alves <pedro@codesourcery.com>
4192
4193 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
4194 the offset value isn't of integral type.
4195
4196 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4197
4198 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
4199 New.
4200
4201 2010-02-11 Pedro Alves <pedro@codesourcery.com>
4202
4203 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
4204 non-subscriptable types.
4205 * valarith.c (binop_types_user_defined_p): New, abstracted out
4206 from ...
4207 (binop_user_defined_p): ... this.
4208 * value.h (binop_types_user_defined_p): Declare.
4209
4210 2010-02-11 Pedro Alves <pedro@codesourcery.com>
4211
4212 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
4213 Merge uploaded TSVs before merging uploaded tracepoints.
4214
4215 2010-02-11 Pedro Alves <pedro@codesourcery.com>
4216
4217 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
4218
4219 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
4220
4221 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
4222 whitespace character after a dot in comment.
4223 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
4224 Likewise.
4225 (list_args_or_locals): For the 'all' (that is
4226 -stack-list-variables) case, always output list of tuples.
4227 Output 'arg' field if variable is argument.
4228
4229 2010-02-10 Tom Tromey <tromey@redhat.com>
4230
4231 * parser-defs.h (parser_debug): Declare.
4232 * parse.c (_initialize_parse): Install "debug parser" set/show
4233 command.
4234 (parser_debug): New global.
4235 (show_parserdebug): New function.
4236 * c-exp.y (c_parse): Set yydebug.
4237
4238 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
4239
4240 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
4241 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
4242 (tdesc_predefined_types): Add i387_ext, i386_eflags and
4243 i386_mxcsr.
4244 (tdesc_find_type): New.
4245 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
4246 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
4247
4248 * target-descriptions.h (tdesc_find_type): New.
4249
4250 2010-02-10 Michael Snyder <msnyder@vmware.com>
4251
4252 * gdb-gdb.py: Comment fix.
4253
4254 2010-02-09 Tristan Gingold <gingold@adacore.com>
4255
4256 * machoread.c (macho_symfile_relocate): New function.
4257 (macho_sym_fns): Use macho_symfile_relocate instead of
4258 default_symfile_relocate.
4259 (macho_oso_data): New type.
4260 (current_oso): New variable.
4261 (macho_add_oso_symfile): Do not compute section_addr_info, but
4262 instead set vma of sections.
4263 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
4264 Set and clear current_oso.
4265
4266 2010-02-09 Joel Brobecker <brobecker@adacore.com>
4267
4268 Wrong type description for tagged type parameter.
4269 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
4270 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
4271 reference to a tagged type.
4272
4273 2010-02-09 Tristan Gingold <gingold@adacore.com>
4274
4275 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
4276 brothers of the parent.
4277
4278 2010-02-08 Tom Tromey <tromey@redhat.com>
4279
4280 PR c++/8017:
4281 * value.h: Update.
4282 * valops.c (search_struct_field): Make 'name' const.
4283 (search_struct_method): Likewise.
4284 (find_method_list): Make 'method' const.
4285 (value_struct_elt): Make 'name' and 'err' const.
4286 (value_find_oload_method_list): Make 'method' const.
4287 (find_overload_match): Make 'name' const.
4288 * eval.c (evaluate_subexp_standard): New locals function,
4289 function_name.
4290 <OP_FUNCALL>: Handle OP_SCOPE specially.
4291
4292 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4293
4294 * infrun.c (handle_inferior_event): Do not look up regcache
4295 for exited processes.
4296
4297 2010-02-08 Chris Moller <moller@mollerware.com>
4298
4299 PR gdb/10728
4300 * valarith.c (value_ptrdiff): Added a test for a zero type length,
4301 warn if found, and assume length = 1.
4302
4303 2010-02-08 Chris Moller <cmoller@redhat.com>
4304
4305 PR gdb/9067
4306 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
4307 cp_print_static_field) Fix use of obstacks.
4308
4309 2010-02-08 Pedro Alves <pedro@codesourcery.com>
4310
4311 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
4312 resumed LWPs as resumed.
4313 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
4314 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
4315 of throwing an internal error. If an LWP of a process we're not
4316 waiting for reports a signal, don't force collecting a SIGSTOP,
4317 and if it was breakpoint hit in non-stop mode, cancel it. Don't
4318 go through all LWPs cancelling breakpoints in non-stop mode.
4319 (resume_stopped_resumed_lwps): New.
4320 (linux_nat_wait): Use it.
4321
4322 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
4323
4324 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
4325 i386/amd64 and i386/amd64-linux.
4326 (i386/i386-expedite): New.
4327 (i386/i386-linux-expedite): Likewise.
4328 (i386/amd64-expedite):Likewise.
4329 (i386/amd64-linux-expedite): Likewise.
4330 ($(outdir)/i386/i386-linux.dat): Likewise.
4331 ($(outdir)/i386/amd64.dat): Likewise.
4332 ($(outdir)/i386/amd64-linux.dat): Likewise.
4333
4334 * features/i386/32bit-core.xml: New.
4335 * features/i386/32bit-linux.xml: Likewise.
4336 * features/i386/32bit-sse.xml: Likewise.
4337 * features/i386/64bit-core.xml: Likewise.
4338 * features/i386/64bit-linux.xml: Likewise.
4339 * features/i386/64bit-sse.xml: Likewise.
4340 * features/i386/i386-linux.xml: Likewise.
4341 * features/i386/i386.xml: Likewise.
4342 * features/i386/amd64-linux.xml: Likewise.
4343 * features/i386/amd64.xml: Likewise.
4344 * features/i386/i386-linux.c: Likewise.
4345 * features/i386/i386.c: Likewise.
4346 * features/i386/amd64-linux.c: Likewise.
4347 * features/i386/amd64.c: Likewise.
4348
4349 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
4350
4351 PR c++/7935:
4352 * cp-support.h: Added char* alias element to using_direct data
4353 struct.
4354 (cp_add_using): Added char* alias argument.
4355 (cp_add_using_directive): Ditto.
4356 * cp-namespace.c: Updated with the above changes.
4357 (cp_lookup_symbol_imports): Check for aliases.
4358 * dwarf2read.c (read_import_statement): Figure out local alias
4359 for the import and pass it on to cp_add_using.
4360 (read_namespace): Pass alias argument to cp_add_using.
4361
4362 2010-02-05 Hui Zhu <teawater@gmail.com>
4363
4364 * defs.h (gdb_bfd_errmsg): New extern.
4365 * exec.c (exec_file_attach): Change bfd_errmsg to
4366 gdb_bfd_errmsg.
4367 * utils.c (AMBIGUOUS_MESS1): New macro.
4368 (AMBIGUOUS_MESS2): New macro.
4369 (gdb_bfd_errmsg): New function.
4370
4371 2010-02-04 Doug Evans <dje@google.com>
4372
4373 * solib-svr4.c (enable_break): Add comment.
4374
4375 2010-02-04 Anthony Green <green@moxielogic.com>
4376
4377 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
4378 gracefully.
4379
4380 2010-02-04 Tom Tromey <tromey@redhat.com>
4381
4382 * valops.c (search_struct_field): Account for
4383 value_embedded_offset. Fix check for virtual base past the end of
4384 the object. Use value_copy when making a slice of the value.
4385
4386 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
4387
4388 PR tui/9622
4389 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
4390 only if gdb_stdout is a tty.
4391
4392 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
4393
4394 * target-descriptions.c: Include "osabi.h".
4395 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
4396 OSABI.
4397
4398 2010-02-04 Tristan Gingold <gingold@adacore.com>
4399
4400 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
4401 (macho_symtab_read): Adjust calls to macho_add_oso.
4402 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
4403 (macho_symfile_read): Adjust call to macho_oso_symfile.
4404 (macho_new_init): Move this function after declarations.
4405 (macho_symfile_init): Ditto.
4406 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
4407 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
4408
4409 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
4410
4411 Include MI command in remotelog.
4412
4413 * mi/mi-main.c (mi_execute_command): Call target_log_command.
4414
4415 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
4416
4417 * remote.c (remote_state): Remove gdbarch.
4418 (init_remote_state): Don't set gdbarch.
4419 (remote_query_supported): Pass target_gdbarch instead of
4420 rs->gdbarch to gdbarch_qsupported.
4421
4422 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
4423
4424 * gdbarch.sh: Add qsupported.
4425
4426 * gdbarch.c: Regenerated.
4427 * gdbarch.h: Likewise.
4428
4429 * remote.c (remote_state): Add gdbarch.
4430 (init_remote_state): Set gdbarch.
4431 (remote_query_supported): Support gdbarch_qsupported.
4432
4433 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
4434
4435 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
4436 __FreeBSD_kernel_version.
4437
4438 2010-02-03 Tristan Gingold <gingold@adacore.com>
4439
4440 * symfile.h (struct sym_fns): Add sym_relocate field.
4441 (default_symfile_relocate): New prototype.
4442 (symfile_relocate_debug_section): First argument is now an objfile.
4443 * symfile.c (default_symfile_relocate): Rename from
4444 symfile_relocate_debug_section, first argument is now an objfile.
4445 (symfile_relocate_debug_section): New function.
4446 * coffread.c (coff_sym_fns): Set sym_relocate field.
4447 * somread.c (som_sym_fns): Ditto.
4448 * mipsread.c (ecoff_sym_fns): Ditto.
4449 * machoread.c (macho_sym_fns): Ditto.
4450 * elfread.c (elf_sym_fns): Ditto.
4451 * dwarf2read.c (dwarf2_read_section): Ditto.
4452 * xcoffread.c (xcoff_sym_fns): Ditto.
4453 * dbxread.c (aout_sym_fns): Ditto.
4454 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
4455 (elfstab_build_psymtabs): Ditto.
4456
4457 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
4458
4459 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
4460
4461 2010-02-02 Tom Tromey <tromey@redhat.com>
4462
4463 * valops.c (value_cast_structs): Try downcasting using the RTTI
4464 type.
4465
4466 2010-02-02 Tom Tromey <tromey@redhat.com>
4467
4468 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
4469 (gnuv2_baseclass_offset): Now static.
4470 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
4471 * gnu-v2-abi.h: Remove.
4472
4473 2010-02-02 Tom Tromey <tromey@redhat.com>
4474
4475 * m2-typeprint.c (m2_record_fields): Don't use
4476 TYPE_DECLARED_TYPE.
4477 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
4478 (struct main_type) <flag_declared_class>: New field.
4479 (struct cplus_struct_type) <declared_type>: Remove.
4480 <ntemplate_args>: Move earlier.
4481 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
4482 (DECLARED_TYPE_TEMPLATE): Remove.
4483 (TYPE_DECLARED_TYPE): Remove.
4484 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
4485 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
4486 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
4487 TYPE_DECLARED_TYPE.
4488
4489 2010-02-02 Tom Tromey <tromey@redhat.com>
4490
4491 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
4492 * valops.c (search_struct_field): Compute nbases after calling
4493 CHECK_TYPEDEF.
4494 (check_field): Call CHECK_TYPEDEF.
4495 * cp-valprint.c (cp_print_value): Pass correct address to
4496 baseclass_offset. Fix check for virtual base past the end of the
4497 object. Don't offset address passed to cp_print_value_fields or
4498 apply_val_pretty_printer.
4499 (cp_print_value_fields): Fix call to val_print.
4500 (cp_print_value_fields_rtti): New function.
4501 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
4502 * p-valprint.c (pascal_object_print_value_fields): Fix call to
4503 val_print.
4504 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
4505 offset to address.
4506 * language.h (struct language_defn) <la_val_print>: Document.
4507 * c-lang.h (cp_print_value_fields_rtti): Declare.
4508
4509 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4510
4511 PR libc/11214:
4512 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
4513 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
4514 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
4515
4516 2010-02-01 Michael Matz <matz@suse.de>
4517 Daniel Jacobowitz <dan@codesourcery.com>
4518
4519 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
4520 functions use a frame pointer.
4521
4522 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4523
4524 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
4525 by a conditional setting DYN_ADDR. Use DYN_ADDR.
4526 * config/djgpp/fnchange.lst: Add translations for
4527 symbol-without-target_section.exp and symbol-without-target_section.c.
4528
4529 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
4530
4531 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
4532 (remote_breakpoint_for_pc): Correct invalid_p check.
4533 * gdbarch.c: Regenerated.
4534
4535 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
4536
4537 * arm-tdep.c (arm_find_mapping_symbol): New function, from
4538 arm_pc_is_thumb.
4539 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
4540 (extend_buffer_earlier): New function.
4541 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
4542 (arm_adjust_breakpoint_address): New function.
4543 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
4544
4545 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
4546
4547 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
4548 (arm_linux_thumb2_le_breakpoint): New constants.
4549 (arm_linux_init_abi): Set thumb2_breakpoint and
4550 thumb2_breakpoint_size.
4551 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
4552 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
4553 Implement support for single stepping through IT blocks if
4554 a 32-bit Thumb breakpoint instruction is available.
4555 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
4556 is available, use it when needed.
4557 (arm_remote_breakpoint_from_pc): New function.
4558 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
4559 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
4560 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
4561
4562 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
4563
4564 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
4565 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
4566 * gdbarch.c, gdbarch.h: Regenerated.
4567 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
4568 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
4569 gdbarch_remote_breakpoint_from_pc.
4570
4571 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
4572
4573 * infrun.c (prepare_to_proceed): Handle other signals which might
4574 match a breakpoint.
4575 (handle_inferior_event): Move the check for unusual breakpoint
4576 signals earlier.
4577
4578 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
4579
4580 amd64 - function returning record with field straddling 2 registers.
4581 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
4582 a record of length <= 16 in which a field straddles the two
4583 eightbytes.
4584
4585 2010-01-29 Joel Brobecker <brobecker@adacore.com>
4586
4587 Implement return values on amd64-windows.
4588 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
4589 (amd64_windows_return_value): New function.
4590 (amd64_windows_init_abi): Call set_gdbarch_return_value with
4591 amd64_windows_return_value.
4592
4593 2010-01-29 Joel Brobecker <brobecker@adacore.com>
4594
4595 amd64-windows: 32 bytes allocated on stack by caller for integer
4596 parameter registers.
4597 * i386-tdep.h (struct gdbarch_tdep): Add new field
4598 integer_param_regs_saved_in_caller_frame.
4599 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4600 tdep->integer_param_regs_saved_in_caller_frame to 1.
4601 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
4602 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
4603
4604 2010-01-29 Joel Brobecker <brobecker@adacore.com>
4605
4606 amd64-windows: memory args passed by pointer during function calls.
4607 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
4608 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
4609 where tdep->memory_args_by_pointer is non-zero.
4610 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4611 tdep->memory_args_by_pointer to 1.
4612
4613 2010-01-29 Joel Brobecker <brobecker@adacore.com>
4614
4615 amd64-windows: Integer parameters in function calls.
4616 * i386-tdep.h (enum amd64_reg_class): New, moved here from
4617 amd64-tdep.c.
4618 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
4619 call_dummy_integer_regs, and classify.
4620 * amd64-tdep.h (amd64_classify): Add declaration.
4621 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
4622 (amd64_reg_class): Delete, moved to i386-tdep.h.
4623 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
4624 Replace call to amd64_classify by call to tdep->classify.
4625 (amd64_push_arguments): Get the list of registers to use for
4626 passing integer parameters from the gdbarch tdep structure,
4627 rather than using a hardcoded one. Replace calls to amd64_classify
4628 by calls to tdep->classify.
4629 (amd64_push_dummy_call): Get the register number used for
4630 the "hidden" argument from tdep->call_dummy_integer_regs.
4631 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
4632 and tdep->call_dummy_integer_regs. Set tdep->classify.
4633 * amd64-windows-tdep.c: Add include of gdbtypes.h.
4634 (amd64_windows_dummy_call_integer_regs): New static global.
4635 (amd64_windows_classify): New function.
4636 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
4637 tdep->call_dummy_integer_regs and tdep->classify.
4638
4639 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
4640
4641 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
4642 for the new regcache. All callers updated.
4643 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
4644 (get_thread_arch_regcache): Do not set aspace here.
4645 * regcache.h (regcache_xmalloc): Update declaration.
4646
4647 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
4648 regcache_xmalloc updated.
4649
4650 2010-01-28 Joel Brobecker <brobecker@adacore.com>
4651
4652 Another -Wunused-function error in procfs.c (sparc-solaris)
4653 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
4654 Only define if SYS_syssgi is defined.
4655 (remove_dbx_link_breakpoint): Delete declaration. Move up.
4656 (dbx_link_addr, insert_dbx_link_bpt_in_file)
4657 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
4658 is itself defined.
4659
4660 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
4661
4662 * windows-nat.c (windows_initialization_done): New variable.
4663 (get_windows_debug_event): Issue error when process dies before
4664 completely initializing.
4665 (do_initial_windows_stuff): Set flag to indicate when we are done with
4666 the initial steps of attaching to the child.
4667
4668 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4669
4670 * symtab.h (struct symbol <symtab>): New comment on NULL values.
4671
4672 2010-01-27 Doug Evans <dje@google.com>
4673
4674 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
4675
4676 * breakpoint.c (bpstat_stop_status): Delete useless code.
4677
4678 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4679
4680 * printcmd.c (display_uses_solib_p): Remove variable section. Access
4681 objfile via SYMBOL_SYMTAB.
4682
4683 2010-01-26 Tom Tromey <tromey@redhat.com>
4684
4685 PR exp/7643:
4686 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
4687 coerce_array on result.
4688
4689 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
4690
4691 * cp-namespace.c (cp_lookup_symbol_namespace): Added
4692 search_parent argument.
4693 (cp_add_using): Initialize 'searched' field.
4694 (reset_directive_searched): New function.
4695 * cp-support.h: Add 'searched' field to using_direct struct.
4696 (cp_lookup_symbol_imports): Ditto.
4697 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
4698 Perform recursive search.
4699 Implement non parent search.
4700 * valops.c (value_maybe_namespace_elt): Updated.
4701
4702 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
4703
4704 PR gdb/10929:
4705 * dwarf2read.c (read_lexical_block_scope): Create blocks for
4706 scopes which contain using directives even if they contain no
4707 declarations.
4708 * symtab.c (lookup_symbol_aux): Pass lowest level block to
4709 la_lookup_symbol_nonlocal.
4710 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
4711 cp_lookup_symbol_namespace.
4712 (cp_lookup_symbol_namespace): Perform an import lookup at every
4713 block level.
4714 (cp_lookup_symbol_imports): New function.
4715 (cp_lookup_symbol_in_namespace): New function.
4716
4717 2010-01-25 Tom Tromey <tromey@redhat.com>
4718
4719 PR gdb/11049:
4720 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
4721 result.
4722
4723 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4724
4725 * configure.ac: Only use host_os part when disabling TUI on osf.
4726 Use test to check variables, prefix strings with x.
4727 * configure: Regenerate.
4728
4729 * solib-osf.c (osf_current_sos): Initialize tail.
4730
4731 2010-01-25 gingold <gingold@adacore.com>
4732
4733 * windows-nat.c (windows_continue): Use %x to print thread id.
4734 (get_windows_debug_event): Ditto.
4735
4736 2010-01-22 Tom Tromey <tromey@redhat.com>
4737
4738 PR symtab/11199:
4739 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
4740 type and arguments. Use smash_to_methodptr_type.
4741 (read_structure_type): Call quirk_gcc_member_function_pointer
4742 later.
4743 * gdbtypes.h (smash_to_methodptr_type): Declare.
4744 * gdbtypes.c (smash_to_methodptr_type): New function.
4745 (lookup_methodptr_type): Use it.
4746
4747 2010-01-21 Tom Tromey <tromey@redhat.com>
4748
4749 PR symtab/11198:
4750 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
4751 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
4752 * glibc-tdep.c (find_minsym_and_objfile): Remove.
4753 (glibc_skip_solib_resolver): Use
4754 lookup_minimal_symbol_and_objfile.
4755
4756 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
4757
4758 * inflow.c (check_syscall): Guard by #if clause for GO32 and
4759 WIN32 targets.
4760
4761 2010-01-20 Tom Tromey <tromey@redhat.com>
4762
4763 PR backtrace/10770:
4764 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
4765 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
4766 * dwarf2expr.c (new_dwarf_expr_context): Allocate
4767 dwarf_stack_values, not CORE_ADDRs.
4768 (execute_stack_op): Change DW_OP_div and comparison operators to
4769 use signed operands.
4770
4771 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
4772
4773 Per-inferior args and tty and environment.
4774
4775 * infcmd.c (inferior_args): Rename to ...
4776 (inferior_args_scratch): ... this.
4777 (inferior_io_terminal): Rename to ...
4778 (inferior_io_terminal_scratch): ... this.
4779 (inferior_argc, inferior_argv): Remove.
4780 (set_inferior_io_terminal, get_inferior_io_terminal): Store
4781 inside current_inferior().
4782 (set_inferior_tty_command, show_inferior_tty_command): New.
4783 (get_inferior_args, set_inferior_args): Store inside
4784 current_inferior().
4785 (notice_args_set): Likewise and rename to...
4786 (set_args_command): ... this.
4787 (set_inferior_args_vector): Likewise.
4788 (notice_args_read): Rename to...
4789 (show_args_command): ...new.
4790 (tty_command): Remove.
4791 (run_command_1): Don't free old args, as they are freed by
4792 set_inferior_arg now.
4793 (run_no_args_command): Likewise.
4794 (inferior_environ): Remove.
4795 (run_command_1): Use environment of the current inferior.
4796 (environment_info, set_environment_command)
4797 (unset_environment_command, path_info, path_command): Likewise.
4798 (_initialize_infcmd): Adjust for function and variable renames.
4799 Do not init inferior_environ.
4800 * inferior.h (set_inferior_arg): Adjust prototype.
4801 (struct inferior): New fields args, argc, argv, terminal, environment.
4802 (inferior_environ): Remove declaration.
4803 * inferior.c (free_inferior): Free new fields.
4804 (add_inferior_silent): Initialize 'environment' field.
4805 * main.c (captured_main): Set arguments only after the initial
4806 inferior has been created. Set set_inferior_io_terminal,
4807 not tty_command.
4808 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
4809 inferior.
4810 (_initialize_mi_cmd_env): Adjust for disappearance of global
4811 inferior_environ.
4812 * solib.c (solib_find): Use environment of the current inferior.
4813
4814 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4815
4816 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
4817 HAVE_PYTHON.
4818 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
4819
4820 2010-01-20 Joel Brobecker <brobecker@adacore.com>
4821
4822 Get rid of ada-lang.c:function_name_from_pc.
4823 * ada-lang.c: Add "stack.h" #include.
4824 (function_name_from_pc): Delete.
4825 (is_known_support_routine): Replace call to function_name_from_pc
4826 by call to find_frame_funname.
4827 (ada_unhandled_exception_name_addr_from_raise): Likewise.
4828
4829 2010-01-19 Tom Tromey <tromey@redhat.com>
4830
4831 PR c++/11026:
4832 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
4833 objfile obstack.
4834
4835 2010-01-19 Tom Tromey <tromey@redhat.com>
4836
4837 * top.c (stop_sig, float_handler, do_nothing): Remove.
4838
4839 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4840
4841 * breakpoint.c (watchpoint_check): Check the call
4842 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
4843 Extend the comment.
4844 * config/djgpp/fnchange.lst: Add translations for
4845 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
4846 watchpoint-cond-gone-stripped.c.
4847
4848 2010-01-19 Tom Tromey <tromey@redhat.com>
4849
4850 PR c++/8000:
4851 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
4852 into parent scope, and enumerator into grandparent scope.
4853
4854 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4855
4856 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
4857
4858 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4859
4860 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
4861 i[34567]86-*-solaris2.1[0-9]*.
4862 * configure.tgt: Likewise.
4863
4864 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4865
4866 * NEWS: Document the source command enhancement allowing it
4867 to load Python scripts. Document the "set/show script-extension"
4868 commands.
4869
4870 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4871
4872 Add -Wunused-function to compile flags.
4873 * configure.ac: Add -Wunused-function to build_warnings.
4874 * configure: Regenerate.
4875
4876 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4877
4878 "delete" ada-lex.c:input function, not used.
4879 * ada-lex.l: #define YY_NO_INPUT.
4880
4881 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4882
4883 Delete free_named_symtabs and associated cleanup.
4884 * symfile.h (free_named_symtabs): Delete declaration.
4885 * symfile.c: Remove some commented out code (clear_symtab_users_once).
4886 (cashier_psymtab): Comment function out.
4887 Delete declaration.
4888 (free_named_symtabs): Delete.
4889 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
4890 * dbxread.c (end_psymtab): Likewise.
4891 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
4892 * exec.c (exec_close_1): Ditto.
4893 * xcoffread.c (xcoff_end_psymtab): Likewise.
4894
4895 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4896
4897 * stack.c (print_block_frame_labels): Comment function out.
4898
4899 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4900
4901 Delete unused or undefined functions.
4902 * breakpoint.c (ep_parse_optional_filename): Delete.
4903 * dcache.c (dcache_write_line): Remove declaration.
4904 * infrun.c (build_infrun): Remove declaration.
4905 * tracepoint.c (tracepoint_save_command): Remove declaration.
4906 * linux-nat.c (init_lwp_list): Delete. No longer used.
4907 * event-loop.c (check_async_signal_handlers): Delete declaration.
4908 * infrun.c (init_execution_control_state): Delete.
4909 (proceed): Update comment to avoid mentioning
4910 init_execution_control_state.
4911 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
4912 * ada-lang.c (ada_to_static_fixed_value): Delete.
4913 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
4914 * cp-namespace.c (cp_copy_usings): Delete.
4915 * xml-syscall.c (xml_number_of_syscalls): Delete.
4916 * progspace.c (find_program_space_by_num): Delete.
4917 * inflow.c (handle_sigio): Delete declaration.
4918 * hppa-tdep.c (hppa_alignof): Delete.
4919 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
4920 (mipsnbsd_core_osabi_sniffer): Delete.
4921
4922 2010-01-18 Tom Tromey <tromey@redhat.com>
4923
4924 PR c++/9680:
4925 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
4926 (CONST_CAST): New tokens.
4927 (exp): Add new productions.
4928 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
4929 reinterpret_cast.
4930 (is_cast_operator): New function.
4931 (yylex): Handle cast operators specially.
4932 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
4933 UNOP_REINTERPRET_CAST>: New cases.
4934 * expprint.c (print_subexp_standard): Likewise.
4935 (op_name_standard): Likewise.
4936 (dump_subexp_body_standard): Likewise.
4937 * parse.c (operator_length_standard): Likewise.
4938 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
4939 UNOP_REINTERPRET_CAST.
4940 * gdbtypes.c (class_types_same_p): New function.
4941 (is_ancestor): Use it.
4942 (is_public_ancestor): New function.
4943 (is_unique_ancestor_worker): Likewise.
4944 (is_unique_ancestor): Likewise.
4945 * gdbtypes.h (class_types_same_p, is_public_ancestor)
4946 (is_unique_ancestor): Declare.
4947 * valops.c (value_reinterpret_cast): New function.
4948 (dynamic_cast_check_1): Likewise.
4949 (dynamic_cast_check_2): Likewise.
4950 (value_dynamic_cast): Likewise.
4951 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
4952
4953 2010-01-18 Joel Brobecker <brobecker@adacore.com>
4954
4955 Fix build failure when building without Python support.
4956 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
4957 is not defined.
4958
4959 2010-01-18 Joel Brobecker <brobecker@adacore.com>
4960
4961 Use XVS field type instead of doing a parallel lookup.
4962 * ada-lang.c (ada_get_base_type): Follow the XVS field type
4963 if it is a reference type instead of doing a type lookup using
4964 the XVS field name.
4965
4966 2010-01-18 Joel Brobecker <brobecker@adacore.com>
4967
4968 Trust PAD types instead of using PAD___XVS.
4969 * ada-lang.c (trust_pad_over_xvs): New static variable.
4970 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
4971 parallel XVS type, follow the XVS type instead of the PAD type.
4972 (unwrap_value): Make sure that there is no parallel XVE type
4973 before returning the value as is.
4974 (set_ada_list, show_ada_list): New static variables.
4975 (set_ada_command, show_ada_command): New functions.
4976 (_initialize_ada_language): Add new "set/show ada" prefix commands.
4977 Add new "set/show ada trust-PAD-over-XVS" setting.
4978
4979 2010-01-18 Tom Tromey <tromey@redhat.com>
4980 Thiago Jung Bauermann <bauerman@br.ibm.com>
4981
4982 Allow "source" to load python scripts.
4983 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
4984 * python/python.c (source_python_script): New function.
4985 * python/python.h (source_python_script): Add declaration.
4986 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
4987 (script_ext_off, script_ext_soft, script_ext_strict)
4988 (script_ext_enums, script_ext_mode): New static constants.
4989 (show_script_ext_mode, find_and_open_script): New functions.
4990 (source_script): Enhance to handle Python scripts.
4991 (init_cli_cmds): Add set/show script-extension commands.
4992
4993 2010-01-16 Stan Shebs <stan@codesourcery.com>
4994
4995 * tracepoint.h (struct trace_status): Use unsigned long long
4996 instead of size_t.
4997 * tracepoint.c (trace_status_command): Fix printf directive.
4998 (trace_save_command): Check fwrite returns, fix printf directive.
4999 (trace_filename): New global.
5000 (tfile_open): Set it, check read returns.
5001 (tfile_close): Free trace_filename.
5002 (tfile_get_traceframe_address): Check read returns.
5003 (tfile_trace_find): Ditto.
5004 (tfile_fetch_registers): Ditto.
5005 (tfile_xfer_partial): Ditto.
5006 (tfile_get_trace_state_variable_value): Ditto.
5007
5008 2010-01-15 Stan Shebs <stan@codesourcery.com>
5009
5010 Add trace file support.
5011 * tracepoint.h (enum trace_stop_reason): New enum.
5012 (struct trace_status): New struct.
5013 (parse_trace_status): Declare.
5014 (struct uploaded_tp): Move here from remote.c,
5015 add fields for actions.
5016 (struct uploaded_tsv): New struct.
5017 * tracepoint.c (tfile_ops): New target vector.
5018 (trace_fd): New global.
5019 (tfile_open): New function.
5020 (tfile_close): New function.
5021 (tfile_files_info): New function.
5022 (tfile_get_trace_status): New function.
5023 (tfile_get_traceframe_address): New function.
5024 (tfile_trace_find): New function.
5025 (tfile_fetch_registers): New function.
5026 (tfile_xfer_partial): New function.
5027 (tfile_get_trace_state_variable_value): New function.
5028 (init_tfile_ops): New function.
5029 (_initialize_tracepoint): Call it, add tfile target.
5030 (trace_status): New global.
5031 (current_trace_status): New function.
5032 (trace_running_p): Remove, change all users to get from
5033 current_trace_status()->running.
5034 (get_trace_status): Remove.
5035 (trace_status_command): Call target_get_trace_status directly,
5036 report more detail including tracing stop reasons.
5037 (trace_find_command): Always allow tfind on a file.
5038 (trace_find_pc_command): Ditto.
5039 (trace_find_tracepoint_command): Ditto.
5040 (trace_find_line_command): Ditto.
5041 (trace_find_range_command): Ditto.
5042 (trace_find_outside_command): Ditto.
5043 (trace_frames_offset, cur_offset): Declare as off_t.
5044 (trace_regblock_size): Rename from reg_size, update users.
5045 (parse_trace_status): New function.
5046 (tfile_interp_line): New function.
5047 (disconnect_or_stop_tracing): Ensure current trace
5048 status before asking what to do.
5049 (stop_reason_names): New global.
5050 (trace_save_command): New command.
5051 (get_uploaded_tp): Move here from remote.c.
5052 (find_matching_tracepoint): Ditto.
5053 (merge_uploaded_tracepoints): New function.
5054 (parse_trace_status): Use stop_reason_names.
5055 (_initialize_tracepoint): Define tsave command.
5056 * target.h (target_ops): New fields to_save_trace_data,
5057 to_upload_tracepoints, to_upload_trace_state_variables,
5058 to_get_raw_trace_data, change to_get_trace_status
5059 to take a pointer to a status struct.
5060 (target_save_trace_data): New macro.
5061 (target_upload_tracepoints): New macro.
5062 (target_upload_trace_state_variables): New macro.
5063 (target_get_raw_trace_data): New macro.
5064 * target.c (update_current_target): Add new methods, change
5065 signature of to_get_trace_status.
5066 * remote.c (hex2bin): Make globally visible.
5067 (bin2hex): Ditto.
5068 (remote_download_trace_state_variable): Download name also.
5069 (remote_get_trace_status): Update parameter, use
5070 parse_trace_status.
5071 (remote_save_trace_data): New function.
5072 (remote_upload_tracepoints): New function.
5073 (remote_upload_trace_state_variables): New function.
5074 (remote_get_raw_trace_data): New function.
5075 (remote_start_remote): Use them.
5076 (_initialize_remote_ops): Add operations.
5077 * ax-gdb.c: Include breakpoint.h.
5078 * breakpoint.c (create_tracepoint_from_upload): Use
5079 break_command_really, return tracepoint, warn about unimplemented
5080 parts.
5081 * NEWS: Mention trace file addition.
5082
5083 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5084
5085 Fix compilation warning on gcc-3.4.
5086 * exec.c (print_section_info): Move the `displacement' variable
5087 initialization to its declaration.
5088
5089 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5090
5091 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
5092 comparison.
5093
5094 2010-01-15 Eric Botcazou <botcazou@adacore.com>
5095
5096 "info tasks" broken by typedefs in ATCB type definitions.
5097 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
5098 ada_check_typedef before retrieving the length of the type for
5099 regular fields.
5100
5101 2010-01-15 Joel Brobecker <brobecker@adacore.com>
5102
5103 Do not use name-based lookup for unconstrained packed arrays.
5104 * ada-lang.c (find_parallel_type_by_descriptive_type):
5105 Limit the fallback to name-based lookups to the case where
5106 the type is a constrained packed array.
5107
5108 2010-01-15 Joel Brobecker <brobecker@adacore.com>
5109
5110 Enhance gdb-gdb.py to handle main_type.type_specific.
5111 * gdb-gdb.py: Print the type-specific part of struct main_type.
5112
5113 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5114
5115 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
5116 * configure: Regenerate.
5117 * config.in: Regenerate.
5118 * utils.c: Include sys/resource.h.
5119 (dump_core, can_dump_core): New.
5120 (internal_vproblem): Update the comment. Check can_dump_core while
5121 setting dump_core_p. Replace two abort calls by dump_core calls.
5122
5123 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5124 Eli Zaretskii <eliz@gnu.org>
5125
5126 * NEWS: Document the PIE support.
5127
5128 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5129
5130 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
5131 (check_is_pie_binary, _initialize_linux_tdep): Remove.
5132
5133 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5134
5135 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
5136 Replace exec_entry_point call by bfd_get_start_address.
5137
5138 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5139
5140 Support Valgrind attachments broken by the PIE support.
5141 * auxv.c: Include gdbcore.h.
5142 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
5143 parameters ops, object and annex. Remove their assertions.
5144 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
5145 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
5146 (memory_xfer_auxv): ... here.
5147 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
5148 memory_xfer_auxv.
5149 * procfs.c (procfs_xfer_partial): Likewise.
5150 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
5151 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
5152 (svr4_solib_create_inferior_hook): Conditionalize the
5153 svr4_relocate_main_executable call.
5154
5155 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5156
5157 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
5158 target_section. Find SECT in current_target_sections, gdb_assert it.
5159 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
5160 New variable abfd.
5161 * symtab.c (lookup_objfile_from_block): Return the binary file instead
5162 of separate debug info file.
5163
5164 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5165
5166 Support PIEs with no symfile_objfile.
5167 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
5168 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
5169
5170 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5171
5172 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
5173 code part to ...
5174 (svr4_static_exec_displacement): ... a new function.
5175 (svr4_exec_displacement): New function.
5176 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
5177 new_offsets using alloca now. Remove variable old_chain and changed.
5178 Call objfile_relocate unconditionally now.
5179
5180 2010-01-14 Doug Evans <dje@google.com>
5181
5182 * gdbtypes.c (arch_flags_type): Fix comment.
5183 * gdbtypes.h (arch_composite_type): Fix comment.
5184
5185 2009-01-14 Tristan Gingold <gingold@adacore.com>
5186
5187 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
5188 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
5189 to symbol_file_add_from_bfd. Add OSO as separate objfile.
5190 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
5191 macho_add_oso_symfile.
5192 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
5193
5194 2010-01-14 Joel Brobecker <brobecker@adacore.com>
5195
5196 Tru64: Dead threads are never deleted.
5197 * dec-thread.c (dec_thread_ptid_is_alive): New function.
5198 (dec_thread_count_gdb_threads): Fix counter increment.
5199 (dec_thread_add_gdb_thread): Fix *listp increment.
5200 (resync_thread_list): Fix bug in deletion of dead threads that
5201 caused all threads to be deleted, instead of just the dead ones.
5202
5203 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
5204
5205 PR python/10705
5206
5207 * python/python-internal.h: Add lazy_string_object_type
5208 definition.
5209 (create_lazy_string_object, gdbpy_initialize_lazy_string)
5210 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
5211 * python/py-value.c (valpy_lazy_string): New function.
5212 (convert_value_from_python): Add lazy string conversion.
5213 * python/py-prettyprint.c (pretty_print_one_value): Check if
5214 return is also a lazy string.
5215 (print_string_repr): Add lazy string printing branch.
5216 (print_children): Likewise.
5217 * python/py-lazy-string.c: New file. Implement lazy strings.
5218 * python/python.c (_initialize_python): Call
5219 gdbpy_initialize_lazy_string.
5220 * varobj.c (value_get_print_value): Add lazy string printing
5221 branch. Account for encoding.
5222 * c-lang.c (c_printstr): Account for new encoding argument. If
5223 encoding is NULL, find encoding suited for type, otherwise use
5224 user encoding.
5225 * language.h (language_defn): Add encoding argument.
5226 (LA_PRINT_STRING): Likewise.
5227 * language.c (unk_lang_printstr): Update to reflect new encoding
5228 argument to language_defn.
5229 * ada-lang.h (ada_printstr): Likewise.
5230 * c-lang.h (c_printstr): Likewise.
5231 * p-lang.h (pascal_printstr);
5232 * f-lang.c (f_printstr): Likewise.
5233 * m2-lang.c (m2_printstr): Likewise.
5234 * objc-lang.c (objc_printstr): Likewise.
5235 * p-lang.c (pascal_printstr): Likewise.
5236 * scm-lang.c (scm_printstr): Likewise.
5237 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
5238 encoding argument.
5239 * ada-valprint.c (ada_printstr): Likewise.
5240 * f-valprint.c (f_val_print): Likewise
5241 * m2-valprint.c (m2_val_print): Likewise.
5242 * p-valprint.c (pascal_val_print): Likewise.
5243 * expprint.c (print_subexp_standard): Likewise.
5244 * valprint.c (val_print_string): Likewise.
5245 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
5246 (SUBDIR_PYTHON_SRCS): Likewise.
5247 (py-lazy-string.o): New rule.
5248
5249 2010-01-13 Doug Evans <dje@google.com>
5250
5251 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
5252 uninitialized" warning from gcc on local `tree'.
5253
5254 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
5255
5256 Implement core awareness.
5257
5258 * bcache.c (compare_ints): Remove
5259 (print_percentage): Use compare_positive_ints.
5260 * defs.h (compare_positive_ints): Declare.
5261 * linux-nat.h (struct lin_lwp): New field core.
5262 (linux_nat_core_of_thread_1): Declare.
5263 * linux-nat.c (add_lwp): Init the 'core' field.
5264 (linux_nat_wait_1): Record the core.
5265 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
5266 (linux_nat_add_target): Register the above.
5267 * linux-thread-db.c (update_thread_core): New.
5268 (thread_db_find_new_threads): Update core information for
5269 every thread.
5270 * remote.c (struct private_thread_info): New.
5271 (free_private_thread_info, demand_private_info): New.
5272 (PACKET_qXfer_threads, use_osdata_threads): New.
5273 (struct thread_item, threads_parsing_context
5274 (start_thread, end_thread, thread_attributes)
5275 (thread_children, threads_children, threads_elements): New.
5276 (remote_threads_info): Try qXfer:threads before anything
5277 else.
5278 (remote_protocol_packets): Register qXfer:threads.
5279 (remote_open_1): Init use_osdata_threads.
5280 (struct stop_reply): New field 'core'.
5281 (remote_parse_stop_reply): Parse core number.
5282 (process_stop_reply): Record core number.
5283 (remote_xfer_partial): Handle qXfer:threads.
5284 (remote_core_of_thread): New.
5285 (init_remote_ops): Register remote_core_of_thread.
5286 (_initialize_remote): Register qXfer:read.
5287 * target.c (target_core_of_thread): New
5288 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
5289 (struct target_ops): New field to_core_of_threads.
5290 (target_core_of_thread): Declare.
5291 * gdbthread.h (struct thread_info): New field private_dtor.
5292 * thread.c (print_thread_info): Report the core.
5293 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
5294 * utils.c (compare_positive_ints): New.
5295 * features/threads.dtd: New.
5296 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
5297 * mi/mi-main.c (struct collect_cores_data, collect_cores)
5298 (do_nothing, free_vector_of_osdata_items)
5299 (splay_tree_int_comparator, free_splay_tree): New.
5300 (print_one_inferior_data): Implemented printing of selected
5301 inferiors. Collect and print cores.
5302 (output_cores): New.
5303 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
5304 thread groups together with --available.
5305
5306 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5307
5308 * configure: Regenerate (for _STRUCTURED_PROC).
5309
5310 2010-01-12 Joel Brobecker <brobecker@adacore.com>
5311
5312 Delete dead function.
5313 * ada-lang.c (extract_string): Delete. No longer used.
5314
5315 2010-01-12 Joel Brobecker <brobecker@adacore.com>
5316
5317 Fix -Wunused warning in dec-thread.c.
5318 * dec-thread.c (dec_thread_count_gdb_threads)
5319 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
5320
5321 2010-01-12 Joel Brobecker <brobecker@adacore.com>
5322
5323 * ada-valprint.c (ada_print_floating): Remove trailing space.
5324
5325 2010-01-12 Joel Brobecker <brobecker@adacore.com>
5326
5327 Add support for DW_AT_GNAT_descriptive_type.
5328 * gdbtypes.h (enum type_specific_kind): New enum.
5329 (struct main_type) [type_specific_field]: New component.
5330 [type_specific]: Add new component "gnat_stuff".
5331 (struct gnat_aux_type): New type.
5332 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
5333 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
5334 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
5335 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
5336 (TYPE_SPECIFIC_FIELD): New macros.
5337 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
5338 type does not hold any cplus-specific data.
5339 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
5340 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
5341 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
5342 cplus-specific data.
5343 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
5344 Set new component TYPE_SPECIFIC_FIELD (type).
5345 (gnat_aux_default): New constant.
5346 (allocate_gnat_aux_type): New function.
5347 (init_type): Add initialization the type-specific stuff for
5348 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
5349 (print_gnat_stuff): New function.
5350 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
5351 specific data. Adjust code that prints the contents of the
5352 type-specific union using the TYPE_SPECIFIC_FIELD value.
5353 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
5354 the type cplus stuff for Ada types.
5355 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
5356 Error out if these routines are called with an Ada type.
5357 (read_structure_type, read_array_type, read_subrange_type):
5358 Add call to set_descriptive_type.
5359 (set_die_type): Initialize the gnat-specific data if necessary.
5360 (need_gnat_info, die_descriptive_type, set_descriptive_type):
5361 New functions.
5362 * ada-lang.c (decode_constrained_packed_array_type): Use
5363 decode_constrained_packed_array_type instead of doing a standard
5364 lookup to locate a parallel type.
5365 (find_parallel_type_by_descriptive_type): New function.
5366 (ada_find_parallel_type_with_name): New function.
5367 (ada_find_parallel_type): Reimplement using
5368 ada_find_parallel_type_with_name.
5369 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
5370 to check if type has a cplus stuff.
5371 * linespec.c (total_number_of_methods): Likewise.
5372 * mdebugread.c (new_type): Likewise.
5373
5374 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5375
5376 * NEWS: Document the 0b binary number prefix parsing.
5377
5378 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5379
5380 * objfiles.c (objfile_relocate1): Change the return type to int.
5381 Describe the new return value. Return non-zero if data changed.
5382 (objfile_relocate): New variable changed. Set it. Call
5383 breakpoint_re_set depending on CHANGED.
5384
5385 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5386
5387 Implement binary numbers parsing.
5388 * c-exp.y (parse_number): New case 'b' and 'B'.
5389
5390 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5391 Tristan Gingold <gingold@adacore.com>
5392
5393 * solib.c (info_sharedlibrary_command): Replace
5394 objfile_has_partial_symbols and objfile_has_full_symbols calls by
5395 objfile_has_symbols.
5396
5397 2010-01-10 Joel Brobecker <brobecker@adacore.com>
5398
5399 * NEWS: Document the improvements made to the mips-irix port.
5400
5401 2010-01-09 Joel Brobecker <brobecker@adacore.com>
5402
5403 Fix the documentation of valprint.c:value_print.
5404 * valprint.c (value_print): Update the function description to
5405 mention that the syntax of the output follows the current_language,
5406 not necessarily C.
5407
5408 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5409
5410 Fix displacement of separate debug info files.
5411 * objfiles.c (objfile_relocate): Rename to ...
5412 (objfile_relocate1): ... here and make it static. Extend the comment.
5413 (objfile_relocate): New function.
5414 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
5415 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
5416 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
5417 allocated using alloca.
5418 * symfile.c (copy_section_addr_info): Remove.
5419 (build_section_addr_info_from_objfile): Make it global. New variables
5420 addr_bit and mask, use them.
5421 * symfile.h (build_section_addr_info_from_objfile): New prototype.
5422 (copy_section_addr_info): Remove.
5423
5424 2010-01-09 Joel Brobecker <brobecker@adacore.com>
5425
5426 Signal unwinder for mips-irix N32.
5427 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
5428 tramp-frame.h.
5429 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
5430 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
5431 (SIGCONTEXT_LO_OFF): New macros.
5432 (mips_irix_n32_tramp_frame_init): New function.
5433 (mips_irix_n32_tramp_frame): New static constant.
5434 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
5435
5436 2010-01-09 Joel Brobecker <brobecker@adacore.com>
5437
5438 Breakpoint in shared library does not work on mips-irix.
5439 * procfs.c: #include "observer.h".
5440 (procfs_inferior_created): New function, moving here the code
5441 which unsets the syssgi syscall-exit notifications.
5442 (procfs_create_inferior): Remove the code which unsets the syssgi
5443 syscall-exit notifications. It is too early to do this here.
5444 (_initialize_procfs): Attach the procfs_inferior_created observer.
5445
5446 2010-01-09 Joel Brobecker <brobecker@adacore.com>
5447
5448 Wrong return convention for arrays (mips-irix).
5449 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
5450 128 bits or smaller are returned the same way as structs
5451 and unions of the the same size.
5452
5453 2010-01-09 Joel Brobecker <brobecker@adacore.com>
5454
5455 Cannot set the PC on mips-irix.
5456 * irix5-nat.c (fill_gregset): Check regno against the raw PC
5457 register number, no the cooked one.
5458
5459 2010-01-09 Joel Brobecker <brobecker@adacore.com>
5460
5461 Error while loading core file on mips-irix.
5462 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
5463 if debugging from a core file.
5464
5465 2010-01-09 Joel Brobecker <brobecker@adacore.com>
5466
5467 GDB hangs when attaching to process on mips-irix.
5468 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
5469 attaching to a process.
5470
5471 2010-01-09 Joel Brobecker <brobecker@adacore.com>
5472
5473 Use the correct breakpoint instruction on mips-irix.
5474 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
5475 containing the correct breakpoint instruction to use on mips-irix.
5476 Use it when the osabi is GDB_OSABI_IRIX.
5477
5478 2010-01-09 Joel Brobecker <brobecker@adacore.com>
5479
5480 -Wunused warning in procfs.c (mips-irix only).
5481 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
5482 throughout instead of using praddset and prdelset respectively.
5483
5484 2010-01-09 Joel Brobecker <brobecker@adacore.com>
5485
5486 GDB crash while stepping into function.
5487 * infrun.c (handle_inferior_event): Refetch the current frame
5488 after handling what.main_action, in case that pointer became
5489 dangling.
5490
5491 2010-01-09 Joel Brobecker <brobecker@adacore.com>
5492
5493 Fix build failure of solaris-hosted cross debuggers.
5494 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
5495
5496 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
5497
5498 Fix build failure on sparc-solaris.
5499 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
5500
5501 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5502
5503 Move some symfile code into subroutines.
5504 * symfile.h (relative_addr_info_to_section_offsets)
5505 (addr_info_make_relative): New prototypes.
5506 * symfile.c (default_symfile_offsets): Move a part to ...
5507 (relative_addr_info_to_section_offsets): ... this new function.
5508 (default_symfile_offsets): Call it.
5509 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
5510 this part to ...
5511 (addr_info_make_relative): ... this new function.
5512
5513 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5514
5515 Add from_tty to solib_create_inferior_hook.
5516 * infcmd.c (post_create_inferior): Move solib_add after
5517 solib_create_inferior_hook. Pass from_tty to
5518 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
5519 0 from_tty and comment why.
5520 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
5521 * linux-nat.c (linux_child_follow_fork): Likewise.
5522 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
5523 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
5524 from_tty.
5525 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
5526 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5527 * solib-null.c (null_solib_create_inferior_hook): Likewise.
5528 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5529 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
5530 * solib-som.c (som_solib_create_inferior_hook): Likewise.
5531 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
5532 Pass it to svr4_so_ops.solib_create_inferior_hook.
5533 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
5534 from_tty.
5535 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
5536 solib_add.
5537 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
5538 enable_break.
5539 * solib-target.c (solib_target_solib_create_inferior_hook): New
5540 parameter from_tty.
5541 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
5542 it to ops->solib_create_inferior_hook.
5543 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
5544 Move solib_add after solib_create_inferior_hook, call it now with
5545 from_tty as 0. New comment there.
5546 * solib.h (solib_create_inferior_hook): New parameter from_tty.
5547 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
5548 Likewise.
5549
5550 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
5551
5552 Fix multiexec race.
5553 * infrun.c (handle_inferior_event): Use get_thread_regcache
5554 with events ptid, not get_current_regcache.
5555
5556 2009-01-08 Joel Brobecker <brobecker@adacore.com>
5557
5558 GDB crash with empty executable name (MinGW).
5559 * source.c (openp): Add assert that parameter string is not NULL.
5560 if parameter string is an empty string, then return with a failure
5561 immediately.
5562
5563 2009-01-08 Joel Brobecker <brobecker@adacore.com>
5564
5565 Get rid of support for VAX Floats.
5566 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
5567 (ada_vax_float_print_function): Delete.
5568 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
5569 (ada_vax_float_print_function): Delete.
5570 * ada-typeprint.c (print_vax_floating_point_type): Delete.
5571 (ada_print_type): Remove support for VAX floats.
5572 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
5573
5574 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5575
5576 * stabsread.c (read_args): Handle zero arguments.
5577
5578 2009-01-08 Joel Brobecker <brobecker@adacore.com>
5579
5580 Cannot find in-tree libiconv.a after reconfigure.
5581 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
5582 that we can use, then cache the path to this archive.
5583 * configure: Regenerate.
5584
5585 2010-01-07 Stan Shebs <stan@codesourcery.com>
5586
5587 Make tracepoint operations go through target vector.
5588 * target.h (enum trace_find_type): New enum.
5589 (struct target_ops): New fields to_trace_init,
5590 to_download_tracepoint, to_download_trace_state_variable,
5591 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
5592 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
5593 to_set_disconnected_tracing.
5594 (target_trace_init): New macro.
5595 (target_download_tracepoint): New macro.
5596 (target_download_trace_state_variable): New macro.
5597 (target_trace_start): New macro.
5598 (target_trace_set_readonly_regions): New macro.
5599 (target_get_trace_status): New macro.
5600 (target_trace_stop): New macro.
5601 (target_trace_find): New macro.
5602 (target_get_trace_state_variable_value): New macro.
5603 (target_set_disconnected_tracing): New macro.
5604 * target.c (update_current_target): Inherit and set defaults for
5605 tracepoint operations.
5606 * tracepoint.c (default_collect): Make globally visible.
5607 (target_is_remote): Remove, along with all calls.
5608 (tvariables_info): Call target_get_trace_state_variable_value.
5609 (remote_set_transparent_ranges): Remove.
5610 (trace_start_command): Call target_trace_init,
5611 target_download_tracepoint, etc.
5612 (download_tracepoint): Remove.
5613 (trace_stop_command): Simplify.
5614 (stop_tracing): Call target_trace_stop.
5615 (get_trace_status): Call target_get_trace_status.
5616 (trace_status_command): Add case for targets that cannot trace.
5617 (finish_tfind_command): Change to take numerical arguments, call
5618 target_trace_find.
5619 (trace_find_command): Update call to finish_tfind_command.
5620 (trace_find_pc_command): Ditto.
5621 (trace_find_tracepoint_command): Ditto.
5622 (trace_find_line_command): Ditto.
5623 (trace_find_range_command): Ditto.
5624 (trace_find_outside_command): Ditto.
5625 (set_disconnected_tracing_value): Call
5626 target_set_disconnected_tracing.
5627 * remote.c: Add protocol encoding bits from tracepoint.c.
5628 (trace_error): Move from tracepoint.c.
5629 (remote_get_noisy_reply): Ditto.
5630 (free_actions_list_cleanup_wrapper): Ditto.
5631 (free_actions_list): Ditto.
5632 (remote_trace_init): New function.
5633 (remote_download_tracepoint): New function.
5634 (remote_download_trace_state_variable): New function.
5635 (remote_trace_set_readonly_regions): New function.
5636 (remote_trace_start): New function.
5637 (remote_get_trace_status): New function.
5638 (remote_trace_stop): New function.
5639 (remote_trace_find): New function.
5640 (remote_download_trace_state_variable): New function.
5641 (remote_set_disconnected_tracing): New function.
5642 (init_remote_ops): Add tracepoint operations.
5643
5644 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
5645
5646 2010-01-07 Tristan Gingold <gingold@adacore.com>
5647
5648 * symfile.c (build_section_addr_info_from_objfile): New function.
5649 (symbol_file_add_separate): Don't use offsets from objfile but
5650 built an addr info.
5651
5652 2010-01-06 Stan Shebs <stan@codesourcery.com>
5653
5654 Support disconnected tracing.
5655 * infcmd.c (detach_command): Ask whether to stop tracing.
5656 * cli/cli-cmds.c (quit_command): Ditto.
5657 * breakpoint.h (struct breakpoint): New field number_on_target.
5658 * breakpoint.c (create_tracepoint_from_upload): New function.
5659 (get_tracepoint_by_number_on_target): New function.
5660 * remote.c (struct remote): New field disconnected_tracing.
5661 (remote_disconnected_tracing_feature): New function.
5662 (remote_protocol_features): Add DisconnectedTracing.
5663 (struct uploaded_tp): New struct.
5664 (uploaded_tps): New global.
5665 (get_uploaded_tp): New function.
5666 (find_matching_tracepoint): New function.
5667 (remote_get_tracing_state): New function.
5668 (remote_start_remote): Call it.
5669 * tracepoint.c (disconnected_tracing): New global.
5670 (trace_start_command): Initialize number_on_target.
5671 (stop_tracing): New function, split out from...
5672 (trace_stop_command): Call stop_tracing.
5673 (get_trace_status): New function, split out from...
5674 (trace_status_command): Call get_trace_status, add info on
5675 disconnection behavior.
5676 (disconnect_or_stop_tracing): New function.
5677 (finish_tfind_command): Translate from number on target.
5678 (trace_find_tracepoint_command): Translate to number on target.
5679 (send_disconnected_tracing_value): New function.
5680 (set_disconnected_tracing): New function.
5681 (_initialize_tracepoint): Add disconnected-tracing variable.
5682 * NEWS: Mention disconnected tracing.
5683
5684 2010-01-06 Tristan Gingold <gingold@adacore.com>
5685
5686 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
5687 parameter to main_objfile. Iterate on all separate debug objfiles.
5688 * symfile.h (symbol_file_add_separate)
5689 (find_separate_debug_file_by_debuglink): Remove parameter names.
5690 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
5691 (reread_symbols): Use free_objfile_separate_debug.
5692 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
5693 Adjust comment.
5694 (objfile_separate_debug_iterate, add_separate_debug_objfile)
5695 (free_objfile_separate_debug): New prototypes.
5696 * objfiles.c (objfile_separate_debug_iterate): New function.
5697 (add_separate_debug_objfile, free_objfile_separate_debug): New
5698 functions.
5699 (free_objfile): Use free_objfile_separate_debug. Adjust for
5700 multiple separate debug objfile.
5701 (objfile_has_symbols): Adjust comment. Iterate on all separate
5702 debug objfiles.
5703 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
5704 debug objfile.
5705 (lookup_minimal_symbol_text): Ditto.
5706 (lookup_minimal_symbol_by_pc_name): Ditto.
5707 (lookup_minimal_symbol_solib_trampoline): Ditto.
5708 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
5709 debug objfiles.
5710
5711 2010-01-05 Stan Shebs <stan@codesourcery.com>
5712
5713 Add fast tracepoints.
5714 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
5715 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
5716 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
5717 * breakpoint.c (tracepoint_type): New function.
5718 (ALL_TRACEPOINTS): Use it.
5719 (should_be_inserted): Ditto.
5720 (bpstat_check_location): Ditto.
5721 (print_one_breakpoint_location): Ditto.
5722 (user_settable_breakpoint): Ditto.
5723 (set_breakpoint_location_function): Ditto.
5724 (disable_breakpoints_in_shlibs): Ditto.
5725 (delete_trace_command): Ditto.
5726 (print_it_typical): Add bp_fast_tracepoint case.
5727 (bpstat_what): Ditto.
5728 (print_one_breakpoint_location): Ditto.
5729 (allocate_bp_location): Ditto.
5730 (mention): Ditto.
5731 (breakpoint_re_set_one): Ditto.
5732 (disable_command): Ditto.
5733 (enable_command): Ditto.
5734 (check_fast_tracepoint_sals): New function.
5735 (break_command_really): Call it.
5736 (ftrace_command): New function.
5737 (_initialize_breakpoint): Add ftrace command.
5738 * gdbarch.sh (fast_tracepoint_valid_at): New.
5739 * gdbarch.h, gdbarch.c: Regenerate.
5740 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
5741 (i386_gdbarch_init): Use it.
5742 * remote.c (struct remote_state): New field fast_tracepoints.
5743 (PACKET_FastTracepoints): New packet config type.
5744 (remote_fast_tracepoint_feature): New function.
5745 (remote_protocol_features): Add FastTracepoints.
5746 (remote_supports_fast_tracepoints): New function.
5747 (_initialize_remote): Add FastTracepoints.
5748 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
5749 * NEWS: Mention fast tracepoints.
5750
5751 2010-01-06 Joel Brobecker <brobecker@adacore.com>
5752
5753 * gdb-gdb.py: New file.
5754
5755 2010-01-05 Michael Snyder <msnyder@vmware.com>
5756
5757 * infrun.c (handle_inferior_event): Fix typo in comment.
5758
5759 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5760
5761 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
5762
5763 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
5764
5765 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
5766 and s390x-linux64.
5767 (s390-linux32-expedite): Define.
5768 (s390-linux64-expedite): Define.
5769 (s390x-linux64-expedite): Define.
5770 * features/s390-acr.xml: New file.
5771 * features/s390-fpr.xml: New file.
5772 * features/s390-core32.xml: New file.
5773 * features/s390-core64.xml: New file.
5774 * features/s390x-core64.xml: New file.
5775 * features/s390-linux32.xml: New file.
5776 * features/s390-linux64.xml: New file.
5777 * features/s390x-linux64.xml: New file.
5778 * features/s390-linux32.c: New generated file.
5779 * features/s390-linux64.c: New generated file.
5780 * features/s390x-linux64.c: New generated file.
5781
5782 * regformats/s390-linux32.dat: New generated file.
5783 * regformats/s390-linux64.dat: New generated file.
5784 * regformats/s390x-linux64.dat: New generated file.
5785 * regformats/reg-s390.dat: Remove.
5786 * regformats/reg-s390x.dat: Remove.
5787
5788 * s390-nat.c: Include "auxv.h" and <elf.h>.
5789 (HWCAP_S390_HIGH_GPRS): Define if undefined.
5790 (s390_target_wordsize): New function.
5791 (s390_auxv_parse): Likewise.
5792 (s390_get_hwcap): Likewise.
5793 (s390_read_description): Likewise.
5794 (_initialize_s390_nat): Install s390_auxv_parse and
5795 s390_read_description.
5796
5797 * s390-tdep.c: Include "features/s390-linux32.c",
5798 "features/s390-linux64.c", and "features/s390x-linux64.c".
5799 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
5800 (s390_register_call_saved): New function.
5801 (s390_register_name): Remove.
5802 (s390_register_type): Remove.
5803 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
5804 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
5805 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
5806 (s390_pseudo_register_name): New function.
5807 (s390_pseudo_register_type): New function.
5808 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
5809 Handle full GPR pesudos and varying pseudo register numbers.
5810 (s390_pseudo_register_write): Likewise
5811 (s390x_pseudo_register_read): Remove.
5812 (s390x_pseudo_register_write): Likewise.
5813 (s390_register_group): Remove.
5814 (s390_pseudo_register_group): New function.
5815 (s390_regmap_gregset): Add GPR upper halves.
5816 (s390x_regmap_gregset): Likewise.
5817 (s390_regmap_fpregset): Likewise.
5818 (s390_regmap_upper): New global variable.
5819 (s390_upper_regset): New global variable.
5820 (s390_upper_regset_sections): New global variable.
5821 (s390_regset_from_core_section): Handle GPR upper halves.
5822 (s390_core_read_description): New function.
5823 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
5824 register information. Handle varying pseudo register numbers.
5825 (s390_backchain_frame_unwind_cache): Likewise.
5826 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
5827 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
5828 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
5829 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
5830 Handle varying pseudo register numbers.
5831 (s390_unwind_pc): Handle varying pseudo register numbers.
5832 (s390_dwarf2_prev_register): New function.
5833 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
5834 register information. Handle varying pseudo register numbers.
5835 Install s390_dwarf2_prev_register to unwind full GPRs.
5836 (s390_gdbarch_init): Handle target descriptions. Assign varying
5837 pseudo register numbers. Install s390_adjust_frame_regnum.
5838 (_initialize_s390_tdep): Initialize target descriptions.
5839
5840 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
5841 (S390_NUM_REGS): Redefine to include upper half registers.
5842 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
5843 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
5844 (tdesc_s390_linux32): Add declaration.
5845 (tdesc_s390_linux64): Likewise.
5846 (tdesc_s390x_linux64): Likewise.
5847
5848 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
5849
5850 * regset.h (struct core_regset_section): Add HUMAN_NAME.
5851 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
5852 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
5853 (ppc_linux_vmx_regset_sections): Likewise.
5854 (ppc_linux_fp_regset_sections): Likewise.
5855
5856 * corelow.c (get_core_register_section): Constify arguments.
5857 (get_core_registers): Use gdbarch_core_regset_sections instead
5858 of hard-coded platform-specific register section names.
5859
5860 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
5861
5862 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
5863 a register, assume the least-significant part is used.
5864 (write_pieced_value): Likewise.
5865
5866 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
5867
5868 * printcmd.c: Include "arch-utils.h".
5869 (do_one_display): Re-parse expression if current architecture changed.
5870
5871 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5872 Joel Brobecker <brobecker@adacore.com>
5873
5874 * gdbtypes.c (check_typedef): New comment on type length.
5875 * value.c (allocate_value_lazy): Remove the unused atype variable. New
5876 comment on type length.
5877 (value_primitive_field): Keep the original TYPE value, new comment.
5878
5879 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5880
5881 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
5882 p_start. Change != comparisons to > and < comparisons.
5883
5884 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5885
5886 * cli/cli-script.c (process_next_line): Check P2 overrun.
5887
5888 2009-01-01 Joel Brobecker <brobecker@adacore.com>
5889
5890 Update the copyright hearder to add year 2010 for most GDB files.
5891
5892 2009-01-01 Joel Brobecker <brobecker@adacore.com>
5893
5894 Fix build failure in inf-ptrace.c.
5895 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
5896
5897 2010-01-01 Joel Brobecker <brobecker@adacore.com>
5898
5899 * top.c (print_gdb_version): Update copyright year.
5900
5901 2010-01-01 Joel Brobecker <brobecker@adacore.com>
5902
5903 Fix break *FUN'address thread NUM.
5904 * ada-lex.l (task): Expand rule to also match the thread keyword.
5905
5906 2010-01-01 Joel Brobecker <brobecker@adacore.com>
5907
5908 Fix break *FUN'address task NUM.
5909 * ada-lex.l (task): New rule.
5910 * ada-lang.c (valid_task_id): Make sure the Ada task list has
5911 been built before using it.
5912
5913 For older changes see ChangeLog-2009.
5914 \f
5915 Local Variables:
5916 mode: change-log
5917 left-margin: 8
5918 fill-column: 74
5919 version-control: never
5920 coding: utf-8
5921 End:
This page took 0.280404 seconds and 4 git commands to generate.