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