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