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