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