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