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