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