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