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