1 2010-03-18 Pedro Alves <pedro@codesourcery.com>
3 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
4 a valid selected thread, and that it is not running.
5 (advance_command): Ditto.
6 (finish_command): Ditto.
8 2010-03-17 Stan Shebs <stan@codesourcery.com>
10 * ax-gdb.c (require_rvalue): Disallow non-scalars.
12 * infcall.c: Include tracepoint.h.
13 (call_function_by_hand): Disallow calls in tfind mode.
14 * infcmd.c: Include tracepoint.h.
15 (ensure_not_tfind_mode): New function.
16 (continue_1): Call it.
18 (jump_command): Ditto.
19 (signal_command): Ditto.
20 (advance_command): Ditto.
21 (until_command): Ditto.
22 (finish_command): Ditto.
23 * tracepoint.h (disconnect_or_stop_tracing): Declare.
25 * ax-gdb.h (struct axs_value): New field optimized_out.
26 (gen_trace_for_var): Add gdbarch argument.
27 * ax-gdb.c (gen_trace_static_fields): New function.
28 (gen_traced_pop): Call it, add gdbarch argument.
29 (gen_trace_for_expr): Update call to it.
30 (gen_trace_for_var): Ditto, and report optimized-out variables.
31 (gen_struct_ref_recursive): Check for optimized-out value.
32 (gen_struct_elt_for_reference): Ditto.
33 (gen_static_field): Pass gdbarch instead of expression, assume
34 optimization if field not found.
35 (gen_var_ref): Set the optimized_out flag.
36 (gen_expr): Error on optimized-out variable.
37 * tracepoint.c (collect_symbol): Handle struct-valued vars as
38 expressions, skip optimized-out variables with computed locations.
39 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
40 erroring out if location expression missing.
41 (loclist_tracepoint_var_ref): Don't error out here.
43 2010-03-17 Tom Tromey <tromey@redhat.com>
45 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
46 DWARF data is available.
48 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
50 * symfile.c (generic_load): Reset breakpoints after loading.
52 2010-03-17 Tom Tromey <tromey@redhat.com>
54 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
56 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
58 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
59 create_breakpoint call, adjust the parameters.
61 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
62 Chandru <chandru@in.ibm.com>
64 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
65 * valarith.c (value_subscripted_rvalue): Suppress error if
66 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
68 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
70 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
72 2010-03-16 Joel Brobecker <brobecker@adacore.com>
74 * ada-tasks.c (task_command_1): Check that the task ptid is valid
75 before doing the associated thread switch.
77 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
79 * MAINTAINERS: Update my email address.
81 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
83 Simplify MI breakpoint setting.
85 * breakpoint.c (break_command_really): Make nonstatic and
87 (create_breakpoint): ...this. Rename prior function by this name
89 (create_breakpoint_sal): ...this.
90 (create_breakpoints): Rename to...
91 (create_breakpoints_sal): ...this.
92 (set_breakpoint): Remove.
93 * breakpoint.h: Adjust to above changes.
94 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
96 2010-03-15 Stan Shebs <stan@codesourcery.com>
98 * ax-gdb.c: Include cp-support.h.
100 (gen_primitive_field): New function.
101 (gen_struct_ref_recursive): New function.
102 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
104 (gen_static_field): New function.
105 (gen_struct_elt_for_reference): New.
106 (gen_namespace_elt): New.
107 (gen_maybe_namespace_elt): New.
108 (gen_aggregate_elt_ref): New.
109 (gen_expr): Add OP_SCOPE, display opcode name in error message.
111 2010-03-15 Tom Tromey <tromey@redhat.com>
113 * dwarf2read.c (die_needs_namespace): Also return 0 for
116 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
119 * cp-support.h: Added char *declaration element to using_direct
121 (cp_add_using): Added char *declaration argument.
122 (cp_add_using_directive): Ditto.
123 (cp_lookup_symbol_imports): made extern.
124 * cp-namespace.c: Updated with the above changes.
125 * dwarf2read.c (read_import_statement): Ditto.
126 (read_namespace): Ditto.
127 (read_import_statement): Support import declarations.
128 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
130 Added support for 'declaration_only' search.
131 (cp_lookup_symbol_namespace): Attempt to search for the name as
132 is before consideration of imports.
133 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
134 search at every block level search.
135 Now takes language argument.
136 (lookup_symbol_aux): Updated.
138 2010-03-15 Tom Tromey <tromey@redhat.com>
140 * c-exp.y (name_not_typename): Add 'operator' clause.
142 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
144 * configure.ac: Exit if ${gdb_target_obs}" is not set.
145 * configure: Regenerate.
147 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
149 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
150 and ".sdynbss". Update the comment.
152 2010-03-15 Jie Zhang <jie@codesourcery.com>
154 * MAINTAINERS: Update my email address.
156 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
158 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
160 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
162 * charset.c [USE_WIN32API]: Include <windows.h>.
163 (_initialize_charset): Correct type of w32_host_default_charset.
165 2010-03-14 Pedro Alves <pedro@codesourcery.com>
167 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
169 2010-03-12 Tom Tromey <tromey@redhat.com>
172 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
173 in a lexical block does not need a namespace.
174 (new_symbol) <DW_TAG_variable>: Put extern variables on
175 list_in_scope in all cases.
177 2010-03-12 Stan Shebs <stan@codesourcery.com>
179 * ax-gdb.c (gen_expr): Add shift expressions.
180 (gen_expr_binop_rest): Ditto.
182 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
184 * buildsym.c (finish_block): Reset using_directives pointer
185 after block initialization.
187 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
189 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
190 * i386-tdep.c (i386_word_names): Likewise.
192 2010-03-12 Pedro Alves <pedro@codesourcery.com>
194 * target.c (memory_xfer_partial): Don't use the stack cache if
195 inspecting trace frames.
196 * tracepoint.c (finish_tfind_command): Invalidate the target
199 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
201 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
202 for the PIC displacement, print also the displacement value.
203 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
205 2010-03-10 Kevin Buettner <kevinb@redhat.com>
207 * remote-mips.c (close_ports, mips_initialize_cleanups)
208 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
209 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
210 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
211 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
212 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
213 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
214 comments describing each of these functions.
215 (mips_enter_debug, mips_exit_debug, common_open)
216 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
217 blank line after the comment describing the function.
219 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
221 * solib-svr4.c (svr4_exec_displacement): Return now success, new
222 parameter displacementp. Update comment.
223 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
224 element exists. Return if svr4_exec_displacement was not successful.
227 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
228 Daniel Jacobowitz <dan@codesourcery.com>
230 * solib-svr4.c (read_program_header): Support type == -1 to read
232 (read_program_headers_from_bfd): New function.
233 (svr4_static_exec_displacement): Remove and move the comment ...
234 (svr4_exec_displacement): ... here. Remove variable found. New
235 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
236 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
237 targets using read_program_headers_from_bfd. Remove the call of
238 svr4_static_exec_displacement.
240 2010-03-10 Tom Tromey <tromey@redhat.com>
242 * dwarf2read.c (struct pubnames_header): Remove.
243 (_PUBNAMES_HEADER): Remove.
244 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
245 (struct aranges_header): Remove.
246 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
247 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
248 (PUBNAMES_SECTION): Remove.
249 (ARANGES_SECTION): Remove.
250 (dwarf2_locate_sections): Don't handle pubnames or aranges.
251 (dwarf2_build_psymtabs): Remove dead code.
252 (dwarf2_build_psymtabs_easy): Remove.
254 2010-03-10 Tom Tromey <tromey@redhat.com>
256 * elfread.c (elf_symfile_read): Don't call
257 dwarf2_build_frame_info.
258 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
259 (struct dwarf2_per_objfile) <objfile>: New field.
260 (dwarf2_has_info): Now idempotent. Set objfile field.
261 (dwarf2_read_section): Check and set readin field. Call
263 (dwarf2_build_psymtabs): Don't read all sections.
264 (read_type_comp_unit_head): Read types section.
265 (create_debug_types_hash_table): Likewise.
266 (init_cu_die_reader): Add asserts.
267 (process_type_comp_unit): Add assert.
268 (dwarf2_build_psymtabs_hard): Read info section.
269 (load_partial_comp_unit): Add assert.
270 (create_all_comp_units): Read info section.
271 (load_full_comp_unit): Likewise.
272 (dwarf2_ranges_read): Read ranges section.
273 (dwarf2_record_block_ranges): Add assert.
274 (dwarf2_read_abbrevs): Read abbrev section.
275 (read_indirect_string): Read str section.
276 (dwarf_decode_line_header): Read line section.
277 (read_signatured_type_at_offset): Read types section.
278 (dwarf_decode_macros): Read macinfo section.
279 (dwarf2_symbol_mark_computed): Read loc section.
280 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
281 dwarf2_build_frame_info.
282 (dwarf2_build_frame_info): Unconditionally set
283 dwarf2_frame_objfile_data on the objfile.
284 * configure.ac: Check for posix_madvise.
285 * config.in, configure: Rebuild.
287 2010-03-10 Tom Tromey <tromey@redhat.com>
289 * xcoffread.c (xcoff_start_psymtab): Update.
290 (xcoff_end_psymtab): Update.
291 * psymtab.c (allocate_psymtab): Remove dead code.
292 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
294 * mdebugread.c (parse_partial_symbols): Update.
295 (new_psymtab): Likewise.
296 * dwarf2read.c (process_psymtab_comp_unit): Update.
297 (psymtab_to_symtab_1): Update.
298 * dbxread.c (start_psymtab): Update.
299 (end_psymtab): Likewise.
301 2010-03-10 Tom Tromey <tromey@redhat.com>
303 * xcoffread.c: Include psymtab.h.
304 (xcoff_sym_fns): Update.
305 * symtab.h (struct partial_symbol): Remove.
306 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
307 (struct partial_symtab): Remove.
308 (PSYMTAB_TO_SYMTAB): Remove.
309 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
310 (find_pc_sect_psymtab): Remove.
311 (find_pc_sect_symtab_via_partial): Declare.
312 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
313 (find_main_psymtab): Remove.
314 (find_main_filename): Declare.
315 (fixup_psymbol_section): Remove.
316 (fixup_section): Declare.
317 * symtab.c: Include psymtab.h.
318 (lookup_symtab): Use lookup_symtab method.
319 (lookup_partial_symtab): Remove.
320 (find_pc_sect_psymtab_closer): Remove.
321 (find_pc_sect_psymtab): Remove.
322 (find_pc_sect_symtab_via_partial): New function.
323 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
324 (fixup_section): No longer static.
325 (fixup_psymbol_section): Remove.
326 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
327 (lookup_global_symbol_from_objfile): Likewise.
328 (lookup_symbol_aux_psymtabs): Remove.
329 (lookup_symbol_aux_quick): New function.
330 (lookup_symbol_global): Use lookup_symbol_aux_quick.
331 (lookup_partial_symbol): Remove.
332 (basic_lookup_transparent_type_quick): New function.
333 (basic_lookup_transparent_type): Use it.
334 (find_main_psymtab): Remove.
335 (find_main_filename): New function.
336 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
337 (find_line_symtab): Use expand_symtabs_with_filename method.
338 (output_partial_symbol_filename): New function.
339 (sources_info): Use map_partial_symbol_filenames.
340 (struct search_symbols_data): New type.
341 (search_symbols_file_matches): New function.
342 (search_symbols_name_matches): Likewise.
343 (search_symbols): Use expand_symtabs_matching method.
344 (struct add_name_data): Rename from add_macro_name_data.
345 (add_macro_name): Update.
346 (add_partial_symbol_name): New function.
347 (default_make_symbol_completion_list): Use
348 map_partial_symbol_names.
349 (struct add_partial_symbol_name): New type.
350 (maybe_add_partial_symtab_filename): New function.
351 (make_source_files_completion_list): Use
352 map_partial_symbol_filenames.
353 (expand_line_sal): Use expand_symtabs_with_filename method.
354 * symmisc.c: Include psymtab.h.
355 (print_objfile_statistics): Use print_stats method.
356 (dump_objfile): Use dump method.
357 (dump_psymtab, maintenance_print_psymbols)
358 (maintenance_info_psymtabs, maintenance_check_symtabs)
359 (extend_psymbol_list): Remove.
360 * symfile.h (struct quick_symbol_functions): New struct.
361 (struct sym_fns) <qf>: New field.
362 (sort_pst_symbols): Remove.
363 (increment_reading_symtab): Declare.
364 * symfile.c: Include psymtab.h.
365 (compare_psymbols, sort_pst_symbols): Remove.
366 (psymtab_to_symtab): Remove.
367 (increment_reading_symtab): New function.
368 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
370 (set_initial_language): Use find_main_filename.
371 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
372 (free_named_symtabs): Remove unused code.
373 (start_psymtab_common, add_psymbol_to_bcache)
374 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
376 * stack.c: Include psymtab.h, symfile.h.
377 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
378 * source.h (psymtab_to_fullname): Don't declare.
379 * source.c: Include psymtab.h.
380 (select_source_symtab): Use find_last_source_symtab method.
381 (forget_cached_source_info): Use forget_cached_source_info
383 (find_and_open_source): No longer static.
384 (psymtab_to_fullname): Remove.
385 * somread.c: Include psymtab.h.
386 (som_sym_fns): Update.
387 * psympriv.h: New file.
388 * psymtab.h: New file.
389 * psymtab.c: New file.
390 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
391 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
392 * objfiles.c: Include psymtab.h.
393 (objfile_relocate1): Use relocate method.
394 (objfile_has_partial_symbols): Use has_symbols method.
395 * mipsread.c: Include psymtab.h.
396 (ecoff_sym_fns): Update.
397 * mi/mi-cmd-file.c: Include psymtab.h.
398 (print_partial_file_name): New function.
399 (mi_cmd_file_list_exec_source_files): Use
400 map_partial_symbol_filenames.
401 * mdebugread.c: Include psympriv.h.
402 * machoread.c: Include psympriv.h.
403 (macho_sym_fns): Update.
404 * m2-exp.y (yylex): Use lookup_symtab.
405 * elfread.c: Include psympriv.h.
406 (elf_sym_fns): Update.
407 * dwarf2read.c: Include psympriv.h.
408 * dbxread.c: Include psympriv.h.
409 (aout_sym_fns): Update.
410 * cp-support.c: Include psymtab.h.
411 (read_in_psymtabs): Remove.
412 (make_symbol_overload_list_qualified): Use
413 expand_symtabs_for_function method.
414 * coffread.c: Include psympriv.h.
415 (coff_sym_fns): Update.
416 * blockframe.c: Include psymtab.h.
417 (find_pc_partial_function): Use find_pc_sect_symtab method.
418 * ada-lang.h (ada_update_initial_language): Update.
419 * ada-lang.c: Include psymtab.h.
420 (ada_update_initial_language): Remove 'main_pst' argument.
421 (ada_lookup_partial_symbol): Remove.
422 (struct ada_psym_data): New type.
423 (ada_add_psyms): New function.
424 (ada_add_non_local_symbols): Use map_ada_symtabs method.
425 (struct add_partial_datum): New type.
426 (ada_add_partial_symbol_completions): New function.
427 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
428 (ada_exception_support_info_sniffer): Update.
429 * Makefile.in (SFILES): Add psymtab.c.
430 (COMMON_OBS): Add psymtab.o.
431 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
433 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
435 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
437 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
440 * cp-namespace.c (cp_add_using): Deleted.
441 (cp_add_using_directive): Use obstack allocations.
442 Merged the function cp_add_using into this one.
443 Added 'struct obstack *' argument.
444 (cp_scan_for_anonymous_namespaces): Updated.
445 * cp-support.h: Updated.
446 * dwarf2read.c (read_import_statement): Updated.
447 (read_namespace): Updated.
449 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
451 * windows-nat.c (cygwin_conv_path): Remove old macro.
453 2010-03-10 Pedro Alves <pedro@codesourcery.com>
455 * breakpoint.c (condition_command): Handle watchpoint conditions.
456 (is_hardware_watchpoint): Add comment.
457 (is_watchpoint): New.
458 (update_watchpoint): Don't reparse the watchpoint's condition
461 (watchpoint_check): Use it.
462 (bpstat_check_watchpoint): Handle it.
463 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
464 conditions in a frame where it makes sense.
465 (watch_command_1): Store the innermost block of the condition
467 (delete_breakpoint): Delete the watchpoint condition expression.
468 * breakpoint.h (struct bp_location) <cond>: Update comment.
469 (struct breakpoint): New field `cond_exp_valid_block'.
471 2010-03-09 Joel Brobecker <brobecker@adacore.com>
473 Adjust handling of Ada DIEs after dwarf2_physname patch.
474 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
476 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
477 Pierre Muller <muller@ics.u-strasbg.fr>
479 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
481 (windows_make_so): Use non-Cygwin 1.7 specific function.
482 (windows_create_inferior): Make sure that cygallargs points to
483 original args in non Cygwin 1.7. case.
485 2010-03-09 Michael Snyder <msnyder@vmware.com>
487 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
488 after target_read_memory to get host byte order.
489 (i386_process_record): Ditto.
491 2010-03-09 Keith Seitz <keiths@redhat.com>
493 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
494 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
495 print out const or volatile qualifiers, too.
496 (c_type_print_args): Add parameters show_artificial and language.
497 Skip artificial parameters when requested.
498 Use the appropriate language printer.
499 (c_type_print_varspec): Tell c_type_print_args to skip artificial
500 parameters and pass language_c.
501 * dwarf2read.c (die_list): New file global.
502 (struct partial_die_info): Update comments for name field.
503 (pdi_needs_namespace): Renamed to ...
504 (die_needs_namespace): ... this. Rewrite.
505 (dwarf2_linkage_name): Remove.
506 (add_partial_symbol): Do not predicate the call to
507 partial_die_full_name based on pdi_needs_namespace.
508 Remove call to cp_check_possible_namespace_symbols and associated
510 (guess_structure_name): Do not inspect child subprogram DIEs.
511 (dwarf2_fullname): Update comments.
512 Use die_needs_namespace to assist in computing the name.
513 (read_func_scope): Use dwarf2_name to get the DIE's name.
514 Use dwarf2_physname to get the "linkage name" of the DIE.
515 (dwarf2_add_member_field): Use dwarf2_physname instead of
517 (read_structure_type): For structs and classes, set TYPE_NAME, too.
518 (determine_class): Remove.
519 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
521 (new_symbol): Unconditionally call dwarf2_name.
522 Compute the "linkage name" using dwarf2_physname.
523 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
524 When determining to scan for anonymous C++ namespaces, ignore
526 (dwarf2_physname): New function.
527 (dwarf2_full_name): Move content to new function and call
529 (dwarf2_compute_name): "New" function.
530 (_initialize_dwarf2_read): Initialize die_list.
531 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
533 (gnu_v3_print_method_ptr): Use the physname for virtual methods
534 without a demangled name.
535 Print out type information for non-virtual methods.
536 * linespec.c (decode_line_1): Force ANY string using "::" (or
537 "." for java) to use decode_compound, and clean up any stray quoting.
538 If we found a file symtab, re-evaluate whether the remainder is_quoted.
539 (decode_compound): Stop consuming at an open parenthesis.
540 Keep template parameters.
541 Keep any overload information.
542 Keep keywords like "const".
543 Remove paren_pointer.
544 Move is_quoted check from set_flags to here.
545 Remove #if 0 code from 2000. Ten years is long enough.
546 (find_method): Before comparing symbol names, canonicalize the string
548 If a specific overload is requested, find it. Otherwise throw an error.
549 (find_method_overload_end): New function.
551 (decode_compound): Assume that parentheses are matched.
553 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
555 * linespec.c (decode_line_1): Keep important keywords like
556 "const" and "volatile".
557 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
558 * typeprint.h (c_type_print_args): Add declaration.
559 * ui-file.c (do_ui_file_obsavestring): New function.
560 (ui_file_obsavestring): New function.
561 * ui-file.h (ui_file_obsavestring): Add declaration.
562 * valops.c (find_overload_match): Resolve the object to
564 If the object is a data member, search the object for the member
565 and return with staticp set.
566 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
567 Do not attempt to extract a function name from non-function types.
568 If the extracted function name and the original name are the same,
569 we don't have a C++ method.
571 From Jan Kratochvil <jan.kratochvil@redhat.com>:
572 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
574 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
575 and arguments from symbol lookups.
576 * ax-gdb.c (gen_expr): Likewise.
577 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
578 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
579 lookup_possible_namespace_symbol): Likewise.
580 * cp-support.c (read_in_psymtabs): Likewise.
581 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
582 * language.h (la_lookup_symbol_nonlocal): Likewise.
583 * scm-valprint.c (scm_inferior_print): Likewise.
584 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
585 * solib-svr.c (elf_lookup_lib): Likewise.
586 * solib.c (show_auto_solib_add): Likewise.
587 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
588 * symmisc.c (maintenance_check_symtabs): Likewise.
589 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
590 lookup_symbol_aux_local, lookup_symbol_aux_block,
591 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
592 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
593 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
594 basic_lookup_transparent_type, find_main_psymtab,
595 lookup_block_symbol): Likewise.
596 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
597 lookup_symbol_global, lookup_symbol_aux_block,
598 lookup_symbol_partial_symbol, lookup_block_symbol,
599 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
601 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
603 * python/python-internal.h: Include symtab.h.
605 2010-03-09 Joel Brobecker <brobecker@adacore.com>
606 Pierre Muller <muller@ics.u-strasbg.fr>
608 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
609 * p-valprint.c (pascal_val_print): Remove undeed block and fix
612 2010-03-08 Tom Tromey <tromey@redhat.com>
614 * breakpoint.c (breakpoint_1): Add "QUIT".
616 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
617 Pedro Alves <pedro@codesourcery.com>
619 * solib.c (solib_find): Replace extension if
620 solib_symbols_extension is set in the target gdbarch.
621 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
622 solib_symbols_extension to "sym".
623 * gdbarch.sh (solib_symbols_extension): New variable.
624 (pstring): New function.
625 * gdbarch.h, gdbarch.c: Regenerate.
627 2010-03-08 Tom Tromey <tromey@redhat.com>
631 * utils.c: Include main.h.
632 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
633 (defaulted_query): Use default answer if `batch_flag'.
634 * main.h (batch_flag): Declare.
635 * main.c (batch_flag): New global.
636 (captured_main): Remove 'batch'. Update.
638 2010-03-08 Kevin Buettner <kevinb@redhat.com>
640 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
643 * remote-mips.c (rockhopper_ops): New target_ops struct.
644 (MON_ROCKHOPPER): New mips_monitor_type.
645 (read_hex_value): New function.
646 (mips_request): Send 8-byte values with a 'T' packet. Read the
647 packet argument as a string and use read_hex_value to parse it.
648 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
649 (rockhopper_open): New function.
650 (mips_wait): Read the PC, FP and SP fields as strings. Use
651 read_hex_value to parse them and mips_set_register to commit them.
652 (mips_set_register): New function.
653 (mips_fetch_registers): Do not cast register value to "unsigned"
654 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
655 (mips_store_registers): Use a 'T' packet to set registers when
656 using MON_ROCKHOPPER.
657 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
658 and expect the total to be printed before the entry address.
659 (_initialize_remote_mips): Initialize and add rockhopper_ops.
661 2010-03-08 Kevin Buettner <kevinb@redhat.com>
663 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
664 Change return value to int. Store value fetched in location
665 addressed by `val'. Use function's return value as success
666 or failure indicator. Adjust all callers.
668 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
670 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
672 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
673 Hui Zhu <teawater@gmail.com>
675 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
676 tmp_to_stopped_data_address.
677 (record_open): Reset tmp_to_stopped_by_watchpoint and
678 tmp_to_stopped_data_address.
679 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
680 to_stopped_data_address.
682 2010-03-08 Hui Zhu <teawater@gmail.com>
684 * i386-tdep.c (i386_process_record): Initialize regnum.
686 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
688 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
689 Do not warn on ".gnu.liblist" and ".gnu.conflict".
691 2010-03-08 Joel Brobecker <brobecker@adacore.com>
693 Memory error when reading wrong core file.
694 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
695 errors while reading the inferior memory, and return zero if
696 an exception was raised.
698 2010-03-07 Michael Snyder <msnyder@vmware.com>
700 * record.c (record_restore): Rename tmpu8 to rectype.
702 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
703 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
705 (i386_record_push): Rename local tmpulongest to addr.
707 (i386_process_record): Rename local tmpulongest to addr.
709 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
712 Rename local variable tmpu8 to opcode8 and regnum.
714 2010-03-07 Joel Brobecker <brobecker@adacore.com>
716 * remote.c (remote_get_ada_task_ptid): New function.
717 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
719 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
721 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
722 block. Define helper macros to reduce ifdefs in code.
723 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
724 size. Call unadorned GetModuleFileNameEx rather than
725 GetModuleFileNameEx*.
726 (windows_make_so): Use __PMAX to denote maximum buffer size and
727 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
729 (get_image_name): Use __PMAX to denote maximum buffer size.
730 (handle_load_dll): Likewise.
731 (windows_pid_to_exec_file): Likewise.
732 (windows_create_inferior): Add many accommodations for older Cygwin and
734 (bad_GetModuleFileNameExW): Control inclusion of this function based on
735 __USEWIDE conditional.
736 (bad_GetModuleFileNameExA): Likewise.
737 (_initialize_loadable): Just use real function names without the dyn_
738 part since they are defined earlier.
740 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
741 Tom Tromey <tromey@redhat.com>
743 * utils.c (host_char_to_target): Add 'gdbarch' argument.
744 (parse_escape): Likewise.
745 * python/py-utils.c (unicode_to_target_string): Update.
746 (unicode_to_target_python_string): Update.
747 (target_string_to_unicode): Update.
748 * printcmd.c (printf_command): Update.
749 * p-exp.y (yylex): Update.
750 * objc-exp.y (yylex): Update.
751 * mi/mi-parse.c: Include charset.h.
752 (mi_parse_escape): New function.
753 (mi_parse_argv): Use it.
754 * jv-exp.y (yylex): Update.
755 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
757 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
758 * gdbarch.sh (auto_charset, auto_wide_charset): New.
759 * gdbarch.c: Rebuild.
760 * gdbarch.h: Rebuild.
761 * defs.h (parse_escape): Update.
762 * cli/cli-setshow.c: Include arch-utils.h.
763 (do_setshow_command): Update.
764 * cli/cli-cmds.c (echo_command): Update.
765 * charset.h (target_charset, target_wide_charset): Update.
766 * charset.c: Include arch-utils.h.
767 (target_charset_name): Default to "auto".
768 (target_wide_charset_name): Likewise.
769 (show_target_charset_name): Handle "auto".
770 (show_target_wide_charset_name): Likewise.
771 (be_le_arch): New global.
772 (set_be_le_names): Add 'gdbarch' argument.
773 (validate): Likewise. Don't call set_be_le_names.
774 (set_charset_sfunc, set_host_charset_sfunc)
775 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
777 (target_charset): Add 'gdbarch' argument.
778 (target_wide_charset): Likewise. Remove 'byte_order' argument.
779 (auto_target_charset_name): New global.
780 (default_auto_charset, default_auto_wide_charset): New functions.
781 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
782 for target charsets. Copy result of nl_langinfo. Use GetACP if
784 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
785 remove 'byte_order' argument. Update.
786 (classify_type): Likewise.
787 (c_emit_char): Update.
788 (c_printchar): Update.
789 (c_printstr): Update.
790 (c_get_string): Update.
791 (evaluate_subexp_c): Update.
792 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
794 * python/python.c (gdbpy_target_charset): New function.
795 (gdbpy_target_wide_charset): Likewise.
796 (GdbMethods): Update.
799 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
801 * symfile.c (build_section_addr_info_from_objfile): Do not mask
802 off high address bits.
804 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
806 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
807 address as UnsignedLongLong, not LongLong.
809 2010-03-05 Kevin Buettner <kevinb@redhat.com>
810 Pedro Alves <pedro@codesourcery.com>
812 * remote-mips.c (gdbthread.h): Include.
813 (remote_mips_ptid): Declare.
814 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
815 (common_open): Set inferior_ptid, add it as an inferior, and
816 as a thread too. Delete FIXME comment regarding start_remote().
817 (mips_close): Invoke generic_mourn_inferior().
818 (mips_kill): Make sure that target_mourn_inferior is invoked.
819 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
820 it's now invoked from mips_close().
821 (mips_load): Don't null out inferior_ptid. Don't call
822 clear_symtab_users().
823 (mips_thread_alive, mips_pid_to_str): New functions.
824 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
825 to_thread_alive and to_pid_to_str operations.
827 2010-03-04 Tom Tromey <tromey@redhat.com>
829 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
830 in DWARF 3 and later.
831 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
833 2010-03-04 Keith Seitz <keiths@redhat.com>
835 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
836 If the filename portion of the linespec was quoted, recheck the
837 remainder for additional quoting.
838 (locate_first_half): Skip over completer chars, too.
840 2010-03-04 Tom Tromey <tromey@redhat.com>
842 * printcmd.c (printf_command): Pass dummy argument to
845 2010-03-04 Doug Evans <dje@google.com>
847 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
850 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
852 2010-03-04 Pedro Alves <pedro@codesourcery.com>
854 * breakpoint.c (update_watchpoint): Create a sentinel location if
855 the software watchpoint isn't watching any memory.
856 (breakpoint_address_bits): Skip dummy software watchpoint locations.
858 2010-03-04 Pedro Alves <pedro@codesourcery.com>
860 * utils.c (fputs_maybe_filtered): Check if there's already a top
861 level interpreter before dereferencing it. If there isn't one,
862 don't paginate either.
864 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
866 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
867 the state right when single stepping.
868 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
869 Get the next PC along with the instruction state.
870 (thumb_get_next_pc): Remove.
871 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
873 2010-03-04 Hui Zhu <teawater@gmail.com>
875 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
877 2010-03-03 Pedro Alves <pedro@codesourcery.com>
879 * utils.c (fputs_maybe_filtered): Always disable pagination if the
880 top level interpreter is MI.
882 2010-03-03 Stan Shebs <stan@codesourcery.com>
884 * remote.c (remote_download_tracepoint): Iterate over locations.
885 * tracepoint.c (validate_actionline): Ditto.
886 (encode_actions): Add location argument.
887 (trace_dump_command): Check all locations to see if stepping
890 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
891 Eli Zaretskii <eliz@gnu.org>
893 * NEWS: Add X86 general purpose registers section.
895 2010-03-03 Tom Tromey <tromey@redhat.com>
898 * varobj.c (install_new_value): Handle case where new print_value
901 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
904 * printcmd.c (printf_command): Print end of format string using
907 2010-03-02 Tom Tromey <tromey@redhat.com>
909 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
910 * defs.h (read_command_lines_1): Add missing 'void'.
911 * cli/cli-script.c (recurse_read_control_structure): Add missing
913 (read_next_line): Likewise.
914 (read_command_lines_1): Likewise.
916 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
918 * spu-tdep.c (spu_analyze_prologue): Track instruction to
919 store backchain as part of prologue.
921 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
923 * progspace.c (update_address_spaces): Update inferior address spaces
926 2010-03-02 Doug Evans <dje@google.com>
928 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
929 lowpc,highpc args to addrmap_set_empty.
931 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
933 * amd64-tdep.c (amd64_byte_names): New.
934 (amd64_word_names): Likewise.
935 (amd64_dword_names): Likewise.
936 (amd64_pseudo_register_name): Likewise.
937 (amd64_pseudo_register_read): Likewise.
938 (amd64_pseudo_register_write): Likewise.
939 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
940 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
941 set_gdbarch_pseudo_register_write and
942 set_tdesc_pseudo_register_name. Don't call
943 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
945 * i386-tdep.c (i386_num_mmx_regs): Removed.
946 (i386_num_pseudo_regs): Likewise.
947 (i386_byte_names): New.
948 (i386_word_names): Likewise.
949 (i386_byte_regnum_p): Likewise.
950 (i386_word_regnum_p): Likewise.
951 (i386_mmx_regnum_p): Updated.
952 (i386_pseudo_register_name): Make it global. Handle byte and
953 word pseudo-registers.
954 (i386_pseudo_register_read): Likewise.
955 (i386_pseudo_register_write): Likewise.
956 (i386_pseudo_register_type): Handle byte, word and dword
958 (i386_register_reggroup_p): Don't include pseudo
959 registers, except for MXX, in any register groups. Don't
960 include pseudo byte, word, dword registers in general_reggroup.
961 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
962 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
963 pseudo-registers after word pseudo-registers. Call
964 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
966 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
967 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
969 (i386_byte_regnum_p): New.
970 (i386_word_regnum_p): Likewise.
971 (i386_dword_regnum_p): Likewise.
972 (i386_pseudo_register_name): Likewise.
973 (i386_pseudo_register_read): Likewise.
974 (i386_pseudo_register_write): Likewise.
976 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
978 * target-descriptions.c (tdesc_type): Remove
979 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
980 (tdesc_predefined_types): Likewise.
981 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
982 if flag name is empty.
983 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
985 * features/i386/32bit-core.xml: Define i386_eflags.
986 * features/i386/64bit-core.xml: Likewise.
988 * features/i386/32bit-sse.xml: Define i386_mxcsr.
989 * features/i386/64bit-sse.xml: Likewise.
991 * features/i386/amd64-linux.c: Regenerated.
992 * features/i386/amd64.c: Likewise.
993 * features/i386/i386-linux.c: Likewise.
994 * features/i386/i386.c: Likewise.
996 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
998 * gdbtypes.c (append_composite_type_field_raw): New.
999 (append_composite_type_field_aligned): Use the new function.
1000 * gdbtypes.h (append_composite_type_field_raw): Declare.
1001 * target-descriptions.c (struct tdesc_type_field): Add start and end.
1002 (struct tdesc_type_flag): New type.
1003 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
1004 kind. Add size to u.u. Add u.f for flags.
1005 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
1006 (tdesc_free_type): Likewise.
1007 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
1008 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
1009 (tdesc_add_bitfield, tdesc_add_flag): New.
1010 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
1011 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
1012 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
1013 current_type. Add current_type_size and current_type_is_flags.
1014 (tdesc_start_union): Clear the new fields.
1015 (tdesc_start_struct, tdesc_start_flags): New.
1016 (tdesc_start_field): Handle struct fields, including bitfields.
1017 (field_attributes): Make type optional. Add start and end.
1018 (union_children): Rename to struct_union_children.
1019 (union_attributes): Rename to struct_union_attributes. Add optional
1021 (flags_attributes): New.
1022 (feature_children): Add struct and flags.
1023 * features/gdb-target.dtd: Add flags and struct to features.
1024 Make field type optional. Add field start and end.
1026 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
1028 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
1029 (amd64_linux_read_description): Likewise.
1030 (_initialize_amd64_linux_nat): Set to_read_description to
1031 amd64_linux_read_description.
1033 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
1034 (amd64_linux_register_name): Removed.
1035 (amd64_linux_register_type): Likewise.
1036 (amd64_linux_core_read_description): New.
1037 (amd64_linux_init_abi): Set target description to
1038 tdesc_amd64_linux if needed. Support orig_rax in target
1039 description. Don't call set_gdbarch_register_name nor
1040 set_gdbarch_register_type. Call
1041 set_gdbarch_core_read_description.
1042 (_initialize_amd64_linux_tdep): Call
1043 initialize_tdesc_amd64_linux.
1045 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
1047 * amd64-tdep.c: Include "features/i386/amd64.c".
1048 (amd64_register_names): Removed.
1049 (amd64_register_name): Likewise.
1050 (amd64_register_type): Likewise.
1051 (amd64_init_abi): Set num_core_regs and register_names. Set
1052 target description to tdesc_amd64 if needed. Don't call
1053 set_gdbarch_register_name nor set_gdbarch_register_type.
1054 (_initialize_amd64_tdep): New.
1056 * i386-linux-nat.c (i386_linux_read_description): New.
1057 (_initialize_i386_linux_nat): Set to_read_description to
1058 i386_linux_read_description.
1060 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
1061 (i386_linux_register_name): Removed.
1062 (i386_linux_core_read_description): New.
1063 (i386_linux_read_description): Likewise.
1064 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
1065 Set target description to tdesc_i386_linux if needed. Support
1066 orig_eax. Set register_reggroup_p. Call
1067 set_gdbarch_core_read_description.
1068 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
1070 * i386-linux-tdep.h (tdesc_i386_linux): New.
1072 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
1075 * i386-tdep.c: Include "features/i386/i386.c".
1076 (i386_register_names): Make it const.
1077 (i386_mmx_names): Likewise.
1078 (i386_num_register_names): Removed.
1079 (i386_register_name): Likewise.
1080 (i386_eflags_type): Likewise.
1081 (i386_mxcsr_type): Likewise.
1082 (i386_sse_type): Likewise.
1083 (i386_register_type): Likewise.
1084 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
1085 (i386_pseudo_register_name): New.
1086 (i386_pseudo_register_type): Likewise.
1087 (i386_mmx_type): Make it static.
1088 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
1089 I387_NUM_REGS. Set num_core_regs and register_names. Don't
1090 call set_gdbarch_register_name nor set_gdbarch_register_type.
1091 Set register_reggroup_p. Set target description to tdesc_i386
1092 if needed. Call set_tdesc_pseudo_register_type,
1093 set_tdesc_pseudo_register_name and tdesc_use_registers.
1094 (_initialize_i386_tdep): Call initialize_tdesc_i386.
1095 initialize_tdesc_x86_64.
1097 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
1098 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
1099 register_names, tdesc and register_reggroup_p.
1100 (I386_NUM_FREGS): Removed.
1101 (i386_eflags_type): Likewise.
1102 (i386_mxcsr_type): Likewise.
1103 (i386_mmx_type): Likewise.
1104 (i386_sse_type): Likewise.
1105 (i386_register_name): Likewise.
1106 (i386_regnum): Add I386_MXCSR_REGNUM.
1107 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
1109 * i387-tdep.h (I387_NUM_REGS): New.
1111 * regformats/i386/i386-linux.dat: Generated.
1112 * regformats/i386/i386.dat: Likewise.
1113 * regformats/i386/amd64-linux.dat: Likewise.
1114 * regformats/i386/amd64.dat: Likewise.
1116 * regformats/reg-i386-linux.dat: Removed.
1117 * regformats/reg-i386.dat: Likewise.
1118 * regformats/reg-x86-64-linux.dat: Likewise.
1119 * regformats/reg-x86-64.dat: Likewise.
1121 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
1123 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
1124 cygwin_conv_path API rather than the deprecated
1125 cygwin_conv_to_full_posix_path.
1127 (GetModuleFileNameExA): Undefine for Cygwin.
1128 (GetModuleFileNameExW): Define for Cygwin.
1129 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
1130 Call GetModuleFileNameExW and convert path to POSIX using
1132 (windows_make_so): Always define p. Drop unused variable m.
1133 Don't use Win32 functions to check file existance, rather use
1134 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
1135 Use canonicalize_file_name to get full path.
1136 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
1137 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
1138 use correct target buffer size in call to WideCharToMultiByte.
1139 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
1140 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
1141 (windows_create_inferior): Convert all paths and arguments to wchar_t
1142 and use CreateProcessW on Cygwin.
1143 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
1144 (bad_GetModuleFileNameExA): Undefine for Cygwin.
1145 (bad_GetModuleFileNameExW): Define for Cygwin.
1146 (_initialize_loadable): Load GetModuleFileNameExW into
1147 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
1149 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
1152 * python/py-frame.c (frapy_read_var): Add block argument and logic
1153 to cope with user provided blocks.
1155 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1157 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
1160 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
1162 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
1163 (COMMON_OBS): ... to here since it's used unconditionally.
1164 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
1167 2010-02-26 David Daney <ddaney@caviumnetworks.com>
1169 * mips-linux-tdep.c: Update struct sigframe comments.
1170 (SIGFRAME_CODE_OFFSET): Delete macro.
1171 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
1173 (mips_linux_n32n64_sigframe_init): Same.
1175 2010-02-26 Kevin Buettner <kevinb@redhat.com>
1177 * remote-mips.c (mips_load): Don't use pseudo-register when
1178 invalidating regcache.
1180 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1182 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
1184 2010-02-26 Pedro Alves <pedro@codesourcery.com>
1186 * NEWS: Add "New targets" section, and mention ARM Symbian
1189 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
1191 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
1192 add ADDR_SIZE member.
1193 (allocate_piece_closure): Update.
1194 (copy_pieced_value_closure): Likewise.
1195 (dwarf2_evaluate_loc_desc): Likewise.
1196 (read_pieced_value): Use DWARF address size instead of
1197 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
1199 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
1200 Tom Tromey <tromey@redhat.com>
1202 * python/py-type.c (typy_lookup_typename): Add in block argument.
1203 If provided restrict lookup to specified blocks.
1204 (gdbpy_lookup_type): Likewise.
1205 (typy_lookup_type): Likewise.
1207 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
1212 * arm-symbian-tdep.c: New.
1213 * configure.tgt (arm*-*-symbianelf*): New target.
1214 (*-*-symbianelf*): New OS.
1215 * osabi.c (gdb_osabi_names): Add Symbian.
1216 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
1217 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
1218 (ALLDEPFILES): Add arm-symbian-tdep.c.
1220 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
1222 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
1224 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1226 * mi/mi-main.c (mi_cmd_execute): Fix typo.
1228 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
1229 Tom Tromey <tromey@redhat.com>
1230 Thiago Jung Bauermann <bauerman@br.ibm.com>
1232 * python/python.c (_initialize_python): Call
1233 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
1234 gdbpy_initialize_blocks.
1235 * python/python-internal.h: Declare struct symbol, block and
1236 symtab_and_line. Declare block_object_type and
1238 (gdbpy_lookup_symbol gdbpy_block_for_pc)
1239 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
1240 (symbol_to_symbol_object, block_to_block_object)
1241 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
1242 (gdbpy_initialize_blocks ): Declare.
1243 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
1244 (frapy_select): Add methods.
1245 (frapy_read_var): Add symbol branch.
1246 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
1248 (SUBDIR_PYTHON_SRCS): Likewise.
1249 (py-symbol.o): New rule.
1250 (py-symtab.o): Likewise.
1251 (py-block.o): Likewise.
1252 * python/py-symbol.c: New file.
1253 * python/py-symtab.c: Likewise.
1254 * python/py-block.c: Likewise.
1256 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1260 * inferior.h (prepare_for_detach): Declare.
1261 (struct inferior) <detaching>: New field.
1262 * infrun.c (prepare_for_detach): New.
1263 (handle_inferior_event) <random signal>: Don't stop if detaching.
1264 * target.c (target_detach): Call prepare_for_detach.
1266 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1268 Per-process displaced stepping queue.
1270 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
1271 (displaced_step_gdbarch, displaced_step_closure,
1272 (displaced_step_original, displaced_step_copy): Move globals to
1274 (struct displaced_step_inferior_state): ... new structure.
1275 (displaced_step_inferior_states): New global.
1276 (get_displaced_stepping_state, add_displaced_stepping_state)
1277 (remove_displaced_stepping_state, infrun_inferior_exit): New
1279 (displaced_step_clear): Add displaced_step_inferior_state
1280 parameter, and adjust to handle it.
1281 (displaced_step_clear_cleanup): Parameter is now a
1282 displaced_step_inferior_state. Adjust.
1283 (displaced_step_prepare): Adjust.
1284 (displaced_step_fixup, displaced_step_fixup)
1285 (infrun_thread_ptid_changed, resume): Adjust.
1286 (init_wait_for_inferior): Don't call displaced_step_clear.
1287 (infrun_thread_stop_requested): Rewrite.
1288 (_initialize_infrun): Install infrun_inferior_exit as
1289 inferior_exit observer.
1291 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1293 * inferior.h (ptid_match): Declare.
1294 * infrun.c (ptid_match): New.
1295 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
1296 (handle_notification): Add debug output.
1297 * linux-nat.c (ptid_match): Delete.
1299 2010-02-24 David S. Miller <davem@davemloft.net>
1301 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
1302 * syscalls/sparc-linux.xml: New.
1303 * syscalls/sparc64-linux.xml: New.
1304 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
1305 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
1306 (sparc32_linux_get_syscall_number): New function.
1307 (sparc32_linux_init_abi): Set syscall XML file name and hook up
1308 syscall number fetcher.
1309 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
1310 (sparc64_linux_get_syscall_number): New function.
1311 (sparc64_linux_init_abi): Set syscall XML file name and hook up
1312 syscall number fetcher.
1314 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
1318 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
1319 * inferior.c (add_inferior_silent): Notify inferior_added
1321 (delete_inferior_1): Notify inferior_removed observer.
1322 (exit_inferior_1): Pass inferior, not pid, to observer.
1323 (inferior_appeared): Likewise.
1324 (add_inferior_with_spaces): New.
1325 (add_inferior_command): Use the above.
1326 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
1329 * inflow.c (inflow_inferior_exit): Likewise.
1330 * jit.c (jit_inferior_exit_hook): Likewise.
1332 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
1334 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
1335 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
1336 (report_initial_inferior): New.
1337 (mi_inferior_removed): Register the above. Make sure
1338 inferior_added observer is called on the first inferior.
1339 (mi_new_thread, mi_thread_exit): Thread group is now identified by
1340 inferior number, not pid.
1341 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
1343 * mi/mi-main.c (current_context): New.
1344 (proceed_thread_callback): Use typed closure.
1345 Proceed everything if pid is 0. Most implementation split into
1346 (proceed_thread): ... this.
1347 (run_one_inferior): New.
1348 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
1349 Adjust for multiexec behaviour.
1350 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
1351 (mi_cmd_execute): Handle the 'thread-group' option here.
1352 Do some extra checks.
1353 * mi-parse.c (mi_parse): Handle the --all and --thread-group
1355 * mi-parse.h (struct mi_parse): New fields all and thread_group.
1357 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
1359 Make -exec-run a proper MI commands.
1361 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
1362 * mi/mi-cmds.c (mi_cmds): Adjust.
1363 * mi/mi-main.c (mi_cmd_exec_run): New.
1365 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1366 Stan Shebs <stan@codesourcery.com>
1368 * tracepoint.h (set_traceframe_number)
1369 (cleanup_restore_current_traceframe): Declare.
1370 * tracepoint.c (set_traceframe_number): New.
1371 (struct current_traceframe_cleanup): New.
1372 (do_restore_current_traceframe_cleanup)
1373 (restore_current_traceframe_cleanup_dtor)
1374 (make_cleanup_restore_current_traceframe): New.
1375 * infrun.c: Include tracepoint.h.
1376 (fetch_inferior_event): Switch out and in of tfind mode.
1378 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1380 * breakpoint.c (breakpoint_init_inferior): Also delete
1381 bp_shlib_event breakpoints.
1382 * solib-frv.c (enable_break): Remove call to
1383 remove_solib_event_breakpoints.
1384 * solib-svr4.c (enable_break): Ditto.
1385 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
1386 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
1387 * solib-som.c (som_solib_create_inferior_hook): Ditto.
1388 * solib-spu.c (spu_enable_break): Ditto.
1390 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
1392 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
1394 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
1396 * varobj.c (varobj_update): Avoid non-constants in initializers.
1398 2010-02-23 Tom Tromey <tromey@redhat.com>
1400 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
1401 handle big-endian values.
1402 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
1404 2010-02-22 Pedro Alves <pedro@codesourcery.com>
1409 * breakpoint.c (insert_bp_location): If inserting the read
1410 watchpoint failed, fallback to an access watchpoint.
1411 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
1412 if the value changed, if not watching the same memory for writes.
1413 (watchpoint_locations_match): Add comment.
1414 (update_global_location_list): Copy the location's watchpoint type.
1415 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
1416 handle read watchpoints here.
1417 (i386_insert_watchpoint): Read watchpoints aren't supported.
1418 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
1420 * target.h (target_insert_watchpoint): Update description.
1422 2010-02-19 Tom Tromey <tromey@redhat.com>
1424 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
1425 * m2-typeprint.c (m2_print_type): Update.
1426 * gdbtypes.c (recursive_dump_type): Update.
1427 (copy_type_recursive): Update.
1428 * c-typeprint.c (c_type_print_varspec_prefix): Update.
1429 (c_type_print_base): Update.
1430 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
1432 (struct cplus_struct_type) <ntemplate_args>: Remove.
1433 <struct template_arg>: Remove.
1434 <is_dynamic>: Move earlier.
1435 (TYPE_TEMPLATE_ARGS): Remove.
1436 (TYPE_NTEMPLATE_ARGS): Remove.
1437 (TYPE_TEMPLATE_ARG): Remove.
1439 2010-02-19 Tom Tromey <tromey@redhat.com>
1441 PR c++/8693, PR c++/9496:
1442 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
1443 * c-exp.y (lex_one_token): Rename from yylex. Don't call
1444 write_dollar_variable. Don't try to classify NAME tokens.
1445 (token_and_value): New type.
1446 (token_fifo, popping, name_obstack): New globals.
1447 (classify_name): New function.
1448 (classify_inner_name): Likewise.
1450 (VARIABLE): Now has type sval.
1451 (exp : VARIABLE): Call write_dollar_variable.
1452 (qualified_name): Use TYPENAME, not typebase. Add production for
1453 multiple "::" instances.
1454 (variable): Use name_not_typename.
1455 (qualified_type): Remove.
1458 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1460 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
1461 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
1462 found by bfd_get_section_by_name.
1463 * symfile.h (struct section_addr_info) <sectindex>: New comment.
1465 2010-02-19 Joel Brobecker <brobecker@adacore.com>
1467 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
1468 7.0 section" into "Changes in 7.1".
1470 2010-02-19 Joel Brobecker <brobecker@adacore.com>
1472 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
1473 * version.in: Bump version to 7.1.50.20100219-cvs.
1475 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
1477 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
1478 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
1480 2010-02-17 Tom Tromey <tromey@redhat.com>
1482 * NEWS: Add Python API Improvements section.
1484 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
1486 * NEWS: Correct typo.
1488 2010-02-17 Tom Tromey <tromey@redhat.com>
1490 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
1492 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1494 * symfile.c (build_section_addr_info_from_objfile): Include sections
1495 only if they are SEC_ALLOC or SEC_LOAD.
1497 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
1500 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
1501 of ULONGEST for address size.
1503 2010-02-17 Tom Tromey <tromey@redhat.com>
1505 * NEWS: Add C++ improvements section.
1507 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
1509 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
1510 PyThreadState_Swap): Avoid "statement with no effect" warning.
1512 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1514 * solib-svr4.c (enable_break <target_auxv_search>): New variable
1515 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
1517 2010-02-17 Tristan Gingold <gingold@adacore.com>
1518 Petr HluzÃn <petr.hluzin@gmail.com>
1520 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
1521 gdb_assert. Fix info->size for SIG prologue.
1523 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1525 * infcmd.c (show_inferior_tty_command): Check for NULL.
1526 Correct output message.
1528 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1530 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
1531 FUNCTION contains parentheses. Improve removal of a trailing
1534 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1536 * gcore.c (do_bfd_delete_cleanup): New function.
1537 (gcore_command): Use it. Discard the cleanup after success.
1538 (gcore_copy_callback): Delete dead code.
1540 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1542 * symfile.c (addr_info_make_relative): Always use
1543 find_lowest_section.
1545 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
1547 * NEWS: Added entry for namespace fixes.
1549 2010-02-15 Tom Tromey <tromey@redhat.com>
1551 * dwarf2read.c (guess_structure_name): Allocate name on the
1554 2010-02-15 Tom Tromey <tromey@redhat.com>
1556 * c-typeprint.c (c_type_print_base): Reverse order of test.
1558 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1560 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
1561 initialize it from ELF BFD. Extend the prelink condition by it.
1563 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1565 * defs.h (parse_pid_to_attach): New.
1566 * utils.c (parse_pid_to_attach): New.
1567 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
1568 * gnu-nat.c (gnu_attach): Likewise.
1569 * nto-procfs.c (procfs_attach): Likewise.
1570 * procfs.c (procfs_attach): Likewise.
1571 * windows-nat.c (windows_attach): Likewise.
1572 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
1573 * inf-ttrace.c (inf_ttrace_attach): Likewise.
1574 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
1577 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
1579 * MAINTAINERS: Add myself for write after approval privileges.
1581 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1583 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
1586 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1588 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
1589 only if INFO_VERBOSE.
1591 2010-02-12 Tomas Holmberg <th@virtutech.com>
1593 * mi/mi-main.c: Added the --reverse flag to the following MI
1594 commands: exec-continue, exec-finish, exec-next, exec-step,
1595 exec-next-instruction, exec-step-instruction. This is to
1596 support reverse execution over the MI interface to gdb.
1598 2010-02-12 Pedro Alves <pedro@codesourcery.com>
1600 * tracepoint.c (_initialize_tracepoint): Specify that the address
1601 range of `tfind outsize' is exclusive, and that the address range
1602 of `tfind range' is inclusive, in the commands' help strings.
1604 2010-02-12 Joel Brobecker <brobecker@adacore.com>
1606 Spurious "dll not found" error messages on x64-windows.
1607 * windows-nat.c: Add include of complaints.h.
1608 (handle_unload_dll): Change dll-not-found error into a complaint.
1610 2010-02-12 Pedro Alves <pedro@codesourcery.com>
1612 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
1613 bp_tracepoint and bp_fast_tracepoint, not
1614 bp_loc_software_breakpoint.
1615 (update_global_location_list): Tracepoints are never duplicates of
1618 2010-02-12 Pedro Alves <pedro@codesourcery.com>
1620 * breakpoint.c (break_command_really): Change return type to int.
1621 Return false if no breakpoint was created, true otherwise.
1622 (trace_command): Don't set the tracepoint count if no tracepoint
1624 (ftrace_command): Ditto.
1625 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
1626 created in the breakpoints table.
1628 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1629 Ulrich Weigand <uweigand@de.ibm.com>
1631 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
1633 2010-02-11 Pedro Alves <pedro@codesourcery.com>
1635 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
1636 the offset value isn't of integral type.
1638 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1640 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
1643 2010-02-11 Pedro Alves <pedro@codesourcery.com>
1645 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
1646 non-subscriptable types.
1647 * valarith.c (binop_types_user_defined_p): New, abstracted out
1649 (binop_user_defined_p): ... this.
1650 * value.h (binop_types_user_defined_p): Declare.
1652 2010-02-11 Pedro Alves <pedro@codesourcery.com>
1654 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
1655 Merge uploaded TSVs before merging uploaded tracepoints.
1657 2010-02-11 Pedro Alves <pedro@codesourcery.com>
1659 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
1661 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
1663 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
1664 whitespace character after a dot in comment.
1665 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
1667 (list_args_or_locals): For the 'all' (that is
1668 -stack-list-variables) case, always output list of tuples.
1669 Output 'arg' field if variable is argument.
1671 2010-02-10 Tom Tromey <tromey@redhat.com>
1673 * parser-defs.h (parser_debug): Declare.
1674 * parse.c (_initialize_parse): Install "debug parser" set/show
1676 (parser_debug): New global.
1677 (show_parserdebug): New function.
1678 * c-exp.y (c_parse): Set yydebug.
1680 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
1682 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
1683 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
1684 (tdesc_predefined_types): Add i387_ext, i386_eflags and
1686 (tdesc_find_type): New.
1687 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
1688 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
1690 * target-descriptions.h (tdesc_find_type): New.
1692 2010-02-10 Michael Snyder <msnyder@vmware.com>
1694 * gdb-gdb.py: Comment fix.
1696 2010-02-09 Tristan Gingold <gingold@adacore.com>
1698 * machoread.c (macho_symfile_relocate): New function.
1699 (macho_sym_fns): Use macho_symfile_relocate instead of
1700 default_symfile_relocate.
1701 (macho_oso_data): New type.
1702 (current_oso): New variable.
1703 (macho_add_oso_symfile): Do not compute section_addr_info, but
1704 instead set vma of sections.
1705 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
1706 Set and clear current_oso.
1708 2010-02-09 Joel Brobecker <brobecker@adacore.com>
1710 Wrong type description for tagged type parameter.
1711 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
1712 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
1713 reference to a tagged type.
1715 2010-02-09 Tristan Gingold <gingold@adacore.com>
1717 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
1718 brothers of the parent.
1720 2010-02-08 Tom Tromey <tromey@redhat.com>
1724 * valops.c (search_struct_field): Make 'name' const.
1725 (search_struct_method): Likewise.
1726 (find_method_list): Make 'method' const.
1727 (value_struct_elt): Make 'name' and 'err' const.
1728 (value_find_oload_method_list): Make 'method' const.
1729 (find_overload_match): Make 'name' const.
1730 * eval.c (evaluate_subexp_standard): New locals function,
1732 <OP_FUNCALL>: Handle OP_SCOPE specially.
1734 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1736 * infrun.c (handle_inferior_event): Do not look up regcache
1737 for exited processes.
1739 Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com>
1742 * valarith.c (value_ptrdiff): Added a test for a zero type length,
1743 warn if found, and assume length = 1.
1745 2010-02-08 Chris Moller <cmoller@redhat.com>
1748 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
1749 cp_print_static_field) Fix use of obstacks.
1751 2010-02-08 Pedro Alves <pedro@codesourcery.com>
1753 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
1754 resumed LWPs as resumed.
1755 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
1756 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
1757 of throwing an internal error. If an LWP of a process we're not
1758 waiting for reports a signal, don't force collecting a SIGSTOP,
1759 and if it was breakpoint hit in non-stop mode, cancel it. Don't
1760 go through all LWPs cancelling breakpoints in non-stop mode.
1761 (resume_stopped_resumed_lwps): New.
1762 (linux_nat_wait): Use it.
1764 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
1766 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
1767 i386/amd64 and i386/amd64-linux.
1768 (i386/i386-expedite): New.
1769 (i386/i386-linux-expedite): Likewise.
1770 (i386/amd64-expedite):Likewise.
1771 (i386/amd64-linux-expedite): Likewise.
1772 ($(outdir)/i386/i386-linux.dat): Likewise.
1773 ($(outdir)/i386/amd64.dat): Likewise.
1774 ($(outdir)/i386/amd64-linux.dat): Likewise.
1776 * features/i386/32bit-core.xml: New.
1777 * features/i386/32bit-linux.xml: Likewise.
1778 * features/i386/32bit-sse.xml: Likewise.
1779 * features/i386/64bit-core.xml: Likewise.
1780 * features/i386/64bit-linux.xml: Likewise.
1781 * features/i386/64bit-sse.xml: Likewise.
1782 * features/i386/i386-linux.xml: Likewise.
1783 * features/i386/i386.xml: Likewise.
1784 * features/i386/amd64-linux.xml: Likewise.
1785 * features/i386/amd64.xml: Likewise.
1786 * features/i386/i386-linux.c: Likewise.
1787 * features/i386/i386.c: Likewise.
1788 * features/i386/amd64-linux.c: Likewise.
1789 * features/i386/amd64.c: Likewise.
1791 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
1794 * cp-support.h: Added char* alias element to using_direct data
1796 (cp_add_using): Added char* alias argument.
1797 (cp_add_using_directive): Ditto.
1798 * cp-namespace.c: Updated with the above changes.
1799 (cp_lookup_symbol_imports): Check for aliases.
1800 * dwarf2read.c (read_import_statement): Figure out local alias
1801 for the import and pass it on to cp_add_using.
1802 (read_namespace): Pass alias argument to cp_add_using.
1804 2010-02-05 Hui Zhu <teawater@gmail.com>
1806 * defs.h (gdb_bfd_errmsg): New extern.
1807 * exec.c (exec_file_attach): Change bfd_errmsg to
1809 * utils.c (AMBIGUOUS_MESS1): New macro.
1810 (AMBIGUOUS_MESS2): New macro.
1811 (gdb_bfd_errmsg): New function.
1813 2010-02-04 Doug Evans <dje@google.com>
1815 * solib-svr4.c (enable_break): Add comment.
1817 2010-02-04 Anthony Green <green@moxielogic.com>
1819 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
1822 2010-02-04 Tom Tromey <tromey@redhat.com>
1824 * valops.c (search_struct_field): Account for
1825 value_embedded_offset. Fix check for virtual base past the end of
1826 the object. Use value_copy when making a slice of the value.
1828 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
1831 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
1832 only if gdb_stdout is a tty.
1834 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
1836 * target-descriptions.c: Include "osabi.h".
1837 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
1840 2010-02-04 Tristan Gingold <gingold@adacore.com>
1842 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
1843 (macho_symtab_read): Adjust calls to macho_add_oso.
1844 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
1845 (macho_symfile_read): Adjust call to macho_oso_symfile.
1846 (macho_new_init): Move this function after declarations.
1847 (macho_symfile_init): Ditto.
1848 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
1849 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
1851 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
1853 Include MI command in remotelog.
1855 * mi/mi-main.c (mi_execute_command): Call target_log_command.
1857 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
1859 * remote.c (remote_state): Remove gdbarch.
1860 (init_remote_state): Don't set gdbarch.
1861 (remote_query_supported): Pass target_gdbarch instead of
1862 rs->gdbarch to gdbarch_qsupported.
1864 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
1866 * gdbarch.sh: Add qsupported.
1868 * gdbarch.c: Regenerated.
1869 * gdbarch.h: Likewise.
1871 * remote.c (remote_state): Add gdbarch.
1872 (init_remote_state): Set gdbarch.
1873 (remote_query_supported): Support gdbarch_qsupported.
1875 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
1877 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
1878 __FreeBSD_kernel_version.
1880 2010-02-03 Tristan Gingold <gingold@adacore.com>
1882 * symfile.h (struct sym_fns): Add sym_relocate field.
1883 (default_symfile_relocate): New prototype.
1884 (symfile_relocate_debug_section): First argument is now an objfile.
1885 * symfile.c (default_symfile_relocate): Rename from
1886 symfile_relocate_debug_section, first argument is now an objfile.
1887 (symfile_relocate_debug_section): New function.
1888 * coffread.c (coff_sym_fns): Set sym_relocate field.
1889 * somread.c (som_sym_fns): Ditto.
1890 * mipsread.c (ecoff_sym_fns): Ditto.
1891 * machoread.c (macho_sym_fns): Ditto.
1892 * elfread.c (elf_sym_fns): Ditto.
1893 * dwarf2read.c (dwarf2_read_section): Ditto.
1894 * xcoffread.c (xcoff_sym_fns): Ditto.
1895 * dbxread.c (aout_sym_fns): Ditto.
1896 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
1897 (elfstab_build_psymtabs): Ditto.
1899 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
1901 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
1903 2010-02-02 Tom Tromey <tromey@redhat.com>
1905 * valops.c (value_cast_structs): Try downcasting using the RTTI
1908 2010-02-02 Tom Tromey <tromey@redhat.com>
1910 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
1911 (gnuv2_baseclass_offset): Now static.
1912 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
1913 * gnu-v2-abi.h: Remove.
1915 2010-02-02 Tom Tromey <tromey@redhat.com>
1917 * m2-typeprint.c (m2_record_fields): Don't use
1919 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
1920 (struct main_type) <flag_declared_class>: New field.
1921 (struct cplus_struct_type) <declared_type>: Remove.
1922 <ntemplate_args>: Move earlier.
1923 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
1924 (DECLARED_TYPE_TEMPLATE): Remove.
1925 (TYPE_DECLARED_TYPE): Remove.
1926 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
1927 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
1928 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
1931 2010-02-02 Tom Tromey <tromey@redhat.com>
1933 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
1934 * valops.c (search_struct_field): Compute nbases after calling
1936 (check_field): Call CHECK_TYPEDEF.
1937 * cp-valprint.c (cp_print_value): Pass correct address to
1938 baseclass_offset. Fix check for virtual base past the end of the
1939 object. Don't offset address passed to cp_print_value_fields or
1940 apply_val_pretty_printer.
1941 (cp_print_value_fields): Fix call to val_print.
1942 (cp_print_value_fields_rtti): New function.
1943 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
1944 * p-valprint.c (pascal_object_print_value_fields): Fix call to
1946 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
1948 * language.h (struct language_defn) <la_val_print>: Document.
1949 * c-lang.h (cp_print_value_fields_rtti): Declare.
1951 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1954 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
1955 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
1956 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
1958 2010-02-01 Michael Matz <matz@suse.de>
1959 Daniel Jacobowitz <dan@codesourcery.com>
1961 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
1962 functions use a frame pointer.
1964 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1966 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
1967 by a conditional setting DYN_ADDR. Use DYN_ADDR.
1968 * config/djgpp/fnchange.lst: Add translations for
1969 symbol-without-target_section.exp and symbol-without-target_section.c.
1971 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1973 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
1974 (remote_breakpoint_for_pc): Correct invalid_p check.
1975 * gdbarch.c: Regenerated.
1977 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1979 * arm-tdep.c (arm_find_mapping_symbol): New function, from
1981 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
1982 (extend_buffer_earlier): New function.
1983 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
1984 (arm_adjust_breakpoint_address): New function.
1985 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
1987 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1989 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
1990 (arm_linux_thumb2_le_breakpoint): New constants.
1991 (arm_linux_init_abi): Set thumb2_breakpoint and
1992 thumb2_breakpoint_size.
1993 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
1994 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
1995 Implement support for single stepping through IT blocks if
1996 a 32-bit Thumb breakpoint instruction is available.
1997 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
1998 is available, use it when needed.
1999 (arm_remote_breakpoint_from_pc): New function.
2000 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
2001 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
2002 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
2004 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2006 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
2007 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
2008 * gdbarch.c, gdbarch.h: Regenerated.
2009 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
2010 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
2011 gdbarch_remote_breakpoint_from_pc.
2013 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
2015 * infrun.c (prepare_to_proceed): Handle other signals which might
2017 (handle_inferior_event): Move the check for unusual breakpoint
2020 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
2022 amd64 - function returning record with field straddling 2 registers.
2023 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
2024 a record of length <= 16 in which a field straddles the two
2027 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2029 Implement return values on amd64-windows.
2030 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
2031 (amd64_windows_return_value): New function.
2032 (amd64_windows_init_abi): Call set_gdbarch_return_value with
2033 amd64_windows_return_value.
2035 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2037 amd64-windows: 32 bytes allocated on stack by caller for integer
2038 parameter registers.
2039 * i386-tdep.h (struct gdbarch_tdep): Add new field
2040 integer_param_regs_saved_in_caller_frame.
2041 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2042 tdep->integer_param_regs_saved_in_caller_frame to 1.
2043 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2044 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2046 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2048 amd64-windows: memory args passed by pointer during function calls.
2049 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2050 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2051 where tdep->memory_args_by_pointer is non-zero.
2052 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2053 tdep->memory_args_by_pointer to 1.
2055 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2057 amd64-windows: Integer parameters in function calls.
2058 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2060 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2061 call_dummy_integer_regs, and classify.
2062 * amd64-tdep.h (amd64_classify): Add declaration.
2063 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2064 (amd64_reg_class): Delete, moved to i386-tdep.h.
2065 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2066 Replace call to amd64_classify by call to tdep->classify.
2067 (amd64_push_arguments): Get the list of registers to use for
2068 passing integer parameters from the gdbarch tdep structure,
2069 rather than using a hardcoded one. Replace calls to amd64_classify
2070 by calls to tdep->classify.
2071 (amd64_push_dummy_call): Get the register number used for
2072 the "hidden" argument from tdep->call_dummy_integer_regs.
2073 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2074 and tdep->call_dummy_integer_regs. Set tdep->classify.
2075 * amd64-windows-tdep.c: Add include of gdbtypes.h.
2076 (amd64_windows_dummy_call_integer_regs): New static global.
2077 (amd64_windows_classify): New function.
2078 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
2079 tdep->call_dummy_integer_regs and tdep->classify.
2081 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
2083 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
2084 for the new regcache. All callers updated.
2085 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
2086 (get_thread_arch_regcache): Do not set aspace here.
2087 * regcache.h (regcache_xmalloc): Update declaration.
2089 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
2090 regcache_xmalloc updated.
2092 2010-01-28 Joel Brobecker <brobecker@adacore.com>
2094 Another -Wunused-function error in procfs.c (sparc-solaris)
2095 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
2096 Only define if SYS_syssgi is defined.
2097 (remove_dbx_link_breakpoint): Delete declaration. Move up.
2098 (dbx_link_addr, insert_dbx_link_bpt_in_file)
2099 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
2102 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
2104 * windows-nat.c (windows_initialization_done): New variable.
2105 (get_windows_debug_event): Issue error when process dies before
2106 completely initializing.
2107 (do_initial_windows_stuff): Set flag to indicate when we are done with
2108 the initial steps of attaching to the child.
2110 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2112 * symtab.h (struct symbol <symtab>): New comment on NULL values.
2114 2010-01-27 Doug Evans <dje@google.com>
2116 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
2118 * breakpoint.c (bpstat_stop_status): Delete useless code.
2120 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2122 * printcmd.c (display_uses_solib_p): Remove variable section. Access
2123 objfile via SYMBOL_SYMTAB.
2125 2010-01-26 Tom Tromey <tromey@redhat.com>
2128 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
2129 coerce_array on result.
2131 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
2133 * cp-namespace.c (cp_lookup_symbol_namespace): Added
2134 search_parent argument.
2135 (cp_add_using): Initialize 'searched' field.
2136 (reset_directive_searched): New function.
2137 * cp-support.h: Add 'searched' field to using_direct struct.
2138 (cp_lookup_symbol_imports): Ditto.
2139 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
2140 Perform recursive search.
2141 Implement non parent search.
2142 * valops.c (value_maybe_namespace_elt): Updated.
2144 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
2147 * dwarf2read.c (read_lexical_block_scope): Create blocks for
2148 scopes which contain using directives even if they contain no
2150 * symtab.c (lookup_symbol_aux): Pass lowest level block to
2151 la_lookup_symbol_nonlocal.
2152 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
2153 cp_lookup_symbol_namespace.
2154 (cp_lookup_symbol_namespace): Perform an import lookup at every
2156 (cp_lookup_symbol_imports): New function.
2157 (cp_lookup_symbol_in_namespace): New function.
2159 2010-01-25 Tom Tromey <tromey@redhat.com>
2162 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
2165 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2167 * configure.ac: Only use host_os part when disabling TUI on osf.
2168 Use test to check variables, prefix strings with x.
2169 * configure: Regenerate.
2171 * solib-osf.c (osf_current_sos): Initialize tail.
2173 2010-01-25 gingold <gingold@adacore.com>
2175 * windows-nat.c (windows_continue): Use %x to print thread id.
2176 (get_windows_debug_event): Ditto.
2178 2010-01-22 Tom Tromey <tromey@redhat.com>
2181 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
2182 type and arguments. Use smash_to_methodptr_type.
2183 (read_structure_type): Call quirk_gcc_member_function_pointer
2185 * gdbtypes.h (smash_to_methodptr_type): Declare.
2186 * gdbtypes.c (smash_to_methodptr_type): New function.
2187 (lookup_methodptr_type): Use it.
2189 2010-01-21 Tom Tromey <tromey@redhat.com>
2192 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
2193 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
2194 * glibc-tdep.c (find_minsym_and_objfile): Remove.
2195 (glibc_skip_solib_resolver): Use
2196 lookup_minimal_symbol_and_objfile.
2198 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
2200 * inflow.c (check_syscall): Guard by #if clause for GO32 and
2203 2010-01-20 Tom Tromey <tromey@redhat.com>
2206 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
2207 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
2208 * dwarf2expr.c (new_dwarf_expr_context): Allocate
2209 dwarf_stack_values, not CORE_ADDRs.
2210 (execute_stack_op): Change DW_OP_div and comparison operators to
2211 use signed operands.
2213 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
2215 Per-inferior args and tty and environment.
2217 * infcmd.c (inferior_args): Rename to ...
2218 (inferior_args_scratch): ... this.
2219 (inferior_io_terminal): Rename to ...
2220 (inferior_io_terminal_scratch): ... this.
2221 (inferior_argc, inferior_argv): Remove.
2222 (set_inferior_io_terminal, get_inferior_io_terminal): Store
2223 inside current_inferior().
2224 (set_inferior_tty_command, show_inferior_tty_command): New.
2225 (get_inferior_args, set_inferior_args): Store inside
2227 (notice_args_set): Likewise and rename to...
2228 (set_args_command): ... this.
2229 (set_inferior_args_vector): Likewise.
2230 (notice_args_read): Rename to...
2231 (show_args_command): ...new.
2232 (tty_command): Remove.
2233 (run_command_1): Don't free old args, as they are freed by
2234 set_inferior_arg now.
2235 (run_no_args_command): Likewise.
2236 (inferior_environ): Remove.
2237 (run_command_1): Use environment of the current inferior.
2238 (environment_info, set_environment_command)
2239 (unset_environment_command, path_info, path_command): Likewise.
2240 (_initialize_infcmd): Adjust for function and variable renames.
2241 Do not init inferior_environ.
2242 * inferior.h (set_inferior_arg): Adjust prototype.
2243 (struct inferior): New fields args, argc, argv, terminal, environment.
2244 (inferior_environ): Remove declaration.
2245 * inferior.c (free_inferior): Free new fields.
2246 (add_inferior_silent): Initialize 'environment' field.
2247 * main.c (captured_main): Set arguments only after the initial
2248 inferior has been created. Set set_inferior_io_terminal,
2250 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
2252 (_initialize_mi_cmd_env): Adjust for disappearance of global
2254 * solib.c (solib_find): Use environment of the current inferior.
2256 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2258 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
2260 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
2262 2010-01-20 Joel Brobecker <brobecker@adacore.com>
2264 Get rid of ada-lang.c:function_name_from_pc.
2265 * ada-lang.c: Add "stack.h" #include.
2266 (function_name_from_pc): Delete.
2267 (is_known_support_routine): Replace call to function_name_from_pc
2268 by call to find_frame_funname.
2269 (ada_unhandled_exception_name_addr_from_raise): Likewise.
2271 2010-01-19 Tom Tromey <tromey@redhat.com>
2274 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
2277 2010-01-19 Tom Tromey <tromey@redhat.com>
2279 * top.c (stop_sig, float_handler, do_nothing): Remove.
2281 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2283 * breakpoint.c (watchpoint_check): Check the call
2284 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
2286 * config/djgpp/fnchange.lst: Add translations for
2287 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
2288 watchpoint-cond-gone-stripped.c.
2290 2010-01-19 Tom Tromey <tromey@redhat.com>
2293 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
2294 into parent scope, and enumerator into grandparent scope.
2296 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2298 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
2300 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2302 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
2303 i[34567]86-*-solaris2.1[0-9]*.
2304 * configure.tgt: Likewise.
2306 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2308 * NEWS: Document the source command enhancement allowing it
2309 to load Python scripts. Document the "set/show script-extension"
2312 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2314 Add -Wunused-function to compile flags.
2315 * configure.ac: Add -Wunused-function to build_warnings.
2316 * configure: Regenerate.
2318 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2320 "delete" ada-lex.c:input function, not used.
2321 * ada-lex.l: #define YY_NO_INPUT.
2323 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2325 Delete free_named_symtabs and associated cleanup.
2326 * symfile.h (free_named_symtabs): Delete declaration.
2327 * symfile.c: Remove some commented out code (clear_symtab_users_once).
2328 (cashier_psymtab): Comment function out.
2330 (free_named_symtabs): Delete.
2331 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
2332 * dbxread.c (end_psymtab): Likewise.
2333 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
2334 * exec.c (exec_close_1): Ditto.
2335 * xcoffread.c (xcoff_end_psymtab): Likewise.
2337 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2339 * stack.c (print_block_frame_labels): Comment function out.
2341 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2343 Delete unused or undefined functions.
2344 * breakpoint.c (ep_parse_optional_filename): Delete.
2345 * dcache.c (dcache_write_line): Remove declaration.
2346 * infrun.c (build_infrun): Remove declaration.
2347 * tracepoint.c (tracepoint_save_command): Remove declaration.
2348 * linux-nat.c (init_lwp_list): Delete. No longer used.
2349 * event-loop.c (check_async_signal_handlers): Delete declaration.
2350 * infrun.c (init_execution_control_state): Delete.
2351 (proceed): Update comment to avoid mentioning
2352 init_execution_control_state.
2353 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
2354 * ada-lang.c (ada_to_static_fixed_value): Delete.
2355 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
2356 * cp-namespace.c (cp_copy_usings): Delete.
2357 * xml-syscall.c (xml_number_of_syscalls): Delete.
2358 * progspace.c (find_program_space_by_num): Delete.
2359 * inflow.c (handle_sigio): Delete declaration.
2360 * hppa-tdep.c (hppa_alignof): Delete.
2361 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
2362 (mipsnbsd_core_osabi_sniffer): Delete.
2364 2010-01-18 Tom Tromey <tromey@redhat.com>
2367 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
2368 (CONST_CAST): New tokens.
2369 (exp): Add new productions.
2370 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
2372 (is_cast_operator): New function.
2373 (yylex): Handle cast operators specially.
2374 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
2375 UNOP_REINTERPRET_CAST>: New cases.
2376 * expprint.c (print_subexp_standard): Likewise.
2377 (op_name_standard): Likewise.
2378 (dump_subexp_body_standard): Likewise.
2379 * parse.c (operator_length_standard): Likewise.
2380 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
2381 UNOP_REINTERPRET_CAST.
2382 * gdbtypes.c (class_types_same_p): New function.
2383 (is_ancestor): Use it.
2384 (is_public_ancestor): New function.
2385 (is_unique_ancestor_worker): Likewise.
2386 (is_unique_ancestor): Likewise.
2387 * gdbtypes.h (class_types_same_p, is_public_ancestor)
2388 (is_unique_ancestor): Declare.
2389 * valops.c (value_reinterpret_cast): New function.
2390 (dynamic_cast_check_1): Likewise.
2391 (dynamic_cast_check_2): Likewise.
2392 (value_dynamic_cast): Likewise.
2393 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
2395 2010-01-18 Joel Brobecker <brobecker@adacore.com>
2397 Fix build failure when building without Python support.
2398 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
2401 2010-01-18 Joel Brobecker <brobecker@adacore.com>
2403 Use XVS field type instead of doing a parallel lookup.
2404 * ada-lang.c (ada_get_base_type): Follow the XVS field type
2405 if it is a reference type instead of doing a type lookup using
2408 2010-01-18 Joel Brobecker <brobecker@adacore.com>
2410 Trust PAD types instead of using PAD___XVS.
2411 * ada-lang.c (trust_pad_over_xvs): New static variable.
2412 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
2413 parallel XVS type, follow the XVS type instead of the PAD type.
2414 (unwrap_value): Make sure that there is no parallel XVE type
2415 before returning the value as is.
2416 (set_ada_list, show_ada_list): New static variables.
2417 (set_ada_command, show_ada_command): New functions.
2418 (_initialize_ada_language): Add new "set/show ada" prefix commands.
2419 Add new "set/show ada trust-PAD-over-XVS" setting.
2421 2010-01-18 Tom Tromey <tromey@redhat.com>
2422 Thiago Jung Bauermann <bauerman@br.ibm.com>
2424 Allow "source" to load python scripts.
2425 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
2426 * python/python.c (source_python_script): New function.
2427 * python/python.h (source_python_script): Add declaration.
2428 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
2429 (script_ext_off, script_ext_soft, script_ext_strict)
2430 (script_ext_enums, script_ext_mode): New static constants.
2431 (show_script_ext_mode, find_and_open_script): New functions.
2432 (source_script): Enhance to handle Python scripts.
2433 (init_cli_cmds): Add set/show script-extension commands.
2435 2010-01-16 Stan Shebs <stan@codesourcery.com>
2437 * tracepoint.h (struct trace_status): Use unsigned long long
2439 * tracepoint.c (trace_status_command): Fix printf directive.
2440 (trace_save_command): Check fwrite returns, fix printf directive.
2441 (trace_filename): New global.
2442 (tfile_open): Set it, check read returns.
2443 (tfile_close): Free trace_filename.
2444 (tfile_get_traceframe_address): Check read returns.
2445 (tfile_trace_find): Ditto.
2446 (tfile_fetch_registers): Ditto.
2447 (tfile_xfer_partial): Ditto.
2448 (tfile_get_trace_state_variable_value): Ditto.
2450 2010-01-15 Stan Shebs <stan@codesourcery.com>
2452 Add trace file support.
2453 * tracepoint.h (enum trace_stop_reason): New enum.
2454 (struct trace_status): New struct.
2455 (parse_trace_status): Declare.
2456 (struct uploaded_tp): Move here from remote.c,
2457 add fields for actions.
2458 (struct uploaded_tsv): New struct.
2459 * tracepoint.c (tfile_ops): New target vector.
2460 (trace_fd): New global.
2461 (tfile_open): New function.
2462 (tfile_close): New function.
2463 (tfile_files_info): New function.
2464 (tfile_get_trace_status): New function.
2465 (tfile_get_traceframe_address): New function.
2466 (tfile_trace_find): New function.
2467 (tfile_fetch_registers): New function.
2468 (tfile_xfer_partial): New function.
2469 (tfile_get_trace_state_variable_value): New function.
2470 (init_tfile_ops): New function.
2471 (_initialize_tracepoint): Call it, add tfile target.
2472 (trace_status): New global.
2473 (current_trace_status): New function.
2474 (trace_running_p): Remove, change all users to get from
2475 current_trace_status()->running.
2476 (get_trace_status): Remove.
2477 (trace_status_command): Call target_get_trace_status directly,
2478 report more detail including tracing stop reasons.
2479 (trace_find_command): Always allow tfind on a file.
2480 (trace_find_pc_command): Ditto.
2481 (trace_find_tracepoint_command): Ditto.
2482 (trace_find_line_command): Ditto.
2483 (trace_find_range_command): Ditto.
2484 (trace_find_outside_command): Ditto.
2485 (trace_frames_offset, cur_offset): Declare as off_t.
2486 (trace_regblock_size): Rename from reg_size, update users.
2487 (parse_trace_status): New function.
2488 (tfile_interp_line): New function.
2489 (disconnect_or_stop_tracing): Ensure current trace
2490 status before asking what to do.
2491 (stop_reason_names): New global.
2492 (trace_save_command): New command.
2493 (get_uploaded_tp): Move here from remote.c.
2494 (find_matching_tracepoint): Ditto.
2495 (merge_uploaded_tracepoints): New function.
2496 (parse_trace_status): Use stop_reason_names.
2497 (_initialize_tracepoint): Define tsave command.
2498 * target.h (target_ops): New fields to_save_trace_data,
2499 to_upload_tracepoints, to_upload_trace_state_variables,
2500 to_get_raw_trace_data, change to_get_trace_status
2501 to take a pointer to a status struct.
2502 (target_save_trace_data): New macro.
2503 (target_upload_tracepoints): New macro.
2504 (target_upload_trace_state_variables): New macro.
2505 (target_get_raw_trace_data): New macro.
2506 * target.c (update_current_target): Add new methods, change
2507 signature of to_get_trace_status.
2508 * remote.c (hex2bin): Make globally visible.
2510 (remote_download_trace_state_variable): Download name also.
2511 (remote_get_trace_status): Update parameter, use
2513 (remote_save_trace_data): New function.
2514 (remote_upload_tracepoints): New function.
2515 (remote_upload_trace_state_variables): New function.
2516 (remote_get_raw_trace_data): New function.
2517 (remote_start_remote): Use them.
2518 (_initialize_remote_ops): Add operations.
2519 * ax-gdb.c: Include breakpoint.h.
2520 * breakpoint.c (create_tracepoint_from_upload): Use
2521 break_command_really, return tracepoint, warn about unimplemented
2523 * NEWS: Mention trace file addition.
2525 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2527 Fix compilation warning on gcc-3.4.
2528 * exec.c (print_section_info): Move the `displacement' variable
2529 initialization to its declaration.
2531 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2533 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
2536 2010-01-15 Eric Botcazou <botcazou@adacore.com>
2538 "info tasks" broken by typedefs in ATCB type definitions.
2539 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
2540 ada_check_typedef before retrieving the length of the type for
2543 2010-01-15 Joel Brobecker <brobecker@adacore.com>
2545 Do not use name-based lookup for unconstrained packed arrays.
2546 * ada-lang.c (find_parallel_type_by_descriptive_type):
2547 Limit the fallback to name-based lookups to the case where
2548 the type is a constrained packed array.
2550 2010-01-15 Joel Brobecker <brobecker@adacore.com>
2552 Enhance gdb-gdb.py to handle main_type.type_specific.
2553 * gdb-gdb.py: Print the type-specific part of struct main_type.
2555 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2557 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
2558 * configure: Regenerate.
2559 * config.in: Regenerate.
2560 * utils.c: Include sys/resource.h.
2561 (dump_core, can_dump_core): New.
2562 (internal_vproblem): Update the comment. Check can_dump_core while
2563 setting dump_core_p. Replace two abort calls by dump_core calls.
2565 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2566 Eli Zaretskii <eliz@gnu.org>
2568 * NEWS: Document the PIE support.
2570 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2572 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
2573 (check_is_pie_binary, _initialize_linux_tdep): Remove.
2575 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2577 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
2578 Replace exec_entry_point call by bfd_get_start_address.
2580 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2582 Support Valgrind attachments broken by the PIE support.
2583 * auxv.c: Include gdbcore.h.
2584 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
2585 parameters ops, object and annex. Remove their assertions.
2586 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
2587 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
2588 (memory_xfer_auxv): ... here.
2589 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
2591 * procfs.c (procfs_xfer_partial): Likewise.
2592 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
2593 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
2594 (svr4_solib_create_inferior_hook): Conditionalize the
2595 svr4_relocate_main_executable call.
2597 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2599 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
2600 target_section. Find SECT in current_target_sections, gdb_assert it.
2601 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
2603 * symtab.c (lookup_objfile_from_block): Return the binary file instead
2604 of separate debug info file.
2606 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2608 Support PIEs with no symfile_objfile.
2609 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
2610 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
2612 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2614 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
2616 (svr4_static_exec_displacement): ... a new function.
2617 (svr4_exec_displacement): New function.
2618 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
2619 new_offsets using alloca now. Remove variable old_chain and changed.
2620 Call objfile_relocate unconditionally now.
2622 2010-01-14 Doug Evans <dje@google.com>
2624 * gdbtypes.c (arch_flags_type): Fix comment.
2625 * gdbtypes.h (arch_composite_type): Fix comment.
2627 2009-01-14 Tristan Gingold <gingold@adacore.com>
2629 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
2630 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
2631 to symbol_file_add_from_bfd. Add OSO as separate objfile.
2632 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
2633 macho_add_oso_symfile.
2634 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
2636 2010-01-14 Joel Brobecker <brobecker@adacore.com>
2638 Tru64: Dead threads are never deleted.
2639 * dec-thread.c (dec_thread_ptid_is_alive): New function.
2640 (dec_thread_count_gdb_threads): Fix counter increment.
2641 (dec_thread_add_gdb_thread): Fix *listp increment.
2642 (resync_thread_list): Fix bug in deletion of dead threads that
2643 caused all threads to be deleted, instead of just the dead ones.
2645 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
2649 * python/python-internal.h: Add lazy_string_object_type
2651 (create_lazy_string_object, gdbpy_initialize_lazy_string)
2652 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
2653 * python/py-value.c (valpy_lazy_string): New function.
2654 (convert_value_from_python): Add lazy string conversion.
2655 * python/py-prettyprint.c (pretty_print_one_value): Check if
2656 return is also a lazy string.
2657 (print_string_repr): Add lazy string printing branch.
2658 (print_children): Likewise.
2659 * python/py-lazy-string.c: New file. Implement lazy strings.
2660 * python/python.c (_initialize_python): Call
2661 gdbpy_initialize_lazy_string.
2662 * varobj.c (value_get_print_value): Add lazy string printing
2663 branch. Account for encoding.
2664 * c-lang.c (c_printstr): Account for new encoding argument. If
2665 encoding is NULL, find encoding suited for type, otherwise use
2667 * language.h (language_defn): Add encoding argument.
2668 (LA_PRINT_STRING): Likewise.
2669 * language.c (unk_lang_printstr): Update to reflect new encoding
2670 argument to language_defn.
2671 * ada-lang.h (ada_printstr): Likewise.
2672 * c-lang.h (c_printstr): Likewise.
2673 * p-lang.h (pascal_printstr);
2674 * f-lang.c (f_printstr): Likewise.
2675 * m2-lang.c (m2_printstr): Likewise.
2676 * objc-lang.c (objc_printstr): Likewise.
2677 * p-lang.c (pascal_printstr): Likewise.
2678 * scm-lang.c (scm_printstr): Likewise.
2679 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
2681 * ada-valprint.c (ada_printstr): Likewise.
2682 * f-valprint.c (f_val_print): Likewise
2683 * m2-valprint.c (m2_val_print): Likewise.
2684 * p-valprint.c (pascal_val_print): Likewise.
2685 * expprint.c (print_subexp_standard): Likewise.
2686 * valprint.c (val_print_string): Likewise.
2687 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
2688 (SUBDIR_PYTHON_SRCS): Likewise.
2689 (py-lazy-string.o): New rule.
2691 2010-01-13 Doug Evans <dje@google.com>
2693 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
2694 uninitialized" warning from gcc on local `tree'.
2696 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
2698 Implement core awareness.
2700 * bcache.c (compare_ints): Remove
2701 (print_percentage): Use compare_positive_ints.
2702 * defs.h (compare_positive_ints): Declare.
2703 * linux-nat.h (struct lin_lwp): New field core.
2704 (linux_nat_core_of_thread_1): Declare.
2705 * linux-nat.c (add_lwp): Init the 'core' field.
2706 (linux_nat_wait_1): Record the core.
2707 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
2708 (linux_nat_add_target): Register the above.
2709 * linux-thread-db.c (update_thread_core): New.
2710 (thread_db_find_new_threads): Update core information for
2712 * remote.c (struct private_thread_info): New.
2713 (free_private_thread_info, demand_private_info): New.
2714 (PACKET_qXfer_threads, use_osdata_threads): New.
2715 (struct thread_item, threads_parsing_context
2716 (start_thread, end_thread, thread_attributes)
2717 (thread_children, threads_children, threads_elements): New.
2718 (remote_threads_info): Try qXfer:threads before anything
2720 (remote_protocol_packets): Register qXfer:threads.
2721 (remote_open_1): Init use_osdata_threads.
2722 (struct stop_reply): New field 'core'.
2723 (remote_parse_stop_reply): Parse core number.
2724 (process_stop_reply): Record core number.
2725 (remote_xfer_partial): Handle qXfer:threads.
2726 (remote_core_of_thread): New.
2727 (init_remote_ops): Register remote_core_of_thread.
2728 (_initialize_remote): Register qXfer:read.
2729 * target.c (target_core_of_thread): New
2730 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
2731 (struct target_ops): New field to_core_of_threads.
2732 (target_core_of_thread): Declare.
2733 * gdbthread.h (struct thread_info): New field private_dtor.
2734 * thread.c (print_thread_info): Report the core.
2735 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
2736 * utils.c (compare_positive_ints): New.
2737 * features/threads.dtd: New.
2738 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
2739 * mi/mi-main.c (struct collect_cores_data, collect_cores)
2740 (do_nothing, free_vector_of_osdata_items)
2741 (splay_tree_int_comparator, free_splay_tree): New.
2742 (print_one_inferior_data): Implemented printing of selected
2743 inferiors. Collect and print cores.
2744 (output_cores): New.
2745 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
2746 thread groups together with --available.
2748 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2750 * configure: Regenerate (for _STRUCTURED_PROC).
2752 2010-01-12 Joel Brobecker <brobecker@adacore.com>
2754 Delete dead function.
2755 * ada-lang.c (extract_string): Delete. No longer used.
2757 2010-01-12 Joel Brobecker <brobecker@adacore.com>
2759 Fix -Wunused warning in dec-thread.c.
2760 * dec-thread.c (dec_thread_count_gdb_threads)
2761 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
2763 2010-01-12 Joel Brobecker <brobecker@adacore.com>
2765 * ada-valprint.c (ada_print_floating): Remove trailing space.
2767 2010-01-12 Joel Brobecker <brobecker@adacore.com>
2769 Add support for DW_AT_GNAT_descriptive_type.
2770 * gdbtypes.h (enum type_specific_kind): New enum.
2771 (struct main_type) [type_specific_field]: New component.
2772 [type_specific]: Add new component "gnat_stuff".
2773 (struct gnat_aux_type): New type.
2774 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
2775 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
2776 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
2777 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
2778 (TYPE_SPECIFIC_FIELD): New macros.
2779 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
2780 type does not hold any cplus-specific data.
2781 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
2782 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
2783 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
2784 cplus-specific data.
2785 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
2786 Set new component TYPE_SPECIFIC_FIELD (type).
2787 (gnat_aux_default): New constant.
2788 (allocate_gnat_aux_type): New function.
2789 (init_type): Add initialization the type-specific stuff for
2790 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
2791 (print_gnat_stuff): New function.
2792 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
2793 specific data. Adjust code that prints the contents of the
2794 type-specific union using the TYPE_SPECIFIC_FIELD value.
2795 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
2796 the type cplus stuff for Ada types.
2797 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
2798 Error out if these routines are called with an Ada type.
2799 (read_structure_type, read_array_type, read_subrange_type):
2800 Add call to set_descriptive_type.
2801 (set_die_type): Initialize the gnat-specific data if necessary.
2802 (need_gnat_info, die_descriptive_type, set_descriptive_type):
2804 * ada-lang.c (decode_constrained_packed_array_type): Use
2805 decode_constrained_packed_array_type instead of doing a standard
2806 lookup to locate a parallel type.
2807 (find_parallel_type_by_descriptive_type): New function.
2808 (ada_find_parallel_type_with_name): New function.
2809 (ada_find_parallel_type): Reimplement using
2810 ada_find_parallel_type_with_name.
2811 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
2812 to check if type has a cplus stuff.
2813 * linespec.c (total_number_of_methods): Likewise.
2814 * mdebugread.c (new_type): Likewise.
2816 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2818 * NEWS: Document the 0b binary number prefix parsing.
2820 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2822 * objfiles.c (objfile_relocate1): Change the return type to int.
2823 Describe the new return value. Return non-zero if data changed.
2824 (objfile_relocate): New variable changed. Set it. Call
2825 breakpoint_re_set depending on CHANGED.
2827 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2829 Implement binary numbers parsing.
2830 * c-exp.y (parse_number): New case 'b' and 'B'.
2832 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2833 Tristan Gingold <gingold@adacore.com>
2835 * solib.c (info_sharedlibrary_command): Replace
2836 objfile_has_partial_symbols and objfile_has_full_symbols calls by
2837 objfile_has_symbols.
2839 2010-01-10 Joel Brobecker <brobecker@adacore.com>
2841 * NEWS: Document the improvements made to the mips-irix port.
2843 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2845 Fix the documentation of valprint.c:value_print.
2846 * valprint.c (value_print): Update the function description to
2847 mention that the syntax of the output follows the current_language,
2850 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2852 Fix displacement of separate debug info files.
2853 * objfiles.c (objfile_relocate): Rename to ...
2854 (objfile_relocate1): ... here and make it static. Extend the comment.
2855 (objfile_relocate): New function.
2856 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
2857 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
2858 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
2859 allocated using alloca.
2860 * symfile.c (copy_section_addr_info): Remove.
2861 (build_section_addr_info_from_objfile): Make it global. New variables
2862 addr_bit and mask, use them.
2863 * symfile.h (build_section_addr_info_from_objfile): New prototype.
2864 (copy_section_addr_info): Remove.
2866 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2868 Signal unwinder for mips-irix N32.
2869 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
2871 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
2872 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
2873 (SIGCONTEXT_LO_OFF): New macros.
2874 (mips_irix_n32_tramp_frame_init): New function.
2875 (mips_irix_n32_tramp_frame): New static constant.
2876 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
2878 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2880 Breakpoint in shared library does not work on mips-irix.
2881 * procfs.c: #include "observer.h".
2882 (procfs_inferior_created): New function, moving here the code
2883 which unsets the syssgi syscall-exit notifications.
2884 (procfs_create_inferior): Remove the code which unsets the syssgi
2885 syscall-exit notifications. It is too early to do this here.
2886 (_initialize_procfs): Attach the procfs_inferior_created observer.
2888 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2890 Wrong return convention for arrays (mips-irix).
2891 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
2892 128 bits or smaller are returned the same way as structs
2893 and unions of the the same size.
2895 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2897 Cannot set the PC on mips-irix.
2898 * irix5-nat.c (fill_gregset): Check regno against the raw PC
2899 register number, no the cooked one.
2901 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2903 Error while loading core file on mips-irix.
2904 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
2905 if debugging from a core file.
2907 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2909 GDB hangs when attaching to process on mips-irix.
2910 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
2911 attaching to a process.
2913 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2915 Use the correct breakpoint instruction on mips-irix.
2916 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
2917 containing the correct breakpoint instruction to use on mips-irix.
2918 Use it when the osabi is GDB_OSABI_IRIX.
2920 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2922 -Wunused warning in procfs.c (mips-irix only).
2923 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
2924 throughout instead of using praddset and prdelset respectively.
2926 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2928 GDB crash while stepping into function.
2929 * infrun.c (handle_inferior_event): Refetch the current frame
2930 after handling what.main_action, in case that pointer became
2933 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2935 Fix build failure of solaris-hosted cross debuggers.
2936 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
2938 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
2940 Fix build failure on sparc-solaris.
2941 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
2943 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2945 Move some symfile code into subroutines.
2946 * symfile.h (relative_addr_info_to_section_offsets)
2947 (addr_info_make_relative): New prototypes.
2948 * symfile.c (default_symfile_offsets): Move a part to ...
2949 (relative_addr_info_to_section_offsets): ... this new function.
2950 (default_symfile_offsets): Call it.
2951 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
2953 (addr_info_make_relative): ... this new function.
2955 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2957 Add from_tty to solib_create_inferior_hook.
2958 * infcmd.c (post_create_inferior): Move solib_add after
2959 solib_create_inferior_hook. Pass from_tty to
2960 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
2961 0 from_tty and comment why.
2962 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
2963 * linux-nat.c (linux_child_follow_fork): Likewise.
2964 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
2965 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
2967 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
2968 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2969 * solib-null.c (null_solib_create_inferior_hook): Likewise.
2970 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2971 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
2972 * solib-som.c (som_solib_create_inferior_hook): Likewise.
2973 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
2974 Pass it to svr4_so_ops.solib_create_inferior_hook.
2975 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
2977 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
2979 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
2981 * solib-target.c (solib_target_solib_create_inferior_hook): New
2983 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
2984 it to ops->solib_create_inferior_hook.
2985 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
2986 Move solib_add after solib_create_inferior_hook, call it now with
2987 from_tty as 0. New comment there.
2988 * solib.h (solib_create_inferior_hook): New parameter from_tty.
2989 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
2992 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
2995 * infrun.c (handle_inferior_event): Use get_thread_regcache
2996 with events ptid, not get_current_regcache.
2998 2009-01-08 Joel Brobecker <brobecker@adacore.com>
3000 GDB crash with empty executable name (MinGW).
3001 * source.c (openp): Add assert that parameter string is not NULL.
3002 if parameter string is an empty string, then return with a failure
3005 2009-01-08 Joel Brobecker <brobecker@adacore.com>
3007 Get rid of support for VAX Floats.
3008 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
3009 (ada_vax_float_print_function): Delete.
3010 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
3011 (ada_vax_float_print_function): Delete.
3012 * ada-typeprint.c (print_vax_floating_point_type): Delete.
3013 (ada_print_type): Remove support for VAX floats.
3014 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
3016 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3018 * stabsread.c (read_args): Handle zero arguments.
3020 2009-01-08 Joel Brobecker <brobecker@adacore.com>
3022 Cannot find in-tree libiconv.a after reconfigure.
3023 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
3024 that we can use, then cache the path to this archive.
3025 * configure: Regenerate.
3027 2010-01-07 Stan Shebs <stan@codesourcery.com>
3029 Make tracepoint operations go through target vector.
3030 * target.h (enum trace_find_type): New enum.
3031 (struct target_ops): New fields to_trace_init,
3032 to_download_tracepoint, to_download_trace_state_variable,
3033 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
3034 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
3035 to_set_disconnected_tracing.
3036 (target_trace_init): New macro.
3037 (target_download_tracepoint): New macro.
3038 (target_download_trace_state_variable): New macro.
3039 (target_trace_start): New macro.
3040 (target_trace_set_readonly_regions): New macro.
3041 (target_get_trace_status): New macro.
3042 (target_trace_stop): New macro.
3043 (target_trace_find): New macro.
3044 (target_get_trace_state_variable_value): New macro.
3045 (target_set_disconnected_tracing): New macro.
3046 * target.c (update_current_target): Inherit and set defaults for
3047 tracepoint operations.
3048 * tracepoint.c (default_collect): Make globally visible.
3049 (target_is_remote): Remove, along with all calls.
3050 (tvariables_info): Call target_get_trace_state_variable_value.
3051 (remote_set_transparent_ranges): Remove.
3052 (trace_start_command): Call target_trace_init,
3053 target_download_tracepoint, etc.
3054 (download_tracepoint): Remove.
3055 (trace_stop_command): Simplify.
3056 (stop_tracing): Call target_trace_stop.
3057 (get_trace_status): Call target_get_trace_status.
3058 (trace_status_command): Add case for targets that cannot trace.
3059 (finish_tfind_command): Change to take numerical arguments, call
3061 (trace_find_command): Update call to finish_tfind_command.
3062 (trace_find_pc_command): Ditto.
3063 (trace_find_tracepoint_command): Ditto.
3064 (trace_find_line_command): Ditto.
3065 (trace_find_range_command): Ditto.
3066 (trace_find_outside_command): Ditto.
3067 (set_disconnected_tracing_value): Call
3068 target_set_disconnected_tracing.
3069 * remote.c: Add protocol encoding bits from tracepoint.c.
3070 (trace_error): Move from tracepoint.c.
3071 (remote_get_noisy_reply): Ditto.
3072 (free_actions_list_cleanup_wrapper): Ditto.
3073 (free_actions_list): Ditto.
3074 (remote_trace_init): New function.
3075 (remote_download_tracepoint): New function.
3076 (remote_download_trace_state_variable): New function.
3077 (remote_trace_set_readonly_regions): New function.
3078 (remote_trace_start): New function.
3079 (remote_get_trace_status): New function.
3080 (remote_trace_stop): New function.
3081 (remote_trace_find): New function.
3082 (remote_download_trace_state_variable): New function.
3083 (remote_set_disconnected_tracing): New function.
3084 (init_remote_ops): Add tracepoint operations.
3086 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
3088 2010-01-07 Tristan Gingold <gingold@adacore.com>
3090 * symfile.c (build_section_addr_info_from_objfile): New function.
3091 (symbol_file_add_separate): Don't use offsets from objfile but
3094 2010-01-06 Stan Shebs <stan@codesourcery.com>
3096 Support disconnected tracing.
3097 * infcmd.c (detach_command): Ask whether to stop tracing.
3098 * cli/cli-cmds.c (quit_command): Ditto.
3099 * breakpoint.h (struct breakpoint): New field number_on_target.
3100 * breakpoint.c (create_tracepoint_from_upload): New function.
3101 (get_tracepoint_by_number_on_target): New function.
3102 * remote.c (struct remote): New field disconnected_tracing.
3103 (remote_disconnected_tracing_feature): New function.
3104 (remote_protocol_features): Add DisconnectedTracing.
3105 (struct uploaded_tp): New struct.
3106 (uploaded_tps): New global.
3107 (get_uploaded_tp): New function.
3108 (find_matching_tracepoint): New function.
3109 (remote_get_tracing_state): New function.
3110 (remote_start_remote): Call it.
3111 * tracepoint.c (disconnected_tracing): New global.
3112 (trace_start_command): Initialize number_on_target.
3113 (stop_tracing): New function, split out from...
3114 (trace_stop_command): Call stop_tracing.
3115 (get_trace_status): New function, split out from...
3116 (trace_status_command): Call get_trace_status, add info on
3117 disconnection behavior.
3118 (disconnect_or_stop_tracing): New function.
3119 (finish_tfind_command): Translate from number on target.
3120 (trace_find_tracepoint_command): Translate to number on target.
3121 (send_disconnected_tracing_value): New function.
3122 (set_disconnected_tracing): New function.
3123 (_initialize_tracepoint): Add disconnected-tracing variable.
3124 * NEWS: Mention disconnected tracing.
3126 2010-01-06 Tristan Gingold <gingold@adacore.com>
3128 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
3129 parameter to main_objfile. Iterate on all separate debug objfiles.
3130 * symfile.h (symbol_file_add_separate)
3131 (find_separate_debug_file_by_debuglink): Remove parameter names.
3132 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
3133 (reread_symbols): Use free_objfile_separate_debug.
3134 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
3136 (objfile_separate_debug_iterate, add_separate_debug_objfile)
3137 (free_objfile_separate_debug): New prototypes.
3138 * objfiles.c (objfile_separate_debug_iterate): New function.
3139 (add_separate_debug_objfile, free_objfile_separate_debug): New
3141 (free_objfile): Use free_objfile_separate_debug. Adjust for
3142 multiple separate debug objfile.
3143 (objfile_has_symbols): Adjust comment. Iterate on all separate
3145 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
3147 (lookup_minimal_symbol_text): Ditto.
3148 (lookup_minimal_symbol_by_pc_name): Ditto.
3149 (lookup_minimal_symbol_solib_trampoline): Ditto.
3150 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
3153 2010-01-05 Stan Shebs <stan@codesourcery.com>
3155 Add fast tracepoints.
3156 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
3157 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
3158 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
3159 * breakpoint.c (tracepoint_type): New function.
3160 (ALL_TRACEPOINTS): Use it.
3161 (should_be_inserted): Ditto.
3162 (bpstat_check_location): Ditto.
3163 (print_one_breakpoint_location): Ditto.
3164 (user_settable_breakpoint): Ditto.
3165 (set_breakpoint_location_function): Ditto.
3166 (disable_breakpoints_in_shlibs): Ditto.
3167 (delete_trace_command): Ditto.
3168 (print_it_typical): Add bp_fast_tracepoint case.
3169 (bpstat_what): Ditto.
3170 (print_one_breakpoint_location): Ditto.
3171 (allocate_bp_location): Ditto.
3173 (breakpoint_re_set_one): Ditto.
3174 (disable_command): Ditto.
3175 (enable_command): Ditto.
3176 (check_fast_tracepoint_sals): New function.
3177 (break_command_really): Call it.
3178 (ftrace_command): New function.
3179 (_initialize_breakpoint): Add ftrace command.
3180 * gdbarch.sh (fast_tracepoint_valid_at): New.
3181 * gdbarch.h, gdbarch.c: Regenerate.
3182 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
3183 (i386_gdbarch_init): Use it.
3184 * remote.c (struct remote_state): New field fast_tracepoints.
3185 (PACKET_FastTracepoints): New packet config type.
3186 (remote_fast_tracepoint_feature): New function.
3187 (remote_protocol_features): Add FastTracepoints.
3188 (remote_supports_fast_tracepoints): New function.
3189 (_initialize_remote): Add FastTracepoints.
3190 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
3191 * NEWS: Mention fast tracepoints.
3193 2010-01-06 Joel Brobecker <brobecker@adacore.com>
3195 * gdb-gdb.py: New file.
3197 2010-01-05 Michael Snyder <msnyder@vmware.com>
3199 * infrun.c (handle_inferior_event): Fix typo in comment.
3201 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3203 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
3205 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3207 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
3209 (s390-linux32-expedite): Define.
3210 (s390-linux64-expedite): Define.
3211 (s390x-linux64-expedite): Define.
3212 * features/s390-acr.xml: New file.
3213 * features/s390-fpr.xml: New file.
3214 * features/s390-core32.xml: New file.
3215 * features/s390-core64.xml: New file.
3216 * features/s390x-core64.xml: New file.
3217 * features/s390-linux32.xml: New file.
3218 * features/s390-linux64.xml: New file.
3219 * features/s390x-linux64.xml: New file.
3220 * features/s390-linux32.c: New generated file.
3221 * features/s390-linux64.c: New generated file.
3222 * features/s390x-linux64.c: New generated file.
3224 * regformats/s390-linux32.dat: New generated file.
3225 * regformats/s390-linux64.dat: New generated file.
3226 * regformats/s390x-linux64.dat: New generated file.
3227 * regformats/reg-s390.dat: Remove.
3228 * regformats/reg-s390x.dat: Remove.
3230 * s390-nat.c: Include "auxv.h" and <elf.h>.
3231 (HWCAP_S390_HIGH_GPRS): Define if undefined.
3232 (s390_target_wordsize): New function.
3233 (s390_auxv_parse): Likewise.
3234 (s390_get_hwcap): Likewise.
3235 (s390_read_description): Likewise.
3236 (_initialize_s390_nat): Install s390_auxv_parse and
3237 s390_read_description.
3239 * s390-tdep.c: Include "features/s390-linux32.c",
3240 "features/s390-linux64.c", and "features/s390x-linux64.c".
3241 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
3242 (s390_register_call_saved): New function.
3243 (s390_register_name): Remove.
3244 (s390_register_type): Remove.
3245 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
3246 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
3247 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
3248 (s390_pseudo_register_name): New function.
3249 (s390_pseudo_register_type): New function.
3250 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
3251 Handle full GPR pesudos and varying pseudo register numbers.
3252 (s390_pseudo_register_write): Likewise
3253 (s390x_pseudo_register_read): Remove.
3254 (s390x_pseudo_register_write): Likewise.
3255 (s390_register_group): Remove.
3256 (s390_pseudo_register_group): New function.
3257 (s390_regmap_gregset): Add GPR upper halves.
3258 (s390x_regmap_gregset): Likewise.
3259 (s390_regmap_fpregset): Likewise.
3260 (s390_regmap_upper): New global variable.
3261 (s390_upper_regset): New global variable.
3262 (s390_upper_regset_sections): New global variable.
3263 (s390_regset_from_core_section): Handle GPR upper halves.
3264 (s390_core_read_description): New function.
3265 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
3266 register information. Handle varying pseudo register numbers.
3267 (s390_backchain_frame_unwind_cache): Likewise.
3268 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
3269 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
3270 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
3271 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
3272 Handle varying pseudo register numbers.
3273 (s390_unwind_pc): Handle varying pseudo register numbers.
3274 (s390_dwarf2_prev_register): New function.
3275 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
3276 register information. Handle varying pseudo register numbers.
3277 Install s390_dwarf2_prev_register to unwind full GPRs.
3278 (s390_gdbarch_init): Handle target descriptions. Assign varying
3279 pseudo register numbers. Install s390_adjust_frame_regnum.
3280 (_initialize_s390_tdep): Initialize target descriptions.
3282 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
3283 (S390_NUM_REGS): Redefine to include upper half registers.
3284 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
3285 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
3286 (tdesc_s390_linux32): Add declaration.
3287 (tdesc_s390_linux64): Likewise.
3288 (tdesc_s390x_linux64): Likewise.
3290 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3292 * regset.h (struct core_regset_section): Add HUMAN_NAME.
3293 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
3294 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3295 (ppc_linux_vmx_regset_sections): Likewise.
3296 (ppc_linux_fp_regset_sections): Likewise.
3298 * corelow.c (get_core_register_section): Constify arguments.
3299 (get_core_registers): Use gdbarch_core_regset_sections instead
3300 of hard-coded platform-specific register section names.
3302 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3304 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
3305 a register, assume the least-significant part is used.
3306 (write_pieced_value): Likewise.
3308 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3310 * printcmd.c: Include "arch-utils.h".
3311 (do_one_display): Re-parse expression if current architecture changed.
3313 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3314 Joel Brobecker <brobecker@adacore.com>
3316 * gdbtypes.c (check_typedef): New comment on type length.
3317 * value.c (allocate_value_lazy): Remove the unused atype variable. New
3318 comment on type length.
3319 (value_primitive_field): Keep the original TYPE value, new comment.
3321 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3323 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
3324 p_start. Change != comparisons to > and < comparisons.
3326 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3328 * cli/cli-script.c (process_next_line): Check P2 overrun.
3330 2009-01-01 Joel Brobecker <brobecker@adacore.com>
3332 Update the copyright hearder to add year 2010 for most GDB files.
3334 2009-01-01 Joel Brobecker <brobecker@adacore.com>
3336 Fix build failure in inf-ptrace.c.
3337 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
3339 2010-01-01 Joel Brobecker <brobecker@adacore.com>
3341 * top.c (print_gdb_version): Update copyright year.
3343 2010-01-01 Joel Brobecker <brobecker@adacore.com>
3345 Fix break *FUN'address thread NUM.
3346 * ada-lex.l (task): Expand rule to also match the thread keyword.
3348 2010-01-01 Joel Brobecker <brobecker@adacore.com>
3350 Fix break *FUN'address task NUM.
3351 * ada-lex.l (task): New rule.
3352 * ada-lang.c (valid_task_id): Make sure the Ada task list has
3353 been built before using it.
3355 For older changes see ChangeLog-2009.
3361 version-control: never