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