1 2010-03-26 Tom Tromey <tromey@redhat.com>
3 * breakpoint.c (commands_command_1): Duplicate 'arg'.
5 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
8 (skip_prologue_sal): Remove local definition.
9 (resolve_sal_pc): Remove now unnecessary code.
10 * linespec.c (minsym_found): Call skip_prologue_sal.
11 * symtab.c (find_function_start_pc): Remove.
12 (find_function_start_sal): Extract prologue skipping into ...
13 (skip_prologue_sal): ... this new function. Handle code both
14 with and without debug info. Respect SAL's explicit_pc and
15 explicit_line flags. Inline old find_function_start_pc.
16 * symtab.h (find_function_start_pc): Remove.
17 (skip_prologue_sal): Add prototype.
19 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
21 * dwarf2read.c (read_func_scope): Also scan specification DIEs
22 for DW_TAG_imported_module children.
24 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
26 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
27 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
28 * completer.c (add_struct_fields): Fix inverted logic.
30 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
32 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
34 2010-03-26 Pedro Alves <pedro@codesourcery.com>
36 * tracepoint.c (current_trace_status): Don't make sure error_desc
38 (parse_trace_status): Release a previous error_desc string, and
39 set it to NULL by default. If stop reason is tracepoint_error,
40 make sure error_desc is not left NULL.
42 2010-03-26 Pedro Alves <pedro@codesourcery.com>
44 * tracepoint.c (trace_save): Remove X from tracepoint error
47 2010-03-26 Pedro Alves <pedro@codesourcery.com>
49 * tracepoint.c (parse_trace_status): Don't allow plain strings in
50 the terror description. Don't expect an X prefix.
52 2010-03-25 Stan Shebs <stan@codesourcery.com>
54 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
55 (struct trace_status): New field error_desc.
56 * tracepoint.c (stop_reason_names): Add terror.
57 (current_trace_status): Ensure non-NULL error description.
58 (trace_status_command): Add error report.
59 (trace_status_mi): Ditto.
60 (trace_save): Add special case for error description.
61 (parse_trace_status): Add case for errors.
63 2010-03-25 Keith Seitz <keiths@redhat.com>
65 * dwarf2read.c (read_subroutine_type): If the compilation unit
66 language is Java, mark any formal parameter named "this" as
67 artificial (GCC/43521).
68 (dwarf2_name): Add special handling for Java constructors.
70 2010-03-25 Tom Tromey <tromey@redhat.com>
72 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
73 * infrun.c (handle_inferior_event): Change initialization of
75 (handle_inferior_event): Change assignment to stop_stack_dummy.
76 (normal_stop): Update use of stop_stack_dummy.
77 (struct inferior_status) <stop_stack_dummy>: Change type.
78 * inferior.h (stop_stack_dummy): Update.
79 * infcmd.c (stop_stack_dummy): Change type.
80 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
82 (call_function_by_hand): Call set_std_terminate_breakpoint.
83 Rewrite std::terminate handling.
84 * breakpoint.h (enum bptype) <bp_std_terminate,
85 bp_std_terminate_master>: New.
86 (enum stop_stack_kind): New.
87 (struct bpstat_what) <call_dummy>: Change type.
88 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
90 * breakpoint.c (create_std_terminate_master_breakpoint): New
92 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
93 Call create_std_terminate_master_breakpoint.
94 (print_it_typical): Handle new breakpoint kinds.
95 (bpstat_stop_status): Handle bp_std_terminate_master.
96 (bpstat_what): Correctly set call_dummy field. Handle
97 bp_std_terminate_master and bp_std_terminate.
98 (print_one_breakpoint_location): Update.
99 (allocate_bp_location): Update.
100 (set_std_terminate_breakpoint): New function.
101 (delete_std_terminate_breakpoint): Likewise.
102 (create_thread_event_breakpoint): Update.
103 (delete_command): Update.
104 (breakpoint_re_set_one): Update.
105 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
107 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
109 * symfile.c (build_section_addr_info_from_bfd): New.
110 (build_section_addr_info_from_objfile): Base it on
111 build_section_addr_info_from_bfd.
112 (addrs_section_compar, addrs_section_sort): New.
113 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
114 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
115 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
117 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
119 * elfread.c (find_separate_debug_file_by_buildid):
120 Remove unused local variable.
122 2010-03-24 Tom Tromey <tromey@redhat.com>
125 * NEWS: Mention changes to `commands' and `rbreak'.
126 * symtab.c (do_end_rbreak_breakpoints): New function.
127 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
128 end_rbreak_breakpoints.
129 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
130 (set_breakpoint_count): Likewise. Clear last_was_multi.
131 (multi_start, multi_end, last_was_multi): New globals.
132 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
134 (struct commands_info): New
135 (do_map_commands_command): New function.
136 (commands_command_1): New function.
137 (commands_command): Use it.
138 (commands_from_control_command): Likewise.
139 (do_delete_breakpoint): New function.
140 (delete_command): Use it.
141 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
142 (do_map_disable_breakpoint): New function.
143 (disable_command): Use it.
144 (do_map_enable_breakpoint): New function.
145 (enable_command): Use it.
146 (enable_once_breakpoint): Add argument.
147 (enable_once_command): Update.
148 (enable_delete_breakpoint): Add argument.
149 (enable_delete_command): Update.
150 (break_command_really): Set last_was_multi when needed.
151 (check_tracepoint_command): Fix formatting.
152 (validate_commands_for_breakpoint): New function.
153 (breakpoint_set_commands): Use it.
154 (tracepoint_save_command): Update.
155 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
158 2010-03-24 Tom Tromey <tromey@redhat.com>
160 * breakpoint.h (struct counted_command_line): New struct.
161 (struct breakpoint) <commands>: Change type.
162 (struct bpstats) <commands>: Change type.
163 <commands_left>: New field.
164 * breakpoint.c (alloc_counted_command_line): New function.
165 (incref_counted_command_line): Likewise.
166 (decref_counted_command_line): Likewise.
167 (do_cleanup_counted_command_line): Likewise.
168 (make_cleanup_decref_counted_command_line): Likewise.
169 (breakpoint_set_commands): Use decref_counted_command_line and
170 alloc_counted_command_line.
171 (commands_command): Don't error if breakpoint commands are
173 (commands_from_control_command): Likewise.
174 (bpstat_free): Update.
175 (bpstat_copy): Likewise.
176 (bpstat_clear_actions): Likewise.
177 (bpstat_do_actions_1): Likewise.
178 (bpstat_stop_status): Likewise.
179 (print_one_breakpoint_location): Likewise.
180 (delete_breakpoint): Likewise.
181 (bpstat_alloc): Initialize new field.
182 (tracepoint_save_command): Update.
183 * tracepoint.c (encode_actions): Update.
184 (trace_dump_command): Update.
186 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
188 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
189 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
190 (read_structure_type): For RealView, set TYPE_STUB on structures with
191 no byte size and no children.
192 (read_subroutine_type): Mark functions as prototyped by default.
193 * symtab.c (producer_is_realview): New function.
194 * symtab.h (expand_line_sal): Fix declaration formatting.
195 (producer_is_realview): Declare.
197 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
199 * arm-tdep.c (skip_prologue_function): New function.
200 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
201 (thumb_analyze_prologue): Document return value. Recognize more
202 Thumb instructions, skippable calls, and some Thumb-2 instructions.
204 (arm_skip_prologue): Remove call dummy check. Check the prologue
205 for non-GNU compilers.
206 (arm_instruction_changes_pc): New function.
207 (arm_analyze_prologue): New function, broken out from
208 arm_scan_prologue. Recognize more ARM instructions and skippable
209 calls. Update comments. Handle NULL cache. Return the address
210 of the first unrecognized instruction. Do not skip past other
211 instructions which change control flow. Add debug output.
212 (arm_scan_prologue): Use arm_analyze_prologue.
214 (shifted_reg_val): Simplify ARM_PC_32 check.
216 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
218 * tracepoint.c (tvariables_info_1): Actually compute
219 the number of rows in the result.
221 2010-03-24 Pedro Alves <pedro@codesourcery.com>
223 * remote.c (crc32): Constify `buf' parameter.
224 (remote_verify_memory): New, abstracted out from...
225 (compare_sections_command): ... this. Remove hardcoded target
227 (init_remote_ops): Install remote_verify_memory.
228 * target.c (target_verify_memory): New.
229 * target.h (struct target_ops) <to_verify_memory>: New field.
230 (target_verify_memory): Declare.
232 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
234 Implement -trace-save.
236 * mi-cmds.h (mi_cmds_trace_save): Declare.
237 * mi-cmds.c (mi_cmds): Register -trace-save.
238 * mi/mi-main.c (mi_cmd_trace_save): New.
239 * remote.c (remote_save_trace_data): Take const parameter.
240 * target.h (struct target_ops::to_save_trace_data): Take
242 * target.c (update_current_target): Adjust to the above.
243 * tracepoint.c (trave_save): New, extracted from
244 (trace_save_command): ...this.
245 (tfile_trace_find): Remove message that is unnecessary now
246 that 'tfind' reports found frame.
247 * tracepoint.h (trace_save): Declare.
249 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
251 Implement -trace-find.
253 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
254 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
255 * mi/mi-main.c (mi_cmd_trace_find): New.
256 * target.h (struct target_ops): Document to_trace_find.
257 * tracepoint.h (tfind_1): Declare.
258 * tracepoint.c (finish_tfind_command): Rename to...
260 * remote.c (remote_trace_find): Return -1 if target say
261 there's no frame. Improve error diagnostics.
263 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
265 -trace-define-variable and -trace-list-variables.
267 * tracepoint.c (create_trace_state_variable): Make
268 private copy of name, as opposed to assuming the
269 pointer lives forever.
270 (tvariables_info_1): New.
271 (tvariables_info): Use the above.
272 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
274 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
275 and -trace-list-variables.
276 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
277 (mi_cmd_trace_list_variables): New.
278 * mi/mi-main.c (mi_cmd_trace_define_variable)
279 (mi_cmd_trace_list_variables): New.
281 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
283 Implement -break-passcount.
285 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
286 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
287 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
289 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
291 -trace-start/-trace-end/-trace-status.
293 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
295 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
296 (mi_cmd_trace_stop): Declare.
297 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
298 (mi_cmd_trace_stop): New.
299 * tracepoint.c (start_tracing): New, extracted from...
300 (trace_start_command): ...this.
301 (trace_status_mi): New.
302 * tracepoint.h (struct trace_status): Document
304 (start_tracing, stop_tracing, trace_status_mi): Declare.
306 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
308 Implement creating tracepoints with -break-insert.
310 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
311 to mean that tracepoint should be created.
313 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
315 * breakpoint.c (check_no_tracepoint_commands): Use
316 current spelling of 'teval'.
318 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
320 Unify actions and commands
322 * defs.h (read_command_lines, read_command_lines_1): New
323 parameters validator and closure.
324 * tracepoint.h (struct action_line): Remove.
325 * breakpoint.h (struct breakpoint): Remove the 'actions'
327 * defs.h (enum command_control_type): New value
328 while_stepping_control.
329 (struct command_line): Add comments.
330 * breakpoint.c (breakoint_is_tracepoint): New.
331 (breakpoint_set_commands): For tracepoints,
332 verify the commands are permissible.
333 (check_tracepoint_commands): New.
334 (commands_command): Require that each new line is validated using
335 check_tracepoint_command, if we set commands for a tracepoint.
336 (create_tracepoint_from_upload): Likewise.
337 (print_one_breakpoint_location): Remove the code to print
338 actions specifically.
339 (tracepoint_save_command): Relay to print_command_lines.
340 * cli/cli-script.c (process_next_line): New parameters validator
341 and closure. Handle 'while-stepping'. Call validator if not null.
342 (read_command_lines, read_command_lines1): Likewise.
343 (recurse_read_control_structure): New parameters validator and
344 closure. Handle while_stepping_control.
345 (print_command_lines): Handle while-stepping.
346 (get_command_line, define_command, document_command): Adjust.
347 * remote.c (remote_download_tracepoint): Adjust.
348 * tracepoint.c (make_cleanup_free_actions, read_actions)
349 (free_actions, do_free_actions_cleanup): Remove.
350 (trace_actions_command): Use read_command_lines.
351 (validate_actionline): Use error in one place.
352 (encode_actions_1): New, extracted from...
353 (encode_actions): ...this. Also use cleanups for exception
355 (trace_dump_command): Adjust.
356 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
359 2010-03-23 Mike Frysinger <vapier@gentoo.org>
361 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
363 2010-03-22 Stan Shebs <stan@codesourcery.com>
365 * value.c (value_static_field): Be lazy about the field's value.
367 2010-03-22 Reid Kleckner <reid@kleckner.net>
370 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
372 (disable_breakpoints_in_shlibs): Likewise.
374 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
376 * dwarf2read.c (partial_die_parent_scope): Work around buggy
377 GCC 4.1 debug info generation (GCC PR c++/28460).
378 (determine_prefix): Likewise.
380 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
382 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
384 * tui/tui-layout.c (extract_display_start_addr): Likewise.
386 2010-03-19 Stan Shebs <stan@codesourcery.com>
388 * ax-gdb.c (gen_fetch): Handle bool.
389 (gen_usual_unary): Ditto.
391 (gen_equal): New function.
392 (gen_less): New function.
393 (gen_expr_binop_rest): Call them, also return integer type from
397 2010-03-19 Tom Tromey <tromey@redhat.com>
399 * jv-lang.c (jv_dynamics_objfile_data_key)
400 (jv_type_objfile_data_key): New globals.
401 (class_symtab): Move earlier.
402 (jv_per_objfile_free): New function.
403 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
405 Remove ancient #if 1.
406 (add_class_symbol): Remove redundant declaration.
407 (java_lookup_class): Use alloc_type, not alloc_type_arch.
408 (java_link_class_type): Mark as static. Update.
409 (jv_clear_object_type): New function.
410 (set_java_object_type): Likewise.
411 (get_java_object_type): Use set_java_object_type.
412 (is_object_type): Likewise.
413 (_initialize_java_language): Register new objfile keys.
414 (get_java_class_symtab): Add 'gdbarch' parameter.
415 (add_class_symtab_symbol): Update.
416 (type_from_class): Update.
418 2010-03-19 Stan Shebs <stan@codesourcery.com>
420 * ax-general.c (ax_const_l): Fix a sizing bug.
422 2010-03-18 Joel Brobecker <brobecker@adacore.com>
426 2010-03-18 Stan Shebs <stan@codesourcery.com>
427 Pedro Alves <pedro@codesourcery.com>
429 * target.h (struct target_ops): New method
430 to_set_circular_trace_buffer.
431 (target_set_circular_trace_buffer): New macro.
432 * target.c (update_current_target): Add
433 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
435 * remote.c (remote_set_circular_trace_buffer): New function.
436 (init_remote_ops): Add it to vector.
437 * tracepoint.h (struct trace_status): New field traceframes_created,
438 change buffer_size and buffer_free to int.
439 * tracepoint.c (circular_trace_buffer): New global.
440 (start_tracing): Send values of disconnected tracing and circular
441 trace buffer settings.
442 (set_circular_trace_buffer): New function.
443 (parse_trace_state): Handle total space and frames created.
444 (trace_status_command): Display total space and total frames
446 (trace_save): Write out new status values.
447 (parse_trace_status): Set traceframe_count, traceframes_created,
448 buffer_free and buffer_size to -1 by default.
449 (_initialize_tracepoint): New setshow for circular-trace-buffer.
450 * NEWS: Mention the circular trace buffer option.
452 2010-03-18 Tom Tromey <tromey@redhat.com>
454 * infcmd.c (finish_command_continuation): Wrap print_return_value
457 2010-03-18 Joel Brobecker <brobecker@adacore.com>
459 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
460 DIE has a name before creating the associated partial symbol.
461 (read_func_scope): Emit a complaint if the subprogram does not
462 have a name or when we can't extract the subprogram PC bounds.
464 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
466 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
467 instead of selected frame architecture.
469 2010-03-18 Pedro Alves <pedro@codesourcery.com>
471 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
472 a valid selected thread, and that it is not running.
473 (advance_command): Ditto.
474 (finish_command): Ditto.
476 2010-03-17 Stan Shebs <stan@codesourcery.com>
478 * ax-gdb.c (require_rvalue): Disallow non-scalars.
480 * infcall.c: Include tracepoint.h.
481 (call_function_by_hand): Disallow calls in tfind mode.
482 * infcmd.c: Include tracepoint.h.
483 (ensure_not_tfind_mode): New function.
484 (continue_1): Call it.
486 (jump_command): Ditto.
487 (signal_command): Ditto.
488 (advance_command): Ditto.
489 (until_command): Ditto.
490 (finish_command): Ditto.
491 * tracepoint.h (disconnect_or_stop_tracing): Declare.
493 * ax-gdb.h (struct axs_value): New field optimized_out.
494 (gen_trace_for_var): Add gdbarch argument.
495 * ax-gdb.c (gen_trace_static_fields): New function.
496 (gen_traced_pop): Call it, add gdbarch argument.
497 (gen_trace_for_expr): Update call to it.
498 (gen_trace_for_var): Ditto, and report optimized-out variables.
499 (gen_struct_ref_recursive): Check for optimized-out value.
500 (gen_struct_elt_for_reference): Ditto.
501 (gen_static_field): Pass gdbarch instead of expression, assume
502 optimization if field not found.
503 (gen_var_ref): Set the optimized_out flag.
504 (gen_expr): Error on optimized-out variable.
505 * tracepoint.c (collect_symbol): Handle struct-valued vars as
506 expressions, skip optimized-out variables with computed locations.
507 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
508 erroring out if location expression missing.
509 (loclist_tracepoint_var_ref): Don't error out here.
511 2010-03-17 Tom Tromey <tromey@redhat.com>
513 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
514 DWARF data is available.
516 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
518 * symfile.c (generic_load): Reset breakpoints after loading.
520 2010-03-17 Tom Tromey <tromey@redhat.com>
522 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
524 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
526 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
527 create_breakpoint call, adjust the parameters.
529 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
530 Chandru <chandru@in.ibm.com>
532 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
533 * valarith.c (value_subscripted_rvalue): Suppress error if
534 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
536 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
538 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
540 2010-03-16 Joel Brobecker <brobecker@adacore.com>
542 * ada-tasks.c (task_command_1): Check that the task ptid is valid
543 before doing the associated thread switch.
545 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
547 * MAINTAINERS: Update my email address.
549 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
551 Simplify MI breakpoint setting.
553 * breakpoint.c (break_command_really): Make nonstatic and
555 (create_breakpoint): ...this. Rename prior function by this name
557 (create_breakpoint_sal): ...this.
558 (create_breakpoints): Rename to...
559 (create_breakpoints_sal): ...this.
560 (set_breakpoint): Remove.
561 * breakpoint.h: Adjust to above changes.
562 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
564 2010-03-15 Stan Shebs <stan@codesourcery.com>
566 * ax-gdb.c: Include cp-support.h.
567 (find_field): Remove.
568 (gen_primitive_field): New function.
569 (gen_struct_ref_recursive): New function.
570 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
572 (gen_static_field): New function.
573 (gen_struct_elt_for_reference): New.
574 (gen_namespace_elt): New.
575 (gen_maybe_namespace_elt): New.
576 (gen_aggregate_elt_ref): New.
577 (gen_expr): Add OP_SCOPE, display opcode name in error message.
579 2010-03-15 Tom Tromey <tromey@redhat.com>
581 * dwarf2read.c (die_needs_namespace): Also return 0 for
584 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
587 * cp-support.h: Added char *declaration element to using_direct
589 (cp_add_using): Added char *declaration argument.
590 (cp_add_using_directive): Ditto.
591 (cp_lookup_symbol_imports): made extern.
592 * cp-namespace.c: Updated with the above changes.
593 * dwarf2read.c (read_import_statement): Ditto.
594 (read_namespace): Ditto.
595 (read_import_statement): Support import declarations.
596 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
598 Added support for 'declaration_only' search.
599 (cp_lookup_symbol_namespace): Attempt to search for the name as
600 is before consideration of imports.
601 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
602 search at every block level search.
603 Now takes language argument.
604 (lookup_symbol_aux): Updated.
606 2010-03-15 Tom Tromey <tromey@redhat.com>
608 * c-exp.y (name_not_typename): Add 'operator' clause.
610 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
612 * configure.ac: Exit if ${gdb_target_obs}" is not set.
613 * configure: Regenerate.
615 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
617 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
618 and ".sdynbss". Update the comment.
620 2010-03-15 Jie Zhang <jie@codesourcery.com>
622 * MAINTAINERS: Update my email address.
624 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
626 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
628 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
630 * charset.c [USE_WIN32API]: Include <windows.h>.
631 (_initialize_charset): Correct type of w32_host_default_charset.
633 2010-03-14 Pedro Alves <pedro@codesourcery.com>
635 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
637 2010-03-12 Tom Tromey <tromey@redhat.com>
640 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
641 in a lexical block does not need a namespace.
642 (new_symbol) <DW_TAG_variable>: Put extern variables on
643 list_in_scope in all cases.
645 2010-03-12 Stan Shebs <stan@codesourcery.com>
647 * ax-gdb.c (gen_expr): Add shift expressions.
648 (gen_expr_binop_rest): Ditto.
650 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
652 * buildsym.c (finish_block): Reset using_directives pointer
653 after block initialization.
655 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
657 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
658 * i386-tdep.c (i386_word_names): Likewise.
660 2010-03-12 Pedro Alves <pedro@codesourcery.com>
662 * target.c (memory_xfer_partial): Don't use the stack cache if
663 inspecting trace frames.
664 * tracepoint.c (finish_tfind_command): Invalidate the target
667 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
669 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
670 for the PIC displacement, print also the displacement value.
671 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
673 2010-03-10 Kevin Buettner <kevinb@redhat.com>
675 * remote-mips.c (close_ports, mips_initialize_cleanups)
676 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
677 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
678 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
679 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
680 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
681 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
682 comments describing each of these functions.
683 (mips_enter_debug, mips_exit_debug, common_open)
684 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
685 blank line after the comment describing the function.
687 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
689 * solib-svr4.c (svr4_exec_displacement): Return now success, new
690 parameter displacementp. Update comment.
691 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
692 element exists. Return if svr4_exec_displacement was not successful.
695 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
696 Daniel Jacobowitz <dan@codesourcery.com>
698 * solib-svr4.c (read_program_header): Support type == -1 to read
700 (read_program_headers_from_bfd): New function.
701 (svr4_static_exec_displacement): Remove and move the comment ...
702 (svr4_exec_displacement): ... here. Remove variable found. New
703 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
704 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
705 targets using read_program_headers_from_bfd. Remove the call of
706 svr4_static_exec_displacement.
708 2010-03-10 Tom Tromey <tromey@redhat.com>
710 * dwarf2read.c (struct pubnames_header): Remove.
711 (_PUBNAMES_HEADER): Remove.
712 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
713 (struct aranges_header): Remove.
714 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
715 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
716 (PUBNAMES_SECTION): Remove.
717 (ARANGES_SECTION): Remove.
718 (dwarf2_locate_sections): Don't handle pubnames or aranges.
719 (dwarf2_build_psymtabs): Remove dead code.
720 (dwarf2_build_psymtabs_easy): Remove.
722 2010-03-10 Tom Tromey <tromey@redhat.com>
724 * elfread.c (elf_symfile_read): Don't call
725 dwarf2_build_frame_info.
726 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
727 (struct dwarf2_per_objfile) <objfile>: New field.
728 (dwarf2_has_info): Now idempotent. Set objfile field.
729 (dwarf2_read_section): Check and set readin field. Call
731 (dwarf2_build_psymtabs): Don't read all sections.
732 (read_type_comp_unit_head): Read types section.
733 (create_debug_types_hash_table): Likewise.
734 (init_cu_die_reader): Add asserts.
735 (process_type_comp_unit): Add assert.
736 (dwarf2_build_psymtabs_hard): Read info section.
737 (load_partial_comp_unit): Add assert.
738 (create_all_comp_units): Read info section.
739 (load_full_comp_unit): Likewise.
740 (dwarf2_ranges_read): Read ranges section.
741 (dwarf2_record_block_ranges): Add assert.
742 (dwarf2_read_abbrevs): Read abbrev section.
743 (read_indirect_string): Read str section.
744 (dwarf_decode_line_header): Read line section.
745 (read_signatured_type_at_offset): Read types section.
746 (dwarf_decode_macros): Read macinfo section.
747 (dwarf2_symbol_mark_computed): Read loc section.
748 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
749 dwarf2_build_frame_info.
750 (dwarf2_build_frame_info): Unconditionally set
751 dwarf2_frame_objfile_data on the objfile.
752 * configure.ac: Check for posix_madvise.
753 * config.in, configure: Rebuild.
755 2010-03-10 Tom Tromey <tromey@redhat.com>
757 * xcoffread.c (xcoff_start_psymtab): Update.
758 (xcoff_end_psymtab): Update.
759 * psymtab.c (allocate_psymtab): Remove dead code.
760 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
762 * mdebugread.c (parse_partial_symbols): Update.
763 (new_psymtab): Likewise.
764 * dwarf2read.c (process_psymtab_comp_unit): Update.
765 (psymtab_to_symtab_1): Update.
766 * dbxread.c (start_psymtab): Update.
767 (end_psymtab): Likewise.
769 2010-03-10 Tom Tromey <tromey@redhat.com>
771 * xcoffread.c: Include psymtab.h.
772 (xcoff_sym_fns): Update.
773 * symtab.h (struct partial_symbol): Remove.
774 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
775 (struct partial_symtab): Remove.
776 (PSYMTAB_TO_SYMTAB): Remove.
777 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
778 (find_pc_sect_psymtab): Remove.
779 (find_pc_sect_symtab_via_partial): Declare.
780 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
781 (find_main_psymtab): Remove.
782 (find_main_filename): Declare.
783 (fixup_psymbol_section): Remove.
784 (fixup_section): Declare.
785 * symtab.c: Include psymtab.h.
786 (lookup_symtab): Use lookup_symtab method.
787 (lookup_partial_symtab): Remove.
788 (find_pc_sect_psymtab_closer): Remove.
789 (find_pc_sect_psymtab): Remove.
790 (find_pc_sect_symtab_via_partial): New function.
791 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
792 (fixup_section): No longer static.
793 (fixup_psymbol_section): Remove.
794 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
795 (lookup_global_symbol_from_objfile): Likewise.
796 (lookup_symbol_aux_psymtabs): Remove.
797 (lookup_symbol_aux_quick): New function.
798 (lookup_symbol_global): Use lookup_symbol_aux_quick.
799 (lookup_partial_symbol): Remove.
800 (basic_lookup_transparent_type_quick): New function.
801 (basic_lookup_transparent_type): Use it.
802 (find_main_psymtab): Remove.
803 (find_main_filename): New function.
804 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
805 (find_line_symtab): Use expand_symtabs_with_filename method.
806 (output_partial_symbol_filename): New function.
807 (sources_info): Use map_partial_symbol_filenames.
808 (struct search_symbols_data): New type.
809 (search_symbols_file_matches): New function.
810 (search_symbols_name_matches): Likewise.
811 (search_symbols): Use expand_symtabs_matching method.
812 (struct add_name_data): Rename from add_macro_name_data.
813 (add_macro_name): Update.
814 (add_partial_symbol_name): New function.
815 (default_make_symbol_completion_list): Use
816 map_partial_symbol_names.
817 (struct add_partial_symbol_name): New type.
818 (maybe_add_partial_symtab_filename): New function.
819 (make_source_files_completion_list): Use
820 map_partial_symbol_filenames.
821 (expand_line_sal): Use expand_symtabs_with_filename method.
822 * symmisc.c: Include psymtab.h.
823 (print_objfile_statistics): Use print_stats method.
824 (dump_objfile): Use dump method.
825 (dump_psymtab, maintenance_print_psymbols)
826 (maintenance_info_psymtabs, maintenance_check_symtabs)
827 (extend_psymbol_list): Remove.
828 * symfile.h (struct quick_symbol_functions): New struct.
829 (struct sym_fns) <qf>: New field.
830 (sort_pst_symbols): Remove.
831 (increment_reading_symtab): Declare.
832 * symfile.c: Include psymtab.h.
833 (compare_psymbols, sort_pst_symbols): Remove.
834 (psymtab_to_symtab): Remove.
835 (increment_reading_symtab): New function.
836 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
838 (set_initial_language): Use find_main_filename.
839 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
840 (free_named_symtabs): Remove unused code.
841 (start_psymtab_common, add_psymbol_to_bcache)
842 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
844 * stack.c: Include psymtab.h, symfile.h.
845 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
846 * source.h (psymtab_to_fullname): Don't declare.
847 * source.c: Include psymtab.h.
848 (select_source_symtab): Use find_last_source_symtab method.
849 (forget_cached_source_info): Use forget_cached_source_info
851 (find_and_open_source): No longer static.
852 (psymtab_to_fullname): Remove.
853 * somread.c: Include psymtab.h.
854 (som_sym_fns): Update.
855 * psympriv.h: New file.
856 * psymtab.h: New file.
857 * psymtab.c: New file.
858 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
859 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
860 * objfiles.c: Include psymtab.h.
861 (objfile_relocate1): Use relocate method.
862 (objfile_has_partial_symbols): Use has_symbols method.
863 * mipsread.c: Include psymtab.h.
864 (ecoff_sym_fns): Update.
865 * mi/mi-cmd-file.c: Include psymtab.h.
866 (print_partial_file_name): New function.
867 (mi_cmd_file_list_exec_source_files): Use
868 map_partial_symbol_filenames.
869 * mdebugread.c: Include psympriv.h.
870 * machoread.c: Include psympriv.h.
871 (macho_sym_fns): Update.
872 * m2-exp.y (yylex): Use lookup_symtab.
873 * elfread.c: Include psympriv.h.
874 (elf_sym_fns): Update.
875 * dwarf2read.c: Include psympriv.h.
876 * dbxread.c: Include psympriv.h.
877 (aout_sym_fns): Update.
878 * cp-support.c: Include psymtab.h.
879 (read_in_psymtabs): Remove.
880 (make_symbol_overload_list_qualified): Use
881 expand_symtabs_for_function method.
882 * coffread.c: Include psympriv.h.
883 (coff_sym_fns): Update.
884 * blockframe.c: Include psymtab.h.
885 (find_pc_partial_function): Use find_pc_sect_symtab method.
886 * ada-lang.h (ada_update_initial_language): Update.
887 * ada-lang.c: Include psymtab.h.
888 (ada_update_initial_language): Remove 'main_pst' argument.
889 (ada_lookup_partial_symbol): Remove.
890 (struct ada_psym_data): New type.
891 (ada_add_psyms): New function.
892 (ada_add_non_local_symbols): Use map_ada_symtabs method.
893 (struct add_partial_datum): New type.
894 (ada_add_partial_symbol_completions): New function.
895 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
896 (ada_exception_support_info_sniffer): Update.
897 * Makefile.in (SFILES): Add psymtab.c.
898 (COMMON_OBS): Add psymtab.o.
899 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
901 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
903 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
905 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
908 * cp-namespace.c (cp_add_using): Deleted.
909 (cp_add_using_directive): Use obstack allocations.
910 Merged the function cp_add_using into this one.
911 Added 'struct obstack *' argument.
912 (cp_scan_for_anonymous_namespaces): Updated.
913 * cp-support.h: Updated.
914 * dwarf2read.c (read_import_statement): Updated.
915 (read_namespace): Updated.
917 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
919 * windows-nat.c (cygwin_conv_path): Remove old macro.
921 2010-03-10 Pedro Alves <pedro@codesourcery.com>
923 * breakpoint.c (condition_command): Handle watchpoint conditions.
924 (is_hardware_watchpoint): Add comment.
925 (is_watchpoint): New.
926 (update_watchpoint): Don't reparse the watchpoint's condition
929 (watchpoint_check): Use it.
930 (bpstat_check_watchpoint): Handle it.
931 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
932 conditions in a frame where it makes sense.
933 (watch_command_1): Store the innermost block of the condition
935 (delete_breakpoint): Delete the watchpoint condition expression.
936 * breakpoint.h (struct bp_location) <cond>: Update comment.
937 (struct breakpoint): New field `cond_exp_valid_block'.
939 2010-03-09 Joel Brobecker <brobecker@adacore.com>
941 Adjust handling of Ada DIEs after dwarf2_physname patch.
942 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
944 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
945 Pierre Muller <muller@ics.u-strasbg.fr>
947 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
949 (windows_make_so): Use non-Cygwin 1.7 specific function.
950 (windows_create_inferior): Make sure that cygallargs points to
951 original args in non Cygwin 1.7. case.
953 2010-03-09 Michael Snyder <msnyder@vmware.com>
955 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
956 after target_read_memory to get host byte order.
957 (i386_process_record): Ditto.
959 2010-03-09 Keith Seitz <keiths@redhat.com>
961 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
962 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
963 print out const or volatile qualifiers, too.
964 (c_type_print_args): Add parameters show_artificial and language.
965 Skip artificial parameters when requested.
966 Use the appropriate language printer.
967 (c_type_print_varspec): Tell c_type_print_args to skip artificial
968 parameters and pass language_c.
969 * dwarf2read.c (die_list): New file global.
970 (struct partial_die_info): Update comments for name field.
971 (pdi_needs_namespace): Renamed to ...
972 (die_needs_namespace): ... this. Rewrite.
973 (dwarf2_linkage_name): Remove.
974 (add_partial_symbol): Do not predicate the call to
975 partial_die_full_name based on pdi_needs_namespace.
976 Remove call to cp_check_possible_namespace_symbols and associated
978 (guess_structure_name): Do not inspect child subprogram DIEs.
979 (dwarf2_fullname): Update comments.
980 Use die_needs_namespace to assist in computing the name.
981 (read_func_scope): Use dwarf2_name to get the DIE's name.
982 Use dwarf2_physname to get the "linkage name" of the DIE.
983 (dwarf2_add_member_field): Use dwarf2_physname instead of
985 (read_structure_type): For structs and classes, set TYPE_NAME, too.
986 (determine_class): Remove.
987 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
989 (new_symbol): Unconditionally call dwarf2_name.
990 Compute the "linkage name" using dwarf2_physname.
991 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
992 When determining to scan for anonymous C++ namespaces, ignore
994 (dwarf2_physname): New function.
995 (dwarf2_full_name): Move content to new function and call
997 (dwarf2_compute_name): "New" function.
998 (_initialize_dwarf2_read): Initialize die_list.
999 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
1001 (gnu_v3_print_method_ptr): Use the physname for virtual methods
1002 without a demangled name.
1003 Print out type information for non-virtual methods.
1004 * linespec.c (decode_line_1): Force ANY string using "::" (or
1005 "." for java) to use decode_compound, and clean up any stray quoting.
1006 If we found a file symtab, re-evaluate whether the remainder is_quoted.
1007 (decode_compound): Stop consuming at an open parenthesis.
1008 Keep template parameters.
1009 Keep any overload information.
1010 Keep keywords like "const".
1011 Remove paren_pointer.
1012 Move is_quoted check from set_flags to here.
1013 Remove #if 0 code from 2000. Ten years is long enough.
1014 (find_method): Before comparing symbol names, canonicalize the string
1016 If a specific overload is requested, find it. Otherwise throw an error.
1017 (find_method_overload_end): New function.
1018 (set_flags): Remove.
1019 (decode_compound): Assume that parentheses are matched.
1021 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
1023 * linespec.c (decode_line_1): Keep important keywords like
1024 "const" and "volatile".
1025 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
1026 * typeprint.h (c_type_print_args): Add declaration.
1027 * ui-file.c (do_ui_file_obsavestring): New function.
1028 (ui_file_obsavestring): New function.
1029 * ui-file.h (ui_file_obsavestring): Add declaration.
1030 * valops.c (find_overload_match): Resolve the object to
1032 If the object is a data member, search the object for the member
1033 and return with staticp set.
1034 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
1035 Do not attempt to extract a function name from non-function types.
1036 If the extracted function name and the original name are the same,
1037 we don't have a C++ method.
1039 From Jan Kratochvil <jan.kratochvil@redhat.com>:
1040 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
1042 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
1043 and arguments from symbol lookups.
1044 * ax-gdb.c (gen_expr): Likewise.
1045 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
1046 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
1047 lookup_possible_namespace_symbol): Likewise.
1048 * cp-support.c (read_in_psymtabs): Likewise.
1049 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
1050 * language.h (la_lookup_symbol_nonlocal): Likewise.
1051 * scm-valprint.c (scm_inferior_print): Likewise.
1052 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
1053 * solib-svr.c (elf_lookup_lib): Likewise.
1054 * solib.c (show_auto_solib_add): Likewise.
1055 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
1056 * symmisc.c (maintenance_check_symtabs): Likewise.
1057 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
1058 lookup_symbol_aux_local, lookup_symbol_aux_block,
1059 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
1060 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
1061 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
1062 basic_lookup_transparent_type, find_main_psymtab,
1063 lookup_block_symbol): Likewise.
1064 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
1065 lookup_symbol_global, lookup_symbol_aux_block,
1066 lookup_symbol_partial_symbol, lookup_block_symbol,
1067 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
1069 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
1071 * python/python-internal.h: Include symtab.h.
1073 2010-03-09 Joel Brobecker <brobecker@adacore.com>
1074 Pierre Muller <muller@ics.u-strasbg.fr>
1076 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
1077 * p-valprint.c (pascal_val_print): Remove undeed block and fix
1080 2010-03-08 Tom Tromey <tromey@redhat.com>
1082 * breakpoint.c (breakpoint_1): Add "QUIT".
1084 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
1085 Pedro Alves <pedro@codesourcery.com>
1087 * solib.c (solib_find): Replace extension if
1088 solib_symbols_extension is set in the target gdbarch.
1089 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
1090 solib_symbols_extension to "sym".
1091 * gdbarch.sh (solib_symbols_extension): New variable.
1092 (pstring): New function.
1093 * gdbarch.h, gdbarch.c: Regenerate.
1095 2010-03-08 Tom Tromey <tromey@redhat.com>
1099 * utils.c: Include main.h.
1100 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
1101 (defaulted_query): Use default answer if `batch_flag'.
1102 * main.h (batch_flag): Declare.
1103 * main.c (batch_flag): New global.
1104 (captured_main): Remove 'batch'. Update.
1106 2010-03-08 Kevin Buettner <kevinb@redhat.com>
1108 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
1111 * remote-mips.c (rockhopper_ops): New target_ops struct.
1112 (MON_ROCKHOPPER): New mips_monitor_type.
1113 (read_hex_value): New function.
1114 (mips_request): Send 8-byte values with a 'T' packet. Read the
1115 packet argument as a string and use read_hex_value to parse it.
1116 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
1117 (rockhopper_open): New function.
1118 (mips_wait): Read the PC, FP and SP fields as strings. Use
1119 read_hex_value to parse them and mips_set_register to commit them.
1120 (mips_set_register): New function.
1121 (mips_fetch_registers): Do not cast register value to "unsigned"
1122 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
1123 (mips_store_registers): Use a 'T' packet to set registers when
1124 using MON_ROCKHOPPER.
1125 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
1126 and expect the total to be printed before the entry address.
1127 (_initialize_remote_mips): Initialize and add rockhopper_ops.
1129 2010-03-08 Kevin Buettner <kevinb@redhat.com>
1131 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
1132 Change return value to int. Store value fetched in location
1133 addressed by `val'. Use function's return value as success
1134 or failure indicator. Adjust all callers.
1136 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
1138 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
1140 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1141 Hui Zhu <teawater@gmail.com>
1143 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
1144 tmp_to_stopped_data_address.
1145 (record_open): Reset tmp_to_stopped_by_watchpoint and
1146 tmp_to_stopped_data_address.
1147 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
1148 to_stopped_data_address.
1150 2010-03-08 Hui Zhu <teawater@gmail.com>
1152 * i386-tdep.c (i386_process_record): Initialize regnum.
1154 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1156 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
1157 Do not warn on ".gnu.liblist" and ".gnu.conflict".
1159 2010-03-08 Joel Brobecker <brobecker@adacore.com>
1161 Memory error when reading wrong core file.
1162 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
1163 errors while reading the inferior memory, and return zero if
1164 an exception was raised.
1166 2010-03-07 Michael Snyder <msnyder@vmware.com>
1168 * record.c (record_restore): Rename tmpu8 to rectype.
1170 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
1171 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
1173 (i386_record_push): Rename local tmpulongest to addr.
1175 (i386_process_record): Rename local tmpulongest to addr.
1177 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
1180 Rename local variable tmpu8 to opcode8 and regnum.
1182 2010-03-07 Joel Brobecker <brobecker@adacore.com>
1184 * remote.c (remote_get_ada_task_ptid): New function.
1185 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
1187 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
1189 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
1190 block. Define helper macros to reduce ifdefs in code.
1191 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
1192 size. Call unadorned GetModuleFileNameEx rather than
1193 GetModuleFileNameEx*.
1194 (windows_make_so): Use __PMAX to denote maximum buffer size and
1195 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
1197 (get_image_name): Use __PMAX to denote maximum buffer size.
1198 (handle_load_dll): Likewise.
1199 (windows_pid_to_exec_file): Likewise.
1200 (windows_create_inferior): Add many accommodations for older Cygwin and
1202 (bad_GetModuleFileNameExW): Control inclusion of this function based on
1203 __USEWIDE conditional.
1204 (bad_GetModuleFileNameExA): Likewise.
1205 (_initialize_loadable): Just use real function names without the dyn_
1206 part since they are defined earlier.
1208 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
1209 Tom Tromey <tromey@redhat.com>
1211 * utils.c (host_char_to_target): Add 'gdbarch' argument.
1212 (parse_escape): Likewise.
1213 * python/py-utils.c (unicode_to_target_string): Update.
1214 (unicode_to_target_python_string): Update.
1215 (target_string_to_unicode): Update.
1216 * printcmd.c (printf_command): Update.
1217 * p-exp.y (yylex): Update.
1218 * objc-exp.y (yylex): Update.
1219 * mi/mi-parse.c: Include charset.h.
1220 (mi_parse_escape): New function.
1221 (mi_parse_argv): Use it.
1222 * jv-exp.y (yylex): Update.
1223 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
1225 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
1226 * gdbarch.sh (auto_charset, auto_wide_charset): New.
1227 * gdbarch.c: Rebuild.
1228 * gdbarch.h: Rebuild.
1229 * defs.h (parse_escape): Update.
1230 * cli/cli-setshow.c: Include arch-utils.h.
1231 (do_setshow_command): Update.
1232 * cli/cli-cmds.c (echo_command): Update.
1233 * charset.h (target_charset, target_wide_charset): Update.
1234 * charset.c: Include arch-utils.h.
1235 (target_charset_name): Default to "auto".
1236 (target_wide_charset_name): Likewise.
1237 (show_target_charset_name): Handle "auto".
1238 (show_target_wide_charset_name): Likewise.
1239 (be_le_arch): New global.
1240 (set_be_le_names): Add 'gdbarch' argument.
1241 (validate): Likewise. Don't call set_be_le_names.
1242 (set_charset_sfunc, set_host_charset_sfunc)
1243 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
1245 (target_charset): Add 'gdbarch' argument.
1246 (target_wide_charset): Likewise. Remove 'byte_order' argument.
1247 (auto_target_charset_name): New global.
1248 (default_auto_charset, default_auto_wide_charset): New functions.
1249 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
1250 for target charsets. Copy result of nl_langinfo. Use GetACP if
1252 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
1253 remove 'byte_order' argument. Update.
1254 (classify_type): Likewise.
1255 (c_emit_char): Update.
1256 (c_printchar): Update.
1257 (c_printstr): Update.
1258 (c_get_string): Update.
1259 (evaluate_subexp_c): Update.
1260 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
1262 * python/python.c (gdbpy_target_charset): New function.
1263 (gdbpy_target_wide_charset): Likewise.
1264 (GdbMethods): Update.
1267 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
1269 * symfile.c (build_section_addr_info_from_objfile): Do not mask
1270 off high address bits.
1272 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
1274 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
1275 address as UnsignedLongLong, not LongLong.
1277 2010-03-05 Kevin Buettner <kevinb@redhat.com>
1278 Pedro Alves <pedro@codesourcery.com>
1280 * remote-mips.c (gdbthread.h): Include.
1281 (remote_mips_ptid): Declare.
1282 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
1283 (common_open): Set inferior_ptid, add it as an inferior, and
1284 as a thread too. Delete FIXME comment regarding start_remote().
1285 (mips_close): Invoke generic_mourn_inferior().
1286 (mips_kill): Make sure that target_mourn_inferior is invoked.
1287 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
1288 it's now invoked from mips_close().
1289 (mips_load): Don't null out inferior_ptid. Don't call
1290 clear_symtab_users().
1291 (mips_thread_alive, mips_pid_to_str): New functions.
1292 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
1293 to_thread_alive and to_pid_to_str operations.
1295 2010-03-04 Tom Tromey <tromey@redhat.com>
1297 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
1298 in DWARF 3 and later.
1299 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
1301 2010-03-04 Keith Seitz <keiths@redhat.com>
1303 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
1304 If the filename portion of the linespec was quoted, recheck the
1305 remainder for additional quoting.
1306 (locate_first_half): Skip over completer chars, too.
1308 2010-03-04 Tom Tromey <tromey@redhat.com>
1310 * printcmd.c (printf_command): Pass dummy argument to
1313 2010-03-04 Doug Evans <dje@google.com>
1315 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
1318 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
1320 2010-03-04 Pedro Alves <pedro@codesourcery.com>
1322 * breakpoint.c (update_watchpoint): Create a sentinel location if
1323 the software watchpoint isn't watching any memory.
1324 (breakpoint_address_bits): Skip dummy software watchpoint locations.
1326 2010-03-04 Pedro Alves <pedro@codesourcery.com>
1328 * utils.c (fputs_maybe_filtered): Check if there's already a top
1329 level interpreter before dereferencing it. If there isn't one,
1330 don't paginate either.
1332 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1334 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
1335 the state right when single stepping.
1336 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
1337 Get the next PC along with the instruction state.
1338 (thumb_get_next_pc): Remove.
1339 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
1341 2010-03-04 Hui Zhu <teawater@gmail.com>
1343 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
1345 2010-03-03 Pedro Alves <pedro@codesourcery.com>
1347 * utils.c (fputs_maybe_filtered): Always disable pagination if the
1348 top level interpreter is MI.
1350 2010-03-03 Stan Shebs <stan@codesourcery.com>
1352 * remote.c (remote_download_tracepoint): Iterate over locations.
1353 * tracepoint.c (validate_actionline): Ditto.
1354 (encode_actions): Add location argument.
1355 (trace_dump_command): Check all locations to see if stepping
1358 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
1359 Eli Zaretskii <eliz@gnu.org>
1361 * NEWS: Add X86 general purpose registers section.
1363 2010-03-03 Tom Tromey <tromey@redhat.com>
1366 * varobj.c (install_new_value): Handle case where new print_value
1369 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
1372 * printcmd.c (printf_command): Print end of format string using
1375 2010-03-02 Tom Tromey <tromey@redhat.com>
1377 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
1378 * defs.h (read_command_lines_1): Add missing 'void'.
1379 * cli/cli-script.c (recurse_read_control_structure): Add missing
1381 (read_next_line): Likewise.
1382 (read_command_lines_1): Likewise.
1384 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
1386 * spu-tdep.c (spu_analyze_prologue): Track instruction to
1387 store backchain as part of prologue.
1389 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
1391 * progspace.c (update_address_spaces): Update inferior address spaces
1394 2010-03-02 Doug Evans <dje@google.com>
1396 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
1397 lowpc,highpc args to addrmap_set_empty.
1399 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
1401 * amd64-tdep.c (amd64_byte_names): New.
1402 (amd64_word_names): Likewise.
1403 (amd64_dword_names): Likewise.
1404 (amd64_pseudo_register_name): Likewise.
1405 (amd64_pseudo_register_read): Likewise.
1406 (amd64_pseudo_register_write): Likewise.
1407 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
1408 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
1409 set_gdbarch_pseudo_register_write and
1410 set_tdesc_pseudo_register_name. Don't call
1411 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
1413 * i386-tdep.c (i386_num_mmx_regs): Removed.
1414 (i386_num_pseudo_regs): Likewise.
1415 (i386_byte_names): New.
1416 (i386_word_names): Likewise.
1417 (i386_byte_regnum_p): Likewise.
1418 (i386_word_regnum_p): Likewise.
1419 (i386_mmx_regnum_p): Updated.
1420 (i386_pseudo_register_name): Make it global. Handle byte and
1421 word pseudo-registers.
1422 (i386_pseudo_register_read): Likewise.
1423 (i386_pseudo_register_write): Likewise.
1424 (i386_pseudo_register_type): Handle byte, word and dword
1426 (i386_register_reggroup_p): Don't include pseudo
1427 registers, except for MXX, in any register groups. Don't
1428 include pseudo byte, word, dword registers in general_reggroup.
1429 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
1430 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
1431 pseudo-registers after word pseudo-registers. Call
1432 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
1434 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
1435 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
1437 (i386_byte_regnum_p): New.
1438 (i386_word_regnum_p): Likewise.
1439 (i386_dword_regnum_p): Likewise.
1440 (i386_pseudo_register_name): Likewise.
1441 (i386_pseudo_register_read): Likewise.
1442 (i386_pseudo_register_write): Likewise.
1444 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
1446 * target-descriptions.c (tdesc_type): Remove
1447 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
1448 (tdesc_predefined_types): Likewise.
1449 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
1450 if flag name is empty.
1451 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
1453 * features/i386/32bit-core.xml: Define i386_eflags.
1454 * features/i386/64bit-core.xml: Likewise.
1456 * features/i386/32bit-sse.xml: Define i386_mxcsr.
1457 * features/i386/64bit-sse.xml: Likewise.
1459 * features/i386/amd64-linux.c: Regenerated.
1460 * features/i386/amd64.c: Likewise.
1461 * features/i386/i386-linux.c: Likewise.
1462 * features/i386/i386.c: Likewise.
1464 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
1466 * gdbtypes.c (append_composite_type_field_raw): New.
1467 (append_composite_type_field_aligned): Use the new function.
1468 * gdbtypes.h (append_composite_type_field_raw): Declare.
1469 * target-descriptions.c (struct tdesc_type_field): Add start and end.
1470 (struct tdesc_type_flag): New type.
1471 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
1472 kind. Add size to u.u. Add u.f for flags.
1473 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
1474 (tdesc_free_type): Likewise.
1475 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
1476 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
1477 (tdesc_add_bitfield, tdesc_add_flag): New.
1478 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
1479 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
1480 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
1481 current_type. Add current_type_size and current_type_is_flags.
1482 (tdesc_start_union): Clear the new fields.
1483 (tdesc_start_struct, tdesc_start_flags): New.
1484 (tdesc_start_field): Handle struct fields, including bitfields.
1485 (field_attributes): Make type optional. Add start and end.
1486 (union_children): Rename to struct_union_children.
1487 (union_attributes): Rename to struct_union_attributes. Add optional
1489 (flags_attributes): New.
1490 (feature_children): Add struct and flags.
1491 * features/gdb-target.dtd: Add flags and struct to features.
1492 Make field type optional. Add field start and end.
1494 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
1496 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
1497 (amd64_linux_read_description): Likewise.
1498 (_initialize_amd64_linux_nat): Set to_read_description to
1499 amd64_linux_read_description.
1501 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
1502 (amd64_linux_register_name): Removed.
1503 (amd64_linux_register_type): Likewise.
1504 (amd64_linux_core_read_description): New.
1505 (amd64_linux_init_abi): Set target description to
1506 tdesc_amd64_linux if needed. Support orig_rax in target
1507 description. Don't call set_gdbarch_register_name nor
1508 set_gdbarch_register_type. Call
1509 set_gdbarch_core_read_description.
1510 (_initialize_amd64_linux_tdep): Call
1511 initialize_tdesc_amd64_linux.
1513 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
1515 * amd64-tdep.c: Include "features/i386/amd64.c".
1516 (amd64_register_names): Removed.
1517 (amd64_register_name): Likewise.
1518 (amd64_register_type): Likewise.
1519 (amd64_init_abi): Set num_core_regs and register_names. Set
1520 target description to tdesc_amd64 if needed. Don't call
1521 set_gdbarch_register_name nor set_gdbarch_register_type.
1522 (_initialize_amd64_tdep): New.
1524 * i386-linux-nat.c (i386_linux_read_description): New.
1525 (_initialize_i386_linux_nat): Set to_read_description to
1526 i386_linux_read_description.
1528 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
1529 (i386_linux_register_name): Removed.
1530 (i386_linux_core_read_description): New.
1531 (i386_linux_read_description): Likewise.
1532 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
1533 Set target description to tdesc_i386_linux if needed. Support
1534 orig_eax. Set register_reggroup_p. Call
1535 set_gdbarch_core_read_description.
1536 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
1538 * i386-linux-tdep.h (tdesc_i386_linux): New.
1540 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
1543 * i386-tdep.c: Include "features/i386/i386.c".
1544 (i386_register_names): Make it const.
1545 (i386_mmx_names): Likewise.
1546 (i386_num_register_names): Removed.
1547 (i386_register_name): Likewise.
1548 (i386_eflags_type): Likewise.
1549 (i386_mxcsr_type): Likewise.
1550 (i386_sse_type): Likewise.
1551 (i386_register_type): Likewise.
1552 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
1553 (i386_pseudo_register_name): New.
1554 (i386_pseudo_register_type): Likewise.
1555 (i386_mmx_type): Make it static.
1556 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
1557 I387_NUM_REGS. Set num_core_regs and register_names. Don't
1558 call set_gdbarch_register_name nor set_gdbarch_register_type.
1559 Set register_reggroup_p. Set target description to tdesc_i386
1560 if needed. Call set_tdesc_pseudo_register_type,
1561 set_tdesc_pseudo_register_name and tdesc_use_registers.
1562 (_initialize_i386_tdep): Call initialize_tdesc_i386.
1563 initialize_tdesc_x86_64.
1565 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
1566 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
1567 register_names, tdesc and register_reggroup_p.
1568 (I386_NUM_FREGS): Removed.
1569 (i386_eflags_type): Likewise.
1570 (i386_mxcsr_type): Likewise.
1571 (i386_mmx_type): Likewise.
1572 (i386_sse_type): Likewise.
1573 (i386_register_name): Likewise.
1574 (i386_regnum): Add I386_MXCSR_REGNUM.
1575 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
1577 * i387-tdep.h (I387_NUM_REGS): New.
1579 * regformats/i386/i386-linux.dat: Generated.
1580 * regformats/i386/i386.dat: Likewise.
1581 * regformats/i386/amd64-linux.dat: Likewise.
1582 * regformats/i386/amd64.dat: Likewise.
1584 * regformats/reg-i386-linux.dat: Removed.
1585 * regformats/reg-i386.dat: Likewise.
1586 * regformats/reg-x86-64-linux.dat: Likewise.
1587 * regformats/reg-x86-64.dat: Likewise.
1589 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
1591 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
1592 cygwin_conv_path API rather than the deprecated
1593 cygwin_conv_to_full_posix_path.
1595 (GetModuleFileNameExA): Undefine for Cygwin.
1596 (GetModuleFileNameExW): Define for Cygwin.
1597 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
1598 Call GetModuleFileNameExW and convert path to POSIX using
1600 (windows_make_so): Always define p. Drop unused variable m.
1601 Don't use Win32 functions to check file existance, rather use
1602 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
1603 Use canonicalize_file_name to get full path.
1604 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
1605 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
1606 use correct target buffer size in call to WideCharToMultiByte.
1607 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
1608 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
1609 (windows_create_inferior): Convert all paths and arguments to wchar_t
1610 and use CreateProcessW on Cygwin.
1611 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
1612 (bad_GetModuleFileNameExA): Undefine for Cygwin.
1613 (bad_GetModuleFileNameExW): Define for Cygwin.
1614 (_initialize_loadable): Load GetModuleFileNameExW into
1615 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
1617 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
1620 * python/py-frame.c (frapy_read_var): Add block argument and logic
1621 to cope with user provided blocks.
1623 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1625 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
1628 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
1630 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
1631 (COMMON_OBS): ... to here since it's used unconditionally.
1632 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
1635 2010-02-26 David Daney <ddaney@caviumnetworks.com>
1637 * mips-linux-tdep.c: Update struct sigframe comments.
1638 (SIGFRAME_CODE_OFFSET): Delete macro.
1639 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
1641 (mips_linux_n32n64_sigframe_init): Same.
1643 2010-02-26 Kevin Buettner <kevinb@redhat.com>
1645 * remote-mips.c (mips_load): Don't use pseudo-register when
1646 invalidating regcache.
1648 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1650 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
1652 2010-02-26 Pedro Alves <pedro@codesourcery.com>
1654 * NEWS: Add "New targets" section, and mention ARM Symbian
1657 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
1659 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
1660 add ADDR_SIZE member.
1661 (allocate_piece_closure): Update.
1662 (copy_pieced_value_closure): Likewise.
1663 (dwarf2_evaluate_loc_desc): Likewise.
1664 (read_pieced_value): Use DWARF address size instead of
1665 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
1667 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
1668 Tom Tromey <tromey@redhat.com>
1670 * python/py-type.c (typy_lookup_typename): Add in block argument.
1671 If provided restrict lookup to specified blocks.
1672 (gdbpy_lookup_type): Likewise.
1673 (typy_lookup_type): Likewise.
1675 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
1680 * arm-symbian-tdep.c: New.
1681 * configure.tgt (arm*-*-symbianelf*): New target.
1682 (*-*-symbianelf*): New OS.
1683 * osabi.c (gdb_osabi_names): Add Symbian.
1684 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
1685 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
1686 (ALLDEPFILES): Add arm-symbian-tdep.c.
1688 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
1690 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
1692 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1694 * mi/mi-main.c (mi_cmd_execute): Fix typo.
1696 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
1697 Tom Tromey <tromey@redhat.com>
1698 Thiago Jung Bauermann <bauerman@br.ibm.com>
1700 * python/python.c (_initialize_python): Call
1701 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
1702 gdbpy_initialize_blocks.
1703 * python/python-internal.h: Declare struct symbol, block and
1704 symtab_and_line. Declare block_object_type and
1706 (gdbpy_lookup_symbol gdbpy_block_for_pc)
1707 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
1708 (symbol_to_symbol_object, block_to_block_object)
1709 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
1710 (gdbpy_initialize_blocks ): Declare.
1711 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
1712 (frapy_select): Add methods.
1713 (frapy_read_var): Add symbol branch.
1714 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
1716 (SUBDIR_PYTHON_SRCS): Likewise.
1717 (py-symbol.o): New rule.
1718 (py-symtab.o): Likewise.
1719 (py-block.o): Likewise.
1720 * python/py-symbol.c: New file.
1721 * python/py-symtab.c: Likewise.
1722 * python/py-block.c: Likewise.
1724 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1728 * inferior.h (prepare_for_detach): Declare.
1729 (struct inferior) <detaching>: New field.
1730 * infrun.c (prepare_for_detach): New.
1731 (handle_inferior_event) <random signal>: Don't stop if detaching.
1732 * target.c (target_detach): Call prepare_for_detach.
1734 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1736 Per-process displaced stepping queue.
1738 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
1739 (displaced_step_gdbarch, displaced_step_closure,
1740 (displaced_step_original, displaced_step_copy): Move globals to
1742 (struct displaced_step_inferior_state): ... new structure.
1743 (displaced_step_inferior_states): New global.
1744 (get_displaced_stepping_state, add_displaced_stepping_state)
1745 (remove_displaced_stepping_state, infrun_inferior_exit): New
1747 (displaced_step_clear): Add displaced_step_inferior_state
1748 parameter, and adjust to handle it.
1749 (displaced_step_clear_cleanup): Parameter is now a
1750 displaced_step_inferior_state. Adjust.
1751 (displaced_step_prepare): Adjust.
1752 (displaced_step_fixup, displaced_step_fixup)
1753 (infrun_thread_ptid_changed, resume): Adjust.
1754 (init_wait_for_inferior): Don't call displaced_step_clear.
1755 (infrun_thread_stop_requested): Rewrite.
1756 (_initialize_infrun): Install infrun_inferior_exit as
1757 inferior_exit observer.
1759 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1761 * inferior.h (ptid_match): Declare.
1762 * infrun.c (ptid_match): New.
1763 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
1764 (handle_notification): Add debug output.
1765 * linux-nat.c (ptid_match): Delete.
1767 2010-02-24 David S. Miller <davem@davemloft.net>
1769 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
1770 * syscalls/sparc-linux.xml: New.
1771 * syscalls/sparc64-linux.xml: New.
1772 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
1773 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
1774 (sparc32_linux_get_syscall_number): New function.
1775 (sparc32_linux_init_abi): Set syscall XML file name and hook up
1776 syscall number fetcher.
1777 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
1778 (sparc64_linux_get_syscall_number): New function.
1779 (sparc64_linux_init_abi): Set syscall XML file name and hook up
1780 syscall number fetcher.
1782 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
1786 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
1787 * inferior.c (add_inferior_silent): Notify inferior_added
1789 (delete_inferior_1): Notify inferior_removed observer.
1790 (exit_inferior_1): Pass inferior, not pid, to observer.
1791 (inferior_appeared): Likewise.
1792 (add_inferior_with_spaces): New.
1793 (add_inferior_command): Use the above.
1794 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
1797 * inflow.c (inflow_inferior_exit): Likewise.
1798 * jit.c (jit_inferior_exit_hook): Likewise.
1800 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
1802 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
1803 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
1804 (report_initial_inferior): New.
1805 (mi_inferior_removed): Register the above. Make sure
1806 inferior_added observer is called on the first inferior.
1807 (mi_new_thread, mi_thread_exit): Thread group is now identified by
1808 inferior number, not pid.
1809 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
1811 * mi/mi-main.c (current_context): New.
1812 (proceed_thread_callback): Use typed closure.
1813 Proceed everything if pid is 0. Most implementation split into
1814 (proceed_thread): ... this.
1815 (run_one_inferior): New.
1816 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
1817 Adjust for multiexec behaviour.
1818 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
1819 (mi_cmd_execute): Handle the 'thread-group' option here.
1820 Do some extra checks.
1821 * mi-parse.c (mi_parse): Handle the --all and --thread-group
1823 * mi-parse.h (struct mi_parse): New fields all and thread_group.
1825 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
1827 Make -exec-run a proper MI commands.
1829 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
1830 * mi/mi-cmds.c (mi_cmds): Adjust.
1831 * mi/mi-main.c (mi_cmd_exec_run): New.
1833 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1834 Stan Shebs <stan@codesourcery.com>
1836 * tracepoint.h (set_traceframe_number)
1837 (cleanup_restore_current_traceframe): Declare.
1838 * tracepoint.c (set_traceframe_number): New.
1839 (struct current_traceframe_cleanup): New.
1840 (do_restore_current_traceframe_cleanup)
1841 (restore_current_traceframe_cleanup_dtor)
1842 (make_cleanup_restore_current_traceframe): New.
1843 * infrun.c: Include tracepoint.h.
1844 (fetch_inferior_event): Switch out and in of tfind mode.
1846 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1848 * breakpoint.c (breakpoint_init_inferior): Also delete
1849 bp_shlib_event breakpoints.
1850 * solib-frv.c (enable_break): Remove call to
1851 remove_solib_event_breakpoints.
1852 * solib-svr4.c (enable_break): Ditto.
1853 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
1854 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
1855 * solib-som.c (som_solib_create_inferior_hook): Ditto.
1856 * solib-spu.c (spu_enable_break): Ditto.
1858 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
1860 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
1862 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
1864 * varobj.c (varobj_update): Avoid non-constants in initializers.
1866 2010-02-23 Tom Tromey <tromey@redhat.com>
1868 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
1869 handle big-endian values.
1870 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
1872 2010-02-22 Pedro Alves <pedro@codesourcery.com>
1877 * breakpoint.c (insert_bp_location): If inserting the read
1878 watchpoint failed, fallback to an access watchpoint.
1879 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
1880 if the value changed, if not watching the same memory for writes.
1881 (watchpoint_locations_match): Add comment.
1882 (update_global_location_list): Copy the location's watchpoint type.
1883 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
1884 handle read watchpoints here.
1885 (i386_insert_watchpoint): Read watchpoints aren't supported.
1886 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
1888 * target.h (target_insert_watchpoint): Update description.
1890 2010-02-19 Tom Tromey <tromey@redhat.com>
1892 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
1893 * m2-typeprint.c (m2_print_type): Update.
1894 * gdbtypes.c (recursive_dump_type): Update.
1895 (copy_type_recursive): Update.
1896 * c-typeprint.c (c_type_print_varspec_prefix): Update.
1897 (c_type_print_base): Update.
1898 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
1900 (struct cplus_struct_type) <ntemplate_args>: Remove.
1901 <struct template_arg>: Remove.
1902 <is_dynamic>: Move earlier.
1903 (TYPE_TEMPLATE_ARGS): Remove.
1904 (TYPE_NTEMPLATE_ARGS): Remove.
1905 (TYPE_TEMPLATE_ARG): Remove.
1907 2010-02-19 Tom Tromey <tromey@redhat.com>
1909 PR c++/8693, PR c++/9496:
1910 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
1911 * c-exp.y (lex_one_token): Rename from yylex. Don't call
1912 write_dollar_variable. Don't try to classify NAME tokens.
1913 (token_and_value): New type.
1914 (token_fifo, popping, name_obstack): New globals.
1915 (classify_name): New function.
1916 (classify_inner_name): Likewise.
1918 (VARIABLE): Now has type sval.
1919 (exp : VARIABLE): Call write_dollar_variable.
1920 (qualified_name): Use TYPENAME, not typebase. Add production for
1921 multiple "::" instances.
1922 (variable): Use name_not_typename.
1923 (qualified_type): Remove.
1926 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1928 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
1929 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
1930 found by bfd_get_section_by_name.
1931 * symfile.h (struct section_addr_info) <sectindex>: New comment.
1933 2010-02-19 Joel Brobecker <brobecker@adacore.com>
1935 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
1936 7.0 section" into "Changes in 7.1".
1938 2010-02-19 Joel Brobecker <brobecker@adacore.com>
1940 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
1941 * version.in: Bump version to 7.1.50.20100219-cvs.
1943 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
1945 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
1946 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
1948 2010-02-17 Tom Tromey <tromey@redhat.com>
1950 * NEWS: Add Python API Improvements section.
1952 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
1954 * NEWS: Correct typo.
1956 2010-02-17 Tom Tromey <tromey@redhat.com>
1958 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
1960 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1962 * symfile.c (build_section_addr_info_from_objfile): Include sections
1963 only if they are SEC_ALLOC or SEC_LOAD.
1965 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
1968 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
1969 of ULONGEST for address size.
1971 2010-02-17 Tom Tromey <tromey@redhat.com>
1973 * NEWS: Add C++ improvements section.
1975 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
1977 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
1978 PyThreadState_Swap): Avoid "statement with no effect" warning.
1980 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1982 * solib-svr4.c (enable_break <target_auxv_search>): New variable
1983 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
1985 2010-02-17 Tristan Gingold <gingold@adacore.com>
1986 Petr HluzÃn <petr.hluzin@gmail.com>
1988 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
1989 gdb_assert. Fix info->size for SIG prologue.
1991 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1993 * infcmd.c (show_inferior_tty_command): Check for NULL.
1994 Correct output message.
1996 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1998 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
1999 FUNCTION contains parentheses. Improve removal of a trailing
2002 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
2004 * gcore.c (do_bfd_delete_cleanup): New function.
2005 (gcore_command): Use it. Discard the cleanup after success.
2006 (gcore_copy_callback): Delete dead code.
2008 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
2010 * symfile.c (addr_info_make_relative): Always use
2011 find_lowest_section.
2013 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
2015 * NEWS: Added entry for namespace fixes.
2017 2010-02-15 Tom Tromey <tromey@redhat.com>
2019 * dwarf2read.c (guess_structure_name): Allocate name on the
2022 2010-02-15 Tom Tromey <tromey@redhat.com>
2024 * c-typeprint.c (c_type_print_base): Reverse order of test.
2026 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2028 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
2029 initialize it from ELF BFD. Extend the prelink condition by it.
2031 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2033 * defs.h (parse_pid_to_attach): New.
2034 * utils.c (parse_pid_to_attach): New.
2035 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
2036 * gnu-nat.c (gnu_attach): Likewise.
2037 * nto-procfs.c (procfs_attach): Likewise.
2038 * procfs.c (procfs_attach): Likewise.
2039 * windows-nat.c (windows_attach): Likewise.
2040 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
2041 * inf-ttrace.c (inf_ttrace_attach): Likewise.
2042 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
2045 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
2047 * MAINTAINERS: Add myself for write after approval privileges.
2049 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2051 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
2054 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2056 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
2057 only if INFO_VERBOSE.
2059 2010-02-12 Tomas Holmberg <th@virtutech.com>
2061 * mi/mi-main.c: Added the --reverse flag to the following MI
2062 commands: exec-continue, exec-finish, exec-next, exec-step,
2063 exec-next-instruction, exec-step-instruction. This is to
2064 support reverse execution over the MI interface to gdb.
2066 2010-02-12 Pedro Alves <pedro@codesourcery.com>
2068 * tracepoint.c (_initialize_tracepoint): Specify that the address
2069 range of `tfind outsize' is exclusive, and that the address range
2070 of `tfind range' is inclusive, in the commands' help strings.
2072 2010-02-12 Joel Brobecker <brobecker@adacore.com>
2074 Spurious "dll not found" error messages on x64-windows.
2075 * windows-nat.c: Add include of complaints.h.
2076 (handle_unload_dll): Change dll-not-found error into a complaint.
2078 2010-02-12 Pedro Alves <pedro@codesourcery.com>
2080 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
2081 bp_tracepoint and bp_fast_tracepoint, not
2082 bp_loc_software_breakpoint.
2083 (update_global_location_list): Tracepoints are never duplicates of
2086 2010-02-12 Pedro Alves <pedro@codesourcery.com>
2088 * breakpoint.c (break_command_really): Change return type to int.
2089 Return false if no breakpoint was created, true otherwise.
2090 (trace_command): Don't set the tracepoint count if no tracepoint
2092 (ftrace_command): Ditto.
2093 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
2094 created in the breakpoints table.
2096 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2097 Ulrich Weigand <uweigand@de.ibm.com>
2099 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
2101 2010-02-11 Pedro Alves <pedro@codesourcery.com>
2103 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
2104 the offset value isn't of integral type.
2106 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2108 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
2111 2010-02-11 Pedro Alves <pedro@codesourcery.com>
2113 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
2114 non-subscriptable types.
2115 * valarith.c (binop_types_user_defined_p): New, abstracted out
2117 (binop_user_defined_p): ... this.
2118 * value.h (binop_types_user_defined_p): Declare.
2120 2010-02-11 Pedro Alves <pedro@codesourcery.com>
2122 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
2123 Merge uploaded TSVs before merging uploaded tracepoints.
2125 2010-02-11 Pedro Alves <pedro@codesourcery.com>
2127 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
2129 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
2131 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
2132 whitespace character after a dot in comment.
2133 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
2135 (list_args_or_locals): For the 'all' (that is
2136 -stack-list-variables) case, always output list of tuples.
2137 Output 'arg' field if variable is argument.
2139 2010-02-10 Tom Tromey <tromey@redhat.com>
2141 * parser-defs.h (parser_debug): Declare.
2142 * parse.c (_initialize_parse): Install "debug parser" set/show
2144 (parser_debug): New global.
2145 (show_parserdebug): New function.
2146 * c-exp.y (c_parse): Set yydebug.
2148 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
2150 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
2151 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
2152 (tdesc_predefined_types): Add i387_ext, i386_eflags and
2154 (tdesc_find_type): New.
2155 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
2156 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
2158 * target-descriptions.h (tdesc_find_type): New.
2160 2010-02-10 Michael Snyder <msnyder@vmware.com>
2162 * gdb-gdb.py: Comment fix.
2164 2010-02-09 Tristan Gingold <gingold@adacore.com>
2166 * machoread.c (macho_symfile_relocate): New function.
2167 (macho_sym_fns): Use macho_symfile_relocate instead of
2168 default_symfile_relocate.
2169 (macho_oso_data): New type.
2170 (current_oso): New variable.
2171 (macho_add_oso_symfile): Do not compute section_addr_info, but
2172 instead set vma of sections.
2173 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
2174 Set and clear current_oso.
2176 2010-02-09 Joel Brobecker <brobecker@adacore.com>
2178 Wrong type description for tagged type parameter.
2179 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
2180 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
2181 reference to a tagged type.
2183 2010-02-09 Tristan Gingold <gingold@adacore.com>
2185 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
2186 brothers of the parent.
2188 2010-02-08 Tom Tromey <tromey@redhat.com>
2192 * valops.c (search_struct_field): Make 'name' const.
2193 (search_struct_method): Likewise.
2194 (find_method_list): Make 'method' const.
2195 (value_struct_elt): Make 'name' and 'err' const.
2196 (value_find_oload_method_list): Make 'method' const.
2197 (find_overload_match): Make 'name' const.
2198 * eval.c (evaluate_subexp_standard): New locals function,
2200 <OP_FUNCALL>: Handle OP_SCOPE specially.
2202 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2204 * infrun.c (handle_inferior_event): Do not look up regcache
2205 for exited processes.
2207 Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com>
2210 * valarith.c (value_ptrdiff): Added a test for a zero type length,
2211 warn if found, and assume length = 1.
2213 2010-02-08 Chris Moller <cmoller@redhat.com>
2216 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
2217 cp_print_static_field) Fix use of obstacks.
2219 2010-02-08 Pedro Alves <pedro@codesourcery.com>
2221 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
2222 resumed LWPs as resumed.
2223 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
2224 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
2225 of throwing an internal error. If an LWP of a process we're not
2226 waiting for reports a signal, don't force collecting a SIGSTOP,
2227 and if it was breakpoint hit in non-stop mode, cancel it. Don't
2228 go through all LWPs cancelling breakpoints in non-stop mode.
2229 (resume_stopped_resumed_lwps): New.
2230 (linux_nat_wait): Use it.
2232 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
2234 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
2235 i386/amd64 and i386/amd64-linux.
2236 (i386/i386-expedite): New.
2237 (i386/i386-linux-expedite): Likewise.
2238 (i386/amd64-expedite):Likewise.
2239 (i386/amd64-linux-expedite): Likewise.
2240 ($(outdir)/i386/i386-linux.dat): Likewise.
2241 ($(outdir)/i386/amd64.dat): Likewise.
2242 ($(outdir)/i386/amd64-linux.dat): Likewise.
2244 * features/i386/32bit-core.xml: New.
2245 * features/i386/32bit-linux.xml: Likewise.
2246 * features/i386/32bit-sse.xml: Likewise.
2247 * features/i386/64bit-core.xml: Likewise.
2248 * features/i386/64bit-linux.xml: Likewise.
2249 * features/i386/64bit-sse.xml: Likewise.
2250 * features/i386/i386-linux.xml: Likewise.
2251 * features/i386/i386.xml: Likewise.
2252 * features/i386/amd64-linux.xml: Likewise.
2253 * features/i386/amd64.xml: Likewise.
2254 * features/i386/i386-linux.c: Likewise.
2255 * features/i386/i386.c: Likewise.
2256 * features/i386/amd64-linux.c: Likewise.
2257 * features/i386/amd64.c: Likewise.
2259 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
2262 * cp-support.h: Added char* alias element to using_direct data
2264 (cp_add_using): Added char* alias argument.
2265 (cp_add_using_directive): Ditto.
2266 * cp-namespace.c: Updated with the above changes.
2267 (cp_lookup_symbol_imports): Check for aliases.
2268 * dwarf2read.c (read_import_statement): Figure out local alias
2269 for the import and pass it on to cp_add_using.
2270 (read_namespace): Pass alias argument to cp_add_using.
2272 2010-02-05 Hui Zhu <teawater@gmail.com>
2274 * defs.h (gdb_bfd_errmsg): New extern.
2275 * exec.c (exec_file_attach): Change bfd_errmsg to
2277 * utils.c (AMBIGUOUS_MESS1): New macro.
2278 (AMBIGUOUS_MESS2): New macro.
2279 (gdb_bfd_errmsg): New function.
2281 2010-02-04 Doug Evans <dje@google.com>
2283 * solib-svr4.c (enable_break): Add comment.
2285 2010-02-04 Anthony Green <green@moxielogic.com>
2287 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
2290 2010-02-04 Tom Tromey <tromey@redhat.com>
2292 * valops.c (search_struct_field): Account for
2293 value_embedded_offset. Fix check for virtual base past the end of
2294 the object. Use value_copy when making a slice of the value.
2296 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
2299 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
2300 only if gdb_stdout is a tty.
2302 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
2304 * target-descriptions.c: Include "osabi.h".
2305 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
2308 2010-02-04 Tristan Gingold <gingold@adacore.com>
2310 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
2311 (macho_symtab_read): Adjust calls to macho_add_oso.
2312 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
2313 (macho_symfile_read): Adjust call to macho_oso_symfile.
2314 (macho_new_init): Move this function after declarations.
2315 (macho_symfile_init): Ditto.
2316 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
2317 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
2319 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
2321 Include MI command in remotelog.
2323 * mi/mi-main.c (mi_execute_command): Call target_log_command.
2325 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
2327 * remote.c (remote_state): Remove gdbarch.
2328 (init_remote_state): Don't set gdbarch.
2329 (remote_query_supported): Pass target_gdbarch instead of
2330 rs->gdbarch to gdbarch_qsupported.
2332 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
2334 * gdbarch.sh: Add qsupported.
2336 * gdbarch.c: Regenerated.
2337 * gdbarch.h: Likewise.
2339 * remote.c (remote_state): Add gdbarch.
2340 (init_remote_state): Set gdbarch.
2341 (remote_query_supported): Support gdbarch_qsupported.
2343 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
2345 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
2346 __FreeBSD_kernel_version.
2348 2010-02-03 Tristan Gingold <gingold@adacore.com>
2350 * symfile.h (struct sym_fns): Add sym_relocate field.
2351 (default_symfile_relocate): New prototype.
2352 (symfile_relocate_debug_section): First argument is now an objfile.
2353 * symfile.c (default_symfile_relocate): Rename from
2354 symfile_relocate_debug_section, first argument is now an objfile.
2355 (symfile_relocate_debug_section): New function.
2356 * coffread.c (coff_sym_fns): Set sym_relocate field.
2357 * somread.c (som_sym_fns): Ditto.
2358 * mipsread.c (ecoff_sym_fns): Ditto.
2359 * machoread.c (macho_sym_fns): Ditto.
2360 * elfread.c (elf_sym_fns): Ditto.
2361 * dwarf2read.c (dwarf2_read_section): Ditto.
2362 * xcoffread.c (xcoff_sym_fns): Ditto.
2363 * dbxread.c (aout_sym_fns): Ditto.
2364 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
2365 (elfstab_build_psymtabs): Ditto.
2367 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
2369 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
2371 2010-02-02 Tom Tromey <tromey@redhat.com>
2373 * valops.c (value_cast_structs): Try downcasting using the RTTI
2376 2010-02-02 Tom Tromey <tromey@redhat.com>
2378 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
2379 (gnuv2_baseclass_offset): Now static.
2380 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
2381 * gnu-v2-abi.h: Remove.
2383 2010-02-02 Tom Tromey <tromey@redhat.com>
2385 * m2-typeprint.c (m2_record_fields): Don't use
2387 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
2388 (struct main_type) <flag_declared_class>: New field.
2389 (struct cplus_struct_type) <declared_type>: Remove.
2390 <ntemplate_args>: Move earlier.
2391 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
2392 (DECLARED_TYPE_TEMPLATE): Remove.
2393 (TYPE_DECLARED_TYPE): Remove.
2394 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
2395 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
2396 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
2399 2010-02-02 Tom Tromey <tromey@redhat.com>
2401 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
2402 * valops.c (search_struct_field): Compute nbases after calling
2404 (check_field): Call CHECK_TYPEDEF.
2405 * cp-valprint.c (cp_print_value): Pass correct address to
2406 baseclass_offset. Fix check for virtual base past the end of the
2407 object. Don't offset address passed to cp_print_value_fields or
2408 apply_val_pretty_printer.
2409 (cp_print_value_fields): Fix call to val_print.
2410 (cp_print_value_fields_rtti): New function.
2411 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
2412 * p-valprint.c (pascal_object_print_value_fields): Fix call to
2414 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
2416 * language.h (struct language_defn) <la_val_print>: Document.
2417 * c-lang.h (cp_print_value_fields_rtti): Declare.
2419 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2422 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
2423 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
2424 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
2426 2010-02-01 Michael Matz <matz@suse.de>
2427 Daniel Jacobowitz <dan@codesourcery.com>
2429 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
2430 functions use a frame pointer.
2432 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2434 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
2435 by a conditional setting DYN_ADDR. Use DYN_ADDR.
2436 * config/djgpp/fnchange.lst: Add translations for
2437 symbol-without-target_section.exp and symbol-without-target_section.c.
2439 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2441 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
2442 (remote_breakpoint_for_pc): Correct invalid_p check.
2443 * gdbarch.c: Regenerated.
2445 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2447 * arm-tdep.c (arm_find_mapping_symbol): New function, from
2449 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
2450 (extend_buffer_earlier): New function.
2451 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
2452 (arm_adjust_breakpoint_address): New function.
2453 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
2455 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2457 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
2458 (arm_linux_thumb2_le_breakpoint): New constants.
2459 (arm_linux_init_abi): Set thumb2_breakpoint and
2460 thumb2_breakpoint_size.
2461 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
2462 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
2463 Implement support for single stepping through IT blocks if
2464 a 32-bit Thumb breakpoint instruction is available.
2465 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
2466 is available, use it when needed.
2467 (arm_remote_breakpoint_from_pc): New function.
2468 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
2469 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
2470 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
2472 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2474 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
2475 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
2476 * gdbarch.c, gdbarch.h: Regenerated.
2477 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
2478 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
2479 gdbarch_remote_breakpoint_from_pc.
2481 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
2483 * infrun.c (prepare_to_proceed): Handle other signals which might
2485 (handle_inferior_event): Move the check for unusual breakpoint
2488 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
2490 amd64 - function returning record with field straddling 2 registers.
2491 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
2492 a record of length <= 16 in which a field straddles the two
2495 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2497 Implement return values on amd64-windows.
2498 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
2499 (amd64_windows_return_value): New function.
2500 (amd64_windows_init_abi): Call set_gdbarch_return_value with
2501 amd64_windows_return_value.
2503 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2505 amd64-windows: 32 bytes allocated on stack by caller for integer
2506 parameter registers.
2507 * i386-tdep.h (struct gdbarch_tdep): Add new field
2508 integer_param_regs_saved_in_caller_frame.
2509 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2510 tdep->integer_param_regs_saved_in_caller_frame to 1.
2511 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2512 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2514 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2516 amd64-windows: memory args passed by pointer during function calls.
2517 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2518 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2519 where tdep->memory_args_by_pointer is non-zero.
2520 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2521 tdep->memory_args_by_pointer to 1.
2523 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2525 amd64-windows: Integer parameters in function calls.
2526 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2528 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2529 call_dummy_integer_regs, and classify.
2530 * amd64-tdep.h (amd64_classify): Add declaration.
2531 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2532 (amd64_reg_class): Delete, moved to i386-tdep.h.
2533 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2534 Replace call to amd64_classify by call to tdep->classify.
2535 (amd64_push_arguments): Get the list of registers to use for
2536 passing integer parameters from the gdbarch tdep structure,
2537 rather than using a hardcoded one. Replace calls to amd64_classify
2538 by calls to tdep->classify.
2539 (amd64_push_dummy_call): Get the register number used for
2540 the "hidden" argument from tdep->call_dummy_integer_regs.
2541 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2542 and tdep->call_dummy_integer_regs. Set tdep->classify.
2543 * amd64-windows-tdep.c: Add include of gdbtypes.h.
2544 (amd64_windows_dummy_call_integer_regs): New static global.
2545 (amd64_windows_classify): New function.
2546 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
2547 tdep->call_dummy_integer_regs and tdep->classify.
2549 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
2551 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
2552 for the new regcache. All callers updated.
2553 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
2554 (get_thread_arch_regcache): Do not set aspace here.
2555 * regcache.h (regcache_xmalloc): Update declaration.
2557 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
2558 regcache_xmalloc updated.
2560 2010-01-28 Joel Brobecker <brobecker@adacore.com>
2562 Another -Wunused-function error in procfs.c (sparc-solaris)
2563 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
2564 Only define if SYS_syssgi is defined.
2565 (remove_dbx_link_breakpoint): Delete declaration. Move up.
2566 (dbx_link_addr, insert_dbx_link_bpt_in_file)
2567 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
2570 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
2572 * windows-nat.c (windows_initialization_done): New variable.
2573 (get_windows_debug_event): Issue error when process dies before
2574 completely initializing.
2575 (do_initial_windows_stuff): Set flag to indicate when we are done with
2576 the initial steps of attaching to the child.
2578 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2580 * symtab.h (struct symbol <symtab>): New comment on NULL values.
2582 2010-01-27 Doug Evans <dje@google.com>
2584 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
2586 * breakpoint.c (bpstat_stop_status): Delete useless code.
2588 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2590 * printcmd.c (display_uses_solib_p): Remove variable section. Access
2591 objfile via SYMBOL_SYMTAB.
2593 2010-01-26 Tom Tromey <tromey@redhat.com>
2596 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
2597 coerce_array on result.
2599 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
2601 * cp-namespace.c (cp_lookup_symbol_namespace): Added
2602 search_parent argument.
2603 (cp_add_using): Initialize 'searched' field.
2604 (reset_directive_searched): New function.
2605 * cp-support.h: Add 'searched' field to using_direct struct.
2606 (cp_lookup_symbol_imports): Ditto.
2607 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
2608 Perform recursive search.
2609 Implement non parent search.
2610 * valops.c (value_maybe_namespace_elt): Updated.
2612 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
2615 * dwarf2read.c (read_lexical_block_scope): Create blocks for
2616 scopes which contain using directives even if they contain no
2618 * symtab.c (lookup_symbol_aux): Pass lowest level block to
2619 la_lookup_symbol_nonlocal.
2620 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
2621 cp_lookup_symbol_namespace.
2622 (cp_lookup_symbol_namespace): Perform an import lookup at every
2624 (cp_lookup_symbol_imports): New function.
2625 (cp_lookup_symbol_in_namespace): New function.
2627 2010-01-25 Tom Tromey <tromey@redhat.com>
2630 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
2633 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2635 * configure.ac: Only use host_os part when disabling TUI on osf.
2636 Use test to check variables, prefix strings with x.
2637 * configure: Regenerate.
2639 * solib-osf.c (osf_current_sos): Initialize tail.
2641 2010-01-25 gingold <gingold@adacore.com>
2643 * windows-nat.c (windows_continue): Use %x to print thread id.
2644 (get_windows_debug_event): Ditto.
2646 2010-01-22 Tom Tromey <tromey@redhat.com>
2649 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
2650 type and arguments. Use smash_to_methodptr_type.
2651 (read_structure_type): Call quirk_gcc_member_function_pointer
2653 * gdbtypes.h (smash_to_methodptr_type): Declare.
2654 * gdbtypes.c (smash_to_methodptr_type): New function.
2655 (lookup_methodptr_type): Use it.
2657 2010-01-21 Tom Tromey <tromey@redhat.com>
2660 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
2661 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
2662 * glibc-tdep.c (find_minsym_and_objfile): Remove.
2663 (glibc_skip_solib_resolver): Use
2664 lookup_minimal_symbol_and_objfile.
2666 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
2668 * inflow.c (check_syscall): Guard by #if clause for GO32 and
2671 2010-01-20 Tom Tromey <tromey@redhat.com>
2674 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
2675 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
2676 * dwarf2expr.c (new_dwarf_expr_context): Allocate
2677 dwarf_stack_values, not CORE_ADDRs.
2678 (execute_stack_op): Change DW_OP_div and comparison operators to
2679 use signed operands.
2681 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
2683 Per-inferior args and tty and environment.
2685 * infcmd.c (inferior_args): Rename to ...
2686 (inferior_args_scratch): ... this.
2687 (inferior_io_terminal): Rename to ...
2688 (inferior_io_terminal_scratch): ... this.
2689 (inferior_argc, inferior_argv): Remove.
2690 (set_inferior_io_terminal, get_inferior_io_terminal): Store
2691 inside current_inferior().
2692 (set_inferior_tty_command, show_inferior_tty_command): New.
2693 (get_inferior_args, set_inferior_args): Store inside
2695 (notice_args_set): Likewise and rename to...
2696 (set_args_command): ... this.
2697 (set_inferior_args_vector): Likewise.
2698 (notice_args_read): Rename to...
2699 (show_args_command): ...new.
2700 (tty_command): Remove.
2701 (run_command_1): Don't free old args, as they are freed by
2702 set_inferior_arg now.
2703 (run_no_args_command): Likewise.
2704 (inferior_environ): Remove.
2705 (run_command_1): Use environment of the current inferior.
2706 (environment_info, set_environment_command)
2707 (unset_environment_command, path_info, path_command): Likewise.
2708 (_initialize_infcmd): Adjust for function and variable renames.
2709 Do not init inferior_environ.
2710 * inferior.h (set_inferior_arg): Adjust prototype.
2711 (struct inferior): New fields args, argc, argv, terminal, environment.
2712 (inferior_environ): Remove declaration.
2713 * inferior.c (free_inferior): Free new fields.
2714 (add_inferior_silent): Initialize 'environment' field.
2715 * main.c (captured_main): Set arguments only after the initial
2716 inferior has been created. Set set_inferior_io_terminal,
2718 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
2720 (_initialize_mi_cmd_env): Adjust for disappearance of global
2722 * solib.c (solib_find): Use environment of the current inferior.
2724 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2726 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
2728 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
2730 2010-01-20 Joel Brobecker <brobecker@adacore.com>
2732 Get rid of ada-lang.c:function_name_from_pc.
2733 * ada-lang.c: Add "stack.h" #include.
2734 (function_name_from_pc): Delete.
2735 (is_known_support_routine): Replace call to function_name_from_pc
2736 by call to find_frame_funname.
2737 (ada_unhandled_exception_name_addr_from_raise): Likewise.
2739 2010-01-19 Tom Tromey <tromey@redhat.com>
2742 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
2745 2010-01-19 Tom Tromey <tromey@redhat.com>
2747 * top.c (stop_sig, float_handler, do_nothing): Remove.
2749 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2751 * breakpoint.c (watchpoint_check): Check the call
2752 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
2754 * config/djgpp/fnchange.lst: Add translations for
2755 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
2756 watchpoint-cond-gone-stripped.c.
2758 2010-01-19 Tom Tromey <tromey@redhat.com>
2761 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
2762 into parent scope, and enumerator into grandparent scope.
2764 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2766 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
2768 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2770 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
2771 i[34567]86-*-solaris2.1[0-9]*.
2772 * configure.tgt: Likewise.
2774 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2776 * NEWS: Document the source command enhancement allowing it
2777 to load Python scripts. Document the "set/show script-extension"
2780 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2782 Add -Wunused-function to compile flags.
2783 * configure.ac: Add -Wunused-function to build_warnings.
2784 * configure: Regenerate.
2786 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2788 "delete" ada-lex.c:input function, not used.
2789 * ada-lex.l: #define YY_NO_INPUT.
2791 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2793 Delete free_named_symtabs and associated cleanup.
2794 * symfile.h (free_named_symtabs): Delete declaration.
2795 * symfile.c: Remove some commented out code (clear_symtab_users_once).
2796 (cashier_psymtab): Comment function out.
2798 (free_named_symtabs): Delete.
2799 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
2800 * dbxread.c (end_psymtab): Likewise.
2801 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
2802 * exec.c (exec_close_1): Ditto.
2803 * xcoffread.c (xcoff_end_psymtab): Likewise.
2805 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2807 * stack.c (print_block_frame_labels): Comment function out.
2809 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2811 Delete unused or undefined functions.
2812 * breakpoint.c (ep_parse_optional_filename): Delete.
2813 * dcache.c (dcache_write_line): Remove declaration.
2814 * infrun.c (build_infrun): Remove declaration.
2815 * tracepoint.c (tracepoint_save_command): Remove declaration.
2816 * linux-nat.c (init_lwp_list): Delete. No longer used.
2817 * event-loop.c (check_async_signal_handlers): Delete declaration.
2818 * infrun.c (init_execution_control_state): Delete.
2819 (proceed): Update comment to avoid mentioning
2820 init_execution_control_state.
2821 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
2822 * ada-lang.c (ada_to_static_fixed_value): Delete.
2823 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
2824 * cp-namespace.c (cp_copy_usings): Delete.
2825 * xml-syscall.c (xml_number_of_syscalls): Delete.
2826 * progspace.c (find_program_space_by_num): Delete.
2827 * inflow.c (handle_sigio): Delete declaration.
2828 * hppa-tdep.c (hppa_alignof): Delete.
2829 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
2830 (mipsnbsd_core_osabi_sniffer): Delete.
2832 2010-01-18 Tom Tromey <tromey@redhat.com>
2835 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
2836 (CONST_CAST): New tokens.
2837 (exp): Add new productions.
2838 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
2840 (is_cast_operator): New function.
2841 (yylex): Handle cast operators specially.
2842 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
2843 UNOP_REINTERPRET_CAST>: New cases.
2844 * expprint.c (print_subexp_standard): Likewise.
2845 (op_name_standard): Likewise.
2846 (dump_subexp_body_standard): Likewise.
2847 * parse.c (operator_length_standard): Likewise.
2848 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
2849 UNOP_REINTERPRET_CAST.
2850 * gdbtypes.c (class_types_same_p): New function.
2851 (is_ancestor): Use it.
2852 (is_public_ancestor): New function.
2853 (is_unique_ancestor_worker): Likewise.
2854 (is_unique_ancestor): Likewise.
2855 * gdbtypes.h (class_types_same_p, is_public_ancestor)
2856 (is_unique_ancestor): Declare.
2857 * valops.c (value_reinterpret_cast): New function.
2858 (dynamic_cast_check_1): Likewise.
2859 (dynamic_cast_check_2): Likewise.
2860 (value_dynamic_cast): Likewise.
2861 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
2863 2010-01-18 Joel Brobecker <brobecker@adacore.com>
2865 Fix build failure when building without Python support.
2866 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
2869 2010-01-18 Joel Brobecker <brobecker@adacore.com>
2871 Use XVS field type instead of doing a parallel lookup.
2872 * ada-lang.c (ada_get_base_type): Follow the XVS field type
2873 if it is a reference type instead of doing a type lookup using
2876 2010-01-18 Joel Brobecker <brobecker@adacore.com>
2878 Trust PAD types instead of using PAD___XVS.
2879 * ada-lang.c (trust_pad_over_xvs): New static variable.
2880 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
2881 parallel XVS type, follow the XVS type instead of the PAD type.
2882 (unwrap_value): Make sure that there is no parallel XVE type
2883 before returning the value as is.
2884 (set_ada_list, show_ada_list): New static variables.
2885 (set_ada_command, show_ada_command): New functions.
2886 (_initialize_ada_language): Add new "set/show ada" prefix commands.
2887 Add new "set/show ada trust-PAD-over-XVS" setting.
2889 2010-01-18 Tom Tromey <tromey@redhat.com>
2890 Thiago Jung Bauermann <bauerman@br.ibm.com>
2892 Allow "source" to load python scripts.
2893 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
2894 * python/python.c (source_python_script): New function.
2895 * python/python.h (source_python_script): Add declaration.
2896 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
2897 (script_ext_off, script_ext_soft, script_ext_strict)
2898 (script_ext_enums, script_ext_mode): New static constants.
2899 (show_script_ext_mode, find_and_open_script): New functions.
2900 (source_script): Enhance to handle Python scripts.
2901 (init_cli_cmds): Add set/show script-extension commands.
2903 2010-01-16 Stan Shebs <stan@codesourcery.com>
2905 * tracepoint.h (struct trace_status): Use unsigned long long
2907 * tracepoint.c (trace_status_command): Fix printf directive.
2908 (trace_save_command): Check fwrite returns, fix printf directive.
2909 (trace_filename): New global.
2910 (tfile_open): Set it, check read returns.
2911 (tfile_close): Free trace_filename.
2912 (tfile_get_traceframe_address): Check read returns.
2913 (tfile_trace_find): Ditto.
2914 (tfile_fetch_registers): Ditto.
2915 (tfile_xfer_partial): Ditto.
2916 (tfile_get_trace_state_variable_value): Ditto.
2918 2010-01-15 Stan Shebs <stan@codesourcery.com>
2920 Add trace file support.
2921 * tracepoint.h (enum trace_stop_reason): New enum.
2922 (struct trace_status): New struct.
2923 (parse_trace_status): Declare.
2924 (struct uploaded_tp): Move here from remote.c,
2925 add fields for actions.
2926 (struct uploaded_tsv): New struct.
2927 * tracepoint.c (tfile_ops): New target vector.
2928 (trace_fd): New global.
2929 (tfile_open): New function.
2930 (tfile_close): New function.
2931 (tfile_files_info): New function.
2932 (tfile_get_trace_status): New function.
2933 (tfile_get_traceframe_address): New function.
2934 (tfile_trace_find): New function.
2935 (tfile_fetch_registers): New function.
2936 (tfile_xfer_partial): New function.
2937 (tfile_get_trace_state_variable_value): New function.
2938 (init_tfile_ops): New function.
2939 (_initialize_tracepoint): Call it, add tfile target.
2940 (trace_status): New global.
2941 (current_trace_status): New function.
2942 (trace_running_p): Remove, change all users to get from
2943 current_trace_status()->running.
2944 (get_trace_status): Remove.
2945 (trace_status_command): Call target_get_trace_status directly,
2946 report more detail including tracing stop reasons.
2947 (trace_find_command): Always allow tfind on a file.
2948 (trace_find_pc_command): Ditto.
2949 (trace_find_tracepoint_command): Ditto.
2950 (trace_find_line_command): Ditto.
2951 (trace_find_range_command): Ditto.
2952 (trace_find_outside_command): Ditto.
2953 (trace_frames_offset, cur_offset): Declare as off_t.
2954 (trace_regblock_size): Rename from reg_size, update users.
2955 (parse_trace_status): New function.
2956 (tfile_interp_line): New function.
2957 (disconnect_or_stop_tracing): Ensure current trace
2958 status before asking what to do.
2959 (stop_reason_names): New global.
2960 (trace_save_command): New command.
2961 (get_uploaded_tp): Move here from remote.c.
2962 (find_matching_tracepoint): Ditto.
2963 (merge_uploaded_tracepoints): New function.
2964 (parse_trace_status): Use stop_reason_names.
2965 (_initialize_tracepoint): Define tsave command.
2966 * target.h (target_ops): New fields to_save_trace_data,
2967 to_upload_tracepoints, to_upload_trace_state_variables,
2968 to_get_raw_trace_data, change to_get_trace_status
2969 to take a pointer to a status struct.
2970 (target_save_trace_data): New macro.
2971 (target_upload_tracepoints): New macro.
2972 (target_upload_trace_state_variables): New macro.
2973 (target_get_raw_trace_data): New macro.
2974 * target.c (update_current_target): Add new methods, change
2975 signature of to_get_trace_status.
2976 * remote.c (hex2bin): Make globally visible.
2978 (remote_download_trace_state_variable): Download name also.
2979 (remote_get_trace_status): Update parameter, use
2981 (remote_save_trace_data): New function.
2982 (remote_upload_tracepoints): New function.
2983 (remote_upload_trace_state_variables): New function.
2984 (remote_get_raw_trace_data): New function.
2985 (remote_start_remote): Use them.
2986 (_initialize_remote_ops): Add operations.
2987 * ax-gdb.c: Include breakpoint.h.
2988 * breakpoint.c (create_tracepoint_from_upload): Use
2989 break_command_really, return tracepoint, warn about unimplemented
2991 * NEWS: Mention trace file addition.
2993 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2995 Fix compilation warning on gcc-3.4.
2996 * exec.c (print_section_info): Move the `displacement' variable
2997 initialization to its declaration.
2999 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3001 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
3004 2010-01-15 Eric Botcazou <botcazou@adacore.com>
3006 "info tasks" broken by typedefs in ATCB type definitions.
3007 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
3008 ada_check_typedef before retrieving the length of the type for
3011 2010-01-15 Joel Brobecker <brobecker@adacore.com>
3013 Do not use name-based lookup for unconstrained packed arrays.
3014 * ada-lang.c (find_parallel_type_by_descriptive_type):
3015 Limit the fallback to name-based lookups to the case where
3016 the type is a constrained packed array.
3018 2010-01-15 Joel Brobecker <brobecker@adacore.com>
3020 Enhance gdb-gdb.py to handle main_type.type_specific.
3021 * gdb-gdb.py: Print the type-specific part of struct main_type.
3023 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3025 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
3026 * configure: Regenerate.
3027 * config.in: Regenerate.
3028 * utils.c: Include sys/resource.h.
3029 (dump_core, can_dump_core): New.
3030 (internal_vproblem): Update the comment. Check can_dump_core while
3031 setting dump_core_p. Replace two abort calls by dump_core calls.
3033 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3034 Eli Zaretskii <eliz@gnu.org>
3036 * NEWS: Document the PIE support.
3038 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3040 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
3041 (check_is_pie_binary, _initialize_linux_tdep): Remove.
3043 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3045 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
3046 Replace exec_entry_point call by bfd_get_start_address.
3048 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3050 Support Valgrind attachments broken by the PIE support.
3051 * auxv.c: Include gdbcore.h.
3052 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
3053 parameters ops, object and annex. Remove their assertions.
3054 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
3055 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
3056 (memory_xfer_auxv): ... here.
3057 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
3059 * procfs.c (procfs_xfer_partial): Likewise.
3060 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
3061 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
3062 (svr4_solib_create_inferior_hook): Conditionalize the
3063 svr4_relocate_main_executable call.
3065 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3067 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
3068 target_section. Find SECT in current_target_sections, gdb_assert it.
3069 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
3071 * symtab.c (lookup_objfile_from_block): Return the binary file instead
3072 of separate debug info file.
3074 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3076 Support PIEs with no symfile_objfile.
3077 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
3078 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
3080 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3082 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
3084 (svr4_static_exec_displacement): ... a new function.
3085 (svr4_exec_displacement): New function.
3086 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
3087 new_offsets using alloca now. Remove variable old_chain and changed.
3088 Call objfile_relocate unconditionally now.
3090 2010-01-14 Doug Evans <dje@google.com>
3092 * gdbtypes.c (arch_flags_type): Fix comment.
3093 * gdbtypes.h (arch_composite_type): Fix comment.
3095 2009-01-14 Tristan Gingold <gingold@adacore.com>
3097 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
3098 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
3099 to symbol_file_add_from_bfd. Add OSO as separate objfile.
3100 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
3101 macho_add_oso_symfile.
3102 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
3104 2010-01-14 Joel Brobecker <brobecker@adacore.com>
3106 Tru64: Dead threads are never deleted.
3107 * dec-thread.c (dec_thread_ptid_is_alive): New function.
3108 (dec_thread_count_gdb_threads): Fix counter increment.
3109 (dec_thread_add_gdb_thread): Fix *listp increment.
3110 (resync_thread_list): Fix bug in deletion of dead threads that
3111 caused all threads to be deleted, instead of just the dead ones.
3113 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
3117 * python/python-internal.h: Add lazy_string_object_type
3119 (create_lazy_string_object, gdbpy_initialize_lazy_string)
3120 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
3121 * python/py-value.c (valpy_lazy_string): New function.
3122 (convert_value_from_python): Add lazy string conversion.
3123 * python/py-prettyprint.c (pretty_print_one_value): Check if
3124 return is also a lazy string.
3125 (print_string_repr): Add lazy string printing branch.
3126 (print_children): Likewise.
3127 * python/py-lazy-string.c: New file. Implement lazy strings.
3128 * python/python.c (_initialize_python): Call
3129 gdbpy_initialize_lazy_string.
3130 * varobj.c (value_get_print_value): Add lazy string printing
3131 branch. Account for encoding.
3132 * c-lang.c (c_printstr): Account for new encoding argument. If
3133 encoding is NULL, find encoding suited for type, otherwise use
3135 * language.h (language_defn): Add encoding argument.
3136 (LA_PRINT_STRING): Likewise.
3137 * language.c (unk_lang_printstr): Update to reflect new encoding
3138 argument to language_defn.
3139 * ada-lang.h (ada_printstr): Likewise.
3140 * c-lang.h (c_printstr): Likewise.
3141 * p-lang.h (pascal_printstr);
3142 * f-lang.c (f_printstr): Likewise.
3143 * m2-lang.c (m2_printstr): Likewise.
3144 * objc-lang.c (objc_printstr): Likewise.
3145 * p-lang.c (pascal_printstr): Likewise.
3146 * scm-lang.c (scm_printstr): Likewise.
3147 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
3149 * ada-valprint.c (ada_printstr): Likewise.
3150 * f-valprint.c (f_val_print): Likewise
3151 * m2-valprint.c (m2_val_print): Likewise.
3152 * p-valprint.c (pascal_val_print): Likewise.
3153 * expprint.c (print_subexp_standard): Likewise.
3154 * valprint.c (val_print_string): Likewise.
3155 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
3156 (SUBDIR_PYTHON_SRCS): Likewise.
3157 (py-lazy-string.o): New rule.
3159 2010-01-13 Doug Evans <dje@google.com>
3161 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
3162 uninitialized" warning from gcc on local `tree'.
3164 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
3166 Implement core awareness.
3168 * bcache.c (compare_ints): Remove
3169 (print_percentage): Use compare_positive_ints.
3170 * defs.h (compare_positive_ints): Declare.
3171 * linux-nat.h (struct lin_lwp): New field core.
3172 (linux_nat_core_of_thread_1): Declare.
3173 * linux-nat.c (add_lwp): Init the 'core' field.
3174 (linux_nat_wait_1): Record the core.
3175 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
3176 (linux_nat_add_target): Register the above.
3177 * linux-thread-db.c (update_thread_core): New.
3178 (thread_db_find_new_threads): Update core information for
3180 * remote.c (struct private_thread_info): New.
3181 (free_private_thread_info, demand_private_info): New.
3182 (PACKET_qXfer_threads, use_osdata_threads): New.
3183 (struct thread_item, threads_parsing_context
3184 (start_thread, end_thread, thread_attributes)
3185 (thread_children, threads_children, threads_elements): New.
3186 (remote_threads_info): Try qXfer:threads before anything
3188 (remote_protocol_packets): Register qXfer:threads.
3189 (remote_open_1): Init use_osdata_threads.
3190 (struct stop_reply): New field 'core'.
3191 (remote_parse_stop_reply): Parse core number.
3192 (process_stop_reply): Record core number.
3193 (remote_xfer_partial): Handle qXfer:threads.
3194 (remote_core_of_thread): New.
3195 (init_remote_ops): Register remote_core_of_thread.
3196 (_initialize_remote): Register qXfer:read.
3197 * target.c (target_core_of_thread): New
3198 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
3199 (struct target_ops): New field to_core_of_threads.
3200 (target_core_of_thread): Declare.
3201 * gdbthread.h (struct thread_info): New field private_dtor.
3202 * thread.c (print_thread_info): Report the core.
3203 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
3204 * utils.c (compare_positive_ints): New.
3205 * features/threads.dtd: New.
3206 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
3207 * mi/mi-main.c (struct collect_cores_data, collect_cores)
3208 (do_nothing, free_vector_of_osdata_items)
3209 (splay_tree_int_comparator, free_splay_tree): New.
3210 (print_one_inferior_data): Implemented printing of selected
3211 inferiors. Collect and print cores.
3212 (output_cores): New.
3213 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
3214 thread groups together with --available.
3216 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3218 * configure: Regenerate (for _STRUCTURED_PROC).
3220 2010-01-12 Joel Brobecker <brobecker@adacore.com>
3222 Delete dead function.
3223 * ada-lang.c (extract_string): Delete. No longer used.
3225 2010-01-12 Joel Brobecker <brobecker@adacore.com>
3227 Fix -Wunused warning in dec-thread.c.
3228 * dec-thread.c (dec_thread_count_gdb_threads)
3229 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
3231 2010-01-12 Joel Brobecker <brobecker@adacore.com>
3233 * ada-valprint.c (ada_print_floating): Remove trailing space.
3235 2010-01-12 Joel Brobecker <brobecker@adacore.com>
3237 Add support for DW_AT_GNAT_descriptive_type.
3238 * gdbtypes.h (enum type_specific_kind): New enum.
3239 (struct main_type) [type_specific_field]: New component.
3240 [type_specific]: Add new component "gnat_stuff".
3241 (struct gnat_aux_type): New type.
3242 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
3243 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
3244 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
3245 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
3246 (TYPE_SPECIFIC_FIELD): New macros.
3247 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
3248 type does not hold any cplus-specific data.
3249 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
3250 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
3251 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
3252 cplus-specific data.
3253 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
3254 Set new component TYPE_SPECIFIC_FIELD (type).
3255 (gnat_aux_default): New constant.
3256 (allocate_gnat_aux_type): New function.
3257 (init_type): Add initialization the type-specific stuff for
3258 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
3259 (print_gnat_stuff): New function.
3260 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
3261 specific data. Adjust code that prints the contents of the
3262 type-specific union using the TYPE_SPECIFIC_FIELD value.
3263 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
3264 the type cplus stuff for Ada types.
3265 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
3266 Error out if these routines are called with an Ada type.
3267 (read_structure_type, read_array_type, read_subrange_type):
3268 Add call to set_descriptive_type.
3269 (set_die_type): Initialize the gnat-specific data if necessary.
3270 (need_gnat_info, die_descriptive_type, set_descriptive_type):
3272 * ada-lang.c (decode_constrained_packed_array_type): Use
3273 decode_constrained_packed_array_type instead of doing a standard
3274 lookup to locate a parallel type.
3275 (find_parallel_type_by_descriptive_type): New function.
3276 (ada_find_parallel_type_with_name): New function.
3277 (ada_find_parallel_type): Reimplement using
3278 ada_find_parallel_type_with_name.
3279 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
3280 to check if type has a cplus stuff.
3281 * linespec.c (total_number_of_methods): Likewise.
3282 * mdebugread.c (new_type): Likewise.
3284 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3286 * NEWS: Document the 0b binary number prefix parsing.
3288 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3290 * objfiles.c (objfile_relocate1): Change the return type to int.
3291 Describe the new return value. Return non-zero if data changed.
3292 (objfile_relocate): New variable changed. Set it. Call
3293 breakpoint_re_set depending on CHANGED.
3295 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3297 Implement binary numbers parsing.
3298 * c-exp.y (parse_number): New case 'b' and 'B'.
3300 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3301 Tristan Gingold <gingold@adacore.com>
3303 * solib.c (info_sharedlibrary_command): Replace
3304 objfile_has_partial_symbols and objfile_has_full_symbols calls by
3305 objfile_has_symbols.
3307 2010-01-10 Joel Brobecker <brobecker@adacore.com>
3309 * NEWS: Document the improvements made to the mips-irix port.
3311 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3313 Fix the documentation of valprint.c:value_print.
3314 * valprint.c (value_print): Update the function description to
3315 mention that the syntax of the output follows the current_language,
3318 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3320 Fix displacement of separate debug info files.
3321 * objfiles.c (objfile_relocate): Rename to ...
3322 (objfile_relocate1): ... here and make it static. Extend the comment.
3323 (objfile_relocate): New function.
3324 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
3325 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
3326 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
3327 allocated using alloca.
3328 * symfile.c (copy_section_addr_info): Remove.
3329 (build_section_addr_info_from_objfile): Make it global. New variables
3330 addr_bit and mask, use them.
3331 * symfile.h (build_section_addr_info_from_objfile): New prototype.
3332 (copy_section_addr_info): Remove.
3334 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3336 Signal unwinder for mips-irix N32.
3337 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
3339 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
3340 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
3341 (SIGCONTEXT_LO_OFF): New macros.
3342 (mips_irix_n32_tramp_frame_init): New function.
3343 (mips_irix_n32_tramp_frame): New static constant.
3344 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
3346 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3348 Breakpoint in shared library does not work on mips-irix.
3349 * procfs.c: #include "observer.h".
3350 (procfs_inferior_created): New function, moving here the code
3351 which unsets the syssgi syscall-exit notifications.
3352 (procfs_create_inferior): Remove the code which unsets the syssgi
3353 syscall-exit notifications. It is too early to do this here.
3354 (_initialize_procfs): Attach the procfs_inferior_created observer.
3356 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3358 Wrong return convention for arrays (mips-irix).
3359 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
3360 128 bits or smaller are returned the same way as structs
3361 and unions of the the same size.
3363 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3365 Cannot set the PC on mips-irix.
3366 * irix5-nat.c (fill_gregset): Check regno against the raw PC
3367 register number, no the cooked one.
3369 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3371 Error while loading core file on mips-irix.
3372 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
3373 if debugging from a core file.
3375 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3377 GDB hangs when attaching to process on mips-irix.
3378 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
3379 attaching to a process.
3381 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3383 Use the correct breakpoint instruction on mips-irix.
3384 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
3385 containing the correct breakpoint instruction to use on mips-irix.
3386 Use it when the osabi is GDB_OSABI_IRIX.
3388 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3390 -Wunused warning in procfs.c (mips-irix only).
3391 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
3392 throughout instead of using praddset and prdelset respectively.
3394 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3396 GDB crash while stepping into function.
3397 * infrun.c (handle_inferior_event): Refetch the current frame
3398 after handling what.main_action, in case that pointer became
3401 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3403 Fix build failure of solaris-hosted cross debuggers.
3404 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
3406 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
3408 Fix build failure on sparc-solaris.
3409 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
3411 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3413 Move some symfile code into subroutines.
3414 * symfile.h (relative_addr_info_to_section_offsets)
3415 (addr_info_make_relative): New prototypes.
3416 * symfile.c (default_symfile_offsets): Move a part to ...
3417 (relative_addr_info_to_section_offsets): ... this new function.
3418 (default_symfile_offsets): Call it.
3419 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
3421 (addr_info_make_relative): ... this new function.
3423 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3425 Add from_tty to solib_create_inferior_hook.
3426 * infcmd.c (post_create_inferior): Move solib_add after
3427 solib_create_inferior_hook. Pass from_tty to
3428 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
3429 0 from_tty and comment why.
3430 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
3431 * linux-nat.c (linux_child_follow_fork): Likewise.
3432 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
3433 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
3435 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
3436 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3437 * solib-null.c (null_solib_create_inferior_hook): Likewise.
3438 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3439 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
3440 * solib-som.c (som_solib_create_inferior_hook): Likewise.
3441 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
3442 Pass it to svr4_so_ops.solib_create_inferior_hook.
3443 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
3445 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
3447 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
3449 * solib-target.c (solib_target_solib_create_inferior_hook): New
3451 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
3452 it to ops->solib_create_inferior_hook.
3453 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
3454 Move solib_add after solib_create_inferior_hook, call it now with
3455 from_tty as 0. New comment there.
3456 * solib.h (solib_create_inferior_hook): New parameter from_tty.
3457 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
3460 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
3463 * infrun.c (handle_inferior_event): Use get_thread_regcache
3464 with events ptid, not get_current_regcache.
3466 2009-01-08 Joel Brobecker <brobecker@adacore.com>
3468 GDB crash with empty executable name (MinGW).
3469 * source.c (openp): Add assert that parameter string is not NULL.
3470 if parameter string is an empty string, then return with a failure
3473 2009-01-08 Joel Brobecker <brobecker@adacore.com>
3475 Get rid of support for VAX Floats.
3476 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
3477 (ada_vax_float_print_function): Delete.
3478 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
3479 (ada_vax_float_print_function): Delete.
3480 * ada-typeprint.c (print_vax_floating_point_type): Delete.
3481 (ada_print_type): Remove support for VAX floats.
3482 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
3484 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3486 * stabsread.c (read_args): Handle zero arguments.
3488 2009-01-08 Joel Brobecker <brobecker@adacore.com>
3490 Cannot find in-tree libiconv.a after reconfigure.
3491 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
3492 that we can use, then cache the path to this archive.
3493 * configure: Regenerate.
3495 2010-01-07 Stan Shebs <stan@codesourcery.com>
3497 Make tracepoint operations go through target vector.
3498 * target.h (enum trace_find_type): New enum.
3499 (struct target_ops): New fields to_trace_init,
3500 to_download_tracepoint, to_download_trace_state_variable,
3501 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
3502 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
3503 to_set_disconnected_tracing.
3504 (target_trace_init): New macro.
3505 (target_download_tracepoint): New macro.
3506 (target_download_trace_state_variable): New macro.
3507 (target_trace_start): New macro.
3508 (target_trace_set_readonly_regions): New macro.
3509 (target_get_trace_status): New macro.
3510 (target_trace_stop): New macro.
3511 (target_trace_find): New macro.
3512 (target_get_trace_state_variable_value): New macro.
3513 (target_set_disconnected_tracing): New macro.
3514 * target.c (update_current_target): Inherit and set defaults for
3515 tracepoint operations.
3516 * tracepoint.c (default_collect): Make globally visible.
3517 (target_is_remote): Remove, along with all calls.
3518 (tvariables_info): Call target_get_trace_state_variable_value.
3519 (remote_set_transparent_ranges): Remove.
3520 (trace_start_command): Call target_trace_init,
3521 target_download_tracepoint, etc.
3522 (download_tracepoint): Remove.
3523 (trace_stop_command): Simplify.
3524 (stop_tracing): Call target_trace_stop.
3525 (get_trace_status): Call target_get_trace_status.
3526 (trace_status_command): Add case for targets that cannot trace.
3527 (finish_tfind_command): Change to take numerical arguments, call
3529 (trace_find_command): Update call to finish_tfind_command.
3530 (trace_find_pc_command): Ditto.
3531 (trace_find_tracepoint_command): Ditto.
3532 (trace_find_line_command): Ditto.
3533 (trace_find_range_command): Ditto.
3534 (trace_find_outside_command): Ditto.
3535 (set_disconnected_tracing_value): Call
3536 target_set_disconnected_tracing.
3537 * remote.c: Add protocol encoding bits from tracepoint.c.
3538 (trace_error): Move from tracepoint.c.
3539 (remote_get_noisy_reply): Ditto.
3540 (free_actions_list_cleanup_wrapper): Ditto.
3541 (free_actions_list): Ditto.
3542 (remote_trace_init): New function.
3543 (remote_download_tracepoint): New function.
3544 (remote_download_trace_state_variable): New function.
3545 (remote_trace_set_readonly_regions): New function.
3546 (remote_trace_start): New function.
3547 (remote_get_trace_status): New function.
3548 (remote_trace_stop): New function.
3549 (remote_trace_find): New function.
3550 (remote_download_trace_state_variable): New function.
3551 (remote_set_disconnected_tracing): New function.
3552 (init_remote_ops): Add tracepoint operations.
3554 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
3556 2010-01-07 Tristan Gingold <gingold@adacore.com>
3558 * symfile.c (build_section_addr_info_from_objfile): New function.
3559 (symbol_file_add_separate): Don't use offsets from objfile but
3562 2010-01-06 Stan Shebs <stan@codesourcery.com>
3564 Support disconnected tracing.
3565 * infcmd.c (detach_command): Ask whether to stop tracing.
3566 * cli/cli-cmds.c (quit_command): Ditto.
3567 * breakpoint.h (struct breakpoint): New field number_on_target.
3568 * breakpoint.c (create_tracepoint_from_upload): New function.
3569 (get_tracepoint_by_number_on_target): New function.
3570 * remote.c (struct remote): New field disconnected_tracing.
3571 (remote_disconnected_tracing_feature): New function.
3572 (remote_protocol_features): Add DisconnectedTracing.
3573 (struct uploaded_tp): New struct.
3574 (uploaded_tps): New global.
3575 (get_uploaded_tp): New function.
3576 (find_matching_tracepoint): New function.
3577 (remote_get_tracing_state): New function.
3578 (remote_start_remote): Call it.
3579 * tracepoint.c (disconnected_tracing): New global.
3580 (trace_start_command): Initialize number_on_target.
3581 (stop_tracing): New function, split out from...
3582 (trace_stop_command): Call stop_tracing.
3583 (get_trace_status): New function, split out from...
3584 (trace_status_command): Call get_trace_status, add info on
3585 disconnection behavior.
3586 (disconnect_or_stop_tracing): New function.
3587 (finish_tfind_command): Translate from number on target.
3588 (trace_find_tracepoint_command): Translate to number on target.
3589 (send_disconnected_tracing_value): New function.
3590 (set_disconnected_tracing): New function.
3591 (_initialize_tracepoint): Add disconnected-tracing variable.
3592 * NEWS: Mention disconnected tracing.
3594 2010-01-06 Tristan Gingold <gingold@adacore.com>
3596 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
3597 parameter to main_objfile. Iterate on all separate debug objfiles.
3598 * symfile.h (symbol_file_add_separate)
3599 (find_separate_debug_file_by_debuglink): Remove parameter names.
3600 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
3601 (reread_symbols): Use free_objfile_separate_debug.
3602 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
3604 (objfile_separate_debug_iterate, add_separate_debug_objfile)
3605 (free_objfile_separate_debug): New prototypes.
3606 * objfiles.c (objfile_separate_debug_iterate): New function.
3607 (add_separate_debug_objfile, free_objfile_separate_debug): New
3609 (free_objfile): Use free_objfile_separate_debug. Adjust for
3610 multiple separate debug objfile.
3611 (objfile_has_symbols): Adjust comment. Iterate on all separate
3613 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
3615 (lookup_minimal_symbol_text): Ditto.
3616 (lookup_minimal_symbol_by_pc_name): Ditto.
3617 (lookup_minimal_symbol_solib_trampoline): Ditto.
3618 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
3621 2010-01-05 Stan Shebs <stan@codesourcery.com>
3623 Add fast tracepoints.
3624 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
3625 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
3626 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
3627 * breakpoint.c (tracepoint_type): New function.
3628 (ALL_TRACEPOINTS): Use it.
3629 (should_be_inserted): Ditto.
3630 (bpstat_check_location): Ditto.
3631 (print_one_breakpoint_location): Ditto.
3632 (user_settable_breakpoint): Ditto.
3633 (set_breakpoint_location_function): Ditto.
3634 (disable_breakpoints_in_shlibs): Ditto.
3635 (delete_trace_command): Ditto.
3636 (print_it_typical): Add bp_fast_tracepoint case.
3637 (bpstat_what): Ditto.
3638 (print_one_breakpoint_location): Ditto.
3639 (allocate_bp_location): Ditto.
3641 (breakpoint_re_set_one): Ditto.
3642 (disable_command): Ditto.
3643 (enable_command): Ditto.
3644 (check_fast_tracepoint_sals): New function.
3645 (break_command_really): Call it.
3646 (ftrace_command): New function.
3647 (_initialize_breakpoint): Add ftrace command.
3648 * gdbarch.sh (fast_tracepoint_valid_at): New.
3649 * gdbarch.h, gdbarch.c: Regenerate.
3650 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
3651 (i386_gdbarch_init): Use it.
3652 * remote.c (struct remote_state): New field fast_tracepoints.
3653 (PACKET_FastTracepoints): New packet config type.
3654 (remote_fast_tracepoint_feature): New function.
3655 (remote_protocol_features): Add FastTracepoints.
3656 (remote_supports_fast_tracepoints): New function.
3657 (_initialize_remote): Add FastTracepoints.
3658 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
3659 * NEWS: Mention fast tracepoints.
3661 2010-01-06 Joel Brobecker <brobecker@adacore.com>
3663 * gdb-gdb.py: New file.
3665 2010-01-05 Michael Snyder <msnyder@vmware.com>
3667 * infrun.c (handle_inferior_event): Fix typo in comment.
3669 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3671 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
3673 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3675 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
3677 (s390-linux32-expedite): Define.
3678 (s390-linux64-expedite): Define.
3679 (s390x-linux64-expedite): Define.
3680 * features/s390-acr.xml: New file.
3681 * features/s390-fpr.xml: New file.
3682 * features/s390-core32.xml: New file.
3683 * features/s390-core64.xml: New file.
3684 * features/s390x-core64.xml: New file.
3685 * features/s390-linux32.xml: New file.
3686 * features/s390-linux64.xml: New file.
3687 * features/s390x-linux64.xml: New file.
3688 * features/s390-linux32.c: New generated file.
3689 * features/s390-linux64.c: New generated file.
3690 * features/s390x-linux64.c: New generated file.
3692 * regformats/s390-linux32.dat: New generated file.
3693 * regformats/s390-linux64.dat: New generated file.
3694 * regformats/s390x-linux64.dat: New generated file.
3695 * regformats/reg-s390.dat: Remove.
3696 * regformats/reg-s390x.dat: Remove.
3698 * s390-nat.c: Include "auxv.h" and <elf.h>.
3699 (HWCAP_S390_HIGH_GPRS): Define if undefined.
3700 (s390_target_wordsize): New function.
3701 (s390_auxv_parse): Likewise.
3702 (s390_get_hwcap): Likewise.
3703 (s390_read_description): Likewise.
3704 (_initialize_s390_nat): Install s390_auxv_parse and
3705 s390_read_description.
3707 * s390-tdep.c: Include "features/s390-linux32.c",
3708 "features/s390-linux64.c", and "features/s390x-linux64.c".
3709 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
3710 (s390_register_call_saved): New function.
3711 (s390_register_name): Remove.
3712 (s390_register_type): Remove.
3713 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
3714 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
3715 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
3716 (s390_pseudo_register_name): New function.
3717 (s390_pseudo_register_type): New function.
3718 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
3719 Handle full GPR pesudos and varying pseudo register numbers.
3720 (s390_pseudo_register_write): Likewise
3721 (s390x_pseudo_register_read): Remove.
3722 (s390x_pseudo_register_write): Likewise.
3723 (s390_register_group): Remove.
3724 (s390_pseudo_register_group): New function.
3725 (s390_regmap_gregset): Add GPR upper halves.
3726 (s390x_regmap_gregset): Likewise.
3727 (s390_regmap_fpregset): Likewise.
3728 (s390_regmap_upper): New global variable.
3729 (s390_upper_regset): New global variable.
3730 (s390_upper_regset_sections): New global variable.
3731 (s390_regset_from_core_section): Handle GPR upper halves.
3732 (s390_core_read_description): New function.
3733 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
3734 register information. Handle varying pseudo register numbers.
3735 (s390_backchain_frame_unwind_cache): Likewise.
3736 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
3737 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
3738 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
3739 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
3740 Handle varying pseudo register numbers.
3741 (s390_unwind_pc): Handle varying pseudo register numbers.
3742 (s390_dwarf2_prev_register): New function.
3743 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
3744 register information. Handle varying pseudo register numbers.
3745 Install s390_dwarf2_prev_register to unwind full GPRs.
3746 (s390_gdbarch_init): Handle target descriptions. Assign varying
3747 pseudo register numbers. Install s390_adjust_frame_regnum.
3748 (_initialize_s390_tdep): Initialize target descriptions.
3750 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
3751 (S390_NUM_REGS): Redefine to include upper half registers.
3752 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
3753 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
3754 (tdesc_s390_linux32): Add declaration.
3755 (tdesc_s390_linux64): Likewise.
3756 (tdesc_s390x_linux64): Likewise.
3758 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3760 * regset.h (struct core_regset_section): Add HUMAN_NAME.
3761 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
3762 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3763 (ppc_linux_vmx_regset_sections): Likewise.
3764 (ppc_linux_fp_regset_sections): Likewise.
3766 * corelow.c (get_core_register_section): Constify arguments.
3767 (get_core_registers): Use gdbarch_core_regset_sections instead
3768 of hard-coded platform-specific register section names.
3770 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3772 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
3773 a register, assume the least-significant part is used.
3774 (write_pieced_value): Likewise.
3776 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3778 * printcmd.c: Include "arch-utils.h".
3779 (do_one_display): Re-parse expression if current architecture changed.
3781 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3782 Joel Brobecker <brobecker@adacore.com>
3784 * gdbtypes.c (check_typedef): New comment on type length.
3785 * value.c (allocate_value_lazy): Remove the unused atype variable. New
3786 comment on type length.
3787 (value_primitive_field): Keep the original TYPE value, new comment.
3789 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3791 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
3792 p_start. Change != comparisons to > and < comparisons.
3794 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3796 * cli/cli-script.c (process_next_line): Check P2 overrun.
3798 2009-01-01 Joel Brobecker <brobecker@adacore.com>
3800 Update the copyright hearder to add year 2010 for most GDB files.
3802 2009-01-01 Joel Brobecker <brobecker@adacore.com>
3804 Fix build failure in inf-ptrace.c.
3805 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
3807 2010-01-01 Joel Brobecker <brobecker@adacore.com>
3809 * top.c (print_gdb_version): Update copyright year.
3811 2010-01-01 Joel Brobecker <brobecker@adacore.com>
3813 Fix break *FUN'address thread NUM.
3814 * ada-lex.l (task): Expand rule to also match the thread keyword.
3816 2010-01-01 Joel Brobecker <brobecker@adacore.com>
3818 Fix break *FUN'address task NUM.
3819 * ada-lex.l (task): New rule.
3820 * ada-lang.c (valid_task_id): Make sure the Ada task list has
3821 been built before using it.
3823 For older changes see ChangeLog-2009.
3829 version-control: never