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