1 2010-03-09 Keith Seitz <keiths@redhat.com>
3 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
4 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
5 print out const or volatile qualifiers, too.
6 (c_type_print_args): Add parameters show_artificial and language.
7 Skip artificial parameters when requested.
8 Use the appropriate language printer.
9 (c_type_print_varspec): Tell c_type_print_args to skip artificial
10 parameters and pass language_c.
11 * dwarf2read.c (die_list): New file global.
12 (struct partial_die_info): Update comments for name field.
13 (pdi_needs_namespace): Renamed to ...
14 (die_needs_namespace): ... this. Rewrite.
15 (dwarf2_linkage_name): Remove.
16 (add_partial_symbol): Do not predicate the call to
17 partial_die_full_name based on pdi_needs_namespace.
18 Remove call to cp_check_possible_namespace_symbols and associated
20 (guess_structure_name): Do not inspect child subprogram DIEs.
21 (dwarf2_fullname): Update comments.
22 Use die_needs_namespace to assist in computing the name.
23 (read_func_scope): Use dwarf2_name to get the DIE's name.
24 Use dwarf2_physname to get the "linkage name" of the DIE.
25 (dwarf2_add_member_field): Use dwarf2_physname instead of
27 (read_structure_type): For structs and classes, set TYPE_NAME, too.
28 (determine_class): Remove.
29 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
31 (new_symbol): Unconditionally call dwarf2_name.
32 Compute the "linkage name" using dwarf2_physname.
33 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
34 When determining to scan for anonymous C++ namespaces, ignore
36 (dwarf2_physname): New function.
37 (dwarf2_full_name): Move content to new function and call
39 (dwarf2_compute_name): "New" function.
40 (_initialize_dwarf2_read): Initialize die_list.
41 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
43 (gnu_v3_print_method_ptr): Use the physname for virtual methods
44 without a demangled name.
45 Print out type information for non-virtual methods.
46 * linespec.c (decode_line_1): Force ANY string using "::" (or
47 "." for java) to use decode_compound, and clean up any stray quoting.
48 If we found a file symtab, re-evaluate whether the remainder is_quoted.
49 (decode_compound): Stop consuming at an open parenthesis.
50 Keep template parameters.
51 Keep any overload information.
52 Keep keywords like "const".
54 Move is_quoted check from set_flags to here.
55 Remove #if 0 code from 2000. Ten years is long enough.
56 (find_method): Before comparing symbol names, canonicalize the string
58 If a specific overload is requested, find it. Otherwise throw an error.
59 (find_method_overload_end): New function.
61 (decode_compound): Assume that parentheses are matched.
63 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
65 * linespec.c (decode_line_1): Keep important keywords like
66 "const" and "volatile".
67 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
68 * typeprint.h (c_type_print_args): Add declaration.
69 * ui-file.c (do_ui_file_obsavestring): New function.
70 (ui_file_obsavestring): New function.
71 * ui-file.h (ui_file_obsavestring): Add declaration.
72 * valops.c (find_overload_match): Resolve the object to
74 If the object is a data member, search the object for the member
75 and return with staticp set.
76 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
77 Do not attempt to extract a function name from non-function types.
78 If the extracted function name and the original name are the same,
79 we don't have a C++ method.
81 From Jan Kratochvil <jan.kratochvil@redhat.com>:
82 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
84 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
85 and arguments from symbol lookups.
86 * ax-gdb.c (gen_expr): Likewise.
87 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
88 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
89 lookup_possible_namespace_symbol): Likewise.
90 * cp-support.c (read_in_psymtabs): Likewise.
91 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
92 * language.h (la_lookup_symbol_nonlocal): Likewise.
93 * scm-valprint.c (scm_inferior_print): Likewise.
94 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
95 * solib-svr.c (elf_lookup_lib): Likewise.
96 * solib.c (show_auto_solib_add): Likewise.
97 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
98 * symmisc.c (maintenance_check_symtabs): Likewise.
99 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
100 lookup_symbol_aux_local, lookup_symbol_aux_block,
101 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
102 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
103 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
104 basic_lookup_transparent_type, find_main_psymtab,
105 lookup_block_symbol): Likewise.
106 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
107 lookup_symbol_global, lookup_symbol_aux_block,
108 lookup_symbol_partial_symbol, lookup_block_symbol,
109 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
111 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
113 * python/python-internal.h: Include symtab.h.
115 2010-03-09 Joel Brobecker <brobecker@adacore.com>
116 Pierre Muller <muller@ics.u-strasbg.fr>
118 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
119 * p-valprint.c (pascal_val_print): Remove undeed block and fix
122 2010-03-08 Tom Tromey <tromey@redhat.com>
124 * breakpoint.c (breakpoint_1): Add "QUIT".
126 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
127 Pedro Alves <pedro@codesourcery.com>
129 * solib.c (solib_find): Replace extension if
130 solib_symbols_extension is set in the target gdbarch.
131 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
132 solib_symbols_extension to "sym".
133 * gdbarch.sh (solib_symbols_extension): New variable.
134 (pstring): New function.
135 * gdbarch.h, gdbarch.c: Regenerate.
137 2010-03-08 Tom Tromey <tromey@redhat.com>
141 * utils.c: Include main.h.
142 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
143 (defaulted_query): Use default answer if `batch_flag'.
144 * main.h (batch_flag): Declare.
145 * main.c (batch_flag): New global.
146 (captured_main): Remove 'batch'. Update.
148 2010-03-08 Kevin Buettner <kevinb@redhat.com>
150 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
153 * remote-mips.c (rockhopper_ops): New target_ops struct.
154 (MON_ROCKHOPPER): New mips_monitor_type.
155 (read_hex_value): New function.
156 (mips_request): Send 8-byte values with a 'T' packet. Read the
157 packet argument as a string and use read_hex_value to parse it.
158 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
159 (rockhopper_open): New function.
160 (mips_wait): Read the PC, FP and SP fields as strings. Use
161 read_hex_value to parse them and mips_set_register to commit them.
162 (mips_set_register): New function.
163 (mips_fetch_registers): Do not cast register value to "unsigned"
164 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
165 (mips_store_registers): Use a 'T' packet to set registers when
166 using MON_ROCKHOPPER.
167 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
168 and expect the total to be printed before the entry address.
169 (_initialize_remote_mips): Initialize and add rockhopper_ops.
171 2010-03-08 Kevin Buettner <kevinb@redhat.com>
173 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
174 Change return value to int. Store value fetched in location
175 addressed by `val'. Use function's return value as success
176 or failure indicator. Adjust all callers.
178 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
180 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
182 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
183 Hui Zhu <teawater@gmail.com>
185 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
186 tmp_to_stopped_data_address.
187 (record_open): Reset tmp_to_stopped_by_watchpoint and
188 tmp_to_stopped_data_address.
189 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
190 to_stopped_data_address.
192 2010-03-08 Hui Zhu <teawater@gmail.com>
194 * i386-tdep.c (i386_process_record): Initialize regnum.
196 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
198 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
199 Do not warn on ".gnu.liblist" and ".gnu.conflict".
201 2010-03-08 Joel Brobecker <brobecker@adacore.com>
203 Memory error when reading wrong core file.
204 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
205 errors while reading the inferior memory, and return zero if
206 an exception was raised.
208 2010-03-07 Michael Snyder <msnyder@vmware.com>
210 * record.c (record_restore): Rename tmpu8 to rectype.
212 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
213 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
215 (i386_record_push): Rename local tmpulongest to addr.
217 (i386_process_record): Rename local tmpulongest to addr.
219 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
222 Rename local variable tmpu8 to opcode8 and regnum.
224 2010-03-07 Joel Brobecker <brobecker@adacore.com>
226 * remote.c (remote_get_ada_task_ptid): New function.
227 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
229 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
231 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
232 block. Define helper macros to reduce ifdefs in code.
233 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
234 size. Call unadorned GetModuleFileNameEx rather than
235 GetModuleFileNameEx*.
236 (windows_make_so): Use __PMAX to denote maximum buffer size and
237 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
239 (get_image_name): Use __PMAX to denote maximum buffer size.
240 (handle_load_dll): Likewise.
241 (windows_pid_to_exec_file): Likewise.
242 (windows_create_inferior): Add many accommodations for older Cygwin and
244 (bad_GetModuleFileNameExW): Control inclusion of this function based on
245 __USEWIDE conditional.
246 (bad_GetModuleFileNameExA): Likewise.
247 (_initialize_loadable): Just use real function names without the dyn_
248 part since they are defined earlier.
250 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
251 Tom Tromey <tromey@redhat.com>
253 * utils.c (host_char_to_target): Add 'gdbarch' argument.
254 (parse_escape): Likewise.
255 * python/py-utils.c (unicode_to_target_string): Update.
256 (unicode_to_target_python_string): Update.
257 (target_string_to_unicode): Update.
258 * printcmd.c (printf_command): Update.
259 * p-exp.y (yylex): Update.
260 * objc-exp.y (yylex): Update.
261 * mi/mi-parse.c: Include charset.h.
262 (mi_parse_escape): New function.
263 (mi_parse_argv): Use it.
264 * jv-exp.y (yylex): Update.
265 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
267 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
268 * gdbarch.sh (auto_charset, auto_wide_charset): New.
269 * gdbarch.c: Rebuild.
270 * gdbarch.h: Rebuild.
271 * defs.h (parse_escape): Update.
272 * cli/cli-setshow.c: Include arch-utils.h.
273 (do_setshow_command): Update.
274 * cli/cli-cmds.c (echo_command): Update.
275 * charset.h (target_charset, target_wide_charset): Update.
276 * charset.c: Include arch-utils.h.
277 (target_charset_name): Default to "auto".
278 (target_wide_charset_name): Likewise.
279 (show_target_charset_name): Handle "auto".
280 (show_target_wide_charset_name): Likewise.
281 (be_le_arch): New global.
282 (set_be_le_names): Add 'gdbarch' argument.
283 (validate): Likewise. Don't call set_be_le_names.
284 (set_charset_sfunc, set_host_charset_sfunc)
285 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
287 (target_charset): Add 'gdbarch' argument.
288 (target_wide_charset): Likewise. Remove 'byte_order' argument.
289 (auto_target_charset_name): New global.
290 (default_auto_charset, default_auto_wide_charset): New functions.
291 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
292 for target charsets. Copy result of nl_langinfo. Use GetACP if
294 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
295 remove 'byte_order' argument. Update.
296 (classify_type): Likewise.
297 (c_emit_char): Update.
298 (c_printchar): Update.
299 (c_printstr): Update.
300 (c_get_string): Update.
301 (evaluate_subexp_c): Update.
302 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
304 * python/python.c (gdbpy_target_charset): New function.
305 (gdbpy_target_wide_charset): Likewise.
306 (GdbMethods): Update.
309 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
311 * symfile.c (build_section_addr_info_from_objfile): Do not mask
312 off high address bits.
314 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
316 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
317 address as UnsignedLongLong, not LongLong.
319 2010-03-05 Kevin Buettner <kevinb@redhat.com>
320 Pedro Alves <pedro@codesourcery.com>
322 * remote-mips.c (gdbthread.h): Include.
323 (remote_mips_ptid): Declare.
324 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
325 (common_open): Set inferior_ptid, add it as an inferior, and
326 as a thread too. Delete FIXME comment regarding start_remote().
327 (mips_close): Invoke generic_mourn_inferior().
328 (mips_kill): Make sure that target_mourn_inferior is invoked.
329 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
330 it's now invoked from mips_close().
331 (mips_load): Don't null out inferior_ptid. Don't call
332 clear_symtab_users().
333 (mips_thread_alive, mips_pid_to_str): New functions.
334 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
335 to_thread_alive and to_pid_to_str operations.
337 2010-03-04 Tom Tromey <tromey@redhat.com>
339 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
340 in DWARF 3 and later.
341 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
343 2010-03-04 Keith Seitz <keiths@redhat.com>
345 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
346 If the filename portion of the linespec was quoted, recheck the
347 remainder for additional quoting.
348 (locate_first_half): Skip over completer chars, too.
350 2010-03-04 Tom Tromey <tromey@redhat.com>
352 * printcmd.c (printf_command): Pass dummy argument to
355 2010-03-04 Doug Evans <dje@google.com>
357 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
360 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
362 2010-03-04 Pedro Alves <pedro@codesourcery.com>
364 * breakpoint.c (update_watchpoint): Create a sentinel location if
365 the software watchpoint isn't watching any memory.
366 (breakpoint_address_bits): Skip dummy software watchpoint locations.
368 2010-03-04 Pedro Alves <pedro@codesourcery.com>
370 * utils.c (fputs_maybe_filtered): Check if there's already a top
371 level interpreter before dereferencing it. If there isn't one,
372 don't paginate either.
374 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
376 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
377 the state right when single stepping.
378 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
379 Get the next PC along with the instruction state.
380 (thumb_get_next_pc): Remove.
381 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
383 2010-03-04 Hui Zhu <teawater@gmail.com>
385 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
387 2010-03-03 Pedro Alves <pedro@codesourcery.com>
389 * utils.c (fputs_maybe_filtered): Always disable pagination if the
390 top level interpreter is MI.
392 2010-03-03 Stan Shebs <stan@codesourcery.com>
394 * remote.c (remote_download_tracepoint): Iterate over locations.
395 * tracepoint.c (validate_actionline): Ditto.
396 (encode_actions): Add location argument.
397 (trace_dump_command): Check all locations to see if stepping
400 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
401 Eli Zaretskii <eliz@gnu.org>
403 * NEWS: Add X86 general purpose registers section.
405 2010-03-03 Tom Tromey <tromey@redhat.com>
408 * varobj.c (install_new_value): Handle case where new print_value
411 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
414 * printcmd.c (printf_command): Print end of format string using
417 2010-03-02 Tom Tromey <tromey@redhat.com>
419 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
420 * defs.h (read_command_lines_1): Add missing 'void'.
421 * cli/cli-script.c (recurse_read_control_structure): Add missing
423 (read_next_line): Likewise.
424 (read_command_lines_1): Likewise.
426 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
428 * spu-tdep.c (spu_analyze_prologue): Track instruction to
429 store backchain as part of prologue.
431 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
433 * progspace.c (update_address_spaces): Update inferior address spaces
436 2010-03-02 Doug Evans <dje@google.com>
438 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
439 lowpc,highpc args to addrmap_set_empty.
441 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
443 * amd64-tdep.c (amd64_byte_names): New.
444 (amd64_word_names): Likewise.
445 (amd64_dword_names): Likewise.
446 (amd64_pseudo_register_name): Likewise.
447 (amd64_pseudo_register_read): Likewise.
448 (amd64_pseudo_register_write): Likewise.
449 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
450 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
451 set_gdbarch_pseudo_register_write and
452 set_tdesc_pseudo_register_name. Don't call
453 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
455 * i386-tdep.c (i386_num_mmx_regs): Removed.
456 (i386_num_pseudo_regs): Likewise.
457 (i386_byte_names): New.
458 (i386_word_names): Likewise.
459 (i386_byte_regnum_p): Likewise.
460 (i386_word_regnum_p): Likewise.
461 (i386_mmx_regnum_p): Updated.
462 (i386_pseudo_register_name): Make it global. Handle byte and
463 word pseudo-registers.
464 (i386_pseudo_register_read): Likewise.
465 (i386_pseudo_register_write): Likewise.
466 (i386_pseudo_register_type): Handle byte, word and dword
468 (i386_register_reggroup_p): Don't include pseudo
469 registers, except for MXX, in any register groups. Don't
470 include pseudo byte, word, dword registers in general_reggroup.
471 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
472 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
473 pseudo-registers after word pseudo-registers. Call
474 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
476 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
477 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
479 (i386_byte_regnum_p): New.
480 (i386_word_regnum_p): Likewise.
481 (i386_dword_regnum_p): Likewise.
482 (i386_pseudo_register_name): Likewise.
483 (i386_pseudo_register_read): Likewise.
484 (i386_pseudo_register_write): Likewise.
486 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
488 * target-descriptions.c (tdesc_type): Remove
489 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
490 (tdesc_predefined_types): Likewise.
491 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
492 if flag name is empty.
493 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
495 * features/i386/32bit-core.xml: Define i386_eflags.
496 * features/i386/64bit-core.xml: Likewise.
498 * features/i386/32bit-sse.xml: Define i386_mxcsr.
499 * features/i386/64bit-sse.xml: Likewise.
501 * features/i386/amd64-linux.c: Regenerated.
502 * features/i386/amd64.c: Likewise.
503 * features/i386/i386-linux.c: Likewise.
504 * features/i386/i386.c: Likewise.
506 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
508 * gdbtypes.c (append_composite_type_field_raw): New.
509 (append_composite_type_field_aligned): Use the new function.
510 * gdbtypes.h (append_composite_type_field_raw): Declare.
511 * target-descriptions.c (struct tdesc_type_field): Add start and end.
512 (struct tdesc_type_flag): New type.
513 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
514 kind. Add size to u.u. Add u.f for flags.
515 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
516 (tdesc_free_type): Likewise.
517 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
518 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
519 (tdesc_add_bitfield, tdesc_add_flag): New.
520 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
521 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
522 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
523 current_type. Add current_type_size and current_type_is_flags.
524 (tdesc_start_union): Clear the new fields.
525 (tdesc_start_struct, tdesc_start_flags): New.
526 (tdesc_start_field): Handle struct fields, including bitfields.
527 (field_attributes): Make type optional. Add start and end.
528 (union_children): Rename to struct_union_children.
529 (union_attributes): Rename to struct_union_attributes. Add optional
531 (flags_attributes): New.
532 (feature_children): Add struct and flags.
533 * features/gdb-target.dtd: Add flags and struct to features.
534 Make field type optional. Add field start and end.
536 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
538 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
539 (amd64_linux_read_description): Likewise.
540 (_initialize_amd64_linux_nat): Set to_read_description to
541 amd64_linux_read_description.
543 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
544 (amd64_linux_register_name): Removed.
545 (amd64_linux_register_type): Likewise.
546 (amd64_linux_core_read_description): New.
547 (amd64_linux_init_abi): Set target description to
548 tdesc_amd64_linux if needed. Support orig_rax in target
549 description. Don't call set_gdbarch_register_name nor
550 set_gdbarch_register_type. Call
551 set_gdbarch_core_read_description.
552 (_initialize_amd64_linux_tdep): Call
553 initialize_tdesc_amd64_linux.
555 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
557 * amd64-tdep.c: Include "features/i386/amd64.c".
558 (amd64_register_names): Removed.
559 (amd64_register_name): Likewise.
560 (amd64_register_type): Likewise.
561 (amd64_init_abi): Set num_core_regs and register_names. Set
562 target description to tdesc_amd64 if needed. Don't call
563 set_gdbarch_register_name nor set_gdbarch_register_type.
564 (_initialize_amd64_tdep): New.
566 * i386-linux-nat.c (i386_linux_read_description): New.
567 (_initialize_i386_linux_nat): Set to_read_description to
568 i386_linux_read_description.
570 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
571 (i386_linux_register_name): Removed.
572 (i386_linux_core_read_description): New.
573 (i386_linux_read_description): Likewise.
574 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
575 Set target description to tdesc_i386_linux if needed. Support
576 orig_eax. Set register_reggroup_p. Call
577 set_gdbarch_core_read_description.
578 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
580 * i386-linux-tdep.h (tdesc_i386_linux): New.
582 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
585 * i386-tdep.c: Include "features/i386/i386.c".
586 (i386_register_names): Make it const.
587 (i386_mmx_names): Likewise.
588 (i386_num_register_names): Removed.
589 (i386_register_name): Likewise.
590 (i386_eflags_type): Likewise.
591 (i386_mxcsr_type): Likewise.
592 (i386_sse_type): Likewise.
593 (i386_register_type): Likewise.
594 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
595 (i386_pseudo_register_name): New.
596 (i386_pseudo_register_type): Likewise.
597 (i386_mmx_type): Make it static.
598 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
599 I387_NUM_REGS. Set num_core_regs and register_names. Don't
600 call set_gdbarch_register_name nor set_gdbarch_register_type.
601 Set register_reggroup_p. Set target description to tdesc_i386
602 if needed. Call set_tdesc_pseudo_register_type,
603 set_tdesc_pseudo_register_name and tdesc_use_registers.
604 (_initialize_i386_tdep): Call initialize_tdesc_i386.
605 initialize_tdesc_x86_64.
607 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
608 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
609 register_names, tdesc and register_reggroup_p.
610 (I386_NUM_FREGS): Removed.
611 (i386_eflags_type): Likewise.
612 (i386_mxcsr_type): Likewise.
613 (i386_mmx_type): Likewise.
614 (i386_sse_type): Likewise.
615 (i386_register_name): Likewise.
616 (i386_regnum): Add I386_MXCSR_REGNUM.
617 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
619 * i387-tdep.h (I387_NUM_REGS): New.
621 * regformats/i386/i386-linux.dat: Generated.
622 * regformats/i386/i386.dat: Likewise.
623 * regformats/i386/amd64-linux.dat: Likewise.
624 * regformats/i386/amd64.dat: Likewise.
626 * regformats/reg-i386-linux.dat: Removed.
627 * regformats/reg-i386.dat: Likewise.
628 * regformats/reg-x86-64-linux.dat: Likewise.
629 * regformats/reg-x86-64.dat: Likewise.
631 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
633 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
634 cygwin_conv_path API rather than the deprecated
635 cygwin_conv_to_full_posix_path.
637 (GetModuleFileNameExA): Undefine for Cygwin.
638 (GetModuleFileNameExW): Define for Cygwin.
639 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
640 Call GetModuleFileNameExW and convert path to POSIX using
642 (windows_make_so): Always define p. Drop unused variable m.
643 Don't use Win32 functions to check file existance, rather use
644 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
645 Use canonicalize_file_name to get full path.
646 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
647 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
648 use correct target buffer size in call to WideCharToMultiByte.
649 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
650 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
651 (windows_create_inferior): Convert all paths and arguments to wchar_t
652 and use CreateProcessW on Cygwin.
653 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
654 (bad_GetModuleFileNameExA): Undefine for Cygwin.
655 (bad_GetModuleFileNameExW): Define for Cygwin.
656 (_initialize_loadable): Load GetModuleFileNameExW into
657 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
659 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
662 * python/py-frame.c (frapy_read_var): Add block argument and logic
663 to cope with user provided blocks.
665 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
667 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
670 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
672 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
673 (COMMON_OBS): ... to here since it's used unconditionally.
674 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
677 2010-02-26 David Daney <ddaney@caviumnetworks.com>
679 * mips-linux-tdep.c: Update struct sigframe comments.
680 (SIGFRAME_CODE_OFFSET): Delete macro.
681 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
683 (mips_linux_n32n64_sigframe_init): Same.
685 2010-02-26 Kevin Buettner <kevinb@redhat.com>
687 * remote-mips.c (mips_load): Don't use pseudo-register when
688 invalidating regcache.
690 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
692 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
694 2010-02-26 Pedro Alves <pedro@codesourcery.com>
696 * NEWS: Add "New targets" section, and mention ARM Symbian
699 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
701 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
702 add ADDR_SIZE member.
703 (allocate_piece_closure): Update.
704 (copy_pieced_value_closure): Likewise.
705 (dwarf2_evaluate_loc_desc): Likewise.
706 (read_pieced_value): Use DWARF address size instead of
707 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
709 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
710 Tom Tromey <tromey@redhat.com>
712 * python/py-type.c (typy_lookup_typename): Add in block argument.
713 If provided restrict lookup to specified blocks.
714 (gdbpy_lookup_type): Likewise.
715 (typy_lookup_type): Likewise.
717 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
722 * arm-symbian-tdep.c: New.
723 * configure.tgt (arm*-*-symbianelf*): New target.
724 (*-*-symbianelf*): New OS.
725 * osabi.c (gdb_osabi_names): Add Symbian.
726 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
727 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
728 (ALLDEPFILES): Add arm-symbian-tdep.c.
730 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
732 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
734 2010-02-24 Pedro Alves <pedro@codesourcery.com>
736 * mi/mi-main.c (mi_cmd_execute): Fix typo.
738 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
739 Tom Tromey <tromey@redhat.com>
740 Thiago Jung Bauermann <bauerman@br.ibm.com>
742 * python/python.c (_initialize_python): Call
743 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
744 gdbpy_initialize_blocks.
745 * python/python-internal.h: Declare struct symbol, block and
746 symtab_and_line. Declare block_object_type and
748 (gdbpy_lookup_symbol gdbpy_block_for_pc)
749 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
750 (symbol_to_symbol_object, block_to_block_object)
751 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
752 (gdbpy_initialize_blocks ): Declare.
753 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
754 (frapy_select): Add methods.
755 (frapy_read_var): Add symbol branch.
756 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
758 (SUBDIR_PYTHON_SRCS): Likewise.
759 (py-symbol.o): New rule.
760 (py-symtab.o): Likewise.
761 (py-block.o): Likewise.
762 * python/py-symbol.c: New file.
763 * python/py-symtab.c: Likewise.
764 * python/py-block.c: Likewise.
766 2010-02-24 Pedro Alves <pedro@codesourcery.com>
770 * inferior.h (prepare_for_detach): Declare.
771 (struct inferior) <detaching>: New field.
772 * infrun.c (prepare_for_detach): New.
773 (handle_inferior_event) <random signal>: Don't stop if detaching.
774 * target.c (target_detach): Call prepare_for_detach.
776 2010-02-24 Pedro Alves <pedro@codesourcery.com>
778 Per-process displaced stepping queue.
780 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
781 (displaced_step_gdbarch, displaced_step_closure,
782 (displaced_step_original, displaced_step_copy): Move globals to
784 (struct displaced_step_inferior_state): ... new structure.
785 (displaced_step_inferior_states): New global.
786 (get_displaced_stepping_state, add_displaced_stepping_state)
787 (remove_displaced_stepping_state, infrun_inferior_exit): New
789 (displaced_step_clear): Add displaced_step_inferior_state
790 parameter, and adjust to handle it.
791 (displaced_step_clear_cleanup): Parameter is now a
792 displaced_step_inferior_state. Adjust.
793 (displaced_step_prepare): Adjust.
794 (displaced_step_fixup, displaced_step_fixup)
795 (infrun_thread_ptid_changed, resume): Adjust.
796 (init_wait_for_inferior): Don't call displaced_step_clear.
797 (infrun_thread_stop_requested): Rewrite.
798 (_initialize_infrun): Install infrun_inferior_exit as
799 inferior_exit observer.
801 2010-02-24 Pedro Alves <pedro@codesourcery.com>
803 * inferior.h (ptid_match): Declare.
804 * infrun.c (ptid_match): New.
805 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
806 (handle_notification): Add debug output.
807 * linux-nat.c (ptid_match): Delete.
809 2010-02-24 David S. Miller <davem@davemloft.net>
811 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
812 * syscalls/sparc-linux.xml: New.
813 * syscalls/sparc64-linux.xml: New.
814 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
815 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
816 (sparc32_linux_get_syscall_number): New function.
817 (sparc32_linux_init_abi): Set syscall XML file name and hook up
818 syscall number fetcher.
819 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
820 (sparc64_linux_get_syscall_number): New function.
821 (sparc64_linux_init_abi): Set syscall XML file name and hook up
822 syscall number fetcher.
824 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
828 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
829 * inferior.c (add_inferior_silent): Notify inferior_added
831 (delete_inferior_1): Notify inferior_removed observer.
832 (exit_inferior_1): Pass inferior, not pid, to observer.
833 (inferior_appeared): Likewise.
834 (add_inferior_with_spaces): New.
835 (add_inferior_command): Use the above.
836 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
839 * inflow.c (inflow_inferior_exit): Likewise.
840 * jit.c (jit_inferior_exit_hook): Likewise.
842 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
844 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
845 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
846 (report_initial_inferior): New.
847 (mi_inferior_removed): Register the above. Make sure
848 inferior_added observer is called on the first inferior.
849 (mi_new_thread, mi_thread_exit): Thread group is now identified by
850 inferior number, not pid.
851 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
853 * mi/mi-main.c (current_context): New.
854 (proceed_thread_callback): Use typed closure.
855 Proceed everything if pid is 0. Most implementation split into
856 (proceed_thread): ... this.
857 (run_one_inferior): New.
858 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
859 Adjust for multiexec behaviour.
860 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
861 (mi_cmd_execute): Handle the 'thread-group' option here.
862 Do some extra checks.
863 * mi-parse.c (mi_parse): Handle the --all and --thread-group
865 * mi-parse.h (struct mi_parse): New fields all and thread_group.
867 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
869 Make -exec-run a proper MI commands.
871 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
872 * mi/mi-cmds.c (mi_cmds): Adjust.
873 * mi/mi-main.c (mi_cmd_exec_run): New.
875 2010-02-24 Pedro Alves <pedro@codesourcery.com>
876 Stan Shebs <stan@codesourcery.com>
878 * tracepoint.h (set_traceframe_number)
879 (cleanup_restore_current_traceframe): Declare.
880 * tracepoint.c (set_traceframe_number): New.
881 (struct current_traceframe_cleanup): New.
882 (do_restore_current_traceframe_cleanup)
883 (restore_current_traceframe_cleanup_dtor)
884 (make_cleanup_restore_current_traceframe): New.
885 * infrun.c: Include tracepoint.h.
886 (fetch_inferior_event): Switch out and in of tfind mode.
888 2010-02-24 Pedro Alves <pedro@codesourcery.com>
890 * breakpoint.c (breakpoint_init_inferior): Also delete
891 bp_shlib_event breakpoints.
892 * solib-frv.c (enable_break): Remove call to
893 remove_solib_event_breakpoints.
894 * solib-svr4.c (enable_break): Ditto.
895 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
896 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
897 * solib-som.c (som_solib_create_inferior_hook): Ditto.
898 * solib-spu.c (spu_enable_break): Ditto.
900 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
902 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
904 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
906 * varobj.c (varobj_update): Avoid non-constants in initializers.
908 2010-02-23 Tom Tromey <tromey@redhat.com>
910 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
911 handle big-endian values.
912 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
914 2010-02-22 Pedro Alves <pedro@codesourcery.com>
919 * breakpoint.c (insert_bp_location): If inserting the read
920 watchpoint failed, fallback to an access watchpoint.
921 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
922 if the value changed, if not watching the same memory for writes.
923 (watchpoint_locations_match): Add comment.
924 (update_global_location_list): Copy the location's watchpoint type.
925 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
926 handle read watchpoints here.
927 (i386_insert_watchpoint): Read watchpoints aren't supported.
928 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
930 * target.h (target_insert_watchpoint): Update description.
932 2010-02-19 Tom Tromey <tromey@redhat.com>
934 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
935 * m2-typeprint.c (m2_print_type): Update.
936 * gdbtypes.c (recursive_dump_type): Update.
937 (copy_type_recursive): Update.
938 * c-typeprint.c (c_type_print_varspec_prefix): Update.
939 (c_type_print_base): Update.
940 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
942 (struct cplus_struct_type) <ntemplate_args>: Remove.
943 <struct template_arg>: Remove.
944 <is_dynamic>: Move earlier.
945 (TYPE_TEMPLATE_ARGS): Remove.
946 (TYPE_NTEMPLATE_ARGS): Remove.
947 (TYPE_TEMPLATE_ARG): Remove.
949 2010-02-19 Tom Tromey <tromey@redhat.com>
951 PR c++/8693, PR c++/9496:
952 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
953 * c-exp.y (lex_one_token): Rename from yylex. Don't call
954 write_dollar_variable. Don't try to classify NAME tokens.
955 (token_and_value): New type.
956 (token_fifo, popping, name_obstack): New globals.
957 (classify_name): New function.
958 (classify_inner_name): Likewise.
960 (VARIABLE): Now has type sval.
961 (exp : VARIABLE): Call write_dollar_variable.
962 (qualified_name): Use TYPENAME, not typebase. Add production for
963 multiple "::" instances.
964 (variable): Use name_not_typename.
965 (qualified_type): Remove.
968 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
970 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
971 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
972 found by bfd_get_section_by_name.
973 * symfile.h (struct section_addr_info) <sectindex>: New comment.
975 2010-02-19 Joel Brobecker <brobecker@adacore.com>
977 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
978 7.0 section" into "Changes in 7.1".
980 2010-02-19 Joel Brobecker <brobecker@adacore.com>
982 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
983 * version.in: Bump version to 7.1.50.20100219-cvs.
985 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
987 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
988 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
990 2010-02-17 Tom Tromey <tromey@redhat.com>
992 * NEWS: Add Python API Improvements section.
994 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
996 * NEWS: Correct typo.
998 2010-02-17 Tom Tromey <tromey@redhat.com>
1000 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
1002 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1004 * symfile.c (build_section_addr_info_from_objfile): Include sections
1005 only if they are SEC_ALLOC or SEC_LOAD.
1007 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
1010 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
1011 of ULONGEST for address size.
1013 2010-02-17 Tom Tromey <tromey@redhat.com>
1015 * NEWS: Add C++ improvements section.
1017 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
1019 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
1020 PyThreadState_Swap): Avoid "statement with no effect" warning.
1022 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1024 * solib-svr4.c (enable_break <target_auxv_search>): New variable
1025 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
1027 2010-02-17 Tristan Gingold <gingold@adacore.com>
1028 Petr HluzÃn <petr.hluzin@gmail.com>
1030 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
1031 gdb_assert. Fix info->size for SIG prologue.
1033 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1035 * infcmd.c (show_inferior_tty_command): Check for NULL.
1036 Correct output message.
1038 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1040 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
1041 FUNCTION contains parentheses. Improve removal of a trailing
1044 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1046 * gcore.c (do_bfd_delete_cleanup): New function.
1047 (gcore_command): Use it. Discard the cleanup after success.
1048 (gcore_copy_callback): Delete dead code.
1050 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1052 * symfile.c (addr_info_make_relative): Always use
1053 find_lowest_section.
1055 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
1057 * NEWS: Added entry for namespace fixes.
1059 2010-02-15 Tom Tromey <tromey@redhat.com>
1061 * dwarf2read.c (guess_structure_name): Allocate name on the
1064 2010-02-15 Tom Tromey <tromey@redhat.com>
1066 * c-typeprint.c (c_type_print_base): Reverse order of test.
1068 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1070 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
1071 initialize it from ELF BFD. Extend the prelink condition by it.
1073 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1075 * defs.h (parse_pid_to_attach): New.
1076 * utils.c (parse_pid_to_attach): New.
1077 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
1078 * gnu-nat.c (gnu_attach): Likewise.
1079 * nto-procfs.c (procfs_attach): Likewise.
1080 * procfs.c (procfs_attach): Likewise.
1081 * windows-nat.c (windows_attach): Likewise.
1082 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
1083 * inf-ttrace.c (inf_ttrace_attach): Likewise.
1084 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
1087 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
1089 * MAINTAINERS: Add myself for write after approval privileges.
1091 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1093 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
1096 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1098 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
1099 only if INFO_VERBOSE.
1101 2010-02-12 Tomas Holmberg <th@virtutech.com>
1103 * mi/mi-main.c: Added the --reverse flag to the following MI
1104 commands: exec-continue, exec-finish, exec-next, exec-step,
1105 exec-next-instruction, exec-step-instruction. This is to
1106 support reverse execution over the MI interface to gdb.
1108 2010-02-12 Pedro Alves <pedro@codesourcery.com>
1110 * tracepoint.c (_initialize_tracepoint): Specify that the address
1111 range of `tfind outsize' is exclusive, and that the address range
1112 of `tfind range' is inclusive, in the commands' help strings.
1114 2010-02-12 Joel Brobecker <brobecker@adacore.com>
1116 Spurious "dll not found" error messages on x64-windows.
1117 * windows-nat.c: Add include of complaints.h.
1118 (handle_unload_dll): Change dll-not-found error into a complaint.
1120 2010-02-12 Pedro Alves <pedro@codesourcery.com>
1122 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
1123 bp_tracepoint and bp_fast_tracepoint, not
1124 bp_loc_software_breakpoint.
1125 (update_global_location_list): Tracepoints are never duplicates of
1128 2010-02-12 Pedro Alves <pedro@codesourcery.com>
1130 * breakpoint.c (break_command_really): Change return type to int.
1131 Return false if no breakpoint was created, true otherwise.
1132 (trace_command): Don't set the tracepoint count if no tracepoint
1134 (ftrace_command): Ditto.
1135 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
1136 created in the breakpoints table.
1138 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1139 Ulrich Weigand <uweigand@de.ibm.com>
1141 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
1143 2010-02-11 Pedro Alves <pedro@codesourcery.com>
1145 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
1146 the offset value isn't of integral type.
1148 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1150 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
1153 2010-02-11 Pedro Alves <pedro@codesourcery.com>
1155 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
1156 non-subscriptable types.
1157 * valarith.c (binop_types_user_defined_p): New, abstracted out
1159 (binop_user_defined_p): ... this.
1160 * value.h (binop_types_user_defined_p): Declare.
1162 2010-02-11 Pedro Alves <pedro@codesourcery.com>
1164 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
1165 Merge uploaded TSVs before merging uploaded tracepoints.
1167 2010-02-11 Pedro Alves <pedro@codesourcery.com>
1169 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
1171 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
1173 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
1174 whitespace character after a dot in comment.
1175 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
1177 (list_args_or_locals): For the 'all' (that is
1178 -stack-list-variables) case, always output list of tuples.
1179 Output 'arg' field if variable is argument.
1181 2010-02-10 Tom Tromey <tromey@redhat.com>
1183 * parser-defs.h (parser_debug): Declare.
1184 * parse.c (_initialize_parse): Install "debug parser" set/show
1186 (parser_debug): New global.
1187 (show_parserdebug): New function.
1188 * c-exp.y (c_parse): Set yydebug.
1190 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
1192 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
1193 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
1194 (tdesc_predefined_types): Add i387_ext, i386_eflags and
1196 (tdesc_find_type): New.
1197 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
1198 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
1200 * target-descriptions.h (tdesc_find_type): New.
1202 2010-02-10 Michael Snyder <msnyder@vmware.com>
1204 * gdb-gdb.py: Comment fix.
1206 2010-02-09 Tristan Gingold <gingold@adacore.com>
1208 * machoread.c (macho_symfile_relocate): New function.
1209 (macho_sym_fns): Use macho_symfile_relocate instead of
1210 default_symfile_relocate.
1211 (macho_oso_data): New type.
1212 (current_oso): New variable.
1213 (macho_add_oso_symfile): Do not compute section_addr_info, but
1214 instead set vma of sections.
1215 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
1216 Set and clear current_oso.
1218 2010-02-09 Joel Brobecker <brobecker@adacore.com>
1220 Wrong type description for tagged type parameter.
1221 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
1222 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
1223 reference to a tagged type.
1225 2010-02-09 Tristan Gingold <gingold@adacore.com>
1227 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
1228 brothers of the parent.
1230 2010-02-08 Tom Tromey <tromey@redhat.com>
1234 * valops.c (search_struct_field): Make 'name' const.
1235 (search_struct_method): Likewise.
1236 (find_method_list): Make 'method' const.
1237 (value_struct_elt): Make 'name' and 'err' const.
1238 (value_find_oload_method_list): Make 'method' const.
1239 (find_overload_match): Make 'name' const.
1240 * eval.c (evaluate_subexp_standard): New locals function,
1242 <OP_FUNCALL>: Handle OP_SCOPE specially.
1244 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1246 * infrun.c (handle_inferior_event): Do not look up regcache
1247 for exited processes.
1249 Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com>
1252 * valarith.c (value_ptrdiff): Added a test for a zero type length,
1253 warn if found, and assume length = 1.
1255 2010-02-08 Chris Moller <cmoller@redhat.com>
1258 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
1259 cp_print_static_field) Fix use of obstacks.
1261 2010-02-08 Pedro Alves <pedro@codesourcery.com>
1263 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
1264 resumed LWPs as resumed.
1265 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
1266 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
1267 of throwing an internal error. If an LWP of a process we're not
1268 waiting for reports a signal, don't force collecting a SIGSTOP,
1269 and if it was breakpoint hit in non-stop mode, cancel it. Don't
1270 go through all LWPs cancelling breakpoints in non-stop mode.
1271 (resume_stopped_resumed_lwps): New.
1272 (linux_nat_wait): Use it.
1274 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
1276 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
1277 i386/amd64 and i386/amd64-linux.
1278 (i386/i386-expedite): New.
1279 (i386/i386-linux-expedite): Likewise.
1280 (i386/amd64-expedite):Likewise.
1281 (i386/amd64-linux-expedite): Likewise.
1282 ($(outdir)/i386/i386-linux.dat): Likewise.
1283 ($(outdir)/i386/amd64.dat): Likewise.
1284 ($(outdir)/i386/amd64-linux.dat): Likewise.
1286 * features/i386/32bit-core.xml: New.
1287 * features/i386/32bit-linux.xml: Likewise.
1288 * features/i386/32bit-sse.xml: Likewise.
1289 * features/i386/64bit-core.xml: Likewise.
1290 * features/i386/64bit-linux.xml: Likewise.
1291 * features/i386/64bit-sse.xml: Likewise.
1292 * features/i386/i386-linux.xml: Likewise.
1293 * features/i386/i386.xml: Likewise.
1294 * features/i386/amd64-linux.xml: Likewise.
1295 * features/i386/amd64.xml: Likewise.
1296 * features/i386/i386-linux.c: Likewise.
1297 * features/i386/i386.c: Likewise.
1298 * features/i386/amd64-linux.c: Likewise.
1299 * features/i386/amd64.c: Likewise.
1301 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
1304 * cp-support.h: Added char* alias element to using_direct data
1306 (cp_add_using): Added char* alias argument.
1307 (cp_add_using_directive): Ditto.
1308 * cp-namespace.c: Updated with the above changes.
1309 (cp_lookup_symbol_imports): Check for aliases.
1310 * dwarf2read.c (read_import_statement): Figure out local alias
1311 for the import and pass it on to cp_add_using.
1312 (read_namespace): Pass alias argument to cp_add_using.
1314 2010-02-05 Hui Zhu <teawater@gmail.com>
1316 * defs.h (gdb_bfd_errmsg): New extern.
1317 * exec.c (exec_file_attach): Change bfd_errmsg to
1319 * utils.c (AMBIGUOUS_MESS1): New macro.
1320 (AMBIGUOUS_MESS2): New macro.
1321 (gdb_bfd_errmsg): New function.
1323 2010-02-04 Doug Evans <dje@google.com>
1325 * solib-svr4.c (enable_break): Add comment.
1327 2010-02-04 Anthony Green <green@moxielogic.com>
1329 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
1332 2010-02-04 Tom Tromey <tromey@redhat.com>
1334 * valops.c (search_struct_field): Account for
1335 value_embedded_offset. Fix check for virtual base past the end of
1336 the object. Use value_copy when making a slice of the value.
1338 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
1341 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
1342 only if gdb_stdout is a tty.
1344 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
1346 * target-descriptions.c: Include "osabi.h".
1347 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
1350 2010-02-04 Tristan Gingold <gingold@adacore.com>
1352 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
1353 (macho_symtab_read): Adjust calls to macho_add_oso.
1354 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
1355 (macho_symfile_read): Adjust call to macho_oso_symfile.
1356 (macho_new_init): Move this function after declarations.
1357 (macho_symfile_init): Ditto.
1358 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
1359 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
1361 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
1363 Include MI command in remotelog.
1365 * mi/mi-main.c (mi_execute_command): Call target_log_command.
1367 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
1369 * remote.c (remote_state): Remove gdbarch.
1370 (init_remote_state): Don't set gdbarch.
1371 (remote_query_supported): Pass target_gdbarch instead of
1372 rs->gdbarch to gdbarch_qsupported.
1374 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
1376 * gdbarch.sh: Add qsupported.
1378 * gdbarch.c: Regenerated.
1379 * gdbarch.h: Likewise.
1381 * remote.c (remote_state): Add gdbarch.
1382 (init_remote_state): Set gdbarch.
1383 (remote_query_supported): Support gdbarch_qsupported.
1385 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
1387 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
1388 __FreeBSD_kernel_version.
1390 2010-02-03 Tristan Gingold <gingold@adacore.com>
1392 * symfile.h (struct sym_fns): Add sym_relocate field.
1393 (default_symfile_relocate): New prototype.
1394 (symfile_relocate_debug_section): First argument is now an objfile.
1395 * symfile.c (default_symfile_relocate): Rename from
1396 symfile_relocate_debug_section, first argument is now an objfile.
1397 (symfile_relocate_debug_section): New function.
1398 * coffread.c (coff_sym_fns): Set sym_relocate field.
1399 * somread.c (som_sym_fns): Ditto.
1400 * mipsread.c (ecoff_sym_fns): Ditto.
1401 * machoread.c (macho_sym_fns): Ditto.
1402 * elfread.c (elf_sym_fns): Ditto.
1403 * dwarf2read.c (dwarf2_read_section): Ditto.
1404 * xcoffread.c (xcoff_sym_fns): Ditto.
1405 * dbxread.c (aout_sym_fns): Ditto.
1406 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
1407 (elfstab_build_psymtabs): Ditto.
1409 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
1411 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
1413 2010-02-02 Tom Tromey <tromey@redhat.com>
1415 * valops.c (value_cast_structs): Try downcasting using the RTTI
1418 2010-02-02 Tom Tromey <tromey@redhat.com>
1420 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
1421 (gnuv2_baseclass_offset): Now static.
1422 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
1423 * gnu-v2-abi.h: Remove.
1425 2010-02-02 Tom Tromey <tromey@redhat.com>
1427 * m2-typeprint.c (m2_record_fields): Don't use
1429 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
1430 (struct main_type) <flag_declared_class>: New field.
1431 (struct cplus_struct_type) <declared_type>: Remove.
1432 <ntemplate_args>: Move earlier.
1433 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
1434 (DECLARED_TYPE_TEMPLATE): Remove.
1435 (TYPE_DECLARED_TYPE): Remove.
1436 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
1437 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
1438 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
1441 2010-02-02 Tom Tromey <tromey@redhat.com>
1443 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
1444 * valops.c (search_struct_field): Compute nbases after calling
1446 (check_field): Call CHECK_TYPEDEF.
1447 * cp-valprint.c (cp_print_value): Pass correct address to
1448 baseclass_offset. Fix check for virtual base past the end of the
1449 object. Don't offset address passed to cp_print_value_fields or
1450 apply_val_pretty_printer.
1451 (cp_print_value_fields): Fix call to val_print.
1452 (cp_print_value_fields_rtti): New function.
1453 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
1454 * p-valprint.c (pascal_object_print_value_fields): Fix call to
1456 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
1458 * language.h (struct language_defn) <la_val_print>: Document.
1459 * c-lang.h (cp_print_value_fields_rtti): Declare.
1461 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1464 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
1465 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
1466 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
1468 2010-02-01 Michael Matz <matz@suse.de>
1469 Daniel Jacobowitz <dan@codesourcery.com>
1471 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
1472 functions use a frame pointer.
1474 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1476 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
1477 by a conditional setting DYN_ADDR. Use DYN_ADDR.
1478 * config/djgpp/fnchange.lst: Add translations for
1479 symbol-without-target_section.exp and symbol-without-target_section.c.
1481 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1483 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
1484 (remote_breakpoint_for_pc): Correct invalid_p check.
1485 * gdbarch.c: Regenerated.
1487 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1489 * arm-tdep.c (arm_find_mapping_symbol): New function, from
1491 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
1492 (extend_buffer_earlier): New function.
1493 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
1494 (arm_adjust_breakpoint_address): New function.
1495 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
1497 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1499 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
1500 (arm_linux_thumb2_le_breakpoint): New constants.
1501 (arm_linux_init_abi): Set thumb2_breakpoint and
1502 thumb2_breakpoint_size.
1503 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
1504 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
1505 Implement support for single stepping through IT blocks if
1506 a 32-bit Thumb breakpoint instruction is available.
1507 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
1508 is available, use it when needed.
1509 (arm_remote_breakpoint_from_pc): New function.
1510 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
1511 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
1512 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
1514 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1516 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
1517 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
1518 * gdbarch.c, gdbarch.h: Regenerated.
1519 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
1520 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
1521 gdbarch_remote_breakpoint_from_pc.
1523 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1525 * infrun.c (prepare_to_proceed): Handle other signals which might
1527 (handle_inferior_event): Move the check for unusual breakpoint
1530 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
1532 amd64 - function returning record with field straddling 2 registers.
1533 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
1534 a record of length <= 16 in which a field straddles the two
1537 2010-01-29 Joel Brobecker <brobecker@adacore.com>
1539 Implement return values on amd64-windows.
1540 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
1541 (amd64_windows_return_value): New function.
1542 (amd64_windows_init_abi): Call set_gdbarch_return_value with
1543 amd64_windows_return_value.
1545 2010-01-29 Joel Brobecker <brobecker@adacore.com>
1547 amd64-windows: 32 bytes allocated on stack by caller for integer
1548 parameter registers.
1549 * i386-tdep.h (struct gdbarch_tdep): Add new field
1550 integer_param_regs_saved_in_caller_frame.
1551 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
1552 tdep->integer_param_regs_saved_in_caller_frame to 1.
1553 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1554 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1556 2010-01-29 Joel Brobecker <brobecker@adacore.com>
1558 amd64-windows: memory args passed by pointer during function calls.
1559 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1560 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1561 where tdep->memory_args_by_pointer is non-zero.
1562 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
1563 tdep->memory_args_by_pointer to 1.
1565 2010-01-29 Joel Brobecker <brobecker@adacore.com>
1567 amd64-windows: Integer parameters in function calls.
1568 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1570 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1571 call_dummy_integer_regs, and classify.
1572 * amd64-tdep.h (amd64_classify): Add declaration.
1573 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1574 (amd64_reg_class): Delete, moved to i386-tdep.h.
1575 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1576 Replace call to amd64_classify by call to tdep->classify.
1577 (amd64_push_arguments): Get the list of registers to use for
1578 passing integer parameters from the gdbarch tdep structure,
1579 rather than using a hardcoded one. Replace calls to amd64_classify
1580 by calls to tdep->classify.
1581 (amd64_push_dummy_call): Get the register number used for
1582 the "hidden" argument from tdep->call_dummy_integer_regs.
1583 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1584 and tdep->call_dummy_integer_regs. Set tdep->classify.
1585 * amd64-windows-tdep.c: Add include of gdbtypes.h.
1586 (amd64_windows_dummy_call_integer_regs): New static global.
1587 (amd64_windows_classify): New function.
1588 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
1589 tdep->call_dummy_integer_regs and tdep->classify.
1591 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1593 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
1594 for the new regcache. All callers updated.
1595 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
1596 (get_thread_arch_regcache): Do not set aspace here.
1597 * regcache.h (regcache_xmalloc): Update declaration.
1599 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
1600 regcache_xmalloc updated.
1602 2010-01-28 Joel Brobecker <brobecker@adacore.com>
1604 Another -Wunused-function error in procfs.c (sparc-solaris)
1605 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
1606 Only define if SYS_syssgi is defined.
1607 (remove_dbx_link_breakpoint): Delete declaration. Move up.
1608 (dbx_link_addr, insert_dbx_link_bpt_in_file)
1609 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
1612 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
1614 * windows-nat.c (windows_initialization_done): New variable.
1615 (get_windows_debug_event): Issue error when process dies before
1616 completely initializing.
1617 (do_initial_windows_stuff): Set flag to indicate when we are done with
1618 the initial steps of attaching to the child.
1620 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1622 * symtab.h (struct symbol <symtab>): New comment on NULL values.
1624 2010-01-27 Doug Evans <dje@google.com>
1626 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
1628 * breakpoint.c (bpstat_stop_status): Delete useless code.
1630 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1632 * printcmd.c (display_uses_solib_p): Remove variable section. Access
1633 objfile via SYMBOL_SYMTAB.
1635 2010-01-26 Tom Tromey <tromey@redhat.com>
1638 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
1639 coerce_array on result.
1641 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
1643 * cp-namespace.c (cp_lookup_symbol_namespace): Added
1644 search_parent argument.
1645 (cp_add_using): Initialize 'searched' field.
1646 (reset_directive_searched): New function.
1647 * cp-support.h: Add 'searched' field to using_direct struct.
1648 (cp_lookup_symbol_imports): Ditto.
1649 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
1650 Perform recursive search.
1651 Implement non parent search.
1652 * valops.c (value_maybe_namespace_elt): Updated.
1654 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
1657 * dwarf2read.c (read_lexical_block_scope): Create blocks for
1658 scopes which contain using directives even if they contain no
1660 * symtab.c (lookup_symbol_aux): Pass lowest level block to
1661 la_lookup_symbol_nonlocal.
1662 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
1663 cp_lookup_symbol_namespace.
1664 (cp_lookup_symbol_namespace): Perform an import lookup at every
1666 (cp_lookup_symbol_imports): New function.
1667 (cp_lookup_symbol_in_namespace): New function.
1669 2010-01-25 Tom Tromey <tromey@redhat.com>
1672 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
1675 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1677 * configure.ac: Only use host_os part when disabling TUI on osf.
1678 Use test to check variables, prefix strings with x.
1679 * configure: Regenerate.
1681 * solib-osf.c (osf_current_sos): Initialize tail.
1683 2010-01-25 gingold <gingold@adacore.com>
1685 * windows-nat.c (windows_continue): Use %x to print thread id.
1686 (get_windows_debug_event): Ditto.
1688 2010-01-22 Tom Tromey <tromey@redhat.com>
1691 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
1692 type and arguments. Use smash_to_methodptr_type.
1693 (read_structure_type): Call quirk_gcc_member_function_pointer
1695 * gdbtypes.h (smash_to_methodptr_type): Declare.
1696 * gdbtypes.c (smash_to_methodptr_type): New function.
1697 (lookup_methodptr_type): Use it.
1699 2010-01-21 Tom Tromey <tromey@redhat.com>
1702 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
1703 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
1704 * glibc-tdep.c (find_minsym_and_objfile): Remove.
1705 (glibc_skip_solib_resolver): Use
1706 lookup_minimal_symbol_and_objfile.
1708 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
1710 * inflow.c (check_syscall): Guard by #if clause for GO32 and
1713 2010-01-20 Tom Tromey <tromey@redhat.com>
1716 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
1717 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
1718 * dwarf2expr.c (new_dwarf_expr_context): Allocate
1719 dwarf_stack_values, not CORE_ADDRs.
1720 (execute_stack_op): Change DW_OP_div and comparison operators to
1721 use signed operands.
1723 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
1725 Per-inferior args and tty and environment.
1727 * infcmd.c (inferior_args): Rename to ...
1728 (inferior_args_scratch): ... this.
1729 (inferior_io_terminal): Rename to ...
1730 (inferior_io_terminal_scratch): ... this.
1731 (inferior_argc, inferior_argv): Remove.
1732 (set_inferior_io_terminal, get_inferior_io_terminal): Store
1733 inside current_inferior().
1734 (set_inferior_tty_command, show_inferior_tty_command): New.
1735 (get_inferior_args, set_inferior_args): Store inside
1737 (notice_args_set): Likewise and rename to...
1738 (set_args_command): ... this.
1739 (set_inferior_args_vector): Likewise.
1740 (notice_args_read): Rename to...
1741 (show_args_command): ...new.
1742 (tty_command): Remove.
1743 (run_command_1): Don't free old args, as they are freed by
1744 set_inferior_arg now.
1745 (run_no_args_command): Likewise.
1746 (inferior_environ): Remove.
1747 (run_command_1): Use environment of the current inferior.
1748 (environment_info, set_environment_command)
1749 (unset_environment_command, path_info, path_command): Likewise.
1750 (_initialize_infcmd): Adjust for function and variable renames.
1751 Do not init inferior_environ.
1752 * inferior.h (set_inferior_arg): Adjust prototype.
1753 (struct inferior): New fields args, argc, argv, terminal, environment.
1754 (inferior_environ): Remove declaration.
1755 * inferior.c (free_inferior): Free new fields.
1756 (add_inferior_silent): Initialize 'environment' field.
1757 * main.c (captured_main): Set arguments only after the initial
1758 inferior has been created. Set set_inferior_io_terminal,
1760 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
1762 (_initialize_mi_cmd_env): Adjust for disappearance of global
1764 * solib.c (solib_find): Use environment of the current inferior.
1766 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1768 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
1770 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
1772 2010-01-20 Joel Brobecker <brobecker@adacore.com>
1774 Get rid of ada-lang.c:function_name_from_pc.
1775 * ada-lang.c: Add "stack.h" #include.
1776 (function_name_from_pc): Delete.
1777 (is_known_support_routine): Replace call to function_name_from_pc
1778 by call to find_frame_funname.
1779 (ada_unhandled_exception_name_addr_from_raise): Likewise.
1781 2010-01-19 Tom Tromey <tromey@redhat.com>
1784 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
1787 2010-01-19 Tom Tromey <tromey@redhat.com>
1789 * top.c (stop_sig, float_handler, do_nothing): Remove.
1791 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1793 * breakpoint.c (watchpoint_check): Check the call
1794 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
1796 * config/djgpp/fnchange.lst: Add translations for
1797 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
1798 watchpoint-cond-gone-stripped.c.
1800 2010-01-19 Tom Tromey <tromey@redhat.com>
1803 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
1804 into parent scope, and enumerator into grandparent scope.
1806 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1808 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
1810 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1812 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
1813 i[34567]86-*-solaris2.1[0-9]*.
1814 * configure.tgt: Likewise.
1816 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1818 * NEWS: Document the source command enhancement allowing it
1819 to load Python scripts. Document the "set/show script-extension"
1822 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1824 Add -Wunused-function to compile flags.
1825 * configure.ac: Add -Wunused-function to build_warnings.
1826 * configure: Regenerate.
1828 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1830 "delete" ada-lex.c:input function, not used.
1831 * ada-lex.l: #define YY_NO_INPUT.
1833 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1835 Delete free_named_symtabs and associated cleanup.
1836 * symfile.h (free_named_symtabs): Delete declaration.
1837 * symfile.c: Remove some commented out code (clear_symtab_users_once).
1838 (cashier_psymtab): Comment function out.
1840 (free_named_symtabs): Delete.
1841 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
1842 * dbxread.c (end_psymtab): Likewise.
1843 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
1844 * exec.c (exec_close_1): Ditto.
1845 * xcoffread.c (xcoff_end_psymtab): Likewise.
1847 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1849 * stack.c (print_block_frame_labels): Comment function out.
1851 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1853 Delete unused or undefined functions.
1854 * breakpoint.c (ep_parse_optional_filename): Delete.
1855 * dcache.c (dcache_write_line): Remove declaration.
1856 * infrun.c (build_infrun): Remove declaration.
1857 * tracepoint.c (tracepoint_save_command): Remove declaration.
1858 * linux-nat.c (init_lwp_list): Delete. No longer used.
1859 * event-loop.c (check_async_signal_handlers): Delete declaration.
1860 * infrun.c (init_execution_control_state): Delete.
1861 (proceed): Update comment to avoid mentioning
1862 init_execution_control_state.
1863 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
1864 * ada-lang.c (ada_to_static_fixed_value): Delete.
1865 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
1866 * cp-namespace.c (cp_copy_usings): Delete.
1867 * xml-syscall.c (xml_number_of_syscalls): Delete.
1868 * progspace.c (find_program_space_by_num): Delete.
1869 * inflow.c (handle_sigio): Delete declaration.
1870 * hppa-tdep.c (hppa_alignof): Delete.
1871 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
1872 (mipsnbsd_core_osabi_sniffer): Delete.
1874 2010-01-18 Tom Tromey <tromey@redhat.com>
1877 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
1878 (CONST_CAST): New tokens.
1879 (exp): Add new productions.
1880 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
1882 (is_cast_operator): New function.
1883 (yylex): Handle cast operators specially.
1884 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
1885 UNOP_REINTERPRET_CAST>: New cases.
1886 * expprint.c (print_subexp_standard): Likewise.
1887 (op_name_standard): Likewise.
1888 (dump_subexp_body_standard): Likewise.
1889 * parse.c (operator_length_standard): Likewise.
1890 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
1891 UNOP_REINTERPRET_CAST.
1892 * gdbtypes.c (class_types_same_p): New function.
1893 (is_ancestor): Use it.
1894 (is_public_ancestor): New function.
1895 (is_unique_ancestor_worker): Likewise.
1896 (is_unique_ancestor): Likewise.
1897 * gdbtypes.h (class_types_same_p, is_public_ancestor)
1898 (is_unique_ancestor): Declare.
1899 * valops.c (value_reinterpret_cast): New function.
1900 (dynamic_cast_check_1): Likewise.
1901 (dynamic_cast_check_2): Likewise.
1902 (value_dynamic_cast): Likewise.
1903 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
1905 2010-01-18 Joel Brobecker <brobecker@adacore.com>
1907 Fix build failure when building without Python support.
1908 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
1911 2010-01-18 Joel Brobecker <brobecker@adacore.com>
1913 Use XVS field type instead of doing a parallel lookup.
1914 * ada-lang.c (ada_get_base_type): Follow the XVS field type
1915 if it is a reference type instead of doing a type lookup using
1918 2010-01-18 Joel Brobecker <brobecker@adacore.com>
1920 Trust PAD types instead of using PAD___XVS.
1921 * ada-lang.c (trust_pad_over_xvs): New static variable.
1922 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
1923 parallel XVS type, follow the XVS type instead of the PAD type.
1924 (unwrap_value): Make sure that there is no parallel XVE type
1925 before returning the value as is.
1926 (set_ada_list, show_ada_list): New static variables.
1927 (set_ada_command, show_ada_command): New functions.
1928 (_initialize_ada_language): Add new "set/show ada" prefix commands.
1929 Add new "set/show ada trust-PAD-over-XVS" setting.
1931 2010-01-18 Tom Tromey <tromey@redhat.com>
1932 Thiago Jung Bauermann <bauerman@br.ibm.com>
1934 Allow "source" to load python scripts.
1935 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
1936 * python/python.c (source_python_script): New function.
1937 * python/python.h (source_python_script): Add declaration.
1938 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
1939 (script_ext_off, script_ext_soft, script_ext_strict)
1940 (script_ext_enums, script_ext_mode): New static constants.
1941 (show_script_ext_mode, find_and_open_script): New functions.
1942 (source_script): Enhance to handle Python scripts.
1943 (init_cli_cmds): Add set/show script-extension commands.
1945 2010-01-16 Stan Shebs <stan@codesourcery.com>
1947 * tracepoint.h (struct trace_status): Use unsigned long long
1949 * tracepoint.c (trace_status_command): Fix printf directive.
1950 (trace_save_command): Check fwrite returns, fix printf directive.
1951 (trace_filename): New global.
1952 (tfile_open): Set it, check read returns.
1953 (tfile_close): Free trace_filename.
1954 (tfile_get_traceframe_address): Check read returns.
1955 (tfile_trace_find): Ditto.
1956 (tfile_fetch_registers): Ditto.
1957 (tfile_xfer_partial): Ditto.
1958 (tfile_get_trace_state_variable_value): Ditto.
1960 2010-01-15 Stan Shebs <stan@codesourcery.com>
1962 Add trace file support.
1963 * tracepoint.h (enum trace_stop_reason): New enum.
1964 (struct trace_status): New struct.
1965 (parse_trace_status): Declare.
1966 (struct uploaded_tp): Move here from remote.c,
1967 add fields for actions.
1968 (struct uploaded_tsv): New struct.
1969 * tracepoint.c (tfile_ops): New target vector.
1970 (trace_fd): New global.
1971 (tfile_open): New function.
1972 (tfile_close): New function.
1973 (tfile_files_info): New function.
1974 (tfile_get_trace_status): New function.
1975 (tfile_get_traceframe_address): New function.
1976 (tfile_trace_find): New function.
1977 (tfile_fetch_registers): New function.
1978 (tfile_xfer_partial): New function.
1979 (tfile_get_trace_state_variable_value): New function.
1980 (init_tfile_ops): New function.
1981 (_initialize_tracepoint): Call it, add tfile target.
1982 (trace_status): New global.
1983 (current_trace_status): New function.
1984 (trace_running_p): Remove, change all users to get from
1985 current_trace_status()->running.
1986 (get_trace_status): Remove.
1987 (trace_status_command): Call target_get_trace_status directly,
1988 report more detail including tracing stop reasons.
1989 (trace_find_command): Always allow tfind on a file.
1990 (trace_find_pc_command): Ditto.
1991 (trace_find_tracepoint_command): Ditto.
1992 (trace_find_line_command): Ditto.
1993 (trace_find_range_command): Ditto.
1994 (trace_find_outside_command): Ditto.
1995 (trace_frames_offset, cur_offset): Declare as off_t.
1996 (trace_regblock_size): Rename from reg_size, update users.
1997 (parse_trace_status): New function.
1998 (tfile_interp_line): New function.
1999 (disconnect_or_stop_tracing): Ensure current trace
2000 status before asking what to do.
2001 (stop_reason_names): New global.
2002 (trace_save_command): New command.
2003 (get_uploaded_tp): Move here from remote.c.
2004 (find_matching_tracepoint): Ditto.
2005 (merge_uploaded_tracepoints): New function.
2006 (parse_trace_status): Use stop_reason_names.
2007 (_initialize_tracepoint): Define tsave command.
2008 * target.h (target_ops): New fields to_save_trace_data,
2009 to_upload_tracepoints, to_upload_trace_state_variables,
2010 to_get_raw_trace_data, change to_get_trace_status
2011 to take a pointer to a status struct.
2012 (target_save_trace_data): New macro.
2013 (target_upload_tracepoints): New macro.
2014 (target_upload_trace_state_variables): New macro.
2015 (target_get_raw_trace_data): New macro.
2016 * target.c (update_current_target): Add new methods, change
2017 signature of to_get_trace_status.
2018 * remote.c (hex2bin): Make globally visible.
2020 (remote_download_trace_state_variable): Download name also.
2021 (remote_get_trace_status): Update parameter, use
2023 (remote_save_trace_data): New function.
2024 (remote_upload_tracepoints): New function.
2025 (remote_upload_trace_state_variables): New function.
2026 (remote_get_raw_trace_data): New function.
2027 (remote_start_remote): Use them.
2028 (_initialize_remote_ops): Add operations.
2029 * ax-gdb.c: Include breakpoint.h.
2030 * breakpoint.c (create_tracepoint_from_upload): Use
2031 break_command_really, return tracepoint, warn about unimplemented
2033 * NEWS: Mention trace file addition.
2035 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2037 Fix compilation warning on gcc-3.4.
2038 * exec.c (print_section_info): Move the `displacement' variable
2039 initialization to its declaration.
2041 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2043 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
2046 2010-01-15 Eric Botcazou <botcazou@adacore.com>
2048 "info tasks" broken by typedefs in ATCB type definitions.
2049 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
2050 ada_check_typedef before retrieving the length of the type for
2053 2010-01-15 Joel Brobecker <brobecker@adacore.com>
2055 Do not use name-based lookup for unconstrained packed arrays.
2056 * ada-lang.c (find_parallel_type_by_descriptive_type):
2057 Limit the fallback to name-based lookups to the case where
2058 the type is a constrained packed array.
2060 2010-01-15 Joel Brobecker <brobecker@adacore.com>
2062 Enhance gdb-gdb.py to handle main_type.type_specific.
2063 * gdb-gdb.py: Print the type-specific part of struct main_type.
2065 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2067 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
2068 * configure: Regenerate.
2069 * config.in: Regenerate.
2070 * utils.c: Include sys/resource.h.
2071 (dump_core, can_dump_core): New.
2072 (internal_vproblem): Update the comment. Check can_dump_core while
2073 setting dump_core_p. Replace two abort calls by dump_core calls.
2075 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2076 Eli Zaretskii <eliz@gnu.org>
2078 * NEWS: Document the PIE support.
2080 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2082 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
2083 (check_is_pie_binary, _initialize_linux_tdep): Remove.
2085 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2087 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
2088 Replace exec_entry_point call by bfd_get_start_address.
2090 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2092 Support Valgrind attachments broken by the PIE support.
2093 * auxv.c: Include gdbcore.h.
2094 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
2095 parameters ops, object and annex. Remove their assertions.
2096 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
2097 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
2098 (memory_xfer_auxv): ... here.
2099 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
2101 * procfs.c (procfs_xfer_partial): Likewise.
2102 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
2103 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
2104 (svr4_solib_create_inferior_hook): Conditionalize the
2105 svr4_relocate_main_executable call.
2107 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2109 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
2110 target_section. Find SECT in current_target_sections, gdb_assert it.
2111 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
2113 * symtab.c (lookup_objfile_from_block): Return the binary file instead
2114 of separate debug info file.
2116 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2118 Support PIEs with no symfile_objfile.
2119 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
2120 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
2122 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2124 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
2126 (svr4_static_exec_displacement): ... a new function.
2127 (svr4_exec_displacement): New function.
2128 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
2129 new_offsets using alloca now. Remove variable old_chain and changed.
2130 Call objfile_relocate unconditionally now.
2132 2010-01-14 Doug Evans <dje@google.com>
2134 * gdbtypes.c (arch_flags_type): Fix comment.
2135 * gdbtypes.h (arch_composite_type): Fix comment.
2137 2009-01-14 Tristan Gingold <gingold@adacore.com>
2139 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
2140 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
2141 to symbol_file_add_from_bfd. Add OSO as separate objfile.
2142 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
2143 macho_add_oso_symfile.
2144 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
2146 2010-01-14 Joel Brobecker <brobecker@adacore.com>
2148 Tru64: Dead threads are never deleted.
2149 * dec-thread.c (dec_thread_ptid_is_alive): New function.
2150 (dec_thread_count_gdb_threads): Fix counter increment.
2151 (dec_thread_add_gdb_thread): Fix *listp increment.
2152 (resync_thread_list): Fix bug in deletion of dead threads that
2153 caused all threads to be deleted, instead of just the dead ones.
2155 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
2159 * python/python-internal.h: Add lazy_string_object_type
2161 (create_lazy_string_object, gdbpy_initialize_lazy_string)
2162 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
2163 * python/py-value.c (valpy_lazy_string): New function.
2164 (convert_value_from_python): Add lazy string conversion.
2165 * python/py-prettyprint.c (pretty_print_one_value): Check if
2166 return is also a lazy string.
2167 (print_string_repr): Add lazy string printing branch.
2168 (print_children): Likewise.
2169 * python/py-lazy-string.c: New file. Implement lazy strings.
2170 * python/python.c (_initialize_python): Call
2171 gdbpy_initialize_lazy_string.
2172 * varobj.c (value_get_print_value): Add lazy string printing
2173 branch. Account for encoding.
2174 * c-lang.c (c_printstr): Account for new encoding argument. If
2175 encoding is NULL, find encoding suited for type, otherwise use
2177 * language.h (language_defn): Add encoding argument.
2178 (LA_PRINT_STRING): Likewise.
2179 * language.c (unk_lang_printstr): Update to reflect new encoding
2180 argument to language_defn.
2181 * ada-lang.h (ada_printstr): Likewise.
2182 * c-lang.h (c_printstr): Likewise.
2183 * p-lang.h (pascal_printstr);
2184 * f-lang.c (f_printstr): Likewise.
2185 * m2-lang.c (m2_printstr): Likewise.
2186 * objc-lang.c (objc_printstr): Likewise.
2187 * p-lang.c (pascal_printstr): Likewise.
2188 * scm-lang.c (scm_printstr): Likewise.
2189 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
2191 * ada-valprint.c (ada_printstr): Likewise.
2192 * f-valprint.c (f_val_print): Likewise
2193 * m2-valprint.c (m2_val_print): Likewise.
2194 * p-valprint.c (pascal_val_print): Likewise.
2195 * expprint.c (print_subexp_standard): Likewise.
2196 * valprint.c (val_print_string): Likewise.
2197 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
2198 (SUBDIR_PYTHON_SRCS): Likewise.
2199 (py-lazy-string.o): New rule.
2201 2010-01-13 Doug Evans <dje@google.com>
2203 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
2204 uninitialized" warning from gcc on local `tree'.
2206 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
2208 Implement core awareness.
2210 * bcache.c (compare_ints): Remove
2211 (print_percentage): Use compare_positive_ints.
2212 * defs.h (compare_positive_ints): Declare.
2213 * linux-nat.h (struct lin_lwp): New field core.
2214 (linux_nat_core_of_thread_1): Declare.
2215 * linux-nat.c (add_lwp): Init the 'core' field.
2216 (linux_nat_wait_1): Record the core.
2217 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
2218 (linux_nat_add_target): Register the above.
2219 * linux-thread-db.c (update_thread_core): New.
2220 (thread_db_find_new_threads): Update core information for
2222 * remote.c (struct private_thread_info): New.
2223 (free_private_thread_info, demand_private_info): New.
2224 (PACKET_qXfer_threads, use_osdata_threads): New.
2225 (struct thread_item, threads_parsing_context
2226 (start_thread, end_thread, thread_attributes)
2227 (thread_children, threads_children, threads_elements): New.
2228 (remote_threads_info): Try qXfer:threads before anything
2230 (remote_protocol_packets): Register qXfer:threads.
2231 (remote_open_1): Init use_osdata_threads.
2232 (struct stop_reply): New field 'core'.
2233 (remote_parse_stop_reply): Parse core number.
2234 (process_stop_reply): Record core number.
2235 (remote_xfer_partial): Handle qXfer:threads.
2236 (remote_core_of_thread): New.
2237 (init_remote_ops): Register remote_core_of_thread.
2238 (_initialize_remote): Register qXfer:read.
2239 * target.c (target_core_of_thread): New
2240 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
2241 (struct target_ops): New field to_core_of_threads.
2242 (target_core_of_thread): Declare.
2243 * gdbthread.h (struct thread_info): New field private_dtor.
2244 * thread.c (print_thread_info): Report the core.
2245 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
2246 * utils.c (compare_positive_ints): New.
2247 * features/threads.dtd: New.
2248 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
2249 * mi/mi-main.c (struct collect_cores_data, collect_cores)
2250 (do_nothing, free_vector_of_osdata_items)
2251 (splay_tree_int_comparator, free_splay_tree): New.
2252 (print_one_inferior_data): Implemented printing of selected
2253 inferiors. Collect and print cores.
2254 (output_cores): New.
2255 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
2256 thread groups together with --available.
2258 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2260 * configure: Regenerate (for _STRUCTURED_PROC).
2262 2010-01-12 Joel Brobecker <brobecker@adacore.com>
2264 Delete dead function.
2265 * ada-lang.c (extract_string): Delete. No longer used.
2267 2010-01-12 Joel Brobecker <brobecker@adacore.com>
2269 Fix -Wunused warning in dec-thread.c.
2270 * dec-thread.c (dec_thread_count_gdb_threads)
2271 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
2273 2010-01-12 Joel Brobecker <brobecker@adacore.com>
2275 * ada-valprint.c (ada_print_floating): Remove trailing space.
2277 2010-01-12 Joel Brobecker <brobecker@adacore.com>
2279 Add support for DW_AT_GNAT_descriptive_type.
2280 * gdbtypes.h (enum type_specific_kind): New enum.
2281 (struct main_type) [type_specific_field]: New component.
2282 [type_specific]: Add new component "gnat_stuff".
2283 (struct gnat_aux_type): New type.
2284 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
2285 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
2286 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
2287 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
2288 (TYPE_SPECIFIC_FIELD): New macros.
2289 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
2290 type does not hold any cplus-specific data.
2291 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
2292 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
2293 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
2294 cplus-specific data.
2295 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
2296 Set new component TYPE_SPECIFIC_FIELD (type).
2297 (gnat_aux_default): New constant.
2298 (allocate_gnat_aux_type): New function.
2299 (init_type): Add initialization the type-specific stuff for
2300 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
2301 (print_gnat_stuff): New function.
2302 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
2303 specific data. Adjust code that prints the contents of the
2304 type-specific union using the TYPE_SPECIFIC_FIELD value.
2305 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
2306 the type cplus stuff for Ada types.
2307 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
2308 Error out if these routines are called with an Ada type.
2309 (read_structure_type, read_array_type, read_subrange_type):
2310 Add call to set_descriptive_type.
2311 (set_die_type): Initialize the gnat-specific data if necessary.
2312 (need_gnat_info, die_descriptive_type, set_descriptive_type):
2314 * ada-lang.c (decode_constrained_packed_array_type): Use
2315 decode_constrained_packed_array_type instead of doing a standard
2316 lookup to locate a parallel type.
2317 (find_parallel_type_by_descriptive_type): New function.
2318 (ada_find_parallel_type_with_name): New function.
2319 (ada_find_parallel_type): Reimplement using
2320 ada_find_parallel_type_with_name.
2321 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
2322 to check if type has a cplus stuff.
2323 * linespec.c (total_number_of_methods): Likewise.
2324 * mdebugread.c (new_type): Likewise.
2326 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2328 * NEWS: Document the 0b binary number prefix parsing.
2330 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2332 * objfiles.c (objfile_relocate1): Change the return type to int.
2333 Describe the new return value. Return non-zero if data changed.
2334 (objfile_relocate): New variable changed. Set it. Call
2335 breakpoint_re_set depending on CHANGED.
2337 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2339 Implement binary numbers parsing.
2340 * c-exp.y (parse_number): New case 'b' and 'B'.
2342 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2343 Tristan Gingold <gingold@adacore.com>
2345 * solib.c (info_sharedlibrary_command): Replace
2346 objfile_has_partial_symbols and objfile_has_full_symbols calls by
2347 objfile_has_symbols.
2349 2010-01-10 Joel Brobecker <brobecker@adacore.com>
2351 * NEWS: Document the improvements made to the mips-irix port.
2353 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2355 Fix the documentation of valprint.c:value_print.
2356 * valprint.c (value_print): Update the function description to
2357 mention that the syntax of the output follows the current_language,
2360 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2362 Fix displacement of separate debug info files.
2363 * objfiles.c (objfile_relocate): Rename to ...
2364 (objfile_relocate1): ... here and make it static. Extend the comment.
2365 (objfile_relocate): New function.
2366 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
2367 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
2368 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
2369 allocated using alloca.
2370 * symfile.c (copy_section_addr_info): Remove.
2371 (build_section_addr_info_from_objfile): Make it global. New variables
2372 addr_bit and mask, use them.
2373 * symfile.h (build_section_addr_info_from_objfile): New prototype.
2374 (copy_section_addr_info): Remove.
2376 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2378 Signal unwinder for mips-irix N32.
2379 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
2381 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
2382 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
2383 (SIGCONTEXT_LO_OFF): New macros.
2384 (mips_irix_n32_tramp_frame_init): New function.
2385 (mips_irix_n32_tramp_frame): New static constant.
2386 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
2388 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2390 Breakpoint in shared library does not work on mips-irix.
2391 * procfs.c: #include "observer.h".
2392 (procfs_inferior_created): New function, moving here the code
2393 which unsets the syssgi syscall-exit notifications.
2394 (procfs_create_inferior): Remove the code which unsets the syssgi
2395 syscall-exit notifications. It is too early to do this here.
2396 (_initialize_procfs): Attach the procfs_inferior_created observer.
2398 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2400 Wrong return convention for arrays (mips-irix).
2401 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
2402 128 bits or smaller are returned the same way as structs
2403 and unions of the the same size.
2405 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2407 Cannot set the PC on mips-irix.
2408 * irix5-nat.c (fill_gregset): Check regno against the raw PC
2409 register number, no the cooked one.
2411 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2413 Error while loading core file on mips-irix.
2414 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
2415 if debugging from a core file.
2417 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2419 GDB hangs when attaching to process on mips-irix.
2420 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
2421 attaching to a process.
2423 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2425 Use the correct breakpoint instruction on mips-irix.
2426 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
2427 containing the correct breakpoint instruction to use on mips-irix.
2428 Use it when the osabi is GDB_OSABI_IRIX.
2430 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2432 -Wunused warning in procfs.c (mips-irix only).
2433 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
2434 throughout instead of using praddset and prdelset respectively.
2436 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2438 GDB crash while stepping into function.
2439 * infrun.c (handle_inferior_event): Refetch the current frame
2440 after handling what.main_action, in case that pointer became
2443 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2445 Fix build failure of solaris-hosted cross debuggers.
2446 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
2448 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
2450 Fix build failure on sparc-solaris.
2451 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
2453 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2455 Move some symfile code into subroutines.
2456 * symfile.h (relative_addr_info_to_section_offsets)
2457 (addr_info_make_relative): New prototypes.
2458 * symfile.c (default_symfile_offsets): Move a part to ...
2459 (relative_addr_info_to_section_offsets): ... this new function.
2460 (default_symfile_offsets): Call it.
2461 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
2463 (addr_info_make_relative): ... this new function.
2465 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2467 Add from_tty to solib_create_inferior_hook.
2468 * infcmd.c (post_create_inferior): Move solib_add after
2469 solib_create_inferior_hook. Pass from_tty to
2470 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
2471 0 from_tty and comment why.
2472 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
2473 * linux-nat.c (linux_child_follow_fork): Likewise.
2474 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
2475 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
2477 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
2478 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2479 * solib-null.c (null_solib_create_inferior_hook): Likewise.
2480 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2481 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
2482 * solib-som.c (som_solib_create_inferior_hook): Likewise.
2483 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
2484 Pass it to svr4_so_ops.solib_create_inferior_hook.
2485 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
2487 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
2489 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
2491 * solib-target.c (solib_target_solib_create_inferior_hook): New
2493 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
2494 it to ops->solib_create_inferior_hook.
2495 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
2496 Move solib_add after solib_create_inferior_hook, call it now with
2497 from_tty as 0. New comment there.
2498 * solib.h (solib_create_inferior_hook): New parameter from_tty.
2499 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
2502 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
2505 * infrun.c (handle_inferior_event): Use get_thread_regcache
2506 with events ptid, not get_current_regcache.
2508 2009-01-08 Joel Brobecker <brobecker@adacore.com>
2510 GDB crash with empty executable name (MinGW).
2511 * source.c (openp): Add assert that parameter string is not NULL.
2512 if parameter string is an empty string, then return with a failure
2515 2009-01-08 Joel Brobecker <brobecker@adacore.com>
2517 Get rid of support for VAX Floats.
2518 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
2519 (ada_vax_float_print_function): Delete.
2520 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
2521 (ada_vax_float_print_function): Delete.
2522 * ada-typeprint.c (print_vax_floating_point_type): Delete.
2523 (ada_print_type): Remove support for VAX floats.
2524 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
2526 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2528 * stabsread.c (read_args): Handle zero arguments.
2530 2009-01-08 Joel Brobecker <brobecker@adacore.com>
2532 Cannot find in-tree libiconv.a after reconfigure.
2533 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
2534 that we can use, then cache the path to this archive.
2535 * configure: Regenerate.
2537 2010-01-07 Stan Shebs <stan@codesourcery.com>
2539 Make tracepoint operations go through target vector.
2540 * target.h (enum trace_find_type): New enum.
2541 (struct target_ops): New fields to_trace_init,
2542 to_download_tracepoint, to_download_trace_state_variable,
2543 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
2544 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
2545 to_set_disconnected_tracing.
2546 (target_trace_init): New macro.
2547 (target_download_tracepoint): New macro.
2548 (target_download_trace_state_variable): New macro.
2549 (target_trace_start): New macro.
2550 (target_trace_set_readonly_regions): New macro.
2551 (target_get_trace_status): New macro.
2552 (target_trace_stop): New macro.
2553 (target_trace_find): New macro.
2554 (target_get_trace_state_variable_value): New macro.
2555 (target_set_disconnected_tracing): New macro.
2556 * target.c (update_current_target): Inherit and set defaults for
2557 tracepoint operations.
2558 * tracepoint.c (default_collect): Make globally visible.
2559 (target_is_remote): Remove, along with all calls.
2560 (tvariables_info): Call target_get_trace_state_variable_value.
2561 (remote_set_transparent_ranges): Remove.
2562 (trace_start_command): Call target_trace_init,
2563 target_download_tracepoint, etc.
2564 (download_tracepoint): Remove.
2565 (trace_stop_command): Simplify.
2566 (stop_tracing): Call target_trace_stop.
2567 (get_trace_status): Call target_get_trace_status.
2568 (trace_status_command): Add case for targets that cannot trace.
2569 (finish_tfind_command): Change to take numerical arguments, call
2571 (trace_find_command): Update call to finish_tfind_command.
2572 (trace_find_pc_command): Ditto.
2573 (trace_find_tracepoint_command): Ditto.
2574 (trace_find_line_command): Ditto.
2575 (trace_find_range_command): Ditto.
2576 (trace_find_outside_command): Ditto.
2577 (set_disconnected_tracing_value): Call
2578 target_set_disconnected_tracing.
2579 * remote.c: Add protocol encoding bits from tracepoint.c.
2580 (trace_error): Move from tracepoint.c.
2581 (remote_get_noisy_reply): Ditto.
2582 (free_actions_list_cleanup_wrapper): Ditto.
2583 (free_actions_list): Ditto.
2584 (remote_trace_init): New function.
2585 (remote_download_tracepoint): New function.
2586 (remote_download_trace_state_variable): New function.
2587 (remote_trace_set_readonly_regions): New function.
2588 (remote_trace_start): New function.
2589 (remote_get_trace_status): New function.
2590 (remote_trace_stop): New function.
2591 (remote_trace_find): New function.
2592 (remote_download_trace_state_variable): New function.
2593 (remote_set_disconnected_tracing): New function.
2594 (init_remote_ops): Add tracepoint operations.
2596 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
2598 2010-01-07 Tristan Gingold <gingold@adacore.com>
2600 * symfile.c (build_section_addr_info_from_objfile): New function.
2601 (symbol_file_add_separate): Don't use offsets from objfile but
2604 2010-01-06 Stan Shebs <stan@codesourcery.com>
2606 Support disconnected tracing.
2607 * infcmd.c (detach_command): Ask whether to stop tracing.
2608 * cli/cli-cmds.c (quit_command): Ditto.
2609 * breakpoint.h (struct breakpoint): New field number_on_target.
2610 * breakpoint.c (create_tracepoint_from_upload): New function.
2611 (get_tracepoint_by_number_on_target): New function.
2612 * remote.c (struct remote): New field disconnected_tracing.
2613 (remote_disconnected_tracing_feature): New function.
2614 (remote_protocol_features): Add DisconnectedTracing.
2615 (struct uploaded_tp): New struct.
2616 (uploaded_tps): New global.
2617 (get_uploaded_tp): New function.
2618 (find_matching_tracepoint): New function.
2619 (remote_get_tracing_state): New function.
2620 (remote_start_remote): Call it.
2621 * tracepoint.c (disconnected_tracing): New global.
2622 (trace_start_command): Initialize number_on_target.
2623 (stop_tracing): New function, split out from...
2624 (trace_stop_command): Call stop_tracing.
2625 (get_trace_status): New function, split out from...
2626 (trace_status_command): Call get_trace_status, add info on
2627 disconnection behavior.
2628 (disconnect_or_stop_tracing): New function.
2629 (finish_tfind_command): Translate from number on target.
2630 (trace_find_tracepoint_command): Translate to number on target.
2631 (send_disconnected_tracing_value): New function.
2632 (set_disconnected_tracing): New function.
2633 (_initialize_tracepoint): Add disconnected-tracing variable.
2634 * NEWS: Mention disconnected tracing.
2636 2010-01-06 Tristan Gingold <gingold@adacore.com>
2638 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
2639 parameter to main_objfile. Iterate on all separate debug objfiles.
2640 * symfile.h (symbol_file_add_separate)
2641 (find_separate_debug_file_by_debuglink): Remove parameter names.
2642 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
2643 (reread_symbols): Use free_objfile_separate_debug.
2644 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
2646 (objfile_separate_debug_iterate, add_separate_debug_objfile)
2647 (free_objfile_separate_debug): New prototypes.
2648 * objfiles.c (objfile_separate_debug_iterate): New function.
2649 (add_separate_debug_objfile, free_objfile_separate_debug): New
2651 (free_objfile): Use free_objfile_separate_debug. Adjust for
2652 multiple separate debug objfile.
2653 (objfile_has_symbols): Adjust comment. Iterate on all separate
2655 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
2657 (lookup_minimal_symbol_text): Ditto.
2658 (lookup_minimal_symbol_by_pc_name): Ditto.
2659 (lookup_minimal_symbol_solib_trampoline): Ditto.
2660 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
2663 2010-01-05 Stan Shebs <stan@codesourcery.com>
2665 Add fast tracepoints.
2666 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
2667 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
2668 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
2669 * breakpoint.c (tracepoint_type): New function.
2670 (ALL_TRACEPOINTS): Use it.
2671 (should_be_inserted): Ditto.
2672 (bpstat_check_location): Ditto.
2673 (print_one_breakpoint_location): Ditto.
2674 (user_settable_breakpoint): Ditto.
2675 (set_breakpoint_location_function): Ditto.
2676 (disable_breakpoints_in_shlibs): Ditto.
2677 (delete_trace_command): Ditto.
2678 (print_it_typical): Add bp_fast_tracepoint case.
2679 (bpstat_what): Ditto.
2680 (print_one_breakpoint_location): Ditto.
2681 (allocate_bp_location): Ditto.
2683 (breakpoint_re_set_one): Ditto.
2684 (disable_command): Ditto.
2685 (enable_command): Ditto.
2686 (check_fast_tracepoint_sals): New function.
2687 (break_command_really): Call it.
2688 (ftrace_command): New function.
2689 (_initialize_breakpoint): Add ftrace command.
2690 * gdbarch.sh (fast_tracepoint_valid_at): New.
2691 * gdbarch.h, gdbarch.c: Regenerate.
2692 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
2693 (i386_gdbarch_init): Use it.
2694 * remote.c (struct remote_state): New field fast_tracepoints.
2695 (PACKET_FastTracepoints): New packet config type.
2696 (remote_fast_tracepoint_feature): New function.
2697 (remote_protocol_features): Add FastTracepoints.
2698 (remote_supports_fast_tracepoints): New function.
2699 (_initialize_remote): Add FastTracepoints.
2700 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
2701 * NEWS: Mention fast tracepoints.
2703 2010-01-06 Joel Brobecker <brobecker@adacore.com>
2705 * gdb-gdb.py: New file.
2707 2010-01-05 Michael Snyder <msnyder@vmware.com>
2709 * infrun.c (handle_inferior_event): Fix typo in comment.
2711 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2713 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
2715 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2717 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
2719 (s390-linux32-expedite): Define.
2720 (s390-linux64-expedite): Define.
2721 (s390x-linux64-expedite): Define.
2722 * features/s390-acr.xml: New file.
2723 * features/s390-fpr.xml: New file.
2724 * features/s390-core32.xml: New file.
2725 * features/s390-core64.xml: New file.
2726 * features/s390x-core64.xml: New file.
2727 * features/s390-linux32.xml: New file.
2728 * features/s390-linux64.xml: New file.
2729 * features/s390x-linux64.xml: New file.
2730 * features/s390-linux32.c: New generated file.
2731 * features/s390-linux64.c: New generated file.
2732 * features/s390x-linux64.c: New generated file.
2734 * regformats/s390-linux32.dat: New generated file.
2735 * regformats/s390-linux64.dat: New generated file.
2736 * regformats/s390x-linux64.dat: New generated file.
2737 * regformats/reg-s390.dat: Remove.
2738 * regformats/reg-s390x.dat: Remove.
2740 * s390-nat.c: Include "auxv.h" and <elf.h>.
2741 (HWCAP_S390_HIGH_GPRS): Define if undefined.
2742 (s390_target_wordsize): New function.
2743 (s390_auxv_parse): Likewise.
2744 (s390_get_hwcap): Likewise.
2745 (s390_read_description): Likewise.
2746 (_initialize_s390_nat): Install s390_auxv_parse and
2747 s390_read_description.
2749 * s390-tdep.c: Include "features/s390-linux32.c",
2750 "features/s390-linux64.c", and "features/s390x-linux64.c".
2751 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
2752 (s390_register_call_saved): New function.
2753 (s390_register_name): Remove.
2754 (s390_register_type): Remove.
2755 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
2756 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
2757 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
2758 (s390_pseudo_register_name): New function.
2759 (s390_pseudo_register_type): New function.
2760 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
2761 Handle full GPR pesudos and varying pseudo register numbers.
2762 (s390_pseudo_register_write): Likewise
2763 (s390x_pseudo_register_read): Remove.
2764 (s390x_pseudo_register_write): Likewise.
2765 (s390_register_group): Remove.
2766 (s390_pseudo_register_group): New function.
2767 (s390_regmap_gregset): Add GPR upper halves.
2768 (s390x_regmap_gregset): Likewise.
2769 (s390_regmap_fpregset): Likewise.
2770 (s390_regmap_upper): New global variable.
2771 (s390_upper_regset): New global variable.
2772 (s390_upper_regset_sections): New global variable.
2773 (s390_regset_from_core_section): Handle GPR upper halves.
2774 (s390_core_read_description): New function.
2775 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
2776 register information. Handle varying pseudo register numbers.
2777 (s390_backchain_frame_unwind_cache): Likewise.
2778 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
2779 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
2780 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
2781 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
2782 Handle varying pseudo register numbers.
2783 (s390_unwind_pc): Handle varying pseudo register numbers.
2784 (s390_dwarf2_prev_register): New function.
2785 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
2786 register information. Handle varying pseudo register numbers.
2787 Install s390_dwarf2_prev_register to unwind full GPRs.
2788 (s390_gdbarch_init): Handle target descriptions. Assign varying
2789 pseudo register numbers. Install s390_adjust_frame_regnum.
2790 (_initialize_s390_tdep): Initialize target descriptions.
2792 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
2793 (S390_NUM_REGS): Redefine to include upper half registers.
2794 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
2795 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
2796 (tdesc_s390_linux32): Add declaration.
2797 (tdesc_s390_linux64): Likewise.
2798 (tdesc_s390x_linux64): Likewise.
2800 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2802 * regset.h (struct core_regset_section): Add HUMAN_NAME.
2803 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
2804 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2805 (ppc_linux_vmx_regset_sections): Likewise.
2806 (ppc_linux_fp_regset_sections): Likewise.
2808 * corelow.c (get_core_register_section): Constify arguments.
2809 (get_core_registers): Use gdbarch_core_regset_sections instead
2810 of hard-coded platform-specific register section names.
2812 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2814 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
2815 a register, assume the least-significant part is used.
2816 (write_pieced_value): Likewise.
2818 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2820 * printcmd.c: Include "arch-utils.h".
2821 (do_one_display): Re-parse expression if current architecture changed.
2823 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2824 Joel Brobecker <brobecker@adacore.com>
2826 * gdbtypes.c (check_typedef): New comment on type length.
2827 * value.c (allocate_value_lazy): Remove the unused atype variable. New
2828 comment on type length.
2829 (value_primitive_field): Keep the original TYPE value, new comment.
2831 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2833 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
2834 p_start. Change != comparisons to > and < comparisons.
2836 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2838 * cli/cli-script.c (process_next_line): Check P2 overrun.
2840 2009-01-01 Joel Brobecker <brobecker@adacore.com>
2842 Update the copyright hearder to add year 2010 for most GDB files.
2844 2009-01-01 Joel Brobecker <brobecker@adacore.com>
2846 Fix build failure in inf-ptrace.c.
2847 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
2849 2010-01-01 Joel Brobecker <brobecker@adacore.com>
2851 * top.c (print_gdb_version): Update copyright year.
2853 2010-01-01 Joel Brobecker <brobecker@adacore.com>
2855 Fix break *FUN'address thread NUM.
2856 * ada-lex.l (task): Expand rule to also match the thread keyword.
2858 2010-01-01 Joel Brobecker <brobecker@adacore.com>
2860 Fix break *FUN'address task NUM.
2861 * ada-lex.l (task): New rule.
2862 * ada-lang.c (valid_task_id): Make sure the Ada task list has
2863 been built before using it.
2865 For older changes see ChangeLog-2009.
2871 version-control: never