1 2010-09-29 Doug Evans <dje@google.com>
3 Workaround for gcc/45682.
4 * dwarf2read.c (partial_die_info): New fields fixup_called,
6 (guess_partial_die_structure_name): Renamed from guess_structure_name.
7 Move definition next to use. Use linkage_name to determine if class
8 is in a namespace. All callers updated.
9 (fixup_partial_die): Return early if already called.
10 Set fixup_called when done.
11 (guess_full_die_structure_name): New function.
12 (determine_prefix): Call it for class/struct/union dies if c++ and
13 .debug_types section is present and parent is DW_TAG_compile_unit.
15 2010-09-28 Joel Brobecker <brobecker@adacore.com>
17 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
18 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
20 2010-09-28 Joel Brobecker <brobecker@adacore.com>
22 * NEWS: Announce Ravenscar Profile support.
24 2010-09-28 Joel Brobecker <brobecker@adacore.com>
25 Jerome Guitton <guitton@adacore.com>
27 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
29 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
30 ravenscar-sparc-thread.o to gdb_target_obs.
32 2010-09-28 Joel Brobecker <brobecker@adacore.com>
34 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
35 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
37 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
39 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
40 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
41 skip_main_prologue method.
43 2010-09-27 Tom Tromey <tromey@redhat.com>
45 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
46 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
47 Only emit a given psymbol once.
48 (struct signatured_type_index_data) <psyms_seen>: New field.
49 (write_one_signatured_type): Update.
50 (cleanup_htab): New function.
51 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
53 (save_gdb_index_command): Update index documentation.
55 2010-09-27 Tom Tromey <tromey@redhat.com>
57 * bcache.c (expand_hash_table): Use hash_function, not hash.
59 2010-09-27 Tom Tromey <tromey@redhat.com>
61 * gdb_wchar.h: Change minimum libiconv to 0x108.
63 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
65 Fix lost siginfo_t for inferior calls.
67 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
68 (save_inferior_thread_state): New variables regcache, gdbarch and
69 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
70 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
72 (restore_inferior_thread_state): New variables regcache and gdbarch.
73 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
74 REGCACHE. Free also SIGINFO_DATA.
76 2010-09-24 Tom Tromey <tromey@redhat.com>
78 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
80 (dw2_map_symbol_names): Likewise.
82 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
84 * valops.c (find_oload_champ_namespace_loop): replace incorrect
85 discard_cleanups do_cleanups.
87 2010-09-24 Pedro Alves <pedro@codesourcery.com>
91 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
92 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
93 si_code is < 0. Check for si_code == SI_TIMER before checking for
96 2010-09-24 Pedro Alves <pedro@codesourcery.com>
98 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
100 2010-09-22 Joel Brobecker <brobecker@adacore.com>
102 * ada-tasks.c (read_atcb): Do not compute the task ptid when
103 debugging a core file.
105 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
108 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
109 (free_objfile) <objfile->name != NULL>: Remove the conditional around
111 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
112 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
114 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
115 Remove the conditional.
116 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
118 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
120 * main.c: Include objfiles.h.
121 (captured_main): New variable objfile. Call
122 load_auto_scripts_for_objfile for ALL_OBJFILES.
124 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
126 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
129 2010-09-22 Joel Brobecker <brobecker@adacore.com>
131 * dwarf2read.c (scan_partial_symbols): Add handling of
132 DW_TAG_constant DIEs.
133 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
135 2010-09-22 Joel Brobecker <brobecker@adacore.com>
137 * configure.ac: Add support for --enable-gdbserver.
138 * configure: Regenerate.
140 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
143 * valops.c (find_oload_champ_namespace_loop): removed incorrect
144 'old_cleanups' reassignment.
146 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
148 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
151 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
154 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
155 read_var_value and common_val_print and print a warning.
157 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
159 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
160 keep the list in alphabetical order. Use longer e-mail address.
162 2010-09-15 Tom Tromey <tromey@redhat.com>
164 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
166 2010-09-15 Tom Tromey <tromey@redhat.com>
168 * charset.c (iconv_open): New define.
170 (iconv_close): Likewise.
171 (phony_iconv_open): Add "phony_" prefix.
172 (phony_iconv_close): Likewise.
173 (phony_iconv): Likewise.
174 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
175 Change how INTERMEDIATE_ENCODING is defined.
177 2010-09-15 Doug Evans <dje@google.com>
179 * dwarf2read.c (struct die_info): Fix comment.
181 2010-09-15 Alan Modra <amodra@gmail.com>
184 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
185 than setting SEC_NEVER_LOAD on sections that need not be copied.
187 2010-09-14 Tom Tromey <tromey@redhat.com>
189 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
190 (start_psymtab_common, allocate_psymtab, discard_psymtab):
192 * symfile.h (extend_psymbol_list): Remove.
193 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
194 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
195 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
197 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
199 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
202 2010-09-14 Tom Tromey <tromey@redhat.com>
205 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
206 for unrecognized frame base expression.
208 2010-09-14 Tom Tromey <tromey@redhat.com>
211 * value.c (value_static_field): Use value_of_variable.
213 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
215 * m32r-rom.c: Replace winsock.h with winsock2.h header.
216 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
218 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
221 * c-exp.y (classify_name): Check is_a_member_of_this before returning
224 2010-09-13 Joel Brobecker <brobecker@adacore.com>
226 * NEWS: Add x86-lynxos to the list of platforms supported by
229 2010-09-13 Joel Brobecker <brobecker@adacore.com>
231 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
233 2010-09-13 Tom Tromey <tromey@redhat.com>
235 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
237 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
239 * i386-tdep.c (i386_ymm_type): Set type name to
240 builtin_type_vec256i.
242 2010-09-12 Michael Snyder <msnyder@vmware.com>
244 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
246 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
248 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
250 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
252 * amd64-tdep.c (amd64_register_name): Removed.
253 (amd64_init_abi): Don't call set_gdbarch_register_name.
255 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
257 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
259 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
260 Paul Bolle <pebolle@tiscali.nl>
262 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
263 * cli-logging.c (struct saved_output_files) <targerr>: New.
264 (set_logging_redirect, pop_output_files, handle_redirections):
265 Redirect also gdb_stdtargerr.
266 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
268 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
270 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
271 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
272 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
273 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
274 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
277 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
279 * hppa-tdep.c (unwind_command): Use host_address_to_string function
280 to display a host address.
281 * monitor.c (monitor_read_memory): Likewise.
282 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
284 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
286 * coffread.c (struct coff_symbol): Change c_value type from `long' to
287 `CORE_ADDRESS' as it might contain target addresses.
289 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
291 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
292 before cast to pointer to avoid warning.
294 2010-09-09 Kevin Buettner <kevinb@redhat.com>
296 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
299 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
301 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
302 anonymous class partial DIEs.
304 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
306 * dwarf2read.c (dwarf2_compute_name): Check that the first
307 argument is a pointer.
309 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
311 * dwarf2read.c (read_func_scope, read_structure_type)
312 (read_common_block): Check for a NULL return from new_symbol.
314 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
316 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
318 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
320 * dwarf2read.c (read_structure_type): Move processing of
321 fields and member functions from here...
322 (process_structure_scope): ... to here.
324 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
326 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
328 (gnuv3_make_method_ptr): Likewise.
330 2010-09-08 Tom Tromey <tromey@redhat.com>
332 * breakpoint.c (create_breakpoint): Add missing _().
334 2010-09-08 Doug Evans <dje@google.com>
336 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
338 2010-09-08 Tom Tromey <tromey@redhat.com>
341 2010-09-01 Tom Tromey <tromey@redhat.com>
342 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
343 symtab.h: Revert earlier change.
345 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
347 * psymtab.c (add_psymbol_to_bcache): Initialize
349 memset psymbol.ginfo.value to 0.
351 2010-09-06 Pedro Alves <pedro@codesourcery.com>
353 * infrun.c (resume): Extend comment on ignoring single-step
354 requests on vfork parents waiting for a vfork-done.
356 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
357 Pedro Alves <pedro@codesourcery.com>
359 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
361 * fork-child.c (startup_inferior) <resume_signal>: Use enum
363 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
364 calling strsignal. Use enum target_signal type for saved_signo.
365 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
366 (linux_nat_wait_1): Use enum target_signal type for signo. Use
367 target_signal_to_host before calling strsignal.
368 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
371 2010-09-06 Pedro Alves <pedro@codesourcery.com>
372 Jan Kratochvil <jan.kratochvil@redhat.com>
374 * common/signals.c (ANY): Remove.
375 (SET): No longer use ANY.
377 2010-09-06 Yao Qi <yao@codesourcery.com>
379 * infrunc(resume): When inferior is waiting_for_vfork_done,
380 clear step and don't use displaced stepping.
382 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
384 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
387 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
389 Code cleanup - split print_stop_reason.
390 * infrun.c (enum inferior_stop_reason): Remove.
391 (print_stop_reason): Remove by splitting into ...
392 (print_exited_reason, print_signal_exited_reason)
393 (print_no_history_reason, print_signal_received_reason)
394 (print_end_stepping_range_reason): ... these new functions. Update
395 the preceding comment.
396 (handle_inferior_event): Change the calls to print_exited_reason,
397 print_signal_exited_reason, print_no_history_reason,
398 print_signal_received_reason, print_end_stepping_range_reason.
399 (handle_step_into_function, handle_step_into_function_backward):
400 Change the calls to print_end_stepping_range_reason.
402 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
404 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
405 * cli-out.c: Include vec.h.
406 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
407 variable stream, initialize it, use it.
408 (cli_redirect): New function comment. Replace the stream and
409 original_stream fields by the new streams field. Remove the
410 original_stream != NULL conditional, assert error on NULL instead.
411 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
412 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
413 original_stream fields by the new streams field.
414 (cli_out_set_stream): Replace the stream field by the new streams
416 * cli-out.h: Include vec.h.
417 (ui_filep): New typedef, call DEF_VEC_P for it.
418 (struct cli_ui_out_data): Replace the stream and original_stream
419 fields by the new streams field.
420 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
421 NULL first. Extend the comment.
422 (handle_redirections): Call ui_out_redirect with output.
423 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
424 calls outside of the TRY_CATCH block.
426 2010-09-03 Joel Brobecker <brobecker@adacore.com>
430 2010-09-02 Joel Brobecker <brobecker@adacore.com>
432 Back out the following change:
433 | 2010-06-29 Hui Zhu <teawater@gmail.com>
434 | * record.c (set_record_pic_cmdlist,
435 | show_record_pic_cmdlist): New variables.
436 | (set_record_pic_command,
437 | show_record_pic_command): New functions.
438 | (record_pic_function, record_pic_line, record_pic_enum,
439 | set_record_pic_type, record_pic_hide_nofunction,
440 | record_pic_hide_nosource, record_pic_hide_same): New variables.
441 | (record_pic_fputs): New function.
442 | (function_list, node_list, edge_list): New struct.
443 | (function_list, node_list, edge_list): New variables.
444 | (record_pic_cleanups, record_pic_node,
445 | record_pic_edge, cmd_record_pic): New functions.
446 | (_initialize_record): Add new commands for record pic.
448 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
450 * config.in, configure: Regenerated.
451 * configure.ac: Check for waitpid.
452 * ser-pipe.c (pipe_close): Wait for the program to exit.
454 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
456 * cli/cli-logging.c: Include gdb_assert.h.
457 (set_logging_overwrite): New function.
458 (logging_redirect): New comment.
459 (logging_no_redirect_file, set_logging_redirect)
460 (pop_output_files) <logging_no_redirect_file>: New.
461 (handle_redirections) <!logging_redirect>: New variable
462 no_redirect_file. Remove file autoclose for tee_file_new. No longer
463 discard cleanup for the close of former OUTPUT. Set
464 LOGGING_NO_REDIRECT_FILE.
465 (handle_redirections) <logging_redirect>: gdb_assert
466 LOGGING_NO_REDIRECT_FILE.
467 (show_logging_command) <logging_redirect handling>: Adjust messages
468 for SAVED_FILENAME not NULL.
469 (_initialize_cli_logging): Install set_logging_overwrite and
470 set_logging_redirect.
472 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
474 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
476 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
478 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
479 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
480 add $(GDB_WARN_CFLAGS_NO_FORMAT).
481 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
483 2010-09-02 Yao Qi <yao@codesourcery.com>
485 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
486 number from a WIFSIGNALED status.
488 2010-09-01 Tom Tromey <tromey@redhat.com>
490 * symtab.h (lookup_type_symbol): Declare.
491 * symtab.c (lookup_symbol_in_language_full): Rename from
492 lookup_symbol_in_language. Add 'for_type' argument.
493 (lookup_symbol_in_language): New function.
494 (lookup_type_symbol): Likewise.
495 (lookup_symbol_aux): Add 'for_type' argument.
496 (match_symbol_aux): New function.
497 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
498 (match_transparent_type): New function.
499 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
500 * symfile.h (struct quick_symbol_functions)
501 <pre_expand_symtabs_matching>: Remove.
502 <expand_one_symtab_matching>: New field.
503 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
504 (pre_expand_symtabs_matching_psymtabs): Remove.
505 (psym_functions): Update.
506 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
507 * dwarf2read.c (dw2_lookup_symbol): Update comment.
508 (dw2_pre_expand_symtabs_matching): Remove.
509 (dw2_expand_one_symtab_matching): New function.
510 (dwarf2_gdb_index_functions): Update.
512 2010-09-01 Joel Brobecker <brobecker@adacore.com>
514 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
516 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
518 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
519 as a feature reported by -list-target-features.
521 2010-09-01 Joel Brobecker <brobecker@adacore.com>
523 * features/Makefile (WHICH): Add rs6000/powerpc-32.
524 (powerpc-32.o, powerpc-32.c): New rules.
525 (clean): Also remove powerpc-32.c.
526 * regformats/rs6000/powerpc-32.dat: Generate.
528 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
530 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
532 * psymtab.h (psymbol_bcache_init): New function prototype.
533 (psymbol_bcache_free): New function prototype.
534 (psymbol_bcache_get_bcache): New function prototype.
535 * psymtab.c (psymbol_bcache_init): New function.
536 (psymbol_bcache_free): New function.
537 (psymbol_bcache_full): New function.
538 (psymbol_bcache_get_bcache): New function.
539 (add_psymbol_to_bcache): use psymbol_bcache_full.
540 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
542 * symmisc.c (print_symbol_bcache_statistics): Updated.
543 (print_objfile_statistics): Updated.
544 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
546 (free_objfile): Use psymbol_bcache_free.
548 2010-08-31 Tom Tromey <tromey@redhat.com>
551 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
552 Don't set TYPE_NAME on the type.
554 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
556 * infrun.c (set_exec_direction_func): Error out if target does not
557 support reverse execution.
559 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
561 Make linux_get_siginfo_type `type *' unique.
562 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
563 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
564 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
565 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
566 (_initialize_linux_tdep): New.
568 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
571 * defs.h (find_memory_region_ftype): New typedef.
572 (exec_set_find_memory_regions): Use it.
573 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
574 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
575 * gcore.c (objfile_find_memory_regions): Likewise.
576 * gnu-nat.c (gnu_find_memory_regions): Likewise.
577 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
578 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
579 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
580 find_memory_region_ftype.
581 (insert_dbx_link_bpt_in_region): Likewise.
582 (iterate_over_mappings): Likewise. Drop the comment part about the
584 (find_memory_regions_callback): Use find_memory_region_ftype.
585 (proc_find_memory_regions): Likewise.
586 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
587 find_memory_region_ftype.
588 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
589 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
591 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
593 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
594 'static partial_symbol psymbol'.
595 (psymbol_hash): New function.
596 (psymbol_compare): New function.
597 * bcache.c (hash_continue): New.
598 (hash): Use hash_continue.
599 * bcache.c: Add hash_function and compare_function
600 pointers to bcache struct.
601 (bcache_full): Use bcache->hash_function, and
602 bcache->compare_function.
603 (bcache_compare): New function.
604 (bcache_xmalloc): Take hash_function and
605 compare_function arguments and initialize the
608 * objfiles.c (allocate_objfile): Updated.
609 * symfile.c (reread_symbols): Updated.
610 * python/py-type.c (typy_richcompare): Updated.
612 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
613 Tom Tromey <tromey@redhat.com>
616 * python/py-value.c (valpy_get_dynamic_type): New function.
617 (value_object_getset): Add "dynamic_type".
618 (valpy_get_type): Fail on error.
620 2010-08-30 Yao Qi <yao@codesourcery.com>
622 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
623 (arm_linux_syscall_next_pc): New.
624 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
625 (arm_linux_init_abi): Initialize syscall_next_pc.
626 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
627 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
628 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
629 Declare arm_frame_is_thumb.
631 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
634 * breakpoint.c (bpstat_alloc): Remove unused prototype.
635 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
637 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
638 calls of bpstat_alloc. Remove explicit bs chain termination.
640 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
643 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
644 (my_waitpid): Likewise.
646 2010-08-27 Doug Evans <dje@google.com>
648 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
651 2010-08-27 Tom Tromey <tromey@redhat.com>
653 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
654 TYPE_FIELD_IGNORE_BITS.
656 2010-08-27 Doug Evans <dje@google.com>
658 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
659 the order they're defined in. munmap .debug_types buffer.
661 2010-08-26 Doug Evans <dje@google.com>
663 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
664 (dw2_forget_cached_source_info): Rename local cu to per_cu.
665 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
666 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
667 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
668 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
669 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
670 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
671 (write_psymtabs_to_index): Ditto.
673 2010-08-26 Pedro Alves <pedro@codesourcery.com>
675 * NEWS: Mention libthread_db debugging with core files.
677 2010-08-26 Doug Evans <dje@google.com>
679 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
680 forward decl. Pass pst->dirname to dwarf_decode_lines.
681 (psymtab_include_file_name): New function.
682 (dwarf_decode_lines): Call it. Update comments.
684 2010-08-25 Pedro Alves <pedro@codesourcery.com>
686 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
687 compilation unit being different from target die's.
689 2010-08-24 Doug Evans <dje@google.com>
692 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
693 debug_types_type_hash.
694 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
696 (lookup_die_type): Renamed from tag_type_to_tag. First look in
697 appropriate type_hash table. All callers updated.
698 (allocate_signatured_type_table): Renamed from
699 allocate_signatured_type_hash_table. All callers updated.
700 (create_signatured_type_table_from_index): Renamed from
701 create_signatured_type_hash_from_index. All callers updated.
702 (read_die_type): Add comment. Move actual reading to ...
703 (read_die_type_1): ... here. New function.
704 (follow_die_ref_or_sig): Tweak comment.
705 (set_die_type): Rewrite to use appropriate choice of
706 debug_info_type_hash or debug_types_type_hash.
707 (get_die_type_at_offset): New function.
708 (get_die_type): Call it.
710 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
712 * python/py-type.c (typy_richcompare): Initialize worklist.
714 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
715 Kazu Hirata <kazu@codesourcery.com>
716 Jonathan Larmour <jifl@eCosCentric.com>
718 * arm-tdep.c: Include features/arm-with-m.c.
719 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
721 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
722 Check is_m after force-mode.
723 (arm_gdbarch_init): Check the binary before the target description.
724 Add check for M profile attribute. If we have an M-profile device,
725 but no target register description, use arm-with-m. Recognize the
726 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
727 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
728 * arm-tdep.h (XPSR_T): Define.
729 (struct gdbarch_tdep): Add is_m member.
730 * features/arm-m-profile.xml, features/arm-with-m.c,
731 features/arm-with-m.xml: New files.
733 2010-08-23 Doug Evans <dje@google.com>
735 * dwarf2read.c (read_structure_type): Add comment.
736 (read_enumeration_type): Add comment.
737 (process_enumeration_scope): Move definition of some locals
739 (read_namespace_type): Add comment.
740 (set_die_type): Fix typo in comment.
742 2010-08-23 Tom Tromey <tromey@redhat.com>
745 * python/py-value.c: Include expression.h.
746 (valpy_do_cast): New function.
747 (valpy_cast): Use it.
748 (valpy_dynamic_cast): New function.
749 (valpy_reinterpret_cast): Likewise.
750 (value_object_methods): Add dynamic_cast, reinterpret_cast.
752 2010-08-23 Tom Tromey <tromey@redhat.com>
755 * python/py-value.c (valpy_nonzero): Don't throw error for other
758 2010-08-23 Tom Tromey <tromey@redhat.com>
761 * python/py-type.c: Include bcache.h, vec.h.
762 (struct type_equality_entry): New.
763 (compare_strings): New function.
764 (check_types_equal): Likewise.
765 (check_types_worklist): Likewise.
766 (typy_richcompare): Likewise.
767 (type_object_type): Set tp_richcompare field.
769 2010-08-23 Tom Tromey <tromey@redhat.com>
772 * python/py-type.c (typy_fields): Call check_typedef.
773 (typy_template_argument): Add TRY_CATCH.
775 2010-08-23 Tom Tromey <tromey@redhat.com>
778 * python/py-type.c (typy_array): New function.
779 (type_object_methods): Add "array".
781 2010-08-20 Pedro Alves <pedro@codesourcery.com>
783 * python/python.c: Include "serial.h".
784 (gdbpy_event_fds): Change type to `struct serial *' a array from
786 (gdbpy_run_events): Change parameters. Use serial_readchar in
788 (gdbpy_post_event): Use serial_write in place of write.
789 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
790 serial_async in place of add_file_handler.
792 2010-08-20 Pedro Alves <pedro@codesourcery.com>
794 * serial.h (gdb_pipe, serial_pipe): Declare.
795 * serial.c (serial_interface_lookup): Take a const char pointer.
796 (serial_fdopen): Rename to ...
797 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
798 Call the OPS' fdopen function if there is one.
799 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
801 (struct serial_ops) <fdopen>: New field.
803 * ser-mingw.c (free_pipe_state):
804 (free_pipe_state): Close output on non-pex pipes.
805 (pipe_windows_fdopen): New.
807 (_initialize_ser_windows): Register pipe_windows_fdopen.
808 * ser-go32.c (gdb_pipe): New.
809 * ser-pipe.c (pipe_close): Close file descriptor even if there's
814 2010-08-20 Keith Seitz <keiths@redhat.com>
817 * dwarf2read.c (struct delayed_method_info): New struct.
818 (struct dwarf2_cu): Add vector method_list.
819 (scan_partial_symbols): Count methods for union, class, structure,
821 (add_to_method_list): New function.
822 (free_delayed_list): New function.
823 (compute_delayed_physnames): New function.
824 (process_full_comp_unit): Make a cleanup for the CU's delayed
825 physname list, compute the delayed physnames, and free the
827 (dwarf2_add_member_fn): For C++ and Java, delay the computation
828 of the physname until after the CU is read.
830 * dwarf2read.c (read_structure_type): Check if the current
831 DIE's type was already completed after dwarf2_full_name
834 2010-08-19 Stan Shebs <stan@codesourcery.com>
836 * NEWS: Mention some additional changes.
838 2010-08-19 Tom Tromey <tromey@redhat.com>
840 * Makefile.in (install-python): Add DESTDIR.
842 2010-08-19 Doug Evans <dje@google.com>
845 * parser-defs.h (parse_float, parse_c_float): Declare.
846 * parse.c (parse_float, parse_c_float): New function.
847 * c-exp.y (parse_number): Call parse_c_float.
848 * objc-exp.y (parse_number): Ditto.
849 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
850 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
852 2010-08-19 Joel Brobecker <brobecker@adacore.com>
854 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
855 the arguments in the correct order.
856 * symtab.c (maybe_add_partial_symtab_filename): Declare
857 the arguments in the correct order.
859 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
861 * varobj.c (varobj_create): Replace variable old_fi with old_id,
862 initialize it by null_frame_id, wrap its usage by get_frame_id,
863 frame_id_p and frame_find_by_id.
865 2010-08-18 Tom Tromey <tromey@redhat.com>
868 * configure: Rebuild.
869 * configure.ac: Add install-python to CONFIG_INSTALL.
870 * Makefile.in (install-python): New.
872 2010-08-18 Doug Evans <dje@google.com>
874 * gdb_assert.h (gdb_assert_not_reached): New macro.
875 (gdb_assert_fail): Fix typo in comment.
876 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
878 * darwin-nat.c (darwin_check_new_threads): Ditto.
879 * dwarf2read.c (dwarf2_get_section_info): Ditto.
880 (munmap_section_buffer): Ditto.
881 * m32c-tdep.c (make_types): Ditto.
882 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
883 * macroexp.c (get_character_constant): Ditto.
884 (get_string_literal): Ditto.
885 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
886 (mep_pseudo_cr_index, mep_register_type): Ditto.
887 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
888 (mep_get_insn, mep_analyze_prologue): Ditto.
889 * objfiles.c (qsort_cmp): Ditto.
890 * prologue-value.c (pv_is_identical): Ditto.
891 * record.c (record_get_loc): Ditto.
892 * value.c (value_static_field): Ditto.
893 * xtensa-tdep.c (call0_track_op): Ditto.
895 2010-08-18 Tom Tromey <tromey@redhat.com>
898 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
899 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
900 name-copying lower. Document exception behavior.
901 * completer.c (expression_completer): Catch exceptions from
902 parse_field_expression.
904 2010-08-18 Pedro Alves <pedro@codesourcery.com>
908 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
909 workaround on core files.
910 (try_thread_db_load_1): Don't try enabling thread event reporting
912 (thread_db_load): Allow thread_db on core files.
913 (attach_thread): Don't check thread signals on core files, nor try
914 really attaching to the thread, nor enabling thread event event
916 (thread_db_detach): Don't try disabing thread event reporting or
917 removing thread event breakpoints when debugging a core file.
918 (find_new_threads_callback): Don't try enabling thread event
919 reporting on core files.
920 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
921 debugging a core file.
922 (thread_db_find_new_threads): Don't update thread
923 cores (processors) when debugging a core (dump).
925 2010-08-18 Pedro Alves <pedro@codesourcery.com>
929 * corelow.c (add_to_thread_list): Don't use
930 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
931 (get_core_register_section): Don't use
932 gdbarch_core_reg_section_encodes_pid.
934 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
935 * gdbarch.h, gdbarch.c: Regenerate.
936 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
937 gdbarch_core_reg_section_encodes_pid.
938 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
939 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
940 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
942 2010-08-18 Yao Qi <yao@codesourcery.com>
944 * MAINTAINERS : Add myself under Write After Approval.
946 2010-08-17 Tom Tromey <tromey@redhat.com>
948 * NEWS: Mention template parameter support.
950 2010-08-17 Pedro Alves <pedro@codesourcery.com>
954 * breakpoint.c (decref_bp_location): Assert the reference count is
957 2010-08-17 Pedro Alves <pedro@codesourcery.com>
961 * breakpoint.c (breakpoint_init_inferior): Decrement the
962 location's reference count instead of deleting right away.
963 (bpstat_free): Decrement the location's reference count. Make
965 (bpstat_copy): Increment the location's reference count.
966 (bpstat_find_breakpoint): Adjust.
967 (bpstat_num): Adjust.
968 (print_it_typical): Adjust. Use the breakpoint pointer in the
969 bpstat instead of the location's owner.
970 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
971 Adjust to record the location's owner in the bpstat.
972 (watchpoint_check): Use the breakpoint pointer in the bpstat
973 instead of the location's owner.
974 (bpstat_check_breakpoint_conditions): Don't handle
975 bp_watchpoint_scope here. Use the breakpoint pointer in the
976 bpstat instead of the location's owner.
977 (bpstat_stop_status): Defer inferior function calls to after
978 building the bpstat list. Handle bp_watchpoint_scope here. Use
979 the breakpoint pointer in the bpstat instead of the location's
981 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
982 the location's owner.
983 (free_bp_location): Don't walk bpstats clearing locations.
984 (incref_bp_location): New.
985 (decref_bp_location): New.
986 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
987 instead of the location's owner.
988 (update_global_location_list): Clear the location's owner, and
989 decrement the location's reference count instead of deleting it
991 (breakpoint_retire_moribund): Decrement the location's reference
992 count instead of deleting it right away.
993 (bpstat_remove_bp_location): Delete.
994 (bpstat_remove_breakpoint): New.
995 (bpstat_remove_bp_location_callback): Delete.
996 (bpstat_remove_breakpoint_callback): New.
997 (delete_breakpoint): Iterate over all threads' stop_bpstat's
998 clearing references to the breakpoint that is being deleted.
1000 * breakpoint.h (struct bp_location) <refc>: New field.
1001 <owner>: Update comments.
1002 (bpstat_free): Delete declaration.
1003 (struct bpstats): Change the type of the breakpoint_at field to
1004 struct breakpoint point, from struct bp_location pointer. Add new
1005 field bp_location_at.
1007 2010-08-16 Tom Tromey <tromey@redhat.com>
1011 2010-08-16 Tom Tromey <tromey@redhat.com>
1013 * NEWS: Mention watch -location.
1015 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1017 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
1018 EXP_STRING_REPARSE to EXP_STRING.
1019 (watch_command_1): Set also EXP_STRING_REPARSE.
1020 (delete_breakpoint): Free also EXP_STRING_REPARSE.
1021 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
1022 Update comment for exp_string.
1024 2010-08-16 Tom Tromey <tromey@redhat.com>
1026 * value.c (release_value): Clear 'next' pointer.
1027 * breakpoint.c (watch_command_1): Add 'just_location' argument.
1028 (watch_command_wrapper): Update.
1029 (watch_maybe_just_location): New function.
1030 (watch_command): Update.
1031 (rwatch_command_wrapper): Update.
1032 (rwatch_command): Update.
1033 (awatch_command_wrapper): Update.
1034 (awatch_command): Update.
1035 (check_for_argument): New function.
1036 (_initialize_breakpoint): Update help text.
1038 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1040 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
1041 typedef'ed function types correctly.
1043 2010-08-13 Tom Tromey <tromey@redhat.com>
1045 * python/python-internal.h (gdbpy_get_hook_function): Don't
1048 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1050 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
1053 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
1055 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
1056 the format strings to be compatible with Python 2.4.
1058 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
1060 Easier and more stubborn MI memory read commands.
1062 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
1063 and data-write-memory-bytes.
1064 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
1065 (mi_cmd_data_write_memory_bytes): New.
1066 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
1067 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
1069 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
1070 * target.c (target_read_until_error): Remove.
1071 (read_whatever_is_readable, free_memory_read_result_vector)
1072 (read_memory_robust): New.
1073 * target.h (target_read_until_error): Remove.
1074 (struct memory_read_result, free_memory_read_result_vector)
1075 (read_memory_robust): New.
1077 2010-08-13 Hui Zhu <teawater@gmail.com>
1079 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
1080 (read_comp_unit): Initialize back_to.
1082 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
1083 Pedro Alves <pedro@codesourcery.com>
1085 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
1086 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
1087 (struct partial_die_info) <has_template_arguments>: New field.
1088 <num_attrs>: Change type to unsigned char.
1089 <building_fullname>: New field.
1090 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
1091 allocate a CU if we don't have one already. Add a cleanup for the
1093 (partial_die_full_name): Handle template arguments not in
1095 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
1096 (load_full_comp_unit): Only allocate a CU if we don't have one
1098 (do_ui_file_peek_last): New.
1099 (dwarf2_compute_name): Handle template parameters not in
1101 (read_comp_unit): Read and free abbrevs if not read yet.
1102 (load_partial_dies): Handle template arguments not in DW_AT_name.
1103 (find_partial_die): If we have a CU, but no a partial dies yet,
1104 also read in the CU.
1105 (dwarf2_const_value_attr): New, abstracted out from
1107 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
1108 dwarf2_const_value_attr.
1109 (determine_prefix): Detect and break loops created by RCVT's debug
1111 (maybe_queue_comp_unit): Bail out early if reading partial
1113 (follow_die_offset): Load full CU if we have no dies.
1114 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
1115 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
1117 2010-08-11 Tom Tromey <tromey@redhat.com>
1118 Phil Muldoon <pmuldoon@redhat.com>
1120 * python/python.c (gdbpy_run_events): New function.
1121 (gdbpy_post_event): Likewise.
1122 (gdbpy_initialize_events): Likewise.
1123 (_initialize_python): Call gdbpy_initialize_events.
1125 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
1127 * gdb/valarith.c (vector_binop): New function.
1128 (scalar_binop): Likewise.
1129 (value_binop): Call scalar_binop or vector_binop depending on the types.
1130 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
1131 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
1133 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
1135 2010-08-11 Brad Roberts <braddr@puremagic.com>
1137 * d-lang.c (extract_identifiers): Handle multiple digits.
1139 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1142 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
1143 Rename to dummy_frame_unwind.
1144 (dummy_frame_unwind): Remove.
1145 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
1146 * frame-unwind.c (frame_unwind_init): Use address of
1147 dummy_frame_unwind and inline_frame_unwind.
1148 * frame.c (create_sentinel_frame): Use address of
1149 sentinel_frame_unwind.
1150 * inline-frame.c (inline_frame_unwinder): Rename to
1151 inline_frame_unwind.
1152 (inline_frame_unwind): Remove.
1153 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
1154 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
1155 sentinel_frame_unwind.
1156 (sentinel_frame_unwind): Remove.
1157 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
1160 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1163 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
1164 and returned value. New comment from frame-unwind.h.
1165 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
1167 * frame.c (get_frame_id, frame_unwind_register_value)
1168 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
1169 (get_frame_type, frame_unwind_arch): Do not use the return value of
1170 frame_unwind_find_by_frame.
1172 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
1173 Thiago Jung Bauermann <bauerman@br.ibm.com>
1174 Tom Tromey <tromey@redhat.com>
1176 * python/python.c (gdbpy_solib_address): New function.
1177 (gdbpy_decode_line): Likewise.
1179 2010-08-10 Tom Tromey <tromey@redhat.com>
1181 Revert gdb-add-index addition:
1182 * Makefile.in (install-only): Don't install gdb-add-index.
1183 * gdb-add-index.sh: Remove.
1185 2010-08-09 Kevin Buettner <kevinb@redhat.com>
1187 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
1188 `target_has_execution' check with `to_has_memory' check.
1189 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
1190 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
1191 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
1193 2010-08-09 Kevin Buettner <kevinb@redhat.com>
1195 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
1196 (resume_siggnal, resume_step): Move these static globals...
1197 (struct sim_inferior_data): ...into this new struct.
1198 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
1200 (gdb_callback, callbacks_initialized): Move these globals to
1201 a point earlier in the file.
1202 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
1203 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
1204 (gdbsim_close_inferior, gdbsim_resume_inferior)
1205 (gdbsim_stop_inferior): New functions.
1206 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
1208 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
1209 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
1210 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
1211 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
1212 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
1213 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
1214 new local variable `sim_data' in each of these functions. Use
1215 `sim_data' to reference former globals `program_loaded',
1216 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
1218 (gdbsim_open): Remove local variable `argv'. Put results of call
1219 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
1220 make a cleanup for it. Free it though when a sim instance cannot
1222 (gdbsim_close): Free sim_argv and null it out as appropriate.
1223 Close sim instances in all inferiors.
1224 (gdbsim_cntrl_c): Stop all inferiors.
1226 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
1228 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1230 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
1231 function after symbol construction is complete.
1232 Do the same for template symbol addition to template_symbols list.
1234 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1236 * symtab.c (symbol_get_demangled_name): Remove assertion and
1237 return NULL when language_specific.cplus_specific is not initialized.
1238 * stabsread.c (define_symbol): Set the name before calling
1239 cp_scan_for_anonymous_namespaces.
1241 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1243 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
1244 SYMBOL_SET_LANGUAGE.
1245 (symbol_init_language_specific): Renamed to symbol_set_language.
1246 * symtab.c (symbol_init_language_specific): Removed redundant check
1248 Renamed to symbol_set_language.
1249 * stabsread.c (define_symbol): Updated.
1250 (read_enum_type): Updated
1251 * psymtab.c (add_psymbol_to_bcache): Updated.
1252 * minsyms.c (install_minimal_symbols): Updated.
1253 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
1254 SYMBOL_LANGUAGE to set the language.
1255 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
1256 * mdebugread.c (new_symbol): Ditto.
1257 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
1258 * dwarf2read.c (new_symbol_full): Ditto.
1259 * jv-lang.c (add_class_symbol): Ditto.
1261 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1263 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
1264 (make_cleanup_restore_page_info)
1265 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
1266 * gdbcmd.h (execute_command_to_string): New declaration.
1267 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
1268 (make_cleanup_restore_ui_file): Move to utils.c
1269 (execute_gdb_command) <to_string>: Move ...
1270 * top.c (execute_command_to_string): ... here. Call
1271 set_batch_flag_and_make_cleanup_restore_page_info.
1272 * utils.c (make_cleanup_restore_integer): New source file blank line.
1273 (make_cleanup_restore_uinteger): New.
1274 (struct restore_ui_file_closure, do_restore_ui_file)
1275 (make_cleanup_restore_ui_file): Move here from python/python.c.
1276 (init_page_info) <batch_flag>
1277 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
1278 (set_batch_flag_and_make_cleanup_restore_page_info): New.
1280 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
1282 * thread.c (add_thread_silent): Use null_ptid instead of
1283 minus_one_ptid while getting rid of stale inferior_ptid.
1285 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
1287 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
1288 Throughout, call read_encoded_value with ptr_size rather than addr_size.
1289 (decode_frame_entry_1): Remove redundant setting of
1290 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
1291 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
1292 on examined frame section. Add comment to explain why.
1293 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
1294 comment to explain usage.
1295 * gdbarch.c: Regenerate.
1296 * gdbarch.h: Regenerate.
1298 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
1300 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1303 * varobj.c (varobj_create): Move variables fi, old_fi and block to
1306 2010-08-05 Pedro Alves <pedro@codesourcery.com>
1308 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
1309 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
1310 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
1311 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
1312 linux-tdep.o to gdb_target_obs.
1314 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
1316 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
1319 2010-08-05 Hui Zhu <teawater@gmail.com>
1321 * mips-linux-tdep.c(regset.h): New include.
1322 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
1323 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
1324 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
1325 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
1326 mips_linux_regset_from_core_section): New functions.
1327 (fetch_core_registers, regset_core_fns): Deleted.
1328 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
1329 Deleted regset_core_fns.
1330 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
1331 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
1332 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
1335 2010-08-04 Pedro Alves <pedro@codesourcery.com>
1337 * s390-tdep.c: Include linux-tdep.h.
1338 (s390_gdbarch_init): Call linux_init_abi.
1340 2010-08-04 Pedro Alves <pedro@codesourcery.com>
1342 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
1343 instead of printing "Thread" here.
1344 * linux-tdep.c: Include inferior.h.
1345 (linux_core_pid_to_str): New.
1346 (linux_init_abi): New.
1347 * linux-tdep.h (linux_init_abi): Declare.
1348 * alpha-linux-tdep.c: Include linux-tdep.h.
1349 (alpha_linux_init_abi): Call linux_init_abi.
1350 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
1351 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
1352 * frv-linux-tdep.c: Include linux-tdep.h
1353 (frv_linux_init_abi): Call linux_init_abi.
1354 * hppa-linux-tdep.c: Include linux-tdep.h
1355 (hppa_linux_init_abi): Call linux_init_abi.
1356 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
1357 * ia64-linux-tdep.c: Include linux-tdep.h.
1358 (ia64_linux_init_abi): Call linux_init_abi.
1359 * m32r-linux-tdep.c: Include linux-tdep.h.
1360 (m32r_linux_init_abi): Call linux_init_abi.
1361 * m68klinux-tdep.c: Include linux-tdep.h.
1362 (m68k_linux_init_abi): Call linux_init_abi.
1363 * microblaze-linux-tdep.c: Include linux-tdep.h.
1364 (microblaze_linux_init_abi): Call linux_init_abi.
1365 * mips-linux-tdep.c: Include linux-tdep.h.
1366 (mips_linux_init_abi): Call linux_init_abi.
1367 * mn10300-linux-tdep.c: Include linux-tdep.h.
1368 (am33_linux_init_osabi): Call linux_init_abi. Rename the
1369 'gdbinfo' parameter to 'info'.
1370 * ppc-linux-tdep.c: Include linux-tdep.h.
1371 (ppc_linux_init_abi): Call linux_init_abi.
1372 * sh-linux-tdep.c: Include linux-tdep.h.
1373 (sh_linux_init_abi): Call linux_init_abi.
1374 * sparc-linux-tdep.c: Include linux-tdep.h.
1375 (sparc32_linux_init_abi): Call linux_init_abi.
1376 * sparc64-linux-tdep.c: Include linux-tdep.h.
1377 (sparc64_linux_init_abi): Call linux_init_abi.
1378 * xtensa-linux-tdep.c: Include linux-tdep.h.
1379 (xtensa_linux_init_abi): Call linux_init_abi.
1380 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
1381 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
1384 2010-08-03 Doug Evans <dje@google.com>
1386 * breakpoint.c (bpdisp_text): Constify bpdisps.
1387 * solib-svr4.c (solib_break_names): Constify.
1388 (bkpt_names, main_name_list): Constify.
1389 (match_main): Constify soname arg.
1390 (bfd_lookup_symbol): Remove unnecessary forward decl.
1391 Constify symname arg.
1392 (enable_break): Constify bkpt_namep.
1393 * symtab.c (search_symbols): Constify types, types2, types3, types4.
1394 (symtab_symbol_info): Constify classnames.
1396 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
1398 * NEWS: Document Python value inferior function calls.
1400 2010-08-02 Doug Evans <dje@google.com>
1402 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
1404 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1406 * linux-thread-db.c (libthread_db_debug): New variable.
1407 (thread_db_find_new_threads_silently): Control verbosity with it.
1408 (try_thread_db_load_1, try_thread_db_load): Likewise.
1409 (find_new_threads_once): Likewise.
1410 (_initialize_thread_db): Set/show it.
1412 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1414 * common/signals.c (signals): Move the content to signals.def.
1415 Include it. Remove the INDENT comments.
1417 2010-07-30 Tom Tromey <tromey@redhat.com>
1419 * Makefile.in (install-only): Install gdb-add-index.
1420 * gdb-add-index.sh: New file.
1422 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
1424 * MAINTAINERS: Add myself for write after approval privileges.
1426 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1428 * symfile.c (addr_section_name): New function.
1429 (addrs_section_compar): Use it.
1430 (addr_info_make_relative): Use it. Move variable sect_name into a more
1431 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
1433 2010-07-30 Tom Tromey <tromey@redhat.com>
1435 * configure: Rebuild.
1436 * configure.ac: Add missing case for Python 2.7.
1438 2010-07-29 DJ Delorie <dj@redhat.com>
1440 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
1443 2010-07-29 Pedro Alves <pedro@codesourcery.com>
1445 * PROBLEMS: Remove mention of all problems.
1447 2010-07-28 Pedro Alves <pedro@codesourcery.com>
1450 * configure.ac: Check for wresize.
1451 * configure, config.in: Regenerate.
1452 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
1455 2010-07-28 Tom Tromey <tromey@redhat.com>
1458 * python/py-type.c (typy_legacy_template_argument): New function,
1459 extracted from typy_template_argument.
1460 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
1463 2010-07-28 Oleg Nesterov <oleg@redhat.com>
1465 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
1467 2010-07-27 Tom Tromey <tromey@redhat.com>
1469 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
1471 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
1473 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
1474 handling DW_AT_object_pointer, and workaround GCC PR 43053.
1476 2010-07-28 Tom Tromey <tromey@redhat.com>
1478 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
1480 2010-07-28 Joel Brobecker <brobecker@adacore.com>
1482 * remote.c (remote_download_tracepoint): Add missing gettext markup.
1483 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
1485 2010-07-28 Joel Brobecker <brobecker@adacore.com>
1487 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
1488 down, just before the block that parse the breakpoint addr_string.
1490 2010-07-28 Tom Tromey <tromey@redhat.com>
1493 * symfile.c (reread_symbols): Clear template_symbols.
1494 * symtab.h (struct symbol) <is_cplus_template_function>: New
1496 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
1497 (struct template_symbol): New.
1498 * symtab.c (lookup_symbol_aux_local): Use
1499 cp_lookup_symbol_imports_or_template.
1500 * objfiles.h (struct objfile) <template_symbols>: New field.
1501 * objfiles.c (relocate_one_symbol): New function.
1502 (objfile_relocate1): Use it. Relocate isolated symbols.
1503 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
1504 template_arguments>: New fields.
1505 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
1506 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
1507 (TYPE_TEMPLATE_ARGUMENT): Likewise.
1508 (lookup_typename): Update.
1509 * gdbtypes.c (lookup_typename): Constify "block" argument.
1510 * dwarf2read.c: Include vec.h.
1511 (symbolp): New typedef.
1512 (read_func_scope): Read template arguments. Allocate a
1513 template_symbol when needed.
1514 (read_structure_type): Read template arguments.
1515 (new_symbol_full): New function, from new_symbol. Handle
1516 DW_TAG_template_type_param and DW_TAG_template_value_param.
1517 (new_symbol): Rewrite as wrapper.
1518 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
1519 * cp-namespace.c: Include language.h.
1520 (search_symbol_list): New function.
1521 (cp_lookup_symbol_imports_or_template): Likewise.
1523 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1525 * tui/tui-win.c (make_visible_with_new_height): Resize and move
1526 the command window to the new size and position.
1528 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1530 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
1533 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1535 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
1536 after a detecting a resize.
1537 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
1540 2010-07-28 Pedro Alves <pedro@codesourcery.com>
1542 * configure.ac: Check for resize_term.
1543 * configure, config.in: Regenerate.
1545 2010-07-27 Joel Brobecker <brobecker@adacore.com>
1547 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
1549 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1551 * dwarf2read.c (read_string): Rename to ...
1552 (read_direct_string): ... this.
1553 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
1554 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
1556 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1558 * linux-nat.c (linux_nat_lp_status_is_event): New function.
1559 (count_events_callback, select_event_lwp_callback)
1560 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
1562 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1564 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
1565 (_initialize_ia64_linux_nat): Install it.
1566 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
1567 (linux_nat_set_status_is_event): New.
1568 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
1569 cancel_breakpoints_callback, linux_nat_filter_event)
1570 (linux_nat_wait_1): Use linux_nat_status_is_event.
1571 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
1573 2010-07-27 Tom Tromey <tromey@redhat.com>
1575 * NEWS: Mention labels, .gdb_index.
1577 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
1579 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
1580 "start,+length" form of arguments.
1581 * NEWS: Add "Changed commands" (disassemble) section for "Changes
1582 since GDB 7.1"; and merge two separated paragraphs of disassemble
1583 description in "Changes in GDB 7.0".
1585 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1587 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
1588 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
1589 (fputs_maybe_filtered): Do not do filtering also on
1590 ! INPUT_FROM_TERMINAL_P.
1592 2010-07-27 Joel Brobecker <brobecker@adacore.com>
1594 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
1597 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
1599 * python/py-value.c (valpy_call): New Function.
1601 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
1603 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
1604 types_list_elements variables.
1606 2010-07-26 Tom Tromey <tromey@redhat.com>
1608 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
1609 TLS with DW_OP_const4u or DW_OP_const8u.
1611 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
1613 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
1614 VSX registers contents.
1616 2010-07-26 Jerome Guitton <guitton@adacore.com>
1618 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
1619 its adress is null. Add comment to explain why.
1620 (new_symbol): Ditto.
1622 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1624 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
1625 the host signal first.
1627 2010-07-23 Tom Tromey <tromey@redhat.com>
1629 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
1630 type_comp_units>: New fields.
1631 (dw2_get_cu): New function.
1632 (create_cus_from_index): Remove unused argument.
1633 (create_signatured_type_hash_from_index): New function.
1634 (create_addrmap_from_index): Update.
1635 (dwarf2_read_index): Handle version 2.
1636 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
1637 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
1638 (dw2_print_stats, dw2_expand_all_symtabs)
1639 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
1640 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
1641 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
1642 (allocate_signatured_type_hash_table): New function.
1643 (add_signatured_type_cu_to_list): Likewise.
1644 (create_debug_types_hash_table): Use them. Set type_comp_units.
1645 (read_signatured_type): Ensure section data is available.
1646 (add_address_entry): Don't record empty ranges.
1647 (struct signatured_type_index_data): New.
1648 (write_one_signatured_type): New function.
1649 (write_psymtabs_to_index): Write type CUs.
1650 (save_gdb_index_command): Update comment.
1651 (process_type_comp_unit): Move inititalization of
1653 (create_debug_types_hash_table): ... here.
1655 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1657 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
1658 cleanup and generating of gdb script to it.
1659 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
1660 and terminal size. Convert $tmpfile to a series of -ex-es.
1662 2010-07-23 Keith Seitz <keiths@redhat.com>
1664 * symtab.c (basic_lookup_transparent_type): Call pre-expand
1665 hook for STATIC_BLOCK types, too.
1667 2010-07-23 Keith Seitz <keiths@redhat.com>
1669 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
1670 and vector definition.
1672 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1674 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
1676 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1678 * dwarf2read.c: Include completer.h.
1679 (save_gdb_index_command): Use matching usage command name.
1680 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
1681 Set filename_completer for it.
1683 2010-07-22 Tom Tromey <tromey@redhat.com>
1685 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
1686 type signature's per-CU data.
1688 2010-07-22 Pedro Alves <pedro@codesourcery.com>
1690 * NEWS: Mention target reported shared libraries support by
1693 2010-07-21 Pedro Alves <pedro@codesourcery.com>
1698 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1699 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1700 and DW_TAG_volatile_type.
1701 (new_symbol): Likewise.
1703 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
1705 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
1706 function symbols before overload resolution.
1708 2010-07-21 Pedro Alves <pedro@codesourcery.com>
1710 * breakpoint.c (bptype_string): New, abstracted out from
1711 print_one_breakpoint_location.
1712 (print_one_breakpoint_location): Adjust.
1713 (breakpoint_1): Adjust the type column width dynamically.
1715 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1717 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1718 a gdb_assert call, new comment.
1720 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1722 * linux-nat.c (linux_handle_extended_wait): Handle case when
1723 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
1725 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1728 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
1729 linux_nat_wait_1. Use always LP->STATUS afterwards.
1731 2010-07-20 Hui Zhu <teawater@gmail.com>
1733 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
1734 (inf_ptrace_attach): Ditto.
1736 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1738 Make core files the process_stratum.
1739 * corefile.c (core_target): New variable.
1740 (core_file_command): Remove variable t, use core_target.
1741 * corelow.c (core_ops): Make it static.
1742 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
1743 * defs.h (make_cleanup_unpush_target): New prototype.
1744 * gdbarch.h: Regenerate.
1745 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
1746 * gdbcore.h (core_target): New declaration.
1747 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
1748 variables ops_already_pushed and back_to. Use push_target,
1749 make_cleanup_unpush_target and discard_cleanups calls.
1750 * record.c (record_open): Replace core_stratum by a core_bfd check.
1751 * target.c (target_is_pushed): New function.
1752 (find_core_target): Remove.
1753 * target.h (enum strata) <core_stratum>: Remove.
1754 (target_is_pushed): New declaration.
1755 (find_core_target): Remove declaration.
1756 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
1757 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
1759 2010-07-19 Hui Zhu <teawater@gmail.com>
1761 * breakpoint.c (single_step_breakpoints_inserted): New
1763 * breakpoint.h (single_step_breakpoints_inserted): Extern.
1764 * infrun.c (maybe_software_singlestep): Add check code.
1765 * record.c (record_resume): Add code for software single step.
1766 (record_wait): Ditto.
1768 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1770 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
1771 a more inner block. Remove its unused declaration initializer.
1773 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
1775 * NEWS: Mention support for the new ptrace interface and hardware
1776 accelerated watchpoint conditions on powerpc-linux.
1778 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
1780 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
1781 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
1782 and host_address_to_string() and %s for pointers.
1783 (debug_to_remove_breakpoint): Likewise.
1784 (debug_to_region_ok_for_hw_watchpoint): Likewise.
1785 (debug_to_can_accel_watchpoint_condition): Likewise.
1786 (debug_to_stopped_data_address): Likewise.
1787 (debug_to_watchpoint_addr_within_range): Likewise.
1788 (debug_to_insert_hw_breakpoint): Likewise.
1789 (debug_to_remove_hw_breakpoint): Likewise.
1790 (debug_to_insert_watchpoint): Likewise.
1791 (debug_to_remove_watchpoint): Likewise.
1793 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1795 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
1797 (cplus_specific): New struct.
1798 * symtab.c (symbol_set_demangled_name): Updated.
1799 Use cplus_specific for cplus symbols.
1800 (symbol_get_demangled_name): Retrive the name from the cplus_specific
1801 struct for cplus symbols.
1802 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
1803 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
1804 * symtab.c (symbol_init_cplus_specific): New function.
1806 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1808 * symtab.h (symbol_set_demangled_name): New function.
1809 (symbol_get_demangled_name): New function.
1810 * symtab.c (symbol_set_demangled_name): New function.
1811 (symbol_get_demangled_name): New function.
1812 (symbol_init_language_specific): Use demangled_name setter and getter.
1813 (symbol_set_names): Ditto.
1814 (symbol_natural_name): Ditto.
1815 (symbol_demangled_name): Ditto.
1816 * dwarf2read.c (new_symbol): Ditto.
1818 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1820 * symtab.h: Renamed cplus_specific to mangled_lang.
1821 * symtab.c (symbol_init_language_specific): Updated.
1822 (symbol_set_names): Updated.
1823 (symbol_natural_name): Updated.
1824 (symbol_demangled_name): Updated.
1825 * ada-lang.c (ada_decode_symbol): Updated.
1826 * dwarf2read.c (new_symbol): Updated.
1828 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
1830 * valops.c (value_assign): Do not call to value_coerce_to_target.
1831 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
1833 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
1835 * MAINTAINERS: Add myself for write after approval privileges.
1837 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
1839 * c-valprint.c (c_val_print): Add embedded_offset to address in
1840 call to val_print_array_elements.
1842 2010-07-13 Tom Tromey <tromey@redhat.com>
1844 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
1846 2010-07-13 Tom Tromey <tromey@redhat.com>
1848 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
1851 2010-07-13 Tom Tromey <tromey@redhat.com>
1853 * symfile.c (set_initial_language): Update.
1854 (deduce_language_from_filename): Argument type now const.
1855 * symtab.h (find_main_filename): Update.
1856 (deduce_language_from_filename): Update.
1857 * symtab.c (find_main_filename): Make result const.
1858 * dwarf2read.c (dw2_find_symbol_file): Change return type.
1859 * psymtab.c (find_symbol_file_from_partial): Change return type.
1860 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
1863 2010-07-13 Tom Tromey <tromey@redhat.com>
1865 * breakpoint.c (save_cmdlist): No longer static.
1866 * gdbcmd.h (save_cmdlist): Declare.
1867 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
1868 OBJF_READNOW on objfile if readnow_symbol_files.
1869 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
1870 (elf_sym_fns_gdb_index): New global.
1871 * dwarf2read.c: Include exceptions.h.
1873 (struct mapped_index): New.
1874 (dwarf2_per_cu_data_ptr): New typedef.
1875 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
1877 (GDB_INDEX_SECTION): New define.
1878 (struct dwarf2_per_cu_quick_data): New.
1879 (struct dwarf2_per_cu_data) <objfile>: New field.
1882 (byte_swap): New function.
1883 (MAYBE_SWAP): New macro.
1884 (INDEX_SUFFIX): New macro.
1885 (dw2_do_instantiate_symtab): New function.
1886 (dw2_instantiate_symtab): Likewise.
1887 (create_cus_from_index): Likewise.
1888 (create_addrmap_from_index): Likewise.
1889 (mapped_index_string_hash): Likewise.
1890 (find_slot_in_mapped_hash): Likewise.
1891 (dwarf2_read_index): Likewise.
1892 (dw2_setup): Likewise.
1893 (dw2_require_line_header): Likewise.
1894 (dw2_require_full_path): Likewise.
1895 (dw2_find_last_source_symtab): Likewise.
1896 (dw2_forget_cached_source_info): Likewise.
1897 (dw2_lookup_symtab): Likewise.
1898 (dw2_lookup_symbol): Likewise.
1899 (dw2_do_expand_symtabs_matching): Likewise.
1900 (dw2_pre_expand_symtabs_matching): Likewise.
1901 (dw2_print_stats): Likewise.
1902 (dw2_dump): Likewise.
1903 (dw2_relocate): Likewise.
1904 (dw2_expand_symtabs_for_function): Likewise.
1905 (dw2_expand_all_symtabs): Likewise.
1906 (dw2_expand_symtabs_with_filename): Likewise.
1907 (dw2_find_symbol_file): Likewise.
1908 (dw2_map_ada_symtabs): Likewise.
1909 (dw2_expand_symtabs_matching): Likewise.
1910 (dw2_find_pc_sect_symtab): Likewise.
1911 (dw2_map_symbol_names): Likewise.
1912 (dw2_map_symbol_filenames): Likewise.
1913 (dw2_has_symbols): Likewise.
1914 (dwarf2_gdb_index_functions): New global.
1915 (dwarf2_initialize_objfile): New function.
1916 (process_psymtab_comp_unit): Update.
1917 (add_partial_subprogram): Likewise.
1918 (dwarf2_psymtab_to_symtab): Likewise.
1919 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
1920 (process_full_comp_unit): Update.
1921 (find_file_and_directory): New function.
1922 (read_file_scope): Use find_file_and_directory.
1923 (dwarf2_per_cu_objfile): Update.
1924 (dwarf2_per_cu_addr_size): Update.
1925 (dwarf2_per_cu_offset_size): Update.
1926 (dwarf2_free_objfile): Free the index, if needed.
1927 (dwarf2_per_objfile_free): Unmap the index, if needed.
1928 (struct strtab_entry): New.
1929 (hash_strtab_entry): New function.
1930 (eq_strtab_entry): Likewise.
1931 (create_strtab): Likewise.
1932 (add_string): Likewise.
1933 (struct symtab_index_entry): New.
1934 (struct mapped_symtab): New.
1935 (hash_symtab_entry): New function.
1936 (eq_symtab_entry): Likewise.
1937 (delete_symtab_entry): Likewise.
1938 (create_index_table): Likewise.
1939 (create_mapped_symtab): Likewise.
1940 (cleanup_mapped_symtab): Likewise.
1941 (find_slot): Likewise.
1942 (hash_expand): Likewise.
1943 (add_index_entry): Likewise.
1944 (add_indices_to_cpool): Likewise.
1945 (write_hash_table): Likewise.
1946 (add_address_entry): Likewise.
1947 (write_psymbols): Likewise.
1948 (write_obstack): Likewise.
1949 (unlink_if_set): Likewise.
1950 (write_psymtabs_to_index): Likewise.
1951 (save_gdb_index_command): Likewise.
1952 (_initialize_dwarf2_read): Install "save gdb-index"
1954 (create_all_comp_units): Initialize 'objfile' field of CU.
1955 (dwarf2_locate_sections): Check for .gdb_index.
1956 * psymtab.h (dwarf2_gdb_index_functions): Declare.
1957 * symfile.h (dwarf2_initialize_objfile): Declare.
1959 2010-07-13 Tom Tromey <tromey@redhat.com>
1961 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
1962 (basic_lookup_transparent_type): Likewise.
1963 * symfile.h (struct quick_symbol_functions)
1964 <pre_expand_symtabs_matching>: New field.
1965 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
1966 (psym_functions): Update.
1968 2010-07-13 Tom Tromey <tromey@redhat.com>
1970 PR breakpoints/8357:
1971 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
1972 * linespec.c (decode_line_1): Update comment. Call decode_label.
1973 (decode_label): New function.
1974 (symbol_found): Handle LOC_LABEL.
1975 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
1976 domain. Call add_symbol_to_list.
1978 2010-07-13 Tom Tromey <tromey@redhat.com>
1980 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
1981 * dwarf2loc.c (find_location_expression): Use
1982 dwarf2_per_cu_text_offset.
1983 (dwarf2_evaluate_loc_desc): Likewise.
1984 (dwarf2_loc_desc_needs_frame): Likewise.
1985 (compile_dwarf_to_ax): Likewise.
1986 (loclist_describe_location): Likewise.
1987 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
1988 (dwarf2_per_cu_objfile): Update comment.
1990 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1992 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
1993 * p-lang.c (pascal_printstr): Likewise.
1995 2010-07-09 Tom Tromey <tromey@redhat.com>
1997 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
1998 'hint' if it is NULL.
2000 2010-07-09 Hui Zhu <teawater@gmail.com>
2002 * source.c (print_source_lines_base): Add check for noprint.
2004 2010-07-08 Joel Brobecker <brobecker@adacore.com>
2006 * python/python-config.py: Resync with Python 2.7 version of this
2009 2010-07-08 Joel Brobecker <brobecker@adacore.com>
2011 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2013 2010-07-07 Joel Brobecker <brobecker@adacore.com>
2015 * NEWS: Create a new section for the next release branch.
2016 Rename the section of the current branch, now that it has
2019 2010-07-07 Joel Brobecker <brobecker@adacore.com>
2021 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
2022 * version.in: Bump version to 7.2.50.20100707-cvs.
2024 2010-07-07 Tom Tromey <tromey@redhat.com>
2026 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
2027 LOC_COMPUTED symbol.
2028 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
2029 (dwarf2_loc_desc_needs_frame): Likewise.
2030 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
2031 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
2032 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
2033 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
2035 (struct dwarf2_frame_cache) <text_offset>: New field.
2036 (dwarf2_frame_cache): Set new field.
2037 (dwarf2_frame_prev_register): Update.
2038 (dwarf2_frame_sniffer): Update.
2039 (dwarf2_frame_base_sniffer): Update.
2040 (dwarf2_frame_find_fde): Add 'out_offset' argument.
2042 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2043 Thiago Jung Bauermann <bauerman@br.ibm.com>
2045 Support for hw accelerated condition watchpoints in booke powerpc.
2047 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
2048 and move to eval.c. Change callers.
2049 (insert_bp_location): Pass watchpoint condition in
2050 target_insert_watchpoint.
2051 (remove_breakpoint_1) Pass watchpoint condition in
2052 target_remove_watchpoint.
2053 (watchpoint_locations_match): Call
2054 target_can_accel_watchpoint_condition.
2055 * eval.c: Include wrapper.h.
2056 (fetch_subexp_value): Moved from breakpoint.c.
2057 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
2059 (can_use_watchpoint_cond_accel): New function.
2060 (calculate_dvc): Likewise.
2061 (num_memory_accesses): Likewise.
2062 (check_condition): Likewise.
2063 (ppc_linux_can_accel_watchpoint_condition): Likewise
2064 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
2065 check_condition and calculate_dvc.
2066 (ppc_linux_remove_watchpoint): Likewise.
2067 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
2068 ppc_linux_can_accel_watchpoint_condition
2069 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
2071 (debug_to_remove_watchpoint): Likewise.
2072 (debug_to_can_accel_watchpoint_condition): New function.
2073 (update_current_target): Set to_can_accel_watchpoint_condition.
2074 (setup_target_debug): Set to_can_accel_watchpoint_condition.
2075 * target.h: Add opaque declaration for struct expression.
2076 (struct target_ops) <to_insert_watchpoint>,
2077 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
2078 <to_can_accel_watchpoint_condition>: New member.
2079 condition. Update all callers and implementations.
2080 (target_can_accel_watchpoint_condition): New macro.
2081 * value.c (free_value_chain): New function.
2082 * value.h (fetch_subexp_value): New prototype.
2083 (free_value_chain): Likewise.
2085 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
2087 * linux-nat.c (linux_nat_do_thread_registers): Use section size
2088 from gdbarch_core_regset_sections also for .reg if present.
2090 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
2091 section size for .reg.
2092 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2093 (ppc_linux_vmx_regset_sections): Likewise.
2094 (ppc_linux_fp_regset_sections): Likewise.
2095 (ppc64_linux_vsx_regset_sections): New variable.
2096 (ppc64_linux_vmx_regset_sections): Likewise.
2097 (ppc64_linux_fp_regset_sections): Likewise.
2098 (ppc_linux_init_abi): Install core_regset_section lists appropriate
2099 for current word size.
2101 2010-07-06 Joel Brobecker <brobecker@adacore.com>
2103 * server.c (myresume): Make static.
2105 2010-07-06 Tom Tromey <tromey@redhat.com>
2107 * configure, config.in: Rebuild.
2108 * configure.ac (HAVE_LIBPYTHON2_7): New define.
2109 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
2111 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2113 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
2116 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
2118 * gdbtypes.h (floatformats_ieee_half): Add declaration.
2119 * gdbtypes.c (floatformats_ieee_half): New variable.
2120 * doublest.c (floatformat_from_length): Set format to
2121 gdbarch_half_format if length matches.
2122 * gdbarch.sh (half_bit): New architecture method.
2123 (half_format): Likewise.
2124 * gdbarch.h: Regenerate.
2125 * gdbarch.c: Likewise.
2127 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2128 Joel Brobecker <brobecker@adacore.com>
2130 Fix re-run of PIE executable, PR shlibs/11776.
2131 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
2132 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
2134 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2135 Joel Brobecker <brobecker@adacore.com>
2137 * auxv.c (memory_xfer_auxv): Update attach comment.
2138 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
2139 svr4_relocate_main_executable.
2140 (svr4_solib_create_inferior_hook): Make the call to
2141 svr4_relocate_main_executable unconditional.
2143 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2144 Joel Brobecker <brobecker@adacore.com>
2146 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
2148 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2149 Joel Brobecker <brobecker@adacore.com>
2151 Fix attaching to PIEs prelinked on the disk after the process was
2153 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
2154 Verify it against bfd_get_arch_size. Try to match arbitrary
2155 displacement for the phdrs comparison.
2157 2010-07-02 Tom Tromey <tromey@redhat.com>
2160 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
2161 value as optimized-out.
2163 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
2164 Thiago Jung Bauermann <bauerman@br.ibm.com>
2166 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
2167 represent?" question in comment. Change comment to a proper sentence.
2169 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
2171 * c-valprint.c (c_val_print): Fix printing of character vectors.
2173 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2175 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
2176 create_breakpoint prototype.
2178 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2180 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
2181 usefulness suggestion of multiple breakpoints at same location.
2183 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2185 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
2187 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2189 * dwarf2loc.c (locexpr_tracepoint_var_ref)
2190 (loclist_tracepoint_var_ref): Handle optimized out values.
2192 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2194 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
2195 unnecessary space in string.
2196 * filesystem.c (_initialize_filesystem): Ditto.
2197 * frame.c (_initialize_frame): Ditto.
2198 * infcmd.c (step_once): Ditto.
2199 * infrun.c (_initialize_infrun): Ditto.
2200 * linux-nat.c (linux_child_follow_fork): Ditto.
2201 * maint.c (maintenance_deprecate): Ditto.
2202 * memattr.c (_initialize_mem): Ditto.
2203 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2204 * monitor.c (monitor_open): Ditto.
2205 * procfs.c (procfs_xfer_memory): Ditto.
2206 * reverse.c (bookmarks_info): Ditto.
2207 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
2208 * stack.c (_initialize_stack): Ditto.
2209 * tracepoint.c (_initialize_tracepoint): Ditto.
2210 * xtensa-tdep.c (xtensa_supply_gregset,
2211 xtensa_regset_from_core_section): Ditto.
2213 2010-07-01 Tom Tromey <tromey@redhat.com>
2215 * value.h (struct lval_funcs) <check_any_valid>: Rename from
2217 * value.c (value_entirely_optimized_out): Invert result. Update
2218 for new function name.
2220 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2222 Static tracepoints support.
2224 * NEWS: Mention new support for static tracepoints.
2225 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
2226 qXfer:statictrace:read.
2227 (New features in the GDB remote stub, GDBserver): Mention static
2228 tracepoints support using an UST based backend.
2229 (New commands): Mention "info static-tracepoint-markers" and
2231 * breakpoint.c (is_marker_spec): New.
2232 (is_tracepoint): Handle static tracepoints.
2233 (validate_commands_for_breakpoint): Static tracepoints can't do
2235 (static_tracepoints_here): New.
2236 (bpstat_what): Handle static tracepoints.
2237 (print_one_breakpoint_location, allocate_bp_location, mention):
2239 (create_breakpoint_sal): Ditto.
2240 (decode_static_tracepoint_spec): New.
2241 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
2242 `type_wanted'. Adjust. Handle static tracepoint marker
2244 (break_command_1): Adjust.
2245 (update_static_tracepoint): New.
2246 (update_breakpoint_locations): Handle static tracepoints.
2247 (breakpoint_re_set_one): Handle static tracepoint marker
2249 (disable_command, enable_command): Handle static tracepoints.
2250 (trace_command, ftrace_command): Adjust.
2251 (strace_command): New.
2252 (create_tracepoint_from_upload): Adjust.
2253 (save_breakpoints): Handle static tracepoints.
2254 (_initialize_breakpoint): Install the "strace" command.
2255 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
2256 (struct breakpoint): New fields static_trace_marker_id and
2257 static_trace_marker_id_idx.
2258 (breakpoints_here_p): Declare.
2259 (create_breakpoint): Adjust.
2260 (static_tracepoints_here): Declare.
2261 * remote.c (struct remote_state) <static_tracepoints>: New field.
2262 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
2263 (remote_static_tracepoint_marker_at): New.
2264 (remote_static_tracepoint_markers_by_strid): New.
2265 (remote_static_tracepoint_feature): New.
2266 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
2267 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
2268 (remote_supports_static_tracepoints): New.
2269 (remote_download_tracepoint): Download static tracepoints.
2270 (init_remote_ops): Install remote_static_tracepoint_marker_at and
2271 remote_static_tracepoint_markers_by_strid.
2272 (_initialize_remote): Install set|show remote static-tracepoints,
2273 and set|show remote read-sdata-object commands.
2274 * target.c (update_current_target): Inherit and default
2275 to_static_tracepoint_marker_at, and
2276 to_static_tracepoint_markers_by_strid.
2277 * target.h (static_tracepoint_marker): Forward declare.
2278 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
2279 (static_tracepoint_marker_p): New typedef.
2280 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
2281 (struct target_ops): New fields to_static_tracepoint_marker_at and
2282 to_static_tracepoint_markers_by_strid.
2283 (target_static_tracepoint_marker_at)
2284 (target_static_tracepoint_markers_by_strid): New.
2285 * tracepoint.c: Include source.h.
2286 (validate_actionline): Handle $_sdata.
2287 (struct collection_list): New field strace_data.
2288 (add_static_trace_data): New.
2289 (clear_collection_list): Clear strace_data.
2290 (stringify_collection_list): Account for a possible static trace
2292 (encode_actions_1): Encode an $_sdata collection.
2293 (parse_tracepoint_definition): Handle static tracepoints.
2294 (parse_static_tracepoint_marker_definition): New.
2295 (release_static_tracepoint_marker): New.
2296 (print_one_static_tracepoint_marker): New.
2297 (info_static_tracepoint_markers_command): New.
2298 (sdata_make_value): New.
2299 (_initialize_tracepoint): Create the $_sdata convenience variable.
2300 Add the "info static-tracepoint-markers" command.
2301 Mention $_sdata in the "collect" command's help output.
2302 * tracepoint.h (struct static_tracepoint_marker): New.
2303 (parse_static_tracepoint_marker_definition)
2304 (release_static_tracepoint_marker): Declare.
2305 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2306 * python/py-breakpoint.c (bppy_new): Adjust.
2308 2010-06-30 Joel Brobecker <brobecker@adacore.com>
2310 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
2313 2010-06-29 Doug Evans <dje@google.com>
2316 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
2317 DW_AT_external is present.
2321 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
2322 create a symbol for the field and record the value.
2323 (new_symbol): Handle DW_TAG_member.
2324 * gdbtypes.c (field_is_static): Remove FIXME.
2325 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
2326 only ignore LOC_CONST symbols that are enums.
2328 * dwarf2read.c: Remove trailing whitespace.
2330 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
2331 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
2332 (struct main_type, field loc): Delete dwarf_block.
2333 (FIELD_DWARF_BLOCK): Delete.
2334 (SET_FIELD_DWARF_BLOCK): Delete.
2335 (TYPE_FIELD_DWARF_BLOCK): Delete.
2336 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
2339 2010-06-29 Hui Zhu <teawater@gmail.com>
2341 * record.c (set_record_pic_cmdlist,
2342 show_record_pic_cmdlist): New variables.
2343 (set_record_pic_command,
2344 show_record_pic_command): New functions.
2345 (record_pic_function, record_pic_line, record_pic_enum,
2346 set_record_pic_type, record_pic_hide_nofunction,
2347 record_pic_hide_nosource, record_pic_hide_same): New variables.
2348 (record_pic_fputs): New function.
2349 (function_list, node_list, edge_list): New struct.
2350 (function_list, node_list, edge_list): New variables.
2351 (record_pic_cleanups, record_pic_node,
2352 record_pic_edge, cmd_record_pic): New functions.
2353 (_initialize_record): Add new commands for record pic.
2355 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2357 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
2358 ALLOCATE_CPLUS_STRUCT_TYPE.
2360 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
2361 Tom Tromey <tromey@redhat.com>
2362 Thiago Jung Bauermann <bauerman@br.ibm.com>
2364 * value.c (pack_unsigned_long): New function.
2365 (value_from_ulongest): New function.
2366 * value.h (value_from_ulongest): Declare.
2367 * python/python.c (_initialize_python): Call
2368 gdbpy_initialize_thread and gdbpy_initialize_inferior.
2369 * python/python-internal.h: Define thread_object.
2370 (gdbpy_inferiors, gdbpy_selected_thread)
2371 (frame_info_to_frame_object, create_thread_object)
2372 (find_thread_object, find_inferior_object)
2373 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
2374 (gdbpy_is_value_object, get_addr_from_python): Declare.
2375 * python/py-value.c (builtin_type_upylong): Define.
2376 (convert_value_from_python): Add logic for ulongest.
2377 (gdbpy_is_value_object): New function.
2378 * python/py-utils.c (get_addr_from_python): New function.
2379 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
2380 (gdbpy_selected_frame): Use PyObject over frame_info.
2381 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
2383 (SUBDIR_PYTHON_SRCS): Likewise.
2384 (py-inferior.o): New Rule.
2385 (py-infthread.o): New Rule.
2386 * python/py-inferior.c: New File.
2387 * python/py-infthread.c: New File.
2389 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2391 * c-typeprint.c (c_type_print_base): For no fields check include also
2392 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
2393 * dwarf2read.c (struct typedef_field_list)
2394 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
2395 (dwarf2_add_typedef): New.
2396 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
2397 Copy also FI.TYPEDEF_FIELD_LIST.
2398 * gdbtypes.h (struct typedef_field)
2399 (struct cplus_struct_type) <typedef_field, typedef_field_count>
2400 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
2401 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
2403 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2405 * cp-namespace.c (cp_lookup_nested_type): New variable
2406 concatenated_name. Turn the current return condition into a reverse
2407 one. Call also lookup_static_symbol_aux on the constructed qualified
2409 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
2410 other files into a called ...
2411 (lookup_static_symbol_aux): ... new function here.
2412 * symtab.h (lookup_static_symbol_aux): New prototype.
2413 * valops.c (value_maybe_namespace_elt): Call also
2414 lookup_static_symbol_aux if we failed otherwise.
2416 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2418 Fix PR c++/11703 and PR gdb/1448.
2419 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
2422 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2424 Fix modification of cplus_struct_default.
2425 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
2426 Call ALLOCATE_CPLUS_STRUCT_TYPE.
2427 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
2429 2010-06-28 Joel Brobecker <brobecker@adacore.com>
2431 * NEWS: Add entry announcing the python directory.
2433 2010-06-28 Tom Tromey <tromey@redhat.com>
2435 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
2437 2010-06-28 Doug Evans <dje@google.com>
2439 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
2440 All callers updated.
2442 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2444 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
2445 obstack_begin after each obstack_free.
2447 2010-06-27 Doug Evans <dje@google.com>
2449 * value.c (value_static_field): Use `switch' instead of `if'.
2450 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
2452 * valops.c (search_struct_field): Fix typo in error message.
2454 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
2456 * dwarf2expr.c (execute_stack_op): Place preprocessor
2457 directives at the start of the source line.
2459 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
2461 * defs.h (make_command_stats_cleanup): Declare.
2462 (set_display_time): Declare.
2463 (set_display_space): Declare.
2464 * event-top.c (command_handler): Use make_command_stats_cleanup.
2465 * main.c (display_time, display_space): Move definitions to utils.c.
2466 (captured_main): Use make_command_stats_cleanup to get start-up
2468 Use set_display_time and set_display_space for processing OPT_STATISTICS
2470 * maint.c (maintenance_time_display): Use set_display_time.
2471 (maintenance_space_display): Use set_display_space.
2472 * top.c (execute_command): Remove obsolete 'maint time' code.
2473 (command_loop): Use make_command_stats_cleanup.
2474 * utils.c (struct cmd_stats): Structure for storing initial time
2476 (display_time, display_space): Move definitions here from utils.c.
2477 (set_display_time): New function.
2478 (set_display_space): New function.
2479 (make_command_stats_cleanup): New function.
2480 (report_command_stats): New auxiliary function for
2481 make_command_stats_cleanup.
2483 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2485 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
2486 hosts where CORE_ADDR is long long.
2488 2010-06-25 Tom Tromey <tromey@redhat.com>
2491 * python/python.c (execute_gdb_command): Add keywords. Accept
2492 "to_string" argument.
2493 (struct restore_ui_file_closure): New.
2494 (restore_ui_file): New function.
2495 (make_cleanup_restore_ui_file): Likewise.
2496 (GdbMethods) <execute>: Update.
2498 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2500 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
2501 during inferior call stack frame setup.
2503 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
2505 * solib-spu.c: Include "exception.h".
2506 (ocl_program_data_key): New variable.
2507 (append_ocl_sos): New function.
2508 (ocl_enable_break): Likewise.
2509 (spu_current_sos): Call append_ocl_sos.
2510 (spu_solib_loaded): Call ocl_enable_break.
2511 (_initialize_spu_solib): Register ocl_program_data_key.
2513 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2515 * cp-support.c (reset_directive_searched): New function.
2516 (make_symbol_overload_list_using): Prevent recursive calls.
2518 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
2520 * printcmd.c (print_variable_and_value): Print error message on
2523 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2525 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
2527 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
2529 (dwarf_expr_push): Change input type to ULONGEST.
2530 (dwarf_expr_fetch): Change return type to ULONGEST.
2531 (dwarf_expr_fetch_address): Add prototype.
2532 (dwarf2_read_address): Remove prototype.
2533 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
2534 Truncate stack values to ctx->addr_size bytes.
2535 (dwarf_expr_fetch): Change return value to ULONGEST.
2536 (dwarf_expr_fetch_address): New function.
2537 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
2538 when appropriate. Update for struct dwarf_expr_piece changes.
2539 (dwarf2_read_address): Remove.
2540 (unsigned_address_type): Remove.
2541 (signed_address_type): Remove.
2542 (execute_stack_op): Use dwarf_expr_fetch_address instead of
2543 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
2544 values. Perform operations on ULONGEST instead of on GDB values,
2545 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
2546 values and DW_OP_deref results as unsigned integers.
2547 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
2549 (write_pieced_value): Likewise.
2550 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
2551 dwarf_expr_fetch when appropriate.
2552 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
2553 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
2554 instead of dwarf_expr_fetch when appropriate.
2556 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
2558 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
2560 2010-06-24 Joel Brobecker <brobecker@adacore.com>
2562 * python/python.c (_initialize_python): Add new "constant"
2563 PYTHONDIR in gdb module. Insert this path at the head of
2564 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
2565 exec its __init__.py script if it exists in that directory.
2567 2010-06-24 Kevin Buettner <kevinb@redhat.com>
2569 * rx-tdep.c (RX_ACC_REGNUM): Define.
2570 (RX_NUM_REGS): Redefine to 26.
2571 (rx_register_name): Add register "acc". Change order of several
2572 registers. Change name of "vct" register to "fintv" to match RX
2574 (rx_register_type): Add case for RX_ACC_REGNUM.
2576 2010-06-24 Tom Tromey <tromey@redhat.com>
2578 * psymtab.c (lookup_partial_symbol): Mark definition as static.
2580 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2581 Tom Tromey <tromey@redhat.com>
2583 Fix GDB startup on readonly filesystem.
2584 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
2586 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2587 Pedro Alves <pedro@codesourcery.com>
2590 * breakpoint.c (handle_jit_event): New function.
2591 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
2592 jit, err, table and bs_class. New variables shlib_event, jit_event,
2593 this_action and bptype. Change bs_class assignments to this_action
2594 assignments. new unhandled bptype internal error. Move here
2595 shlib_event and jit_event handling from handle_inferior_event.
2596 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
2597 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
2598 BPSTAT_WHAT_CHECK_JIT.
2599 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
2600 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
2601 (handle_inferior_event): Reinitialize frame and gdbarch after
2602 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
2603 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
2604 gdbarch when frame gets reinitialized.
2606 2010-06-24 Hui Zhu <teawater@gmail.com>
2608 * printcmd.c (ui_printf): New function.
2609 (printf_command): Call ui_printf.
2610 (_initialize_printcmd): New command "eval".
2612 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
2614 * infrun.c (handle_inferior_event): Handle presence of single-step
2615 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
2616 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
2617 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
2618 * breakpoint.c (detach_single_step_breakpoints): New function.
2619 (detach_breakpoints): Call it.
2620 (cancel_single_step_breakpoints): New function.
2621 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
2623 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
2624 (spu_gdbarch_init): Install it.
2626 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2628 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
2629 * configure: Regenerate.
2631 2010-06-22 Hui Zhu <teawater@gmail.com>
2633 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
2634 (i386_process_record): Ditto.
2635 * record.c (record_memory_query): New variable.
2636 (_initialize_record): New command "set record memory-query".
2637 * record.h (record_memory_query): New extern.
2639 2010-06-21 Doug Evans <dje@google.com>
2641 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
2642 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
2643 (i386_syscall_p): Change type of lengthp to int.
2644 (i386_displaced_step_fixup): Handle kernels that run one past a
2646 * i386-linux-tdep.c (i386_linux_init_abi): Use
2647 i386_displaced_step_copy_insn instead of
2648 simple_displaced_step_copy_insn.
2650 2010-06-21 Tom Tromey <tromey@redhat.com>
2652 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
2653 (dwarf_type_encoding_name): Likewise.
2655 2010-06-21 Tom Tromey <tromey@redhat.com>
2657 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
2658 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
2659 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
2660 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
2661 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
2662 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
2663 * dwarf2read.c (tag_type_to_type): Create a new error type on
2665 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
2666 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
2668 2010-06-21 Michael Snyder <msnyder@vmware.com>
2670 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
2671 not add_abbrev_prefix_cmd, for "enable breakpoints".
2673 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
2675 * dwarf2loc.c (find_location_expression): Add relocation offset
2676 to base-address-selection entry base addresses. Read addresses
2677 (and offsets) as signed/unsigned integers, depending on the
2678 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
2679 (loclist_describe_location): Likewise.
2680 (disassemble_dwarf_expression): Read DW_OP_addr operand as
2681 unsigned integer. Do not call dwarf2_read_address.
2682 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
2684 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2686 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
2687 value instead of hard-coded SPU_LS_SIZE.
2688 (spu_software_single_step): Likewise.
2689 * spu-tdep.h (SPU_LS_SIZE): Remove.
2691 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2693 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
2694 limit on local store memory accesses.
2695 * spu-linux-nat.c (spu_xfer_partial): Likewise.
2696 * spu-tdep.c (spu_lslr): Remove.
2697 (spu_pointer_to_address): Do not truncate addresses.
2698 (spu_integer_to_address): Likewise.
2699 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
2700 * spu-tdep.h: Add comments.
2701 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
2702 (SPU_OVERLAY_LMA): Define.
2704 2010-06-18 Stan Shebs <stan@codesourcery.com>
2706 * osdata.c (get_osdata): Warn separately if target does not report
2708 (info_osdata_command): Allow empty type, report error if target
2709 does not return available types of OS data.
2710 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
2711 types if no annex supplied.
2713 * thread.c (thread_id_make_value): Make a value representing the
2715 (_initialize_thread): Create $_thread.
2717 2010-06-17 Joel Brobecker <brobecker@adacore.com>
2719 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
2720 last local variable declaration. No real code change.
2722 2010-06-17 Tom Tromey <tromey@redhat.com>
2724 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
2725 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
2728 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
2729 Jan Kratochvil <jan.kratochvil@redhat.com>
2731 * breakpoint.c: Include parser-defs.h.
2732 (watchpoint_exp_is_const): New function.
2733 (watch_command_1): Call watchpoint_exp_is_const to check
2734 if the expression is constant.
2736 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
2738 * configure.ac: Check for RDYNAMIC also for cross builds.
2739 * configure: Regenerate.
2741 2010-06-15 Pedro Alves <pedro@codesourcery.com>
2743 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
2744 (SFILES): Remove solib-null.c, add solib-target.c.
2745 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
2746 (ALLDEPFILES): Remove solib-target.c.
2747 * solib-target.c (_initialize_solib_target): Set
2748 current_target_so_ops to solib_target_so_ops if not already set.
2749 * solib-null.c: Delete.
2751 2010-06-14 Pedro Alves <pedro@codesourcery.com>
2753 * NEWS: Mention GDBserver's JIT compilation of tracepoint
2756 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2758 * cp-valprint.c (cp_print_static_field): Members of
2759 dont_print_stat_array_obstack are of type "struct type *".
2760 (_initialize_cp_valprint): Likewise.
2762 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2764 * frame.c (frame_register_unwind): Do not access contents
2765 of "optimized out" unwound register value.
2767 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2769 * ada-lang.h (ada_print_type): Make varstring const.
2770 * ada-typeprint.c (print_func_type): Make name const.
2771 (ada_print_type): Make varstring const.
2772 * c-lang.h (c_print_type): Make varstring const.
2773 * c-typeprint.c (c_print_type): Likewise.
2774 * f-lang.h (f_print_type): Likewise.
2775 * f-typeprint.c (f_print_type): Likewise.
2776 * jv-lang.h (java_print_type): Likewise.
2777 * jv-typeprint.c (java_print_type): Likewise.
2778 * language.c (unk_lang_print_type): Likewise.
2779 * language.h (struct language_defn) <la_print_type>: Likewise.
2780 * m2-lang.h (m2_print_type): Likewise.
2781 * m2-typeprint.c (m2_print_type): Likewise.
2782 * p-lang.h (pascal_print_type): Likewise.
2783 * p-typeprint.c (pascal_print_type): Likewise.
2785 2010-06-11 Stan Shebs <stan@codesourcery.com>
2787 Add per-operation permission flags.
2789 * target.h (struct target_ops): New method to_set_permissions.
2790 (target_set_permissions): New macro.
2791 (target_insert_breakpoint): Change macro to function.
2792 (target_remove_breakpoint): Ditto.
2793 (target_stop): Ditto.
2794 (may_write_registers): Declare.
2795 (may_write_memory): Declare.
2796 (may_insert_breakpoints): Declare.
2797 (may_insert_tracepoints): Declare.
2798 (may_insert_fast_tracepoints): Declare.
2799 (may_stop): Declare.
2800 * target.c (may_write_registers, may_write_registers_1): New globals.
2801 (may_write_memory, may_write_memory_1): New globals.
2802 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
2803 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
2804 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
2806 (may_stop, may_stop_1): New global.
2807 (target_xfer_partial): Test for write permission.
2808 (target_store_registers): Ditto.
2809 (target_insert_breakpoint): New function.
2810 (target_remove_breakpoint): New function.
2811 (target_stop): New function.
2812 (_initialize_targets): Add new set/show variables.
2813 (set_write_memory_permission): New function.
2814 (update_target_permissions): New function.
2815 (set_target_permissions): New function.
2816 (update_current_target): Default to_set_permissions.
2817 (_initialize_targets): Use new globals and setter function.
2818 * tracepoint.c (start_tracing): Test for permission.
2819 * inferior.h (update_observer_mode): Declare.
2820 * infrun.c (non_stop_1): Define earlier.
2821 (observer_mode, observer_mode_1): New globals.
2822 (set_observer_mode, show_observer_mode): New functions.
2823 (update_observer_mode): New function.
2824 (_initialize_infrun): Define "set observer" command.
2825 * remote.c (PACKET_QAllow): New optional packet.
2826 (remote_protocol_features): Add QAllow.
2827 (remote_set_permissions): New function.
2828 (remote_start_remote): Call it.
2829 (init_remote_ops): Add it to target vector.
2830 (_initialize_remote): Add config command for QAllow.
2832 2010-06-11 Tom Tromey <tromey@redhat.com>
2834 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
2835 DW_AT_vtable_elem_location even when GCC extension is seen.
2837 2010-06-11 Tom Tromey <tromey@redhat.com>
2839 PR gdb/9977, PR exp/11636:
2840 * value.h (value_offset): Update.
2841 (struct lval_funcs) <check_validity>: New field.
2842 <copy_closure>: Make argument const.
2843 (value_computed_closure): Update.
2844 (value_contents_for_printing): Declare.
2845 (value_bits_valid): Likewise.
2846 (val_print): Likewise.
2847 (set_value_component_location): Update.
2848 (value_entirely_optimized_out): Declare.
2849 * value.c (value_offset): Argument now const.
2850 (require_not_optimized_out): New function.
2851 (value_contents_for_printing): New function.
2852 (value_contents_all): Call require_not_optimized_out.
2853 (value_contents): Likewise.
2854 (value_bits_valid): New function.
2855 (value_computed_closure): Argument now const.
2856 (set_value_component_location): Make 'whole' argument const.
2857 (value_entirely_optimized_out): New function.
2858 (value_bitsize): Argument now 'const'.
2859 (value_bitpos): Likewise.
2860 (value_type): Likewise.
2861 * valprint.h (val_print_array_elements): Update.
2862 * valprint.c (val_print): Add 'val' argument. Use
2863 valprint_check_validity.
2864 (valprint_check_validity): New function.
2865 (value_check_printable): Use value_entirely_optimized_out.
2866 (common_val_print): Update.
2867 (value_print): Likewise.
2868 (val_print_array_elements): Add 'val' argument.
2869 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
2870 value_bits_valid. Reinit frame cache for lval_computed.
2871 * sh64-tdep.c (sh64_do_register): Update.
2872 * scm-valprint.c (scm_val_print): Add 'val' argument.
2873 * scm-lang.h (scm_val_print): Update.
2874 * python/python.h (apply_val_pretty_printer): Update.
2875 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
2876 argument. Call set_value_component_location.
2877 * printcmd.c (print_scalar_formatted): Update.
2878 * p-valprint.c (pascal_val_print): Add 'val' argument.
2879 (pascal_object_print_value_fields): Likewise.
2880 (pascal_object_print_value): Likewise.
2881 (pascal_object_print_static_field): Update.
2882 * p-lang.h (pascal_val_print): Update.
2883 (pascal_object_print_value_fields): Update.
2884 * mt-tdep.c (mt_registers_info): Update.
2885 * mi/mi-main.c (get_register): Update.
2886 (mi_cmd_data_evaluate_expression): Use common_val_print.
2887 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
2888 (m2_print_unbounded_array): Likewise.
2889 (m2_val_print): Likewise.
2890 * m2-lang.h (m2_val_print): Update.
2891 * language.h (struct language_defn) <la_val_print>: Add 'val'
2893 (LA_VAL_PRINT): Likewise.
2894 * language.c (unk_lang_val_print): Add 'val' argument.
2895 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
2896 (java_val_print): Likewise.
2897 * jv-lang.h (java_val_print): Add 'val' argument.
2898 * infcmd.c (default_print_registers_info): Update.
2899 * f-valprint.c (f77_print_array_1): Add 'val' argument.
2900 (f77_print_array): Likewise.
2901 (f_val_print): Likewise.
2902 * f-lang.h (f_val_print): Add 'val' argument.
2903 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
2905 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
2906 set_value_optimized_out.
2907 (write_pieced_value): Use value_bitsize and value_bitpos.
2908 <default>: Don't exit loop.
2909 (check_pieced_value_validity): New function.
2910 (pieced_value_funcs): Reference check_pieced_value_validity,
2911 check_pieced_value_invalid.
2912 (copy_pieced_value_closure): Update.
2913 (check_pieced_value_bits): New function.
2914 (check_pieced_value_invalid): New function.
2915 * d-valprint.c (dynamic_array_type): Add 'val' argument.
2916 (d_val_print): Likewise.
2917 * d-lang.h (d_val_print): Update.
2918 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
2919 (cp_print_value_fields_rtti): Likewise.
2920 (cp_print_value): Likewise.
2921 (cp_print_static_field): Update.
2922 * c-valprint.c (c_val_print): Add 'val' argument.
2923 (c_value_print): Update.
2924 * c-lang.h (c_val_print): Update.
2925 (cp_print_value_fields): Likewise.
2926 (cp_print_value_fields_rtti): Likewise.
2927 * ada-valprint.c (struct ada_val_print_args): Remove.
2928 (val_print_packed_array_elements): Add 'val' argument.
2929 (ada_val_print): Likewise. Rewrite.
2930 (ada_val_print_stub): Remove.
2931 (ada_val_print_array): Add 'val' argument.
2932 (ada_val_print_1): Likewise.
2933 (print_variant_part): Likewise.
2934 (ada_value_print): Update.
2935 (print_record): Add 'val' argument.
2936 (print_field_values): Likewise.
2937 * ada-lang.h (ada_val_print): Update.
2939 2010-06-11 Tom Tromey <tromey@redhat.com>
2941 * vec.h (VEC_cleanup): New macro.
2942 (DEF_VEC_ALLOC_FUNC_I): Update.
2943 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2944 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2945 * dwarf2loc.c (struct axs_var_loc): Remove.
2946 (unimplemented): New function.
2947 (translate_register): Likewise.
2948 (access_memory): Likewise.
2949 (compile_dwarf_to_ax): Likewise.
2950 (dwarf2_tracepoint_var_loc): Remove.
2951 (dwarf2_tracepoint_var_access): Likewise.
2952 (dwarf2_tracepoint_var_ref): Likewise.
2953 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
2954 (loclist_tracepoint_var_ref): Likewise.
2955 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
2956 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
2957 require_composition. No longer static.
2958 (execute_stack_op): Update.
2959 * ax-gdb.h (trace_kludge): Declare.
2961 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2963 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
2964 (should_be_inserted): Return zero also on NULL OWNER.
2965 (breakpoint_program_space_exit): New OWNER comment.
2966 (insert_breakpoint_locations): Extend comment for OWNER.
2967 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
2968 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
2970 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
2971 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
2972 (bpstat_check_location): New assert on OWNER.
2973 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
2974 and B initializations to the code block. New assert on them.
2975 (print_one_breakpoint_location): New OWNER comment.
2976 (watchpoint_locations_match): Assert on OWNER.
2977 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
2978 initializations to the code block. New assert on OWNER.
2979 (set_breakpoint_location_function): New assert on OWNER.
2980 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
2981 (bp_location_compare, update_global_location_list)
2982 (update_global_location_list): New OWNER comment.
2984 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2986 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
2988 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2990 * config/nm-linux.h (struct target_ops): Remove forward declaration.
2991 (lin_thread_get_thread_signals): Remove prototype.
2992 (GET_THREAD_SIGNALS): Remove.
2993 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
2994 * linux-thread-db.c (check_thread_signals): Directly call
2995 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
2997 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2999 * gregset.h (GDB_FPXREGSET_T): Remove.
3000 (gdb_fpxregset_t): Likewise.
3001 (supply_fpxregset): Remove prototype.
3002 (fill_fpxregset): Likewise.
3003 * i386-linux-nat.c (supply_fpxregset): Remove.
3004 (fill_fpxregset): Likewise.
3005 (fetch_fpxregs): Inline supply_fpxregset call.
3006 (store_fpxregs): Inline fill_fpxregset call.
3008 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
3009 * config/i386/nm-linux.h: Remove file.
3011 2010-06-09 Michael Snyder <msnyder@vmware.com>
3013 * target.c (update_current_target): Fix spelling error in comment.
3014 (target_mourn_inferior): Fix spelling error in error message.
3016 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
3018 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
3019 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
3021 2010-06-08 Michael Snyder <msnyder@vmware.com>
3023 * remote.c (remote_close): Set inferior_ptid to null_ptid.
3025 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3027 * configure.ac <"${have_libpython}" != no>: New workaround of
3029 * configure: Regenerate.
3031 2010-06-08 Hui Zhu <teawater@gmail.com>
3033 * record.c (record_wait): Move signal out of replay code.
3035 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3038 * dwarf2-frame.c (no_dwarf_call): New function.
3039 (execute_stack_op): Set CTX->DWARF_CALL.
3040 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
3041 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
3042 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
3043 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
3044 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
3045 (needs_frame_dwarf_call): New function.
3046 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
3047 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
3048 Update the comment. Move variables die, offset and error call to ...
3049 (follow_die_ref): ... a new function.
3050 (dwarf2_fetch_die_location_block): New function.
3051 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
3053 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3055 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
3056 (dwarf_expr_tls_address): Use per_cu instead of objfile.
3057 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
3058 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
3060 (struct needs_frame_baton): New field per_cu.
3061 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
3062 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
3064 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3066 * cp-support.c (make_symbol_overload_list_namespace): Only search
3067 static and global blocks.
3068 (make_symbol_overload_list_block): New function.
3069 (make_symbol_overload_list): Separate namespace search from block
3071 (make_symbol_overload_list_qualified): Use
3072 make_symbol_overload_list_block.
3074 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3076 * value.h: Created oload_search_type enum.
3077 (find_overload_match): Use oload_search_type enum.
3078 * valops.c (find_overload_match): Support combined member and
3080 * eval.c (evaluate_subexp_standard): Calls to
3081 find_overload_match now use oload_search_type enum.
3082 (oload_method_static): Verify index is a proper value.
3083 * valarith.c (value_user_defined_cpp_op): Search for and handle
3084 both member and non-member operators.
3085 (value_user_defined_cpp_op): New function.
3086 (value_user_defined_op): New function.
3087 (value_x_unop): Use value_user_defined_op.
3088 (value_x_binop): Ditto.
3089 * cp-support.c (make_symbol_overload_list_using): Added block
3091 Add check for namespace aliases and imported declarations.
3093 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3095 * breakpoint.h (owner): Extend the comment.
3097 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3099 Clear stale specific bp_location from former whole breakpoint.
3100 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
3102 (free_bp_location): ... here. Rename there the called function to
3103 bpstat_remove_bp_location_callback.
3104 (bpstat_remove_breakpoint_callback): Rename to ...
3105 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
3106 to struct bp_location. Change the called function to
3107 bpstat_remove_bp_location. Create new declaration for the function.
3108 (bpstat_remove_breakpoint): Rename to ...
3109 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
3110 code for the new parameter type.
3112 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
3114 * README: Make version-agnostic.
3116 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3118 Fix duplicate types for single DIE.
3119 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
3121 (read_array_type): Remove type initialization. Recheck get_die_type
3122 after initial die_type. Move set_die_type before set_descriptive_type.
3123 (read_set_type): New variable domain_type. Recheck get_die_type after
3124 initial die_type. Move attr initialization later.
3125 (read_tag_pointer_type, read_tag_reference_type): New variable
3126 target_type. Recheck get_die_type after initial die_type.
3127 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
3128 die_type and die_containing_type.
3129 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
3130 Recheck get_die_type after initial die_type.
3131 (read_subrange_type): Recheck get_die_type after initial die_type.
3132 Move set_die_type before set_descriptive_type.
3133 (set_die_type): Extend the function comment. Call complaint if DIE has
3134 some type already set.
3136 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
3138 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
3139 for current naming of thread groups (iN, not N).
3141 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
3143 * ada-lang.c (ada_operator_length): Constify `struct expression'.
3144 * parse.c (operator_length): Likewise.
3145 (operator_length_standard): Likewise.
3146 * parser-defs.h (operator_length): Likewise.
3147 (operator_length_standard): Likewise.
3148 (struct exp_descriptor <operator_length>): Likewise.
3150 2010-06-04 Doug Evans <dje@google.com>
3152 Add support for enabling/disabling individual pretty-printers.
3153 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
3154 * python/python-internal.h (gdbpy_enabled_cst): Declare.
3155 * python/python.c (gdbpy_enabled_cst): Define.
3156 (_initialize_python): Initialize gdbpy_enabled_cst.
3159 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3161 * breakpoint.c (update_global_location_list): Fix comment typo.
3163 2010-06-04 Hui Zhu <teawater@gmail.com>
3165 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
3167 2010-06-03 Doug Evans <dje@google.com>
3169 * configure.ac: Don't fail if python is unusable when
3170 configured with --with-python=auto.
3171 * configure: Regenerate.
3173 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
3175 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
3177 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
3179 * valprint.h (get_array_bounds): Change low and high parameter types
3181 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
3183 (val_print_array_elements): Adapt to change above.
3184 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
3185 * p-valprint.c (pascal_val_print): Likewise.
3187 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3189 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
3190 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
3193 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3195 Support DW_TAG_module as separate namespaces.
3196 * dwarf2read.c (typename_concat): New parameter physname.
3197 (read_module_type): New function and declaration.
3198 (scan_partial_symbols): Scan also DW_TAG_module children.
3199 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
3200 to typename_concat backward compatible physname value 0.
3201 (partial_die_full_name, read_namespace_type): Pass to typename_concat
3202 backward compatible physname value 0.
3203 (add_partial_module, read_module): Remove FIXME comment.
3204 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
3205 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
3206 DIEs under DW_TAG_module.
3207 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
3208 DW_AT_MIPS_linkage_name first, extend it for language_fortran
3209 && physname and return there instead of just setting NAME. Extend
3210 the main block for language_fortran. Pass physname parameter to the
3211 typename_concat call.
3212 (read_import_statement, read_func_scope, get_scope_pc_bounds)
3213 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
3214 (new_symbol): Fill in cplus_specific.demangled_name if it is still
3215 missing from SYMBOL_SET_NAMES in the language_fortran case.
3216 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
3218 (read_type_die) <DW_TAG_module>: New.
3219 (MAX_SEP_LEN): Increase to 7.
3220 (typename_concat): New parameter physname. New variable lead. Support
3221 also language_fortran.
3222 * f-exp.y (yylex): Consider : also as a symbol name character class.
3223 * f-lang.c: Include cp-support.h.
3224 (f_word_break_characters, f_make_symbol_completion_list): New functions.
3225 (f_language_defn): Use cp_lookup_symbol_nonlocal,
3226 f_word_break_characters and f_make_symbol_completion_list.
3227 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
3228 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
3229 * symtab.c (symbol_init_language_specific): Support language_fortran.
3230 (symbol_find_demangled_name): New comment on language_fortran.
3231 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
3232 for language_fortran.
3233 (lookup_symbol_aux_local): Check imports also for language_fortran.
3234 (default_make_symbol_completion_list): Rename to ...
3235 (default_make_symbol_completion_list_break_on): ... this name. New
3236 parameter break_on, use it.
3237 (default_make_symbol_completion_list): New stub.
3238 * symtab.h (default_make_symbol_completion_list_break_on): New
3241 2010-06-02 Joel Brobecker <brobecker@adacore.com>
3243 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
3246 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3248 * dwarf2read.c (typename_concat): Add const to the variable sep.
3250 2010-06-02 Tom Tromey <tromey@redhat.com>
3252 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
3253 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
3254 type is const. Add 'def' argument. Add missing operators, remove
3256 (decode_locdesc): Update.
3257 (dwarf2_always_disassemble): New global.
3258 (show_dwarf2_always_disassemble): New function.
3259 (_initialize_dwarf2_read): Add always-disassemble.
3260 (dwarf2_per_cu_offset_size): New function.
3261 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
3262 (piece_end_p): New function.
3263 (locexpr_describe_location_piece): Replace 'size' argument with
3264 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
3265 some constants. Remove errors.
3266 (disassemble_dwarf_expression): New function.
3267 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
3268 Add 'offset_size' argument.
3269 (loclist_describe_location): Change output formatting.
3270 * dwarf2expr.h (dwarf_stack_op_name): Declare.
3272 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
3274 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
3275 anonymous type case.
3277 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
3279 * dwarf2read.c (read_subrange_type): Handle missing base type
3280 according to Dwarf-2 specifications.
3282 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
3284 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
3286 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
3287 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
3288 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
3289 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
3290 UNOP_CHMAX, UNOP_CHMIN.
3291 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
3292 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
3293 UNOP_CHMIN>: Remove opcodes.
3295 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
3297 * dwarf2read.c (read_func_scope): Do not complain for
3298 external function if bounds are not found.
3300 2010-06-01 Pedro Alves <pedro@codesourcery.com>
3302 * NEWS: Mention gdbserver fast tracepoints support.
3304 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
3306 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
3308 (windows_set_console_info): New function.
3309 (windows_create_inferior): Call windows_set_console_info
3310 if NEW_CONSOLE is true.
3311 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
3312 (_initialize_loadable): Initialize GetConsoleFontSize and
3313 GetCurrentConsoleFont.
3315 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3317 * Makefile.in (RDYNAMIC): New.
3318 (SFILES): Add proc-service.list.
3319 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
3320 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
3321 * config/arm/linux.mh: Likewise.
3322 * config/i386/linux.mh: Likewise.
3323 * config/i386/linux64.mh: Likewise.
3324 * config/ia64/linux.mh: Likewise.
3325 * config/m32r/linux.mh: Likewise.
3326 * config/m68k/linux.mh: Likewise.
3327 * config/mips/linux.mh: Likewise.
3328 * config/pa/linux.mh: Likewise.
3329 * config/powerpc/linux.mh: Likewise.
3330 * config/powerpc/ppc64-linux.mh: Likewise.
3331 * config/s390/s390.mh: Likewise.
3332 * config/sparc/linux.mh: Likewise.
3333 * config/sparc/linux64.mh: Likewise.
3334 * config/xtensa/linux.mh: Likewise.
3335 * configure.ac: New RDYNAMIC on native host and GCC.
3336 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
3337 * configure: Regenerate.
3338 * proc-service.list: New.
3340 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3342 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
3345 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3347 * linux-nat.c (linux_nat_wait_1): Do not call
3348 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
3349 TARGET_WAITKIND_SIGNALLED.
3351 2010-05-27 Joel Brobecker <brobecker@adacore.com>
3353 * ada-lang.c (ada_inferior_data): New struct.
3354 (ada_inferior_data): New static global.
3355 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
3356 (ada_get_tsd_type): New functions.
3357 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
3358 to look the tsd type up.
3359 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
3360 event. Set ada_inferior_data.
3362 2010-05-27 Pedro Alves <pedro@codesourcery.com>
3364 * remote.c (unpack_varlen_hex): Remove forward declaration.
3365 (remote_console_output): Make static, and add forward declaration.
3366 * remote.h: Drop FIXME comment.
3367 (unpack_varlen_hex): Declare.
3368 (remote_console_output, remote_cisco_objfile_relocate)
3369 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
3370 Delete declarations.
3371 * tracepoint.c: Include "remote.h".
3372 (unpack_varlen_hex): Delete declaration.
3374 2010-05-27 Tom Tromey <tromey@redhat.com>
3376 * dwarf2loc.c (struct piece_closure) <refc>: New field.
3377 (allocate_piece_closure): Initialize refc.
3378 (copy_pieced_value_closure): Use refc.
3379 (free_pieced_value_closure): Likewise.
3381 2010-05-27 Tom Tromey <tromey@redhat.com>
3383 * arm-tdep.c (push_stack_item): 'contents' now const.
3384 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
3385 value_contents_writeable. Introduce new temporary.
3387 2010-05-27 Tom Tromey <tromey@redhat.com>
3389 * findcmd.c (parse_find_args): Use value_contents, not
3392 2010-05-27 Tom Tromey <tromey@redhat.com>
3394 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
3395 const. Use value_contents, not value_contents_writeable.
3397 2010-05-27 Joel Brobecker <brobecker@adacore.com>
3399 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
3400 by call to value_contents.
3402 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
3404 * MAINTAINERS: Add myself for write after approval privileges.
3406 2010-05-26 Doug Evans <dje@google.com>
3408 Allow python to find its files if moved from original location.
3409 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
3410 (GDB_AC_WITH_DIR): Call it.
3411 * configure.ac: Define WITH_PYTHON_PATH if we can find the
3412 python installation directory.
3413 * config.in: Regenerate.
3414 * configure: Regenerate.
3415 * defs.h (python_libdir): Declare.
3416 * main.c (python_libdir): Define.
3417 (captured_main): Initialize python_libdir.
3418 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
3419 call Py_SetProgramName to make sure python can find its libraries
3422 * configure.ac: Try to use python's distutils to fetch compilation
3424 * configure: Regenerate.
3425 * python/python-config.py: New file.
3427 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
3429 * ser-tcp.c (net_open): Check error return from socket() call by its
3430 equality to -1 not by it being negative.
3431 (net_close): Likewise.
3433 2010-05-26 Pedro Alves <pedro@codesourcery.com>
3435 * NEWS: Mention the `qRelocInsn' feature.
3436 * gdbarch.sh (relocate_instruction): New.
3437 * amd64-tdep.c (rip_relative_offset): New.
3438 (append_insns): New.
3439 (amd64_relocate_instruction): New.
3440 (amd64_init_abi): Install it.
3441 * i386-tdep.c (append_insns): New.
3442 (i386_relocate_instruction): New.
3443 (i386_gdbarch_init): Install it.
3444 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
3445 * gdbarch.h, gdbarch.c: Regenerate.
3447 2010-05-26 Tom Tromey <tromey@redhat.com>
3449 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
3450 (struct dwarf2_loclist_baton) <data>: Likewise.
3451 * dwarf2loc.c (find_location_expression): Constify return type.
3452 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
3453 (dwarf2_loc_desc_needs_frame): Likewise.
3454 (loclist_read_variable): Constify.
3455 (loclist_describe_location): Likewise.
3456 (loclist_tracepoint_var_ref): Likewise.
3458 2010-05-25 Tom Tromey <tromey@redhat.com>
3460 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
3461 (dwarf_expr_frame_base_1): Likewise.
3462 (read_pieced_value): Update.
3463 (needs_frame_frame_base): Constify.
3464 (dwarf2_tracepoint_var_loc): Likewise.
3465 (dwarf2_tracepoint_var_access): Likewise.
3466 (locexpr_describe_location_piece): Likewise.
3467 (locexpr_describe_location_1): Likewise.
3468 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
3471 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
3472 (dwarf_expr_eval, read_uleb128, read_sleb128)
3473 (dwarf2_read_address): Update.
3474 * dwarf2expr.c (dwarf_expr_eval): Constify.
3475 (read_uleb128): Likewise.
3476 (read_sleb128): Likewise.
3477 (dwarf2_read_address): Likewise.
3478 (require_composition): Likewise.
3479 (execute_stack_op): Likewise.
3480 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
3482 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
3484 (no_get_frame_base): Constify.
3485 (execute_stack_op): Likewise.
3486 (execute_cfa_program): Likewise.
3487 (read_encoded_value): Likewise.
3489 2010-05-25 Doug Evans <dje@google.com>
3491 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
3493 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
3494 * event-loop.c: ... here.
3495 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
3496 `error' for clarity.
3497 (tui_getc): Pass correct value for `error' parameter to
3498 tui_readline_output.
3500 Add python gdb.GdbError and gdb.string_to_argv.
3501 * NEWS: Document them.
3502 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
3503 the exception is gdb.GdbError. Print a second traceback if there's
3504 an error computing the error message.
3505 (gdbpy_string_to_argv): New function.
3506 * python/py-utils.c (gdbpy_obj_to_string): New function.
3507 (gdbpy_exception_to_string): New function.
3508 * python/python-internal.h (gdbpy_string_to_argv): Declare.
3509 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
3510 (gdbpy_gdberror_exc): Declare.
3511 * python/python.c (gdbpy_gdberror_exc): New global.
3512 (_initialize_python): Initialize gdbpy_gdberror_exc and create
3514 (GdbMethods): Add string_to_argv.
3516 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3518 * windows-nat.c (display_selector): Call GetLastError to give better
3519 failure explanation.
3521 2010-05-24 Pedro Alves <pedro@codesourcery.com>
3523 * config.in: Regenerate.
3525 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3528 * target.c (push_target): Return only void. Remove the return value
3530 * target.h (push_target): Return only void.
3532 2010-05-23 Pedro Alves <pedro@codesourcery.com>
3534 Update gnulib from latest git.
3535 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3537 * gnulib/memcmp.c: Removed.
3538 * gnulib/memchr.valgrind: New.
3539 * gnulib/stddef.in.h: New.
3540 * gnulib/Makefile.am: Updated.
3541 * gnulib/memchr.c: Updated.
3542 * gnulib/memmem.c: Updated.
3543 * gnulib/stdint.in.h: Updated.
3544 * gnulib/str-two-way.h: Updated.
3545 * gnulib/string.in.h: Updated.
3546 * gnulib/wchar.in.h: Updated.
3548 * gnulib/extra/link-warning.h: Removed.
3549 * gnulib/extra/c++defs.h: New.
3550 * gnulib/extra/warn-on-use.h: New.
3551 * gnulib/extra/arg-nonnull.h: Updated.
3553 * gnulib/m4/extensions.m4: Updated.
3554 * gnulib/m4/gnulib-cache.m4: Updated.
3555 * gnulib/m4/gnulib-common.m4: Updated.
3556 * gnulib/m4/gnulib-comp.m4: Updated.
3557 * gnulib/m4/gnulib-tool.m4: Updated.
3558 * gnulib/m4/include_next.m4: Updated.
3559 * gnulib/m4/longlong.m4: Updated.
3560 * gnulib/m4/memchr.m4: Updated.
3561 * gnulib/m4/memmem.m4: Updated.
3562 * gnulib/m4/stdint.m4: Updated.
3563 * gnulib/m4/string_h.m4: Updated.
3564 * gnulib/m4/memcmp.m4: Removed.
3565 * gnulib/m4/onceonly_2_57.m4: Removed.
3566 * gnulib/m4/00gnulib.m4: New.
3567 * gnulib/m4/mmap-anon.m4: New.
3568 * gnulib/m4/multiarch.m4: New.
3569 * gnulib/m4/onceonly.m4: New.
3570 * gnulib/m4/stddef_h.m4: New.
3571 * gnulib/m4/warn-on-use.m4: New.
3572 * gnulib/m4/wchar.m4: Removed.
3573 * gnulib/m4/wchar_h.m4: New.
3574 * gnulib/m4/wchar_t.m4: New.
3575 * gnulib/m4/wint_t.m4: New.
3577 * aclocal.m4: Regenerate.
3578 * config.in: Likewise.
3579 * configure: Likewise.
3580 * gnulib/Makefile.in: Likewise.
3582 2010-05-21 Tom Tromey <tromey@redhat.com>
3584 * dwarf2loc.c (extract_bits_primitive): New function.
3585 (extract_bits): Likewise.
3586 (insert_bits): Likewise.
3587 (copy_bitwise): Likewise.
3588 (read_pieced_value): Do all operations in bits.
3589 (write_pieced_value): Likewise.
3590 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
3591 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
3592 Always use xrealloc to resize piece array.
3593 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
3594 <DW_OP_piece>: Update.
3595 <DW_OP_bit_piece>: New case.
3597 2010-05-21 Tom Tromey <tromey@redhat.com>
3599 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
3600 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
3601 * dwarf2expr.h (enum dwarf_value_location)
3602 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
3603 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
3604 (add_piece): Handle empty piece.
3605 (execute_stack_op) <DW_OP_piece>: Handle
3606 DWARF_VALUE_OPTIMIZED_OUT.
3608 2010-05-21 Tom Tromey <tromey@redhat.com>
3610 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
3611 evaluate_subexp, not evaluate_subexp_with_coercion.
3613 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3615 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3618 2010-05-21 Tom Tromey <tromey@redhat.com>
3620 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
3622 (write_pieced_value): Likewise.
3624 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3626 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3627 and DW_TAG_volatile_type.
3628 (new_symbol): Likewise.
3630 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
3632 * p-valprint.c (pascal_val_print): Call get_array_bounds
3633 to obtain the number of elements in an array.
3635 2010-05-19 Doug Evans <dje@google.com>
3637 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
3639 * python.c (source_python_script): Add comment.
3640 (source_python_script_for_objfile): Remove unnecessary call to
3643 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3644 Sergio Durigan Junior <sergiodj@redhat.com>
3647 * parse.c (exp_iterate): Use operator_length wrapper function.
3649 2010-05-18 Michael Snyder <msnyder@vmware.com>
3651 * ada-lang.c: White space.
3652 * ada-typeprint.c: White space.
3653 * ada-valprint.c: White space.
3654 * addrmap.c: White space.
3655 * auxv.c: White space.
3656 * ax-gdb.c: White space.
3658 2010-05-18 Hui Zhu <teawater@gmail.com>
3660 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
3662 (inferior_call_waitpid): Move make_cleanup out of check.
3663 Check the return of waitpid.
3664 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
3666 2010-05-17 Michael Snyder <msnyder@vmware.com>
3668 * tui/tui.c: White space.
3669 * tui/tui-data.c: White space.
3670 * tui/tui-disasm.c: White space.
3671 * tui/tui-file.c: White space.
3672 * tui/tui-interp.c: White space.
3673 * tui/tui-main.c: White space.
3674 * tui/tui-out.c: White space.
3675 * tui/tui-regs.c: White space.
3676 * tui/tui-source.c: White space.
3677 * tui/tui-stack.c: White space.
3678 * tui/tui-win.c: White space.
3679 * tui/tui-winsource.c: White space.
3681 * procfs.c: White space.
3683 * python/py-auto-load.c: White space.
3684 * python/py-block.c: White space.
3685 * python/py-breakpoint.c: White space.
3686 * python/py-cmd.c: White space.
3687 * python/py-function.c: White space.
3688 * python/py-lazy-string.c: White space.
3689 * python/py-objfile.c: White space.
3690 * python/py-param.c: White space.
3691 * python/py-prettyprint.c: White space.
3692 * python/py-progspace.c: White space.
3693 * python/py-symtab.c: White space.
3694 * python/python.c: White space.
3695 * python/py-type.c: White space.
3696 * python/py-utils.c: White space.
3697 * python/py-value.c: White space.
3699 * mi/mi-cmd-break.c: White space.
3700 * mi/mi-cmd-env.c: White space.
3701 * mi/mi-cmds.c: White space.
3702 * mi/mi-cmd-stack.c: White space.
3703 * mi/mi-cmd-var.c: White space.
3704 * mi/mi-console.c: White space.
3705 * mi/mi-getopt.c: White space.
3706 * mi/mi-interp.c: White space.
3707 * mi/mi-main.c: White space.
3708 * mi/mi-out.c: White space.
3709 * mi/mi-parse.c: White space.
3711 * cli/cli-cmds.c: White space.
3712 * cli/cli-decode.c: White space.
3713 * cli/cli-dump.c: White space.
3714 * cli/cli-interp.c: White space.
3715 * cli/cli-logging.c: White space.
3716 * cli/cli-script.c: White space.
3717 * cli/cli-setshow.c: White space.
3719 * valarith.c: White space.
3720 * valops.c: White space.
3721 * valprint.c: White space.
3722 * value.c: White space.
3723 * varobj.c: White space.
3724 * xcoffread.c: White space.
3725 * xml-support.c: White space.
3726 * xml-tdesc.c: White space.
3728 2010-05-17 Andreas Schwab <schwab@redhat.com>
3731 * c-lang.c (c_printstr): Compute real length of NUL terminated
3734 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3736 * parse.c (parse_exp_in_context): When block is not NULL, use
3737 its associated language to parse the expression instead of
3738 the current_language.
3740 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3742 * jv-lang.c (java_lookup_class): Remove commented out code.
3743 (type_from_class): Likewise.
3744 (java_op_print_tab): Remove commented-out elements.
3746 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3748 * ada-lang.c (to_fixed_range_type): The the raw index type as
3749 argument instead of the raw type name. Remove orig_type parameter.
3750 Update calls throughout.
3751 (ada_fixup_array_indexes_type): New function.
3752 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
3753 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
3754 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
3755 Remove name parameter.
3756 (print_array_type): Add call to ada_fixup_array_indexes_type.
3757 Update calls to print_range_type.
3758 (ada_print_type): Update calls to print_range_type.
3760 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3762 * dwarf2read.c (read_set_type): Set type length if
3763 DW_AT_byte_size attribute is present.
3765 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3767 * p-valprint.c (pascal_val_print): Handle set type if range limits
3768 are undefined but size is known.
3770 2010-05-17 Pedro Alves <pedro@codesourcery.com>
3772 * procfs.c: Reformat.
3774 2010-05-16 Michael Snyder <msnyder@vmware.com>
3776 * target.c: White space.
3777 * target-descriptions.c: White space.
3778 * target-memory.c: White space.
3779 * thread.c: White space.
3780 * top.c: White space.
3781 * tracepoint.c: White space.
3782 * trad-frame.c: White space.
3783 * tramp-frame.c: White space.
3784 * ui-file.c: White space.
3785 * ui-out.c: White space.
3786 * user-regs.c: White space.
3787 * utils.c: White space.
3789 * scm-exp.c: White space.
3790 * scm-lang.c: White space.
3791 * scm-valprint.c: White space.
3792 * sentinel-frame.c: White space.
3793 * ser-base.c: White space.
3794 * ser-go32.c: White space.
3795 * serial.c: White space.
3796 * ser-mingw.c: White space.
3797 * ser-pipe.c: White space.
3798 * ser-tcp.c: White space.
3799 * ser-unix.c: White space.
3800 * solib.c: White space.
3801 * solib-darwin.c: White space.
3802 * solib-frv.c: White space.
3803 * solib-irix.c: White space.
3804 * solib-osf.c: White space.
3805 * solib-pa64.c: White space.
3806 * solib-som.c: White space.
3807 * solib-spu.c: White space.
3808 * solib-svr4.c: White space.
3809 * solib-target.c: White space.
3810 * source.c: White space.
3811 * stabsread.c: White space.
3812 * stack.c: White space.
3813 * std-regs.c: White space.
3814 * symfile.c: White space.
3815 * symmisc.c: White space.
3816 * symtab.c: White space.
3818 2010-05-16 Michael Snyder <msnyder@vmware.com>
3820 * source.c (_initialize_source): Add "rev" as an abbreviation
3821 for the "reverse-search" command.
3823 2010-05-16 Michael Snyder <msnyder@vmware.com>
3825 * record.c: White space.
3826 * regcache.c: White space.
3827 * reggroups.c: White space.
3828 * remote-fileio.c: White space.
3829 * remote-m32r-sdi.c: White space.
3830 * remote-mips.c: White space.
3831 * remote-sim.c: White space.
3832 * remote.c: White space.
3833 (process_g_packet): Remove orphan braces.
3835 2010-05-15 Michael Snyder <msnyder@vmware.com>
3837 * parse.c: White space.
3838 * p-lang.c: White space.
3839 * posix-hdep.c: White space.
3840 * printcmd.c: White space.
3841 * progspace.c: White space.
3842 * prologue-value.c: White space.
3843 * psymtab.c: White space.
3844 * p-typeprint.c: White space.
3845 * p-valprint.c: White space.
3847 * objc-lang.c: White space.
3848 * objfiles.c: White space.
3849 * observer.c: White space.
3850 * osabi.c: White space.
3851 * osdata.c: White space.
3853 * m2-lang.c: White space.
3854 * m2-valprint.c: White space.
3855 * macrocmd.c: White space.
3856 * macroexp.c: White space.
3857 * macroscope.c: White space.
3858 * macrotab.c: White space.
3859 * main.c: White space.
3860 * maint.c: White space.
3861 * mdebugread.c: White space.
3862 * memattr.c: White space.
3863 * minsyms.c: White space.
3864 * monitor.c: White space.
3866 2010-05-14 Michael Snyder <msnyder@vmware.com>
3868 * jv-lang.c: White space.
3869 * jv-typeprint.c: White space.
3870 * jv-valprint.c: White space.
3871 * language.c: White space.
3872 * libunwind-frame.c: White space.
3873 * linespec.c: White space.
3874 * linux-nat.c: White space.
3875 * linux-record.c: White space.
3876 * linux-thread-db.c: White space.
3878 * infcall.c: White space.
3879 * inf-child.c: White space.
3880 * infcmd.c: White space.
3881 * inferior.c: White space.
3882 * inf-loop.c: White space.
3883 * inflow.c: White space.
3884 * inline-frame.c: White space.
3885 * interps.c: White space.
3887 * gcore.c: White space.
3888 * gdb.c: White space.
3889 * gdbtypes.c: White space.
3890 * gnu-nat.c: White space.
3891 * gnu-v2-abi.c: White space.
3892 * gnu-v3-abi.c: White space.
3894 * findcmd.c: White space.
3895 * findvar.c: White space.
3896 * fork-child.c: White space.
3897 * frame-base.c: White space.
3898 * frame.c: White space.
3899 * frame-unwind.c: White space.
3900 * f-valprint.c: White space.
3902 * elfread.c: White space.
3903 * environ.c: White space.
3904 * eval.c: White space.
3905 * event-loop.c: White space.
3906 * event-top.c: White space.
3907 * exceptions.c: White space.
3908 * exec.c: White space.
3909 * expprint.c: White space.
3911 * dbxread.c: White space.
3912 * dcache.c: White space.
3913 * disasm.c: White space.
3914 * doublest.c: White space.
3915 * dsrec.c: White space.
3916 * dummy-frame.c: White space.
3917 * dwarf2expr.c: White space.
3918 * dwarf2-frame.c: White space.
3919 * dwarf2loc.c: White space.
3920 * dwarf2read.c: White space.
3922 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
3926 * python/py-value.c (valpy_hash): New function.
3927 (value_object_type): Register valpy_hash.
3929 2010-05-14 Hui Zhu <teawater@gmail.com>
3930 Michael Snyder <msnyder@vmware.com>
3932 * linux-fork.c (gdbthread.h): New include.
3933 (fork_info): Add parent_ptid.
3934 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
3936 (delete_checkpoint_command): Call inferior_call_waitpid.
3937 (checkpoint_command): Set parent_ptid.
3939 2010-05-13 Michael Snyder <msnyder@vmware.com>
3941 * dictionary.c: Re-indent to GNU coding standard.
3943 * charset.c: White space.
3944 * c-lang.c: White space.
3945 * cli-out.c: White space.
3946 * coffread.c: White space.
3947 * complaints.c: White space.
3948 * completer.c: White space.
3949 * corefile.c: White space.
3950 * corelow.c: White space.
3951 * cp-abi.c: White space.
3952 * cp-namespace.c: White space.
3953 * cp-support.c: White space.
3954 * cp-valprint.c: White space.
3955 * c-typeprint.c: White space.
3956 * c-valprint.c: White space.
3957 * blockframe.c: White space.
3958 * breakpoint.c: White space.
3959 * buildsym.c: White space.
3960 * blockframe.c: White space.
3961 * bcache.c: White space.
3962 * gdbarch.sh: White space, add blank lines.
3963 * arch-utils.c: Ditto.
3964 * gdbarch.c: Regenerate.
3965 * frame.c: White space, add blank lines.
3966 * stack.c: White space, add blank lines.
3967 (initialize_stack): Remove long-dead code.
3969 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3972 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
3973 (locexpr_read_variable, loclist_read_variable): Update the callers.
3975 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3978 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
3979 Remove check of NULL returned by tag_type_to_type.
3980 (die_containing_type): Remove variable type. Remove type_die variable
3981 initialization. Remove check of NULL returned by tag_type_to_type.
3983 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3986 * gdbtypes.c (lookup_struct_elt_type): Also lookup
3987 names of unnamed structures or unions.
3989 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3991 * procfs.c (proc_watchpoint_address): New function.
3992 (procfs_stopped_by_watchpoint): Remove useless check after
3993 find_procinfo_or_die call.
3994 (procfs_stopped_data_address): New function.
3995 (procfs_use_watchpoints): Register new watchpoint related function.
3997 2010-05-11 Tom Tromey <tromey@redhat.com>
3999 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
4001 2010-05-10 Michael Snyder <msnyder@vmware.com>
4003 * utils.c: White space cleanup.
4005 2010-05-10 Tom Tromey <tromey@redhat.com>
4007 * eval.c (ptrmath_type_p): Add 'lang' argument.
4008 (evaluate_subexp_standard): Update.
4009 (evaluate_subexp_with_coercion): Update.
4010 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
4012 2010-05-10 Michael Snyder <msnyder@vmware.com>
4014 * utils.c (do_fclose_cleanup) Restore local variable.
4016 2010-05-09 Doug Evans <dje@google.com>
4018 * record.c (init_record_core_ops): Rename record_core to record-core.
4020 2010-05-08 Joel Brobecker <brobecker@adacore.com>
4022 Implement task switching on pa-hpux.
4023 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
4024 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
4026 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4028 * valops.c (find_overload_match): Add missing i18n markup.
4030 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4032 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
4034 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4036 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
4037 list for the obconcat call.
4038 * mdebugread.c (parse_symbol): Likewise.
4039 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
4041 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
4042 New variable ap. Remove variables len and val.
4043 * symfile.h (obconcat): Likewise for the prototype.
4045 2010-05-07 Michael Snyder <msnyder@vmware.com>
4047 * python/python.c (execute_gdb_command): Remove unused variables.
4048 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
4049 * python/py-breakpoint.c (gdbpy_breakpoint_created):
4050 Remove unused variable.
4051 * python/py-cmd.c (cmdpy_function): Remove unused variable.
4052 (cmdpy_completer): Remove unused variable.
4053 * python/py-frame.c (frapy_find_sal): Remove unused variable.
4054 * python/py-function.c (fnpy_call): Remove unused variable.
4055 * python/py-objfile.c (objfile_to_objfile_object):
4056 Remove unused variable.
4057 * python/py-param.c (parmpy_init): Remove unused variable.
4058 * python/py-prettyprint.c (apply_varobj_pretty_printer):
4059 Remove unused variable.
4060 (gdbpy_default_visualizer): Remove unused variable.
4061 * python/py-progspace.c (pspace_to_pspace_object):
4062 Remove unused variable.
4063 * python/py-symtab.c (symtab_and_line_to_sal_object):
4064 Remove unused variable.
4065 * python/py-type.c (typy_template_argument):
4066 Remove unused variable.
4067 * python/py-value.c (valpy_string): Remove unused variable.
4068 (convert_value_from_python): Remove unused variables.
4070 2010-05-07 Michael Snyder <msnyder@vmware.com>
4072 * valops.c (value_cast_pointers): Restore unused variable 'type1',
4073 and use it to compute variable 't1'.
4075 2010-05-07 Joel Brobecker <brobecker@adacore.com>
4077 * ada-lang.c (assign_aggregate): Remove unused variable.
4079 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
4082 * valops.c (find_overload_match): Handle fsym == NULL case.
4083 Add int no_adl argument.
4084 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
4086 Add int no_adl argument.
4087 (find_oload_champ_namespace): Add int no_adl argument.
4088 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
4090 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
4091 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
4092 Evaluate arguments and use them to perform ADL lookup.
4093 Pass no_adl argument to find_overload_match.
4094 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
4095 * cp-support.h: Added prototype for
4096 make_symbol_overload_list_namespace.
4097 * cp-support.c (make_symbol_overload_list_namespace): New function.
4098 (make_symbol_overload_list_adl_namespace): New function.
4099 (make_symbol_overload_list_adl): New function.
4100 (make_symbol_overload_list_using): Moved code to add function to
4101 overload set to make_symbol_overload_list_namespace.
4102 * c-exp.y: create UNKNOWN_CPP_NAME token.
4103 Add parse rule for ADL functions.
4104 (classify_name): Recognize an UNKNOWN_CPP_NAME.
4106 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4108 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
4111 2010-05-07 Joel Brobecker <brobecker@adacore.com>
4113 Implement task switching on solaris targets.
4114 * sol-thread.c (thread_db_find_thread_from_tid)
4115 (sol_get_ada_task_ptid): New functions.
4116 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
4118 2010-05-07 Pedro Alves <pedro@codesourcery.com>
4120 * remote.c (remote_query_supported_append): Use reconcat.
4121 (remote_query_supported): Install a cleanup. Use reconcat.
4123 2010-05-07 Pedro Alves <pedro@codesourcery.com>
4125 * gdbarch.sh (qsupported): Delete.
4126 * gdbarch.h, gdbarch.c: Regenerate.
4127 * remote.c (remote_query_supported): Remove use of
4130 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4132 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
4135 2010-05-06 Michael Snyder <msnyder@vmware.com>
4137 * xml-support.c (xinclude_start_include): Delete unused variable.
4138 (xml_process_xincludes): Delete unused variable.
4139 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
4140 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
4141 (tdesc_find_arch_register): Delete unused variable.
4142 (tdesc_use_registers): Delete unused variable.
4143 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
4144 * inferior.c (print_inferior): Delete unused variable.
4145 * record.c (record_open_1): Delete unused variable.
4146 (record_restore): Delete unused variable.
4147 (cmd_record_save): Delete unused variable.
4148 * gcore.c (derive_heap_segment): Delete unused variable.
4149 (objfile_find_memory_regions): Use unused variable.
4150 * jit.c (jit_inferior_init): Delete unused variable.
4151 * progspace.c (clone_program_space): Delete unused variable.
4152 (pspace_empty_p): Delete unused variable.
4154 * frame-unwind.c (frame_unwind_find_by_frame):
4155 Delete unused variable.
4156 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
4157 * cp-support.c (mangled_name_to_comp): Delete unused variable.
4158 (method_name_from_physname): Delete unused variable.
4159 (cp_func_name): Delete unused variable.
4160 (cp_validate_operator): Delete unused variable.
4161 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
4162 Delete unused variable.
4163 * trad-frame.c (trad_frame_get_prev_register):
4164 Delete unused variable.
4165 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
4167 * serial.c (serial_for_fd): Delete unused variable.
4168 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
4169 * top.c (execute_command): Delete unused variable.
4170 (init_main): Delete unused variable.
4171 * utils.c (do_fclose_cleanup): Delete unused variable.
4172 (do_all_inferior_continuations): Delete unused variable.
4173 (initialize_utils): Delete unused variable.
4174 (internal_problem_mode): Delete unused global.
4175 * frame.c (get_prev_frame): Delete unused global.
4176 (get_frame_locals_address): Delete unused global.
4177 (get_frame_args_address): Delete unused global.
4179 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
4180 (pascal_type_print_varspec_prefix): Delete unused variable.
4181 * f-typeprint.c (f_type_print_base): Delete unused variable.
4182 (f_type_print_varspec_suffix): Delete unused variable.
4183 * m2-typeprint.c (m2_print_type): Delete unused variable.
4184 (m2_long_set): Delete unused variable.
4185 * ada-valprint.c (ada_val_print_1): Delete unused variable.
4186 * d-valprint.c (dynamic_array_type): Delete unused variable.
4187 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
4188 Delete unused variable.
4189 (f77_create_arrayprint_offset_tbl): Delete unused variable.
4190 * m2-valprint.c (m2_val_print): Delete unused variable.
4192 * ui-out.c (ui_out_field_int): Delete unused variable.
4193 (ui_out_field_fmt_int): Delete unused variable.
4194 * varobj.c (varobj_list_children): Delete unused variable.
4195 (varobj_set_value): Delete unused variable.
4196 (install_new_value_visualizer): Delete unused variable.
4197 (varobj_set_visualizer): Delete unused variable.
4198 (varobj_update): Delete unused variable.
4199 (varobj_editable_p): Delete unused variable.
4200 (c_value_of_root): Delete unused variable.
4201 (cplus_describe_child): Delete unused variable.
4203 * ada-lang.c (add_defn_to_vec): Delete unused variable.
4204 (decode_constrained_packed_array_type): Delete unused variable.
4205 (add_defn_to_vec): Delete unused variable.
4206 (symbol_completion_match): Delete unused variable.
4207 (value_tag_from_contents_and_address): Delete unused variable.
4208 (ada_evaluate_subexp): Delete unused variable.
4209 * c-lang.c (classify_type): Delete unused variable.
4210 * f-lang.c (f_printstr): Delete unused variable.
4211 * objc-lang.c (objc_printstr): Delete unused variable.
4212 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
4213 * jv-lang.c (type_from_class): ifdef unused variable.
4214 (java_class_name_from_physname): Delete unused variable.
4215 * m2-lang.c (m2_printstr): Delete unused variable.
4217 * objfiles.c (objfile_relocate): Delete unused variable.
4218 * maint.c (_initialize_maint_cmds): Delete unused variable.
4219 * demangle.c (_initialize_demangler): Delete unused variable.
4220 * corefile.c (reopen_exec_file): Delete unused variable.
4221 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
4222 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
4224 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
4225 * memattr.c (mem_delete): Delete unused variable.
4226 (invalidate_target_mem_regions): Delete unused variable.
4227 * mem-break.c (default_memory_insert_breakpoint):
4228 Delete unused variable.
4229 * target.c (target_get_osdata): Delete unused variable.
4230 * parse.c (length_of_subexp): Delete unused variable.
4231 (prefixify_subexp): Delete unused variable.
4232 (exp_iterate): Delete unused variable.
4233 * reverse.c (delete_bookmark_command): Delete unused variable.
4235 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
4236 * macroexp.c (gather_arguments): Delete unused variable.
4237 (substitute_args): Delete unused variable.
4238 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
4239 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
4240 (_initialize_gdbarch): Delete unused variable.
4241 * gdbarch.c, gdbarch.h: Regenerate.
4242 * arch-utils.c (initialize_current_architecture):
4243 Delete unused variable.
4244 (_initialize_gdbarch_utils): Delete unused variable.
4245 * gdbtypes.c (make_cv_type): Delete unused variable.
4246 (make_type_with_address_space): Delete unused variable.
4248 * linespec.c (decode_compound): Delete unused variable.
4249 * dictionary.c (iterator_next_hashed): Delete unused variable.
4250 * infcall.c (call_function_by_hand): Delete unused variable.
4251 * infcmd.c (step_1): Delete unused variable.
4252 (registers_info): Delete unused variable.
4253 (attach_command): Delete unused variable.
4254 * infrun.c (follow_exec): Delete unused variable.
4255 (handle_step_into_function_backwards): Delete unused variable.
4256 (_initialize_infrun): Delete unused variable.
4257 * stack.c (parse_frame_specification_1): Delete unused variable.
4258 (frame_info): Delete unused variable.
4259 (backtrace_command_1): Delete unused variable.
4260 (catch_info): Delete unused variable.
4262 * eval.c (evaluate_subexp_standard): Delete unused variable.
4263 * valops.c (value_cast_pointers): Delete unused variable.
4264 (value_dynamic_cast): Delete unused variable.
4265 (value_array): Delete unused variable.
4266 (find_overload_match): Delete unused variable.
4267 * valarith.c (value_subscript): Delete unused variable.
4268 (value_binop): Delete unused variable.
4269 * valprint.c (_initialize_valprint): Delete unused variable.
4270 * printcmd.c (print_command_1): Delete unused variable.
4271 (address_info): Delete unused variable.
4272 (printf_command): Delete unused variable.
4274 * auxv.c (target_auxv_search): Delete unused variable.
4275 * blockframe.c (get_frame_block): Delete unused variable.
4276 * regcache.c (regcache_cpy): Delete unused variable.
4277 (regcache_cpy_no_passthrough): Delete unused variable.
4278 * charset.c (wchar_iterate): Delete unused variable.
4279 (find_charset_names): Delete unused variable.
4280 (_initialize_charset): Delete unused variable.
4281 * disasm.c (do_mixed_source_and_assembly):
4282 Delete unused variable.
4283 * source.c (set_default_source_symtab_and_line):
4284 Delete unused variable.
4285 (set_substitute_path_command): Delete unused variable.
4286 * value.c (preserve_values): Delete unused variable.
4287 (value_from_double): Delete unused variable.
4289 2010-05-05 Michael Snyder <msnyder@vmware.com>
4291 * psymtab.c (lookup_partial_symbol): Delete unused variable.
4292 (find_last_source_symtab_from_partial): Delete unused variable.
4293 * symfile.c (place_section): Delete unused variable.
4294 (default_symfile_offsets): Delete unused variable.
4295 (get_debug_link_info): Delete unused variable.
4296 (find_separate_debug_file_by_debuglink): Delete unused variable.
4297 (add_symbol_file_command): Delete unused variable.
4298 (symfile_find_segment_sections): Delete unused variable.
4299 * symmisc.c (free_symtab): Delete unused variable.
4300 (dump_symtab_1): Delete unused variable.
4301 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
4302 (find_pc_sect_symtab): Delete unused variable.
4303 (skip_prologue_using_lineinfo): Delete unused variable.
4304 (sources_info): Delete unused variable.
4305 (completion_list_add_name): Delete unused variable.
4306 (expand_line_sal): Delete unused variable.
4308 * breakpoint.c (validate_commands_for_breakpoint):
4309 Delete unused variables.
4310 (insert_catchpoint): Delete unused variable.
4311 (update_watchpoint): Delete unused variable.
4312 (insert_bp_location): Delete unused variable.
4313 (insert_breakpoint_locations): Delete unused variable.
4314 (remove_breakpoint_1): Delete unused variable.
4315 (software_breakpoint_inserted_here_p): Delete unused variable.
4316 (watchpoints_triggered): Delete unused variable.
4317 (bpstat_check_watchpoint): Delete unused variable.
4318 (bpstat_stop_status): Delete unused variable.
4319 (print_one_breakpoint_location): Delete unused variable.
4320 (allocate_bp_location): Delete unused variable.
4321 (create_breakpoint): Delete unused variable.
4322 (watch_command_1): Delete unused variable.
4323 (catch_exception_command_1): Delete unused variable.
4324 (catch_ada_exception_command): Delete unused variable.
4325 (delete_breakpoint): Delete unused variable.
4326 (breakpoint_re_set_one): Delete unused variable.
4327 (do_enable_breakpoint): Delete unused variable.
4329 2010-05-06 Pedro Alves <pedro@codesourcery.com>
4331 * amd64-tdep.c: Include disasm.h.
4332 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
4333 (amd64_insn_length): Moved to disasm.c and renamed.
4334 (fixup_riprel): Adjust.
4335 * disasm.c (do_ui_file_delete): New.
4336 (gdb_insn_length): New.
4337 (gdb_buffered_insn_length_fprintf)
4338 (gdb_buffered_insn_length_init_dis)
4339 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
4341 * disasm.h (gdb_insn_length): Declare.
4342 (gdb_buffered_insn_length): Declare.
4344 2010-05-06 Pedro Alves <pedro@codesourcery.com>
4346 * remote.c (clear_threads_parsing_context): New.
4347 (remote_threads_info): Delete unused null_cleanup. Install a
4348 cleanup to clear the threads_parsing_context in case parsing
4351 2010-05-05 Michael Snyder <msnyder@vmware.com>
4353 * c-exp.y (parse_string_or_char): Delete unused variable.
4354 (c_lex): Delete unused variable.
4355 * cp-name-parser.y (cpname_lex): Delete unused variable.
4356 * ada-exp.y (find_primitive_type): Delete unused variable.
4357 (write_var_or_type): Delete unused variable.
4358 * jv-exp.y (java_parse): Delete unused variable.
4359 (push_expression_name): Delete unused variable.
4360 * p-exp.y (pascal_lex): Delete unused variable.
4362 2010-05-05 Pedro Alves <pedro@codesourcery.com>
4364 * remote.c (remote_threads_info): Really revert previous previous
4367 2010-05-05 Michael Snyder <msnyder@vmware.com>
4369 * elfread.c (elf_symtab_read): Delete unused variable.
4370 (find_separate_debug_file_by_buildid): Delete unused variables.
4371 (elf_symfile_read): Delete unused variable.
4373 * coffread.c (coff_symfile_read): Delete unused variables.
4375 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
4376 (read_pe_exported_syms): Delete unused variable.
4378 * stabsread.c (define_symbol): Delete unused variable.
4380 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
4381 (process_psymtab_comp_unit): Delete unused variable.
4382 (dwarf2_build_psymtabs_hard): Delete unused variable.
4383 (load_partial_comp_unit): Delete unused variable.
4384 (create_all_comp_units): Delete unused variable.
4385 (scan_partial_symbols): Delete unused variable.
4386 (add_partial_symbol): Delete unused variable.
4387 (add_partial_namespace): Delete unused variable.
4388 (add_partial_enumeration): Delete unused variable.
4389 (load_full_comp_unit): Delete unused variable.
4390 (process_full_comp_unit): Delete unused variable.
4391 (read_file_scope): Delete unused variable.
4392 (read_type_unit_scope): Delete unused variable.
4393 (process_structure_scope): Delete unused variable.
4394 (process_enumeration_scope): Delete unused variable.
4395 (read_tag_ptr_to_member_type): Delete unused variable.
4396 (read_typedef): Delete unused variable.
4397 (read_partial_die): Delete unused variable.
4398 (decode_locdesc): Delete unused variable.
4399 (zeroed_partial_die): Delete unused global variable.
4401 * tui/tui-interp.c (_initialize_tui_interp):
4402 Delete unused variable.
4403 * tui/tui-regs.c tui_display_registers_from):
4404 Delete unused variable.
4405 (tui_check_register_values): Delete unused variable.
4406 (tui_register_format): Delete unused variable.
4407 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
4408 * tui/tui-windata.c (tui_display_data_from_line):
4409 Delete unused variables.
4410 (tui_vertical_data_scroll): Delete unused variables.
4412 2010-05-05 Michael Snyder <msnyder@vmware.com>
4414 * remote.c (remote_threads_info): Revert questionable part of
4415 the previous change.
4417 2010-05-05 Michael Snyder <msnyder@vmware.com>
4419 * mi/mi-out.c (mi_table_begin): Delete unused variable.
4420 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
4421 (mi_cmd_var_list_children): Delete unused variable.
4422 (varobj_update_one): Delete unused variable.
4423 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
4424 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
4425 Delete unused variable.
4426 (mi_cmd_stack_list_variables): Delete unused variable.
4427 (list_args_or_locals): Delete unused variable.
4428 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
4429 Delete unused variables.
4430 (mi_cmd_file_list_exec_source_files): Delete unused variable.
4431 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
4432 Delete unused variable.
4433 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
4434 (mi_cmd_interpreter_exec): Delete unused variable.
4435 (mi_on_normal_stop): Delete unused variable.
4436 * mi/mi-main.c (run_one_inferior): Delete unused variable.
4437 (print_one_inferior): Delete unused variables.
4438 (mi_execute_command): Delete unused variable.
4439 (mi_cmd_execute): Delete unused variable.
4440 (timestamp): Delete unused variable.
4442 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
4443 (restore_binary_file): Delete unused variable.
4444 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
4445 * cli/cli-script.c (define_command): Delete unused variables.
4446 (recurse_read_control_structure): Delete unused variable.
4447 (script_from_file): Delete unused variable.
4448 * cli/cli-cmds.c (complete_command): Delete unused variable.
4449 (disassemble_command): Delete unused variable.
4451 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
4452 * tracepoint.c (delete_trace_variable_command):
4453 Delete unused variables.
4454 (encode_actions_1): Delete unused variables.
4455 (start_tracing): Delete unused variable.
4456 (trace_status_mi): Delete unused variable.
4457 (tfind_1): Delete unused variable.
4458 (trace_find_pc_command): Delete unused variable.
4459 (trace_find_line_command): Delete unused variables.
4460 (trace_find_range_command): Delete unused variables.
4461 (trace_find_outside_command): Delete unused variables.
4462 (parse_tracepoint_definition): Delete unused variables.
4463 (tfile_fetch_registers): Delete unused variable.
4465 * dcache.c (dcache_init): Delete unused variable.
4466 (dcache_info): Delete unused variable.
4468 * remote.c (remote_threads_info): Delete unused variable.
4469 (process_stop_reply) :Delete unused variable.
4470 (remote_get_trace_status): Delete unused variables.
4472 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
4473 (thread_from_lwp): Delete unused variable.
4474 (enable_thread_event_reporting): Delete unused variable.
4475 (check_for_thread_db): Delete unused variables.
4476 (thread_db_find_new_threads_2): Delete unused variable.
4478 * linux-fork.c (info_checkpoints_command): Delete unused variables.
4479 (checkpoint_command): Delete unused variable.
4480 (linux_fork_context): Delete unused variables.
4482 * linux-nat.c (linux_parent_pid): Delete unused global variable.
4483 (linux_tracefork_child): Delete unused variable.
4484 (linux_child_follow_fork): Delete unused variable.
4485 (linux_nat_detach): Delete unused variable.
4486 (linux_handle_extended_wait): Delete unused variable.
4487 (linux_nat_has_pending_sigint): Delete unused variable.
4488 (linux_nat_find_memory_regions): Delete unused variable.
4489 (linux_nat_make_corefile_notes): Delete unused variables.
4490 (linux_nat_info_proc_cmd): Delete unused variable.
4491 (linux_proc_pending_signals): Delete unused variable.
4492 (linux_nat_stop_lwp): Delete unused variables.
4493 (_initialize_linux_nat): Delete unused variable.
4495 * ser-pipe.c (pipe_ops): Delete unused global variable.
4497 * linux-record.c (record_linux_system_call):
4498 Delete unused variables.
4500 * corelow.c (core_xfer_partial): Delete unused variables.
4502 * solib-svr4.c (find_program_interpreter): Delete unused variable.
4503 (svr4_solib_create_inferior_hook): Add ifdef around
4504 conditionally-used variable declarations.
4506 * solib.c (solib_find): Delete unused variable.
4507 (free_so_symbols): Delete unused variable.
4508 (info_sharedlibrary_command): Delete unused variable.
4509 (reload_shared_libraries_1): Delete unused variable.
4510 (_initialize_solib): Delete unused variable.
4512 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
4513 (i386_collect_xstateregset): Delete unused variable.
4514 * i387-tdep.c (i387_print_float_info): Delete unused variable.
4516 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
4517 Delete unused variable 'type'.
4519 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4521 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
4522 ada-lang.c: Remove comment mentioning these macros.
4523 * m2-exp.y: Delete commented out code.
4525 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4527 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
4529 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
4531 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4533 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
4534 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
4536 (cleanup_kernel_helper_return): Likewise.
4537 * arm-tdep.c (copy_unmodified): Likewise.
4538 (copy_preload): Likewise.
4539 (copy_copro_load_store): Likewise.
4540 (cleanup_branch): Likewise.
4541 (copy_b_bl_blx): Likewise.
4542 (copy_bx_blx_reg): Likewise.
4543 (copy_alu_imm): Likewise.
4544 (copy_alu_reg): Likewise.
4545 (copy_alu_shifted_reg): Likewise.
4546 (cleanup_load): Likewise.
4547 (cleanup_store): Likewise.
4548 (cleanup_block_load_pc): Likewise.
4549 (cleanup_svc): Likewise.
4550 (copy_undef): Likewise.
4551 (copy_unpred): Likewise.
4552 * remote.c (register_remote_support_xml): Likewise.
4554 2010-05-05 Hui Zhu <teawater@gmail.com>
4556 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
4558 2010-05-04 Mark Kettenis <kettenis@gnu.org>
4560 * remote.c (register_remote_support_xml)
4561 (remote_query_supported_append, remote_query_supported): Add cast
4562 to NULL used as sentinel.
4563 * tracepoint.c (tvariables_info_1): Likewise.
4564 * utils.c (add_internal_problem_command): Likewise.
4566 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4568 * dwarf2loc.c (read_pieced_value, write_pieced_value,
4569 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
4570 registers gracefully.
4572 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4574 * exec.c (print_section_info): Display entry point without arch
4577 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4580 * printcmd.c (x_command): Only dereference once implicitly for
4583 2010-05-03 Doug Evans <dje@google.com>
4585 * event-loop.c (gdb_timer): Delete unused global.
4586 (create_timer): Update.
4588 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4590 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
4591 CURRENT->DECLARATION case.
4592 * cp-support.h (struct using_direct): Provide extended comment.
4594 2010-05-03 Mark Kettenis <kettenis@gnu.org>
4596 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
4597 HPPABSD_SIZEOF_GREGS.
4598 (HPPAOBSD_SIZEOF_FPREGS): New define.
4599 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
4600 (hppaobsd_supply_fpregset): New function.
4601 (hppaobsd_gregset): Renamed from hppabsd_gregset.
4602 (hppaobsd_fpregset): New variable.
4603 (hppaobsd_regset_from_core_section): Handle floating-point registers.
4604 (_initialize_hppabsd_tdep): Remove spurious blank line.
4606 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4609 * p-valprint.c (pascal_value_print): Always dereference a value with
4610 type code TYPE_CODE_REF.
4612 2010-05-03 Pedro Alves <pedro@codesourcery.com>
4614 * remote.c (remote_notice_signals): New.
4615 (remote_start_remote): In non-stop mode, update the remote end on
4616 which signals it can silently pass.
4617 (init_remote_ops): Install remote_notice_signals.
4619 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4621 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
4622 * command.h (error_no_arg): ... here. Remove NORETURN, change
4623 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4624 * defs.h (NORETURN, ATTR_NORETURN): Remove.
4625 (perror_with_name, verror, error, error_stream, vfatal, fatal)
4626 (internal_verror, internal_error, nomem): Remove NORETURN, change
4627 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4628 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
4629 (throw_vfatal, throw_error): Remove NORETURN.
4630 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
4631 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
4632 (throw_error, deprecated_throw_reason): Remove NORETURN, change
4633 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4634 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
4635 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
4637 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
4638 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
4640 * target.c (tcomplain): Likewise.
4641 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
4643 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
4644 (internal_error, perror_with_name, nomem): Remove NORETURN.
4645 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
4648 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4650 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4651 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
4652 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
4653 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4654 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
4655 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4656 * complaints.h (complaint, internal_complaint): Likewise.
4657 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
4658 (ATTR_FORMAT): Remove.
4659 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
4660 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
4661 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
4662 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
4663 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
4664 (internal_error, internal_vwarning, internal_warning, warning)
4665 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4666 * disasm.c (fprintf_disasm): Likewise.
4667 * exceptions.c (throw_it): Likewise.
4668 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
4669 (throw_error): Likewise.
4670 * language.h (type_error, range_error): Likewise.
4671 * linespec.c (cplusplus_error): Likewise.
4672 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
4673 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
4674 * monitor.c (monitor_debug): Likewise.
4675 * parser-defs.h (parser_fprintf): Likewise.
4676 * serial.h (serial_printf): Likewise.
4677 * tui/tui-hooks.c (tui_query_hook): Likewise.
4678 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
4679 (uo_message): Likewise.
4680 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
4681 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
4683 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
4685 2010-05-02 Pedro Alves <pedro@codesourcery.com>
4687 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
4688 (cli_table_header, cli_begin, cli_end, cli_field_int)
4689 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
4690 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
4691 Delete forward declarations.
4692 (cli_ui_out_impl): Move below the callbacks.
4693 (_initialize_cli_out): Delete.
4695 2010-05-02 Pedro Alves <pedro@codesourcery.com>
4697 * README: Use consistent `GDB' and `GDBserver' spellings.
4699 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4701 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
4703 2010-05-01 Pedro Alves <pedro@codesourcery.com>
4705 * infrun.c (prepare_for_detach): In non-stop, context switch to
4706 the thread that got the event before handling the event.
4708 2010-04-30 Tom Tromey <tromey@redhat.com>
4710 * symtab.c (symbol_set_names): Fix typo.
4712 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4714 * python/py-param.c (parm_constants): Avoid ARI warning
4715 by adding ARI comment.
4716 (parmpy_init): Likewise.
4718 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4720 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
4721 and created type for re-use.
4723 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4725 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
4727 2010-04-29 Doug Evans <dje@google.com>
4729 * ser-base.h (reschedule): Delete prototype.
4730 * ser-base.c (reschedule): Make static.
4732 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4734 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
4735 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
4736 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
4738 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
4741 2010-04-29 Pedro Alves <pedro@codesourcery.com>
4745 * regcache.c (registers_changed): Rename to ...
4746 (registers_changed_ptid): ... this, and only delete register cache
4747 entries matching the ptid filter argument.
4748 (registers_changed): Reimplement on top of registers_changed_ptid.
4749 * regcache.h (registers_changed_ptid): Declare.
4750 * target.c (target_resume): Flush register caches.
4752 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
4753 Tom Tromey <tromey@redhat.com>
4754 Thiago Jung Bauermann <bauerman@br.ibm.com>
4756 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
4757 (SUBDIR_PYTHON_SRCS): Likewise.
4758 (py-parameter.o): New rule.
4759 * python/py-parameter.c: New file.
4760 * python/python-internal.h (gdbpy_initialize_parameter)
4761 (gdbpy_parameter, gdbpy_parameter_value)
4762 (gdbpy_parse_command_name): Declare.
4763 * python/py-cmd.c (parse_command_name): Rename to
4764 gdbpy_parse_command_name.
4765 (gdbpy_parse_command_name): Accept a starting list parameter and
4767 (cmdpy_init): Use gdbpy_parse_command_name.
4768 * python/python.c (parameter_to_python): Rename to
4769 gdbpy_parameter_to_python. Accept enum var_types and value.
4770 (gdbpy_parameter): Use gdbpy_parameter_value.
4771 (_initialize_python): Call gdbpy_initialize_parameters.
4773 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4775 * MAINTAINERS: Add myself for write after approval privileges.
4777 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
4780 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
4781 (COMMON_OBS): Add d-lang.o d-valprint.o.
4782 (HFILES_NO_SRCDIR): Add d-lang.h.
4783 * NEWS: Mention D language support.
4784 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
4785 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
4786 * d-lang.c: New file.
4787 * d-lang.h: New file.
4788 * d-valprint.c: New file.
4789 * defs.h (enum language): Add language_d.
4790 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
4791 * language.c (binop_result_type, integral_type, character_type)
4792 (string_type, boolean_type, structured_type): Add language_d.
4793 * symfile.c (init_filename_language_table): Add language_d.
4794 * symtab.c: Include d-lang.h.
4795 (symbol_init_language_specific, symbol_find_demangled_name)
4796 (symbol_natural_name, lookup_symbol_in_language)
4797 (symbol_demangled_name, symbol_matches_domain): Add language_d.
4799 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4801 * solib-svr4.c (solib_svr4_r_map): Expand function description.
4803 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4805 * symfile.c (init_filename_language_table): Register .dg files
4808 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4810 * gdbtypes.h (struct main_type): Expand comment about target_type
4813 2010-04-27 Pedro Alves <pedro@codesourcery.com>
4814 Tristan Gingold <gingold@adacore.com>
4816 * symfile.c (reread_symbols): Also search for file in libraries.
4819 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4821 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
4822 in terms of configuration.
4824 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4826 * objfiles.c: Include solist.h.
4827 (free_all_objfiles): New variable so. Check stale solist objfiles.
4828 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
4829 and no_shared_libraries.
4831 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4834 * python/py-auto-load.c (source_section_scripts): Remove trailing
4835 new-line in i18n string.
4837 2010-04-26 Doug Evans <dje@google.com>
4839 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
4841 2010-04-26 Tom Tromey <tromey@redhat.com>
4843 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
4846 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4848 Removal of config/i386/nm-i386sol2.h native configuration file.
4849 * config/i386/nm-i386sol2.h: Remove file.
4850 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
4851 * config/i386/sol2-64.mh: Idem.
4852 * config/djgpp/fnchange.lst: Remove reference to that file.
4853 * Makefile.in (HFILES_NO_SRCDIR): Idem.
4855 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4857 PR breakpoints/11531.
4858 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
4859 macro definition and related comment.
4860 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
4861 (resume): Remove code and comment related to this macro.
4863 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4865 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
4868 2010-04-24 Pedro Alves <pedro@codesourcery.com>
4870 * defs.h: Adjust comment.
4871 * filesystem.h, filesystem.c: New files.
4872 * Makefile.in (SFILES): Add filesystem.c.
4873 (COMMON_OBS): Add filesystem.o.
4874 * solib.c (solib_find): Handle DOS-based filesystems. Handle
4875 different target and host path flavours.
4876 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4877 has_dos_based_file_system on the gdbarch.
4878 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
4879 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
4880 * i386-tdep.c (i386_go32_init_abi): Ditto.
4881 * gdbarch.sh (has_dos_based_file_system): New.
4882 * gdbarch.h, gdbarch.c: Regenerate.
4883 * NEWS: Mention improved support for remote targets with DOS-based
4884 filesystems. Mention new `set/show target-file-system-kind'
4887 2010-04-23 Stan Shebs <stan@codesourcery.com>
4889 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
4891 (struct agent_reqs): Remove.
4892 (ax_reg_mask): Declare.
4893 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
4894 (free_agent_expr): Free reg_mask.
4895 (ax_print): Add scope and register mask info.
4896 (ax_reqs): Remove agent_reqs argument, use agent expression
4897 fields, and move part of register mask computation to...
4898 (ax_reg_mask): New function.
4899 * ax-gdb.c (gen_trace_static_fields): Call it.
4900 (gen_traced_pop): Ditto.
4901 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
4902 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
4903 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
4904 (gen_eval_for_expr): Ditto, and require an rvalue.
4905 (agent_command): Call ax_reqs.
4906 (agent_eval_command): Ditto.
4907 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
4908 (validate_action_line): Ditto.
4909 (collect_symbol): Ditto.
4910 (encode_actions_1): Ditto.
4912 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
4913 Paul Pluzhnikov <ppluzhnikov@google.com>
4914 Jan Kratochvil <jan.kratochvil@redhat.com>
4916 Fix deadlock on looped list of loaded shared objects.
4917 * solib-svr4.c (LM_PREV): New function.
4918 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
4919 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
4920 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
4921 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
4923 2010-04-23 Doug Evans <dje@google.com>
4925 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
4927 * configure: Regenerate.
4928 * main.c: #include "python/python.h".
4929 (captured_main): Defer loading auto-loaded scripts until after
4930 local_gdbinit has been sourced.
4931 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
4932 (load_auto_scripts_for_objfile): New function.
4933 (auto_load_new_objfile): Call it.
4934 * python/python.h (gdbpy_global_auto_load): Declare.
4935 (load_auto_scripts_for_objfile): Declare.
4937 Add support for auto-loading scripts from .debug_gdb_scripts section.
4938 * NEWS: Add entry for .debug_gdb_scripts.
4939 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
4940 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
4941 (py-auto-load.o): New rule.
4942 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
4943 * cli/cli-cmds.h (find_and_open_script): Update prototype.
4944 * python/py-auto-load.c: New file.
4945 * python/python-internal.h: #include <stdio.h>.
4946 (set_python_list, show_python_list): Declare.
4947 (gdbpy_initialize_auto_load): Declare.
4948 (source_python_script_for_objfile): Declare.
4949 * python/python.c: Remove #include of observer.h.
4950 (gdbpy_auto_load): Moved to py-auto-load.c.
4951 (GDBPY_AUTO_FILENAME): Ditto.
4952 (gdbpy_new_objfile): Delete.
4953 (source_python_script_for_objfile): New function.
4954 (set_python_list, show_python_list): Make externally visible.
4955 (_initialize_python): Move "auto-load" command to py-auto-load.c
4956 and observer_attach_new_objfile to py-auto-load.c.
4958 2010-04-23 Jerome Guitton <guitton@adacore.com>
4960 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
4961 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
4962 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
4964 (alpha_heuristic_analyze_probing_loop): New function.
4965 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
4966 and handle cases when a stack probe loop is generated.
4967 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
4968 (alpha_mdebug_max_frame_size_exceeded): New function.
4969 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
4970 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
4971 Return 0 when the maximum debuggable frame size has been exceeded.
4973 2010-04-23 Joel Brobecker <brobecker@adacore.com>
4976 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
4978 2010-04-20 Chris Moller <cmoller@redhat.com>
4982 * symtab.c (rbreak_command): Added code to include a filename
4983 specification in the rbreak argument.
4984 * NEWS: Added a brief description of filename-qualified rbreak.
4986 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4988 Fix crashes on dangling display expressions.
4989 * ada-lang.c (ada_operator_check): New function.
4990 (ada_exp_descriptor): Fill-in the field operator_check.
4991 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
4992 * jv-lang.c (exp_descriptor_java): Likewise.
4993 * m2-lang.c (exp_descriptor_modula2): Likewise.
4994 * scm-lang.c (exp_descriptor_scm): Likewise.
4995 * parse.c (exp_descriptor_standard): Likewise.
4996 (operator_check_standard): New function.
4997 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
4998 * parser-defs.h (struct exp_descriptor): New field operator_check.
4999 (operator_check_standard, exp_uses_objfile): New declarations.
5000 * printcmd.c: Remove the inclusion of solib.h.
5001 (display_uses_solib_p): Remove the function.
5002 (clear_dangling_display_expressions): Call lookup_objfile_from_block
5003 and exp_uses_objfile instead of display_uses_solib_p.
5004 * solist.h (struct so_list) <objfile>: New comment.
5005 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
5006 * symtab.h (lookup_objfile_from_block): New declaration.
5007 (struct general_symbol_info) <obj_section>: Extend the comment.
5009 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5010 Thiago Jung Bauermann <bauerman@br.ibm.com>
5012 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
5013 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
5014 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
5015 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
5016 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
5017 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
5018 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
5019 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
5020 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
5021 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
5022 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
5023 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
5024 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
5025 Define, in case <ptrace.h> doesn't provide it.
5026 (booke_debug_info): New variable.
5027 (max_slots_number): Ditto.
5028 (hw_break_tuple): New struct.
5029 (thread_points): Ditto.
5030 (ppc_threads): New variable.
5031 (PPC_DEBUG_CURRENT_VERSION): New define.
5032 (have_ptrace_new_debug_booke): New function.
5033 (ppc_linux_check_watch_resources): Renamed to ...
5034 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
5035 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
5036 (booke_cmp_hw_point): New function.
5037 (booke_find_thread_points_by_tid): Ditto.
5038 (booke_insert_point): Ditto.
5039 (booke_remove_point): Ditto.
5040 (ppc_linux_insert_hw_breakpoint): Ditto.
5041 (ppc_linux_remove_hw_breakpoint): Ditto.
5042 (get_trigger_type): Ditto.
5043 (ppc_linux_insert_watchpoint): Handle BookE processors.
5044 (ppc_linux_remove_watchpoint): Ditto.
5045 (ppc_linux_new_thread): Ditto.
5046 (ppc_linux_thread_exit): New function..
5047 (ppc_linux_stopped_data_address): Handle BookE processors.
5048 (ppc_linux_watchpoint_addr_within_range): Ditto.
5049 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
5050 to_remove_hw_breakpoint fields of the target operations struct.
5051 Add observe for the thread_exit event.
5053 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5055 * i386-linux-nat.c (regmap): Removed.
5056 (fetch_register): Replace regmap with
5057 i386_linux_gregset_reg_offset.
5058 (store_register): Likewise.
5059 (supply_gregset): Likewise.
5060 (fill_gregset): Likewise.
5062 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
5065 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
5067 2010-04-22 Chris Moller <cmoller@redhat.com>
5069 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
5070 method of popping recursion-detection stack with a method based on
5071 obstack_object_size(). (Similar to the PR9167 patch below, but for
5072 the static array obstack rather than the static member obstack.)
5074 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5076 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
5077 (_initialize_amd64_linux_nat): Replace
5078 amd64_linux_gregset64_reg_offset with
5079 amd64_linux_gregset_reg_offset.
5081 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
5084 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
5086 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5089 * stabsread.c (set_length_in_type_chain): New function.
5090 (read_struct_type): Call set_length_in_type_chain function.
5091 (read_enum_type): Idem.
5093 2010-04-21 Stan Shebs <stan@codesourcery.com>
5094 Nathan Sidwell <nathan@codesourcery.com>
5096 * tracepoint.c (trace_save): Open in binary mode.
5098 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5100 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
5102 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
5103 builtin_char32 fields.
5104 * printcmd.c (decode_format): Set char size to '\0'
5105 for strings unless explicit size is given.
5106 (print_formatted): Correct calculation of NEXT_ADDRESS
5107 for 16 or 32 bit strings.
5108 (do_examine): Do not force byte size for strings.
5109 Use builtin_char16 and builtin_char32 types to display
5110 16 or 32 bit-wide strings.
5111 (x_command): Set LAST_SIZE to 'b' for string type.
5113 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
5116 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5119 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
5120 there is no .reg-xstate section.
5121 (i386_linux_core_read_description): Check XCR0 first.
5123 2010-04-21 Mike Frysinger <vapier@gentoo.org>
5125 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
5128 2010-04-21 Chris Moller <cmoller@redhat.com>
5131 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
5132 method of popping recursion-detection stack with a method based on
5133 obstack_object_size().
5135 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5138 * p-valprint.c (pascal_val_print): Fix default printing of integer
5141 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5143 Fix compilation warning on gcc-4.1.2.
5144 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
5145 local variable`pc' to zero.
5147 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5149 Implement thread support with core files on alpha-tru64.
5150 * dec-thread.c (dec_thread_find_new_threads): New function,
5151 extracted from resync_thread_list.
5152 (resync_thread_list): Add OPS parameter. Replace extracted-out
5153 code by call to dec_thread_find_new_threads.
5154 (dec_thread_wait): Update call to resync_thread_list.
5155 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
5157 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5159 * ada-lang.c (value_pointer): New function.
5160 (make_array_descriptor): Call value_pointer to convert addresses to
5163 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5165 * rs6000-aix-tdep.c: #include exceptions.h.
5166 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
5167 while reading the memory at ADDR, then ADDR cannot be a function
5170 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5172 * ada-typeprint.c (ada_print_typedef): New function.
5173 * ada-lang.h (ada_print_typedef): Add declaration.
5174 * ada-lang.c (ada_language_defn): set la_print_typdef field
5175 to ada_print_typedef.
5177 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5179 * procfs.c (procfs_address_to_host_pointer): Only define when used.
5181 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5183 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
5184 (iterate_over_mappings): Adjust function profile. Add declaration.
5185 (insert_dbx_link_bpt_in_region, info_mappings_callback):
5188 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5190 * procfs.c (solib_mappings_callback): Move function up to avoid
5193 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5195 * procfs.c (find_signalled_thread, find_stop_signal): Move
5196 these functions down to define them only when used.
5198 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5200 * valprint.c (common_val_print): Fix the value before extracting
5202 * ada-lang.c (ada_to_fixed_value): Make this function extern.
5203 * ada-lang.h (ada_to_fixed_value): New function declaration.
5204 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
5205 to avoid code duplication and fix a bug in the handling of
5206 fixed types contents.
5208 2010-04-20 Tom Tromey <tromey@redhat.com>
5210 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
5211 (read_partial_die): Likewise.
5212 (dwarf_attr_name): Likewise.
5214 2010-04-20 Chris Moller <cmoller@redhat.com>
5218 * cp-valprint.c (global): Adding new static array recursion
5220 (cp_print_value_fields, cp_print_static_field): Added new static
5221 array recursion detection code.
5223 2010-04-20 Mark Kettenis <kettenis@gnu.org>
5225 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
5226 general-purpose register set should be 68 instead of 144.
5227 (i386_linux_sse_regset_sections): Likewise.
5228 (i386_linux_avx_regset_sections): Likewise.
5230 2010-04-20 Stan Shebs <stan@codesourcery.com>
5231 Nathan Sidwell <nathan@codesourcery.com>
5233 * dwarf2loc.c (struct axs_var_loc): New struct.
5234 (dwarf2_tracepoint_var_loc): New function.
5235 (dwarf2_tracepoint_var_access): New function.
5236 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
5238 (locexpr_describe_location_piece): New function.
5239 (locexpr_describe_location_1): New function.
5240 (locexpr_describe_location): Call it, update signature.
5241 (loclist_describe_location): Rewrite to loop over locations,
5243 * symtab.h (struct symbol_computed_ops): Add address to
5244 describe_location arguments, return void.
5245 * printcmd.c (address_info): Get context PC, pass to computed
5246 location description.
5247 * tracepoint.c (scope_info): Ditto.
5248 * ax-gdb.c (trace_kludge): Export.
5250 2010-04-20 Tom Tromey <tromey@redhat.com>
5252 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
5253 (struct dwarf2_cie) <segment_size>: New field.
5254 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
5255 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
5257 (read_attribute_value): Handle DW_FORM_flag_present,
5258 DW_FORM_sec_offset, DW_FORM_exprloc.
5259 (dump_die_shallow): Likewise.
5260 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
5261 (dwarf2_const_value): Handle DW_FORM_exprloc.
5262 (attr_form_is_block): Likewise.
5263 (struct line_header) <maximum_ops_per_instruction>: New field.
5264 (dwarf_decode_line_header): Set new field.
5265 (dwarf_decode_lines): Handle new field.
5267 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5269 * f-exp.y: Add new production to recognize the `logical*8' type.
5270 (LOGICAL_S8_KEYWORD): New token.
5271 * f-lang.c (enum f_primitive_types)
5272 <f_primitive_type_logical_s8>: New field.
5273 (f_language_arch_info): Handling `logical*8' type.
5274 (build_fortran_types): Building `logical*8' type.
5275 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
5277 2010-04-19 Doug Evans <dje@google.com>
5279 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
5280 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
5281 (pipe_close): Ditto.
5283 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5285 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
5287 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5289 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
5290 type to void function.
5292 2010-04-19 Stan Shebs <stan@codesourcery.com>
5293 Vladimir Prus <vladimir@codesourcery.com>
5295 * tracepoint.c (tfind_1): Add missing newline, report exit from
5297 * target.c (update_current_target): Make default
5298 to_trace_find return -1.
5300 2010-04-19 Mike Frysinger <vapier@gentoo.org>
5302 * objc-lang.c (find_methods): Move symname check up.
5304 2010-04-19 Pedro Alves <pedro@codesourcery.com>
5306 * ada-lang.c (print_recreate_exception)
5307 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
5308 not "catch unhandled".
5310 2010-04-19 Pedro Alves <pedro@codesourcery.com>
5312 PR breakpoints/8554.
5314 Implement `save-breakpoints'.
5316 * breakpoint.c (save_cmdlist): New.
5317 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
5319 (print_recreate_catch_fork): New.
5320 (catch_fork_breakpoint_ops): Install it.
5321 (print_recreate_catch_vfork): New.
5322 (catch_vfork_breakpoint_ops): Install it.
5323 (print_recreate_catch_syscall): New.
5324 (catch_syscall_breakpoint_ops): Install it.
5325 (print_recreate_catch_exec): New.
5326 (catch_exec_breakpoint_ops): Install it.
5327 (print_recreate_exception_catchpoint): New.
5328 (gnu_v3_exception_catchpoint_ops): Install it.
5329 (save_breakpoints): New, based on tracepoint_save_command, but
5330 handle all breakpoint types.
5331 (save_breakpoints_command): New.
5332 (tracepoint_save_command): Rename to...
5333 (save_tracepoints_command): ... this, and reimplement using
5335 (save_command): New.
5336 (_initialize_breakpoints): Install the "save" command prefix.
5337 Install the "save breakpoints" command. Make "save-tracepoints" a
5338 deprecated alias for "save tracepoints".
5339 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
5340 * ada-lang.c (print_recreate_exception): New.
5341 (print_recreate_catch_exception): New.
5342 (catch_exception_breakpoint_ops): Install it.
5343 (print_recreate_catch_exception_unhandled): New.
5344 (catch_exception_unhandled_breakpoint_ops): Install it.
5345 (print_recreate_catch_assert): New.
5346 (catch_assert_breakpoint_ops): Install it.
5348 * NEWS: Mention the new `save breakpoints' command. Mention the
5349 new `save tracepoints' alias and that `save-tracepoints' is now
5352 2010-04-18 Pedro Alves <pedro@codesourcery.com>
5356 * tui/tui-out.c: Include cli-out.h.
5357 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5358 (tui_begin, tui_end, tui_field_int, tui_field_skip)
5359 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
5360 (tui_message, tui_wrap_hint, tui_flush): Delete forward
5362 (struct ui_out_data): Rename to...
5363 (struct tui_ui_out_data): ... this. Remove `stream' and
5364 `suppress_output' fields, and inherit cli_ui_out_data.
5365 (tui_out_data): New typedef.
5366 (tui_ui_out_impl): Don't initialize fields staticaly.
5367 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5368 (tui_begin, tui_end): Delete.
5369 (tui_field_int): Adjust to delegate most work to the base type.
5370 (tui_field_skip): Delete.
5371 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
5372 delegate most work to the base type.
5373 (tui_spaces): Delete.
5374 (tui_text): Adjust to delegate most work to the base type.
5375 (tui_message): Delete.
5376 (tui_wrap_hint): Delete.
5377 (tui_flush): Delete.
5378 (out_field_fmt): Delete.
5379 (field_separator): Delete.
5380 (tui_out_new): Adjust to initialize the base type.
5381 (_initialize_tui_out): Initialize tui_ui_out_impl.
5382 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
5384 (cli_out_data): Adjust.
5385 (cli_ui_out_impl): Make extern.
5386 (cli_table_header, cli_field_int, cli_field_skip): Use
5387 uo_field_string instead of cli_field_string.
5388 (cli_redirect): Adjust to use cli_out_data.
5389 (cli_out_data_ctor): New.
5390 (cli_out_new): Use it.
5391 * cli-out.h (struct ui_file): Remove forward declaration.
5392 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
5393 (cli_ui_out_impl): Declare.
5394 (cli_out_data_ctor): Declare.
5395 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
5396 (uo_field_string): No longer static.
5397 (ui_out_data): Change return type to void pointer.
5398 (ui_out_new): Change `data' parameter type to void pointer.
5399 * ui-out.h (struct ui_out_data): Don't forward declare.
5400 (ui_out_data): Change return type to void pointer.
5401 (ui_out_new): Change `data' parameter type to void pointer.
5402 (uo_field_string): Declare.
5404 2010-04-17 Pedro Alves <pedro@codesourcery.com>
5406 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
5407 instead of always false.
5409 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
5412 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
5415 2010-04-17 Pedro Alves <pedro@codesourcery.com>
5417 * breakpoint.c (watchpoints_triggered): Use
5418 is_hardware_watchpoint.
5419 (watchpoints_triggered): Ditto.
5420 (bpstat_check_location): Use is_watchpoint and
5421 is_hardware_watchpoint.
5422 (bpstat_check_watchpoint): Use is_watchpoint and
5423 is_hardware_watchpoint.
5424 (bpstat_stop_status): Fix comment.
5425 (user_settable_breakpoint): Use is_watchpoint.
5426 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
5427 (disable_watchpoints_before_interactive_call_start): Use
5429 (enable_watchpoints_after_interactive_call_stop): Use
5431 (clear_command): Use is_watchpoint.
5432 (do_enable_breakpoint): Use is_watchpoint.
5434 2010-04-16 Mike Frysinger <vapier@gentoo.org>
5436 * solib-frv.c (enable_break1_done): Delete.
5437 (enable_break2): Do not check enable_break1_done. Move the
5438 enable_break2_done setting and call to
5439 remove_solib_event_breakpoints() to the end. Return without
5440 warning when the contents of _dl_debug_addr are 0.
5441 (enable_break): Do not set enable_break1_done.
5442 (frv_clear_solib): Likewise.
5444 2010-04-16 Kevin Buettner <kevinb@redhat.com>
5446 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
5447 instead of an error if no PLT entry is found. Return a
5448 potentially useful result.
5449 (m32c_m16c_pointer_to_address): Add code to search for function
5450 address when no .plt entry is found.
5452 2010-04-16 Stan Shebs <stan@codesourcery.com>
5454 * tracepoint.c (trace_variable_command): Run a cleanup.
5456 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5458 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
5460 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5462 Support for Windows OS Thread Information Block.
5463 * NEWS: Document new feature.
5464 * remote.c (PACKET_qGetTIBAddr): New enum element.
5465 (remote_get_tib_address): New function.
5466 (init_remote_ops): Set to_get_tib_address field
5467 to remote_get_tib_address.
5468 (_initialize_remote): Add add_packet_config_cmd
5469 for PACKET_qGetTIBAddr.
5470 * target.c (update_current_target): Set default value for
5471 new to_get_tib_address field.
5472 * target.h (target_ops): New field to_get_tib_address.
5473 (target_get_tib_address): New macro.
5474 * windows-nat.c (thread_info): Add thread_local_base field.
5475 (windows_add_thread): Add tlb argument of type 'void *'.
5476 (fake_create_process): Adapt windows_add_thread call.
5477 (get_windows_debug_event): Idem.
5478 (windows_get_tib_address): New function.
5479 (init_windows_ops): Set to_get_tib_address field
5480 to remote_get_tib_address.
5481 (_initialize_windows_nat): Replace info_w32_cmdlist
5482 initialization by a call to init_w32_command_list.
5483 (info_w32_command, info_w32_cmdlist): Removed from here...
5484 to windows-tdep.c file.
5485 * windows-tdep.h (info_w32_cmdlist): Declare.
5486 (init_w32_command_list): New external function
5488 * windows-tdep.c: Add several headers.
5489 (info_w32_cmdlist): to here, made global.
5490 (thread_information_32): New struct.
5491 (thread_information_64): New struct.
5492 (TIB_NAME): New char array.
5493 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
5494 (maint_display_all_tib): New static variable.
5495 (windows_get_tlb_type): New function.
5496 (tlb_value_read, tlb_value_write): New functions.
5497 (tlb_value_funcs): New static struct.
5498 (tlb_make_value): New function.
5499 (display_one_tib): New function.
5500 (display_tib): New function.
5501 (show_maint_show_all_tib):New function.
5502 (info_w32_command): Moved from windows-nat.c.
5503 (init_w32_command_list): New function.
5504 (_initialize_windows_tdep): New function.
5505 New "maint set/show show-all-tib" command
5506 New "$_tlb" internal variable.
5508 2010-04-16 Joel Brobecker <brobecker@adacore.com>
5510 * tui/tui-regs.c (tui_display_register): Add comment about
5512 * tui/tui-stack.c (tui_show_locator_content): Ditto.
5514 2010-04-15 Stan Shebs <stan@codesourcery.com>
5516 * frame.c: Include tracepoint.h.
5517 (get_current_frame): Allow a trace frame to be an alternate source
5518 of stack frame data.
5519 * tracepoint.c (tfind_1): Don't try to get current stack frame if
5522 2010-04-15 Pedro Alves <pedro@codesourcery.com>
5524 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
5526 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
5528 2010-04-15 Doug Evans <dje@google.com>
5530 * NEWS: Add entry for python program space support.
5531 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
5532 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
5533 (py-progspace.o): New rule.
5534 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
5536 (find_pretty_printer_from_progspace): New function.
5537 (find_pretty_printer_from_gdb): New function.
5538 (find_pretty_printer): Rewrite.
5539 * python/py-progspace.c: New file.
5540 * python/python-internal.h (program_space): Add forward decl.
5541 (pspace_to_pspace_object, pspy_get_printers): Declare.
5542 (gdbpy_initialize_pspace): Declare.
5543 * python/python.c: #include "progspace.h".
5544 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
5545 (_initialize_python): Call gdbpy_initialize_pspace.
5546 (GdbMethods): Add current_progspace, progspaces.
5548 Add -s option to source command.
5549 * NEWS: Document new option.
5550 * cli/cli-cmds.c (find_and_open_script): Add function comment.
5551 Delete from_tty and cleanupp args. Split filep arg into file and
5552 full_pathp. New arg search_path.
5553 (source_script_from_stream): New function.
5554 (source_script_with_search): New function.
5555 (source_script): Rewrite.
5556 (source_command): Parse "-s" option.
5557 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
5558 * python/python.c (source_python_script): Make file arg a const char *.
5559 Don't call fclose, leave for caller.
5560 * python/python.h (source_python_script): Update.
5562 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5563 Pedro Alves <pedro@codesourcery.com>
5565 Avoid rereading shared libraries that haven't changed.
5567 * solib.c (free_so_symbols): New function, from ...
5568 (free_so): ... here. Call it.
5569 (solib_read_symbols): Don't warn here if symbols have already been
5571 (solib_add): Warn here instead, if a pattern was specified.
5572 (reload_shared_libraries_1): New.
5573 (reload_shared_libraries): Rewrite to not fetch the library list.
5575 2010-04-14 Doug Evans <dje@google.com>
5577 * source.c (openp): Strip DOS drive letter if present before
5578 concatenating string to search path.
5580 2010-04-14 Pedro Alves <pedro@codesourcery.com>
5582 * objfiles.h (gdb_bfd_close_or_warn): Declare.
5583 * objfiles.c (gdb_bfd_close_or_warn): New.
5584 * corelow.c: Include objfiles.h
5585 (core_close): Use gdb_bfd_close_or_warn.
5586 * elfread.c (build_id_verify): Ditto.
5587 * exec.c (exec_close, exec_close_1): Ditto.
5589 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5590 Pedro Alves <pedro@codesourcery.com>
5592 Group errors for many missing shared libraries.
5594 * solist.h (struct so_list): Remove from_tty.
5595 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
5596 (solib_map_sections): Take so_list argument. Return 0 if we
5597 failed to open a BFD. Add target sections here.
5598 (symbol_add_stub): Delete.
5599 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
5600 not from_tty copied from the so_list. Don't warn a second time
5601 for a missing library.
5602 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
5603 add to the section table here. Print out a single warning for all
5605 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
5608 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5610 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
5611 error/warning messages. Capitalize and use complete sentences.
5612 (blpy_block_syms_iternext): Likewise.
5613 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
5614 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
5615 (frame_info_to_frame_object, frapy_read_var)
5616 (gdbpy_frame_stop_reason_string): Likewise.
5617 * python/py-lazy-string.c (stpy_convert_to_value)
5618 (gdbpy_create_lazy_string_object): Likewise.
5619 * python/py-objfile.c (objfpy_set_printers): Likewise.
5620 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
5621 * python/python.c (parameter_to_python): Likewise.
5622 * python/py-type.c (typy_range, typy_target): Likewise.
5623 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
5624 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
5627 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5631 * python/py-prettyprint.c (pretty_print_one_value): Test for
5633 (print_string_repr): Test for Py_None. Set flags accordingly.
5634 Return value depending on return type.
5635 (print_children): Take a value indicating whether data was printed
5636 before this function was called. Alter output accordingly.
5637 (apply_val_pretty_printer): Capture return value from
5638 print_string_repr and pass to print_children.
5640 2010-04-13 Mark Kettenis <kettenis@gnu.org>
5643 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
5644 register note sections.
5645 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
5647 (i386_linux_init_abi): Install list of supported register note
5648 sections that matches the target description.
5650 2010-04-13 Pedro Alves <pedro@codesourcery.com>
5652 * remote.c (remote_get_noisy_reply): Don't error out on empty
5654 (remote_start_remote): Update and merge tracepoints and trace
5655 state variables as long as the target supports tracepoints.
5656 (remote_trace_init): Fix prototype.
5657 (remote_download_trace_state_variable): Validate reply.
5658 (remote_trace_set_readonly_regions): Fix prototype.
5659 (remote_trace_start): Fix prototype. Check for empty reply.
5660 (remote_get_trace_status): Small cleanup.
5661 (remote_trace_stop): Fix prototype. Check for empty reply.
5662 (remote_trace_find): Check for empty reply.
5663 (remote_save_trace_data): Validate reply.
5664 (remote_set_disconnected_tracing): Check for empty reply, and
5666 (remote_set_circular_trace_buffer): Ditto.
5668 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
5670 Suppress unused value warning during compilation.
5671 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
5673 * tui/tui-stack.c (tui_show_locator_content): Likewise.
5675 2010-04-12 Stan Shebs <stan@codesourcery.com>
5677 * tracepoint.c (tfile_xfer_partial): Check read result.
5679 2010-04-12 Mike Frysinger <vapier@gentoo.org>
5681 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
5682 * remote-sim.c (gdbsim_files_info): Likewise.
5684 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5686 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
5687 * arm-linux-nat.c (arm_linux_vfp_register_count): New
5689 (fetch_vfp_registers): New function to fetch VFP registers.
5690 (store_vfp_registers): New function to store VFP registers.
5691 (arm_linux_fetch_inferior_registers): Add support for VFP
5693 (arm_linux_store_inferior_registers): Likewise.
5694 (arm_linux_read_description): Likewise.
5695 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
5698 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
5700 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
5702 (amd64_collect_xstateregset): Likewise.
5704 2010-04-09 Stan Shebs <stan@codesourcery.com>
5706 * tracepoint.c (trace_status_mi): Report frames created.
5708 * tracepoint.c (trace_dump_command): Include default-collect
5711 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
5713 * symtab.c (find_function_start_sal): Never return SAL pointing
5714 before function start address, even if line info is missing.
5716 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5718 * NEWS: Mention tracepoints support.
5720 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5722 * tracepoint.c (trace_status_mi): Report disconnected tracing and
5723 circular trace buffer statuses.
5725 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5727 * config/djgpp/fnchange.lst: Fix typo in translations for
5728 symbol-without-target_section.exp and symbol-without-target_section.c.
5730 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5732 * breakpoint.c (condition_command): Pass condition expression to
5733 set_breakpoint_condition stripped from breakpoint number.
5735 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
5736 Thiago Jung Bauermann <bauerman@br.ibm.com>
5737 Tom Tromey <tromey@redhat.com>
5739 * breakpoint.c (condition_command): Simplify. Move condition
5741 (set_breakpoint_condition): ... here. New function.
5742 * breakpoint.h (set_breakpoint_condition): Declare.
5743 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
5744 (SUBDIR_PYTHON_SRCS): Likewise.
5745 (py-breakpoint.o): New rule.
5746 * python/py-breakpoint.c: New file.
5747 * python/python-internal.h (gdbpy_breakpoints)
5748 (gdbpy_initialize_breakpoints): Declare.
5749 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
5751 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5753 * regformats/regdat.sh: Include server.h. Don't include
5756 2010-04-08 Stan Shebs <stan@codesourcery.com>
5757 Pedro Alves <pedro@codesourcery.com>
5759 * tracepoint.h (struct trace_status): New fields disconnected_tracing
5760 and circular_buffer.
5761 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
5762 * tracepoint.c (trace_status_command): Display target's status for
5763 disconnected tracing and circular buffer.
5764 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
5765 query for non-disconnected-tracing case, remove the stop_tracing
5767 (tfile_open): Clear disconnected and circular buffer status.
5768 (trace_save): Save disconnected and circular buffer status.
5769 (parse_trace_status): Parse disconnected and circular buffer status,
5770 also recognize disconnected as a stop reason.
5771 * remote.c (remote_set_disconnected_tracing): Only set
5772 QTDisconnected if the remote end supports disconnected tracing.
5773 Warn otherwise, if trying to enable disconnected tracing.
5774 * infcmd.c (detach_command): Update disconnect_tracing call.
5775 * cli/cli-cmds.c (quit_command): Ditto.
5777 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5779 * i387-tdep.c (i387_collect_xsave): Replace abort with
5782 2010-04-08 Stan Shebs <stan@codesourcery.com>
5784 * breakpoint.c (default_collect_info): New function.
5785 (breakpoints_info): Call it.
5786 (maintenance_info_breakpoints): Ditto.
5787 (tracepoints_info): Ditto.
5789 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5791 * i387-tdep.c (i387_collect_xsave): Re-indent.
5793 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5795 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
5796 if HAVE_PTRACE_GETFPXREGS is defined.
5797 (i386_linux_read_description): Set have_ptrace_getfpxregs and
5798 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
5800 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
5801 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
5802 if .reg-xfp section doesn't exist.
5803 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
5805 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
5807 * i386-tdep.c: Include "features/i386/i386-mmx.c".
5808 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
5809 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
5810 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
5811 (i386_gdbarch_init): Update comments.
5812 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
5814 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
5816 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
5818 * features/Makefile (i386/i386-mmx-expedite): New.
5819 (i386/i386-mmx-linux-expedite): Likewise.
5820 ($(outdir)/i386/i386-mmx.dat): Likewise.
5821 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
5823 * features/i386/i386-mmx-linux.c: New.
5824 * features/i386/i386-mmx-linux.xml: Likewise.
5825 * features/i386/i386-mmx.c: Likewise.
5826 * features/i386/i386-mmx.xml: Likewise.
5827 * regformats/i386/i386-mmx-linux.dat: Likewise.
5828 * regformats/i386/i386-mmx.dat: Likewise.
5830 * features/Makefile (WHICH): Add i386/i386-mmx and
5831 i386/i386-mmx-linux.
5833 2010-04-08 Doug Evans <dje@google.com>
5835 * source.c (openp): Skip $cdir in PATH.
5837 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
5840 * python/py-lazy-string.c (stpy_convert_to_value): Check for
5842 (gdbpy_create_lazy_string_object): Allow strings with a NULL
5843 address and a zero length.
5845 2010-04-08 Hui Zhu <teawater@gmail.com>
5847 * i386-tdep.c (i386_process_record): Add support for insn
5850 2010-04-07 Doug Evans <dje@google.com>
5852 * python/python.c (source_python_script): Use ensure_python_env
5853 to prepare environment for script.
5855 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5857 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
5858 <sys/uio.h> and "i386-xstate.h".
5859 (PTRACE_GETREGSET): New.
5860 (PTRACE_SETREGSET): Likewise.
5861 (have_ptrace_getregset): Likewise.
5862 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
5864 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
5866 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
5867 (amd64_linux_store_inferior_registers): Likewise.
5868 (amd64_linux_read_description): Check and enable AVX target
5871 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
5872 and "features/i386/amd64-avx-linux.c".
5873 (amd64_linux_regset_sections): New.
5874 (amd64_linux_core_read_description): Check and enable AVX
5876 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
5877 set_gdbarch_core_regset_sections.
5878 (_initialize_amd64_linux_tdep): Call
5879 initialize_tdesc_amd64_avx_linux.
5881 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
5882 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
5883 (tdesc_amd64_avx_linux): New.
5884 (amd64_linux_update_xstateregset): Likewise.
5886 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
5887 (amd64_ymm_names): New.
5888 (amd64_ymmh_names): Likewise.
5889 (amd64_register_name): Likewise.
5890 (amd64_supply_xstateregset): Likewise.
5891 (amd64_collect_xstateregset): Likewise.
5892 (amd64_supply_xsave): Likewise.
5893 (amd64_collect_xsave): Likewise.
5894 (AMD64_NUM_REGS): Removed.
5895 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
5896 %xmmN if AVX is available.
5897 (amd64_pseudo_register_name): Support pseudo YMM registers.
5898 (amd64_regset_from_core_section): Support .reg-xstate section.
5899 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
5900 and ymm0h_regnum. Call set_gdbarch_register_name.
5901 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
5903 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
5904 AMD64_YMM15H_REGNUM.
5905 (AMD64_NUM_REGS): New.
5906 (amd64_supply_xsave): Likewise.
5907 (amd64_collect_xsave): Likewise.
5908 (amd64_register_name): Removed.
5909 (amd64_register_type): Likewise.
5911 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5913 * i387-tdep.c: Include "i386-xstate.h".
5914 (XSAVE_XSTATE_BV_ADDR): New.
5915 (xsave_avxh_offset): Likewise.
5916 (XSAVE_AVXH_ADDR): Likewise.
5917 (i387_supply_xsave): Likewise.
5918 (i387_collect_xsave): Likewise.
5920 * i387-tdep.h (I387_NUM_YMM_REGS): New.
5921 (I387_YMM0H_REGNUM): Likewise.
5922 (I387_YMMENDH_REGNUM): Likewise.
5923 (i387_supply_xsave): Likewise.
5924 (i387_collect_xsave): Likewise.
5926 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5928 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
5929 <sys/uio.h> and "i386-xstate.h".
5930 (PTRACE_GETREGSET): New.
5931 (PTRACE_SETREGSET): Likewise.
5932 (fetch_xstateregs): Likewise.
5933 (store_xstateregs): Likewise.
5934 (GETXSTATEREGS_SUPPLIES): Likewise.
5935 (regmap): Include 8 upper YMM registers.
5936 (i386_linux_fetch_inferior_registers): Support XSAVE extended
5938 (i386_linux_store_inferior_registers): Likewise.
5939 (i386_linux_read_description): Check and enable AVX target
5942 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
5943 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
5944 (i386_linux_regset_sections): Add ".reg-xstate".
5945 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
5946 (i386_linux_core_read_xcr0): New.
5947 (i386_linux_core_read_description): Check and enable AVX target
5949 (i386_linux_init_abi): Set xsave_xcr0_offset.
5950 (_initialize_i386_linux_tdep): Call
5951 initialize_tdesc_i386_avx_linux.
5953 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
5954 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
5955 (i386_linux_core_read_xcr0): New.
5956 (tdesc_i386_avx_linux): Likewise.
5957 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
5959 * i386-tdep.c: Include "i386-xstate.h" and
5960 "features/i386/i386-avx.c".
5961 (i386_ymm_names): New.
5962 (i386_ymmh_names): Likewise.
5963 (i386_ymmh_regnum_p): Likewise.
5964 (i386_ymm_regnum_p): Likewise.
5965 (i386_xmm_regnum_p): Likewise.
5966 (i386_register_name): Likewise.
5967 (i386_ymm_type): Likewise.
5968 (i386_supply_xstateregset): Likewise.
5969 (i386_collect_xstateregset): Likewise.
5970 (i386_sse_regnum_p): Removed.
5971 (i386_pseudo_register_name): Support pseudo YMM registers.
5972 (i386_pseudo_register_type): Likewise.
5973 (i386_pseudo_register_read): Likewise.
5974 (i386_pseudo_register_write): Likewise.
5975 (i386_dbx_reg_to_regnum): Return %ymmN register number for
5976 %xmmN if AVX is available.
5977 (i386_regset_from_core_section): Support .reg-xstate section.
5978 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
5979 (i386_process_record): Replace i386_sse_regnum_p with
5981 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
5982 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
5983 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
5984 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
5985 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
5986 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
5988 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
5990 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
5991 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
5993 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
5994 (I386_AVX_NUM_REGS): New.
5995 (i386_xmm_regnum_p): Likewise.
5996 (i386_ymm_regnum_p): Likewise.
5997 (i386_ymmh_regnum_p): Likewise.
5999 * common/i386-xstate.h: New.
6001 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6003 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
6005 * features/Makefile (WHICH): Add i386/i386-avx,
6006 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
6007 (i386/i386-avx-expedite): New.
6008 (i386/i386-avx-linux-expedite): Likewise.
6009 (i386/x86-64-avx-expedite):Likewise.
6010 (i386/x86-64-avx-linux-expedite): Likewise.
6011 ($(outdir)/i386/i386-avx.dat): New dependency.
6012 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
6013 ($(outdir)/i386/x86-avx-64.dat): Likewise.
6014 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
6016 * features/i386/32bit-avx.xml: New.
6017 * features/i386/64bit-avx.xml: Likewise.
6018 * features/i386/i386-avx-linux.c: Likewise.
6019 * features/i386/i386-avx-linux.xml: Likewise.
6020 * features/i386/i386-avx.c: Likewise.
6021 * features/i386/i386-avx.xml: Likewise.
6022 * features/i386/x86-64-avx-linux.c: Likewise.
6023 * features/i386/x86-64-avx-linux.xml: Likewise.
6024 * features/i386/x86-64-avx.c: Likewise.
6025 * features/i386/x86-64-avx.xml: Likewise.
6026 * regformats/i386/i386-avx-linux.dat: Likewise.
6027 * regformats/i386/i386-avx.dat: Likewise.
6028 * regformats/i386/x86-64-avx-linux.dat: Likewise.
6029 * regformats/i386/x86-64-avx.dat: Likewise.
6031 2010-04-07 Doug Evans <dje@google.com>
6033 * top.c (source_file_name): Make const char *.
6034 * top.h (source_file_name): Update.
6035 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
6037 (script_from_file): Change `file' arg to const char *.
6038 * cli/cli-script.h (script_from_file): Update.
6040 2010-04-06 Doug Evans <dje@google.com>
6042 * cli/cli-cmds.c (source_command): Run cleanups.
6044 2010-04-06 Stan Shebs <stan@codesourcery.com>
6046 * defs.h (char_ptr): Move typedef here from...
6047 * ada-lang.c (char_ptr): Remove.
6048 * charset.c (char_ptr): Remove.
6049 * tracepoint.h (struct uploaded_string): Remove.
6050 (struct uploaded_tp): Use vectors for string arrays.
6051 * tracepoint.c (trace_save): Use vectors of actions.
6052 (parse_tracepoint_definition): Ditto.
6053 (get_uploaded_tp): Clear vectors.
6054 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
6055 (next_cmd): Change to an int.
6056 (read_next_cmd): Use vector of command strings.
6058 2010-04-06 Doug Evans <dje@google.com>
6060 * top.h (source_script, cd_command): Delete.
6061 * main.c: #include "cli/cli-cmds.h"
6063 2010-04-06 Kevin Buettner <kevinb@redhat.com>
6065 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
6066 type in bytes, not bits.
6068 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6070 * stabsread.c (define_symbol): Add support for char
6071 and string constants.
6073 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6075 Remove remaining "%ll" uses.
6076 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
6078 * rs6000-nat.c (rs6000_ptrace64): Idem.
6079 * solib-pa64.c (pa64_current_sos): Idem.
6080 * solib-spu.c (spu_current_sos): Idem.
6081 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
6083 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
6085 * sh64-tdep.c (sh64_show_media_regs): Idem.
6087 2010-04-05 Stan Shebs <stan@codesourcery.com>
6089 * tracepoint.c: Include gdbcore.h.
6090 (tfile_xfer_partial): Return partial results, also try reading
6092 (tfile_has_all_memory): New function.
6093 (init_tfile_ops): Use it.
6095 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
6098 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
6099 the changes in data-directory.
6100 (init_sysinfo): Reload the syscall XML file if the data-directory
6103 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6106 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
6108 2010-04-04 Stan Shebs <stan@codesourcery.com>
6109 Nathan Sidwell <nathan@codesourcery.com>
6111 * breakpoint.c (breakpoint_1): Add filter argument, return number of
6112 breakpoints printed.
6113 (is_hardware_watchpoint): Make argument const.
6114 (is_watchpoint): Ditto.
6115 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
6117 (breakpoints_info): Pass NULL to breakpoint_1.
6118 (maintenance_info_breakpoints): Ditto.
6119 (watchpoints_info): New function.
6120 (tracepoints_info): Use breakpoint_1 filter.
6121 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
6122 (_initialize_breakpoint): Make "info watchpoints" its own command.
6123 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
6124 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
6126 2010-04-04 Stan Shebs <stan@codesourcery.com>
6128 * tracepoint.c (tfile_fetch_registers): Add fallback case.
6130 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6132 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
6133 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
6135 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6137 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
6138 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
6140 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6142 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
6145 2010-04-02 Hui Zhu <teawater@gmail.com>
6147 * i386-tdep.c (OT_DQUAD): New enum.
6148 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
6149 SSE3, SSSE3 and SSE4.
6151 2010-04-02 Hui Zhu <teawater@gmail.com>
6153 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
6156 2010-04-02 Pedro Alves <pedro@codesourcery.com>
6158 * tracepoint.c (trace_dump_actions): New, factored out from
6159 trace_dump_command, and adjusted to recurse into while-stepping's
6161 (trace_dump_command): Use it.
6163 2010-04-02 Pedro Alves <pedro@codesourcery.com>
6165 * breakpoint.h (struct counted_command_line): Moved definition to
6166 breakpoint.c, and forward declare.
6167 (breakpoint_commands): Declare.
6168 * breakpoint.c (struct counted_command_line): Moved here.
6169 (breakpoint_commands): New.
6170 * tracepoint.c (encode_actions): Use breakpoint_commands.
6171 * remote.c (remote_download_tracepoint): Ditto.
6173 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6175 * remote.c (remote_parse_stop_reply): Use hex_string instead
6176 of phex_nz for error.
6178 2010-04-01 Stan Shebs <stan@codesourcery.com>
6179 Nathan Sidwell <nathan@codesourcery.com>
6181 * tracepoint.h (enum actionline_type): Remove.
6182 (validate_actionline): Change return to void.
6183 * tracepoint.c (report_agent_reqs_errors): New function.
6184 (validate_actionline): Call it, change return to void, report errors
6186 (collect_symbol): Call report_agent_reqs_errors.
6187 (encode_actions_1): Ditto.
6188 (encode_actions): Don't expect a result from validate_actionline.
6190 2010-04-01 Stan Shebs <stan@codesourcery.com>
6192 * tracepoint.c (trace_start_command): Confirm if trace is running.
6193 (trace_stop_command): Error if trace not running.
6195 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6197 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
6198 (AMD64_NUM_LOWER_BYTE_REGS): New.
6199 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
6200 (amd64_pseudo_register_write): Likewise.
6201 (amd64_init_abi): Set num_byte_regs to 20.
6203 2010-04-01 Pedro Alves <pedro@codesourcery.com>
6205 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
6206 (prev_breakpoint_count): New.
6207 (set_breakpoint_count): Adjust.
6208 (rbreak_start_breakpoint_count): New.
6209 (start_rbreak_breakpoints): Adjust.
6210 (end_rbreak_breakpoints): Adjust.
6211 (struct commands_info) <arg>: New field.
6212 (do_map_commands_command): Tweak output to include breakpoint spec
6214 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
6215 ARG was empty on entry. Set INFO's arg.
6216 (create_breakpoint): Adjust.
6218 * NEWS: Clarify `commands' changes.
6220 2010-04-01 Pedro Alves <pedro@codesourcery.com>
6222 * tracepoint.c: Include stack.h.
6223 (struct add_local_symbols_data): New.
6224 (do_collect_symbol): New.
6225 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
6226 iterate_over_block_local_vars.
6227 * stack.c (print_block_frame_locals): Rewrite as ...
6228 (iterate_over_block_locals): ... this. Take a callback function
6229 pointer and generic data pointer, and call that instead of
6230 print_variable_and_value.
6231 (struct print_variable_and_value_data): New.
6232 (do_print_variable_and_value): New.
6233 (iterate_over_block_local_vars): New, abstracted out from
6234 print_frame_local_vars.
6235 (print_frame_local_vars): Rewrite using
6236 iterate_over_block_local_vars.
6237 (iterate_over_block_arg_vars): New, abstracted out from
6238 print_frame_arg_vars.
6239 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
6240 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
6241 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
6243 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
6245 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
6246 instructions. Use the PC+4 if the base of the TBB or TBH is the
6249 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6251 Fix crash on reading wrong function declaration DWARF.
6252 * dwarf2read.c (read_subroutine_type): New variable void_type.
6253 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
6254 more close to their use.
6256 2010-03-31 Stan Shebs <stan@codesourcery.com>
6258 * breakpoint.c (tracepoint_save_command): Include variables,
6259 conditionals, tracepoint types, and default-collect.
6260 * tracepoint.c (save_trace_state_variables): New function.
6261 * tracepoint.h (save_trace_state_variables): Declare it.
6263 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
6265 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
6267 2010-03-30 Keith Seitz <keiths@redhat.com>
6269 * c-typeprint.c (c_type_print_args): Don't print "void"
6270 for java, regardless of whether it is TYPE_PROTOTYPED.
6271 Use the passed-in language instead of current_language.
6272 (c_type_print_varspec_suffix): Use current_language instead
6273 of assuming language_c.
6274 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
6275 any return type specifier from the physname.
6277 2010-03-30 Pedro Alves <pedro@codesourcery.com>
6279 * tui/tui-interp.c (tui_is_toplevel): New.
6281 (tui_allowed_p): New.
6282 * tui/tui.c (tui_enable): Check if the TUI is allowed before
6284 * tui/tui.h (tui_allowed_p): Declare.
6286 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
6288 * serial.h: Include winsock2.h before windows.h.
6290 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
6292 * NEWS: Mention xmlRegisters= in qSupported packet.
6294 * i386-tdep.c: Include "remote.h".
6295 (_initialize_i386_tdep): Call register_remote_support_xml.
6297 * remote.c (remote_support_xml): New.
6298 (register_remote_support_xml): Likewise.
6299 (remote_query_supported_append): Likewise.
6300 (remote_query_supported): Support remote_support_xml.
6302 * remote.h (register_remote_support_xml): New.
6304 2010-03-29 Stan Shebs <stan@codesourcery.com>
6306 * tracepoint.c (trace_find_line_command): Remove dead code.
6308 * tracepoint.h (struct uploaded_string): New struct.
6309 (struct uploaded_tp): New fields for source strings.
6310 * breakpoint.c (this_utp, next_cmd): New globals.
6311 (read_uploaded_action): New function.
6312 (create_tracepoint_from_upload): Fill in more parts
6314 * tracepoint.c (encode_source_string): New function.
6315 (trace_save): Write out source strings, fix error checks.
6316 (parse_tracepoint_definition): Add source string parsing.
6317 * remote.c (PACKET_TracepointSource): New packet type.
6318 (remote_download_command_source): New function.
6319 (remote_download_tracepoint): Download source pieces also.
6320 (_initialize_remote): Add packet config command.
6322 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
6325 * tracepoint.c (start_tracing): Check tracepoints before sending
6326 commands to target, don't start if all tracepoints disabled.
6328 2010-03-28 Pedro Alves <pedro@codesourcery.com>
6330 * cli/cli-script.c (process_next_line): Handle 'stepping'.
6332 2010-03-26 Stan Shebs <stan@codesourcery.com>
6334 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
6336 2010-03-26 Tom Tromey <tromey@redhat.com>
6338 * breakpoint.c (commands_command_1): Duplicate 'arg'.
6340 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6342 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
6343 (skip_prologue_sal): Remove local definition.
6344 (resolve_sal_pc): Remove now unnecessary code.
6345 * linespec.c (minsym_found): Call skip_prologue_sal.
6346 * symtab.c (find_function_start_pc): Remove.
6347 (find_function_start_sal): Extract prologue skipping into ...
6348 (skip_prologue_sal): ... this new function. Handle code both
6349 with and without debug info. Respect SAL's explicit_pc and
6350 explicit_line flags. Inline old find_function_start_pc.
6351 * symtab.h (find_function_start_pc): Remove.
6352 (skip_prologue_sal): Add prototype.
6354 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6356 * dwarf2read.c (read_func_scope): Also scan specification DIEs
6357 for DW_TAG_imported_module children.
6359 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6361 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
6362 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
6363 * completer.c (add_struct_fields): Fix inverted logic.
6365 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6367 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
6369 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6371 * tracepoint.c (current_trace_status): Don't make sure error_desc
6373 (parse_trace_status): Release a previous error_desc string, and
6374 set it to NULL by default. If stop reason is tracepoint_error,
6375 make sure error_desc is not left NULL.
6377 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6379 * tracepoint.c (trace_save): Remove X from tracepoint error
6382 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6384 * tracepoint.c (parse_trace_status): Don't allow plain strings in
6385 the terror description. Don't expect an X prefix.
6387 2010-03-25 Stan Shebs <stan@codesourcery.com>
6389 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
6390 (struct trace_status): New field error_desc.
6391 * tracepoint.c (stop_reason_names): Add terror.
6392 (current_trace_status): Ensure non-NULL error description.
6393 (trace_status_command): Add error report.
6394 (trace_status_mi): Ditto.
6395 (trace_save): Add special case for error description.
6396 (parse_trace_status): Add case for errors.
6398 2010-03-25 Keith Seitz <keiths@redhat.com>
6400 * dwarf2read.c (read_subroutine_type): If the compilation unit
6401 language is Java, mark any formal parameter named "this" as
6402 artificial (GCC/43521).
6403 (dwarf2_name): Add special handling for Java constructors.
6405 2010-03-25 Tom Tromey <tromey@redhat.com>
6407 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
6408 * infrun.c (handle_inferior_event): Change initialization of
6410 (handle_inferior_event): Change assignment to stop_stack_dummy.
6411 (normal_stop): Update use of stop_stack_dummy.
6412 (struct inferior_status) <stop_stack_dummy>: Change type.
6413 * inferior.h (stop_stack_dummy): Update.
6414 * infcmd.c (stop_stack_dummy): Change type.
6415 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
6417 (call_function_by_hand): Call set_std_terminate_breakpoint.
6418 Rewrite std::terminate handling.
6419 * breakpoint.h (enum bptype) <bp_std_terminate,
6420 bp_std_terminate_master>: New.
6421 (enum stop_stack_kind): New.
6422 (struct bpstat_what) <call_dummy>: Change type.
6423 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
6425 * breakpoint.c (create_std_terminate_master_breakpoint): New
6427 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
6428 Call create_std_terminate_master_breakpoint.
6429 (print_it_typical): Handle new breakpoint kinds.
6430 (bpstat_stop_status): Handle bp_std_terminate_master.
6431 (bpstat_what): Correctly set call_dummy field. Handle
6432 bp_std_terminate_master and bp_std_terminate.
6433 (print_one_breakpoint_location): Update.
6434 (allocate_bp_location): Update.
6435 (set_std_terminate_breakpoint): New function.
6436 (delete_std_terminate_breakpoint): Likewise.
6437 (create_thread_event_breakpoint): Update.
6438 (delete_command): Update.
6439 (breakpoint_re_set_one): Update.
6440 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
6442 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6444 * symfile.c (build_section_addr_info_from_bfd): New.
6445 (build_section_addr_info_from_objfile): Base it on
6446 build_section_addr_info_from_bfd.
6447 (addrs_section_compar, addrs_section_sort): New.
6448 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
6449 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
6450 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
6452 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
6454 * elfread.c (find_separate_debug_file_by_buildid):
6455 Remove unused local variable.
6457 2010-03-24 Tom Tromey <tromey@redhat.com>
6459 PR breakpoints/9352:
6460 * NEWS: Mention changes to `commands' and `rbreak'.
6461 * symtab.c (do_end_rbreak_breakpoints): New function.
6462 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
6463 end_rbreak_breakpoints.
6464 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
6465 (set_breakpoint_count): Likewise. Clear last_was_multi.
6466 (multi_start, multi_end, last_was_multi): New globals.
6467 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
6469 (struct commands_info): New
6470 (do_map_commands_command): New function.
6471 (commands_command_1): New function.
6472 (commands_command): Use it.
6473 (commands_from_control_command): Likewise.
6474 (do_delete_breakpoint): New function.
6475 (delete_command): Use it.
6476 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
6477 (do_map_disable_breakpoint): New function.
6478 (disable_command): Use it.
6479 (do_map_enable_breakpoint): New function.
6480 (enable_command): Use it.
6481 (enable_once_breakpoint): Add argument.
6482 (enable_once_command): Update.
6483 (enable_delete_breakpoint): Add argument.
6484 (enable_delete_command): Update.
6485 (break_command_really): Set last_was_multi when needed.
6486 (check_tracepoint_command): Fix formatting.
6487 (validate_commands_for_breakpoint): New function.
6488 (breakpoint_set_commands): Use it.
6489 (tracepoint_save_command): Update.
6490 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
6493 2010-03-24 Tom Tromey <tromey@redhat.com>
6495 * breakpoint.h (struct counted_command_line): New struct.
6496 (struct breakpoint) <commands>: Change type.
6497 (struct bpstats) <commands>: Change type.
6498 <commands_left>: New field.
6499 * breakpoint.c (alloc_counted_command_line): New function.
6500 (incref_counted_command_line): Likewise.
6501 (decref_counted_command_line): Likewise.
6502 (do_cleanup_counted_command_line): Likewise.
6503 (make_cleanup_decref_counted_command_line): Likewise.
6504 (breakpoint_set_commands): Use decref_counted_command_line and
6505 alloc_counted_command_line.
6506 (commands_command): Don't error if breakpoint commands are
6508 (commands_from_control_command): Likewise.
6509 (bpstat_free): Update.
6510 (bpstat_copy): Likewise.
6511 (bpstat_clear_actions): Likewise.
6512 (bpstat_do_actions_1): Likewise.
6513 (bpstat_stop_status): Likewise.
6514 (print_one_breakpoint_location): Likewise.
6515 (delete_breakpoint): Likewise.
6516 (bpstat_alloc): Initialize new field.
6517 (tracepoint_save_command): Update.
6518 * tracepoint.c (encode_actions): Update.
6519 (trace_dump_command): Update.
6521 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6523 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
6524 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
6525 (read_structure_type): For RealView, set TYPE_STUB on structures with
6526 no byte size and no children.
6527 (read_subroutine_type): Mark functions as prototyped by default.
6528 * symtab.c (producer_is_realview): New function.
6529 * symtab.h (expand_line_sal): Fix declaration formatting.
6530 (producer_is_realview): Declare.
6532 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6534 * arm-tdep.c (skip_prologue_function): New function.
6535 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
6536 (thumb_analyze_prologue): Document return value. Recognize more
6537 Thumb instructions, skippable calls, and some Thumb-2 instructions.
6539 (arm_skip_prologue): Remove call dummy check. Check the prologue
6540 for non-GNU compilers.
6541 (arm_instruction_changes_pc): New function.
6542 (arm_analyze_prologue): New function, broken out from
6543 arm_scan_prologue. Recognize more ARM instructions and skippable
6544 calls. Update comments. Handle NULL cache. Return the address
6545 of the first unrecognized instruction. Do not skip past other
6546 instructions which change control flow. Add debug output.
6547 (arm_scan_prologue): Use arm_analyze_prologue.
6548 (ARM_PC_32): Delete.
6549 (shifted_reg_val): Simplify ARM_PC_32 check.
6551 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6553 * tracepoint.c (tvariables_info_1): Actually compute
6554 the number of rows in the result.
6556 2010-03-24 Pedro Alves <pedro@codesourcery.com>
6558 * remote.c (crc32): Constify `buf' parameter.
6559 (remote_verify_memory): New, abstracted out from...
6560 (compare_sections_command): ... this. Remove hardcoded target
6562 (init_remote_ops): Install remote_verify_memory.
6563 * target.c (target_verify_memory): New.
6564 * target.h (struct target_ops) <to_verify_memory>: New field.
6565 (target_verify_memory): Declare.
6567 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6569 Implement -trace-save.
6571 * mi-cmds.h (mi_cmds_trace_save): Declare.
6572 * mi-cmds.c (mi_cmds): Register -trace-save.
6573 * mi/mi-main.c (mi_cmd_trace_save): New.
6574 * remote.c (remote_save_trace_data): Take const parameter.
6575 * target.h (struct target_ops::to_save_trace_data): Take
6577 * target.c (update_current_target): Adjust to the above.
6578 * tracepoint.c (trave_save): New, extracted from
6579 (trace_save_command): ...this.
6580 (tfile_trace_find): Remove message that is unnecessary now
6581 that 'tfind' reports found frame.
6582 * tracepoint.h (trace_save): Declare.
6584 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6586 Implement -trace-find.
6588 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
6589 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
6590 * mi/mi-main.c (mi_cmd_trace_find): New.
6591 * target.h (struct target_ops): Document to_trace_find.
6592 * tracepoint.h (tfind_1): Declare.
6593 * tracepoint.c (finish_tfind_command): Rename to...
6595 * remote.c (remote_trace_find): Return -1 if target say
6596 there's no frame. Improve error diagnostics.
6598 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6600 -trace-define-variable and -trace-list-variables.
6602 * tracepoint.c (create_trace_state_variable): Make
6603 private copy of name, as opposed to assuming the
6604 pointer lives forever.
6605 (tvariables_info_1): New.
6606 (tvariables_info): Use the above.
6607 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
6609 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
6610 and -trace-list-variables.
6611 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
6612 (mi_cmd_trace_list_variables): New.
6613 * mi/mi-main.c (mi_cmd_trace_define_variable)
6614 (mi_cmd_trace_list_variables): New.
6616 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6618 Implement -break-passcount.
6620 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
6621 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
6622 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
6624 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6626 -trace-start/-trace-end/-trace-status.
6628 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
6630 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
6631 (mi_cmd_trace_stop): Declare.
6632 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
6633 (mi_cmd_trace_stop): New.
6634 * tracepoint.c (start_tracing): New, extracted from...
6635 (trace_start_command): ...this.
6636 (trace_status_mi): New.
6637 * tracepoint.h (struct trace_status): Document
6638 stopping_tracepoint.
6639 (start_tracing, stop_tracing, trace_status_mi): Declare.
6641 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6643 Implement creating tracepoints with -break-insert.
6645 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
6646 to mean that tracepoint should be created.
6648 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6650 * breakpoint.c (check_no_tracepoint_commands): Use
6651 current spelling of 'teval'.
6653 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6655 Unify actions and commands
6657 * defs.h (read_command_lines, read_command_lines_1): New
6658 parameters validator and closure.
6659 * tracepoint.h (struct action_line): Remove.
6660 * breakpoint.h (struct breakpoint): Remove the 'actions'
6662 * defs.h (enum command_control_type): New value
6663 while_stepping_control.
6664 (struct command_line): Add comments.
6665 * breakpoint.c (breakoint_is_tracepoint): New.
6666 (breakpoint_set_commands): For tracepoints,
6667 verify the commands are permissible.
6668 (check_tracepoint_commands): New.
6669 (commands_command): Require that each new line is validated using
6670 check_tracepoint_command, if we set commands for a tracepoint.
6671 (create_tracepoint_from_upload): Likewise.
6672 (print_one_breakpoint_location): Remove the code to print
6673 actions specifically.
6674 (tracepoint_save_command): Relay to print_command_lines.
6675 * cli/cli-script.c (process_next_line): New parameters validator
6676 and closure. Handle 'while-stepping'. Call validator if not null.
6677 (read_command_lines, read_command_lines1): Likewise.
6678 (recurse_read_control_structure): New parameters validator and
6679 closure. Handle while_stepping_control.
6680 (print_command_lines): Handle while-stepping.
6681 (get_command_line, define_command, document_command): Adjust.
6682 * remote.c (remote_download_tracepoint): Adjust.
6683 * tracepoint.c (make_cleanup_free_actions, read_actions)
6684 (free_actions, do_free_actions_cleanup): Remove.
6685 (trace_actions_command): Use read_command_lines.
6686 (validate_actionline): Use error in one place.
6687 (encode_actions_1): New, extracted from...
6688 (encode_actions): ...this. Also use cleanups for exception
6690 (trace_dump_command): Adjust.
6691 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
6694 2010-03-23 Mike Frysinger <vapier@gentoo.org>
6696 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
6698 2010-03-22 Stan Shebs <stan@codesourcery.com>
6700 * value.c (value_static_field): Be lazy about the field's value.
6702 2010-03-22 Reid Kleckner <reid@kleckner.net>
6705 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
6707 (disable_breakpoints_in_shlibs): Likewise.
6709 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
6711 * dwarf2read.c (partial_die_parent_scope): Work around buggy
6712 GCC 4.1 debug info generation (GCC PR c++/28460).
6713 (determine_prefix): Likewise.
6715 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
6717 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
6719 * tui/tui-layout.c (extract_display_start_addr): Likewise.
6721 2010-03-19 Stan Shebs <stan@codesourcery.com>
6723 * ax-gdb.c (gen_fetch): Handle bool.
6724 (gen_usual_unary): Ditto.
6726 (gen_equal): New function.
6727 (gen_less): New function.
6728 (gen_expr_binop_rest): Call them, also return integer type from
6732 2010-03-19 Tom Tromey <tromey@redhat.com>
6734 * jv-lang.c (jv_dynamics_objfile_data_key)
6735 (jv_type_objfile_data_key): New globals.
6736 (class_symtab): Move earlier.
6737 (jv_per_objfile_free): New function.
6738 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
6740 Remove ancient #if 1.
6741 (add_class_symbol): Remove redundant declaration.
6742 (java_lookup_class): Use alloc_type, not alloc_type_arch.
6743 (java_link_class_type): Mark as static. Update.
6744 (jv_clear_object_type): New function.
6745 (set_java_object_type): Likewise.
6746 (get_java_object_type): Use set_java_object_type.
6747 (is_object_type): Likewise.
6748 (_initialize_java_language): Register new objfile keys.
6749 (get_java_class_symtab): Add 'gdbarch' parameter.
6750 (add_class_symtab_symbol): Update.
6751 (type_from_class): Update.
6753 2010-03-19 Stan Shebs <stan@codesourcery.com>
6755 * ax-general.c (ax_const_l): Fix a sizing bug.
6757 2010-03-18 Joel Brobecker <brobecker@adacore.com>
6761 2010-03-18 Stan Shebs <stan@codesourcery.com>
6762 Pedro Alves <pedro@codesourcery.com>
6764 * target.h (struct target_ops): New method
6765 to_set_circular_trace_buffer.
6766 (target_set_circular_trace_buffer): New macro.
6767 * target.c (update_current_target): Add
6768 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
6770 * remote.c (remote_set_circular_trace_buffer): New function.
6771 (init_remote_ops): Add it to vector.
6772 * tracepoint.h (struct trace_status): New field traceframes_created,
6773 change buffer_size and buffer_free to int.
6774 * tracepoint.c (circular_trace_buffer): New global.
6775 (start_tracing): Send values of disconnected tracing and circular
6776 trace buffer settings.
6777 (set_circular_trace_buffer): New function.
6778 (parse_trace_state): Handle total space and frames created.
6779 (trace_status_command): Display total space and total frames
6781 (trace_save): Write out new status values.
6782 (parse_trace_status): Set traceframe_count, traceframes_created,
6783 buffer_free and buffer_size to -1 by default.
6784 (_initialize_tracepoint): New setshow for circular-trace-buffer.
6785 * NEWS: Mention the circular trace buffer option.
6787 2010-03-18 Tom Tromey <tromey@redhat.com>
6789 * infcmd.c (finish_command_continuation): Wrap print_return_value
6792 2010-03-18 Joel Brobecker <brobecker@adacore.com>
6794 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
6795 DIE has a name before creating the associated partial symbol.
6796 (read_func_scope): Emit a complaint if the subprogram does not
6797 have a name or when we can't extract the subprogram PC bounds.
6799 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
6801 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
6802 instead of selected frame architecture.
6804 2010-03-18 Pedro Alves <pedro@codesourcery.com>
6806 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
6807 a valid selected thread, and that it is not running.
6808 (advance_command): Ditto.
6809 (finish_command): Ditto.
6811 2010-03-17 Stan Shebs <stan@codesourcery.com>
6813 * ax-gdb.c (require_rvalue): Disallow non-scalars.
6815 * infcall.c: Include tracepoint.h.
6816 (call_function_by_hand): Disallow calls in tfind mode.
6817 * infcmd.c: Include tracepoint.h.
6818 (ensure_not_tfind_mode): New function.
6819 (continue_1): Call it.
6821 (jump_command): Ditto.
6822 (signal_command): Ditto.
6823 (advance_command): Ditto.
6824 (until_command): Ditto.
6825 (finish_command): Ditto.
6826 * tracepoint.h (disconnect_or_stop_tracing): Declare.
6828 * ax-gdb.h (struct axs_value): New field optimized_out.
6829 (gen_trace_for_var): Add gdbarch argument.
6830 * ax-gdb.c (gen_trace_static_fields): New function.
6831 (gen_traced_pop): Call it, add gdbarch argument.
6832 (gen_trace_for_expr): Update call to it.
6833 (gen_trace_for_var): Ditto, and report optimized-out variables.
6834 (gen_struct_ref_recursive): Check for optimized-out value.
6835 (gen_struct_elt_for_reference): Ditto.
6836 (gen_static_field): Pass gdbarch instead of expression, assume
6837 optimization if field not found.
6838 (gen_var_ref): Set the optimized_out flag.
6839 (gen_expr): Error on optimized-out variable.
6840 * tracepoint.c (collect_symbol): Handle struct-valued vars as
6841 expressions, skip optimized-out variables with computed locations.
6842 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
6843 erroring out if location expression missing.
6844 (loclist_tracepoint_var_ref): Don't error out here.
6846 2010-03-17 Tom Tromey <tromey@redhat.com>
6848 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
6849 DWARF data is available.
6851 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
6853 * symfile.c (generic_load): Reset breakpoints after loading.
6855 2010-03-17 Tom Tromey <tromey@redhat.com>
6857 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
6859 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6861 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
6862 create_breakpoint call, adjust the parameters.
6864 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6865 Chandru <chandru@in.ibm.com>
6867 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
6868 * valarith.c (value_subscripted_rvalue): Suppress error if
6869 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
6871 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
6873 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
6875 2010-03-16 Joel Brobecker <brobecker@adacore.com>
6877 * ada-tasks.c (task_command_1): Check that the task ptid is valid
6878 before doing the associated thread switch.
6880 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
6882 * MAINTAINERS: Update my email address.
6884 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
6886 Simplify MI breakpoint setting.
6888 * breakpoint.c (break_command_really): Make nonstatic and
6890 (create_breakpoint): ...this. Rename prior function by this name
6892 (create_breakpoint_sal): ...this.
6893 (create_breakpoints): Rename to...
6894 (create_breakpoints_sal): ...this.
6895 (set_breakpoint): Remove.
6896 * breakpoint.h: Adjust to above changes.
6897 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
6899 2010-03-15 Stan Shebs <stan@codesourcery.com>
6901 * ax-gdb.c: Include cp-support.h.
6902 (find_field): Remove.
6903 (gen_primitive_field): New function.
6904 (gen_struct_ref_recursive): New function.
6905 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
6907 (gen_static_field): New function.
6908 (gen_struct_elt_for_reference): New.
6909 (gen_namespace_elt): New.
6910 (gen_maybe_namespace_elt): New.
6911 (gen_aggregate_elt_ref): New.
6912 (gen_expr): Add OP_SCOPE, display opcode name in error message.
6914 2010-03-15 Tom Tromey <tromey@redhat.com>
6916 * dwarf2read.c (die_needs_namespace): Also return 0 for
6919 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
6922 * cp-support.h: Added char *declaration element to using_direct
6924 (cp_add_using): Added char *declaration argument.
6925 (cp_add_using_directive): Ditto.
6926 (cp_lookup_symbol_imports): made extern.
6927 * cp-namespace.c: Updated with the above changes.
6928 * dwarf2read.c (read_import_statement): Ditto.
6929 (read_namespace): Ditto.
6930 (read_import_statement): Support import declarations.
6931 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
6933 Added support for 'declaration_only' search.
6934 (cp_lookup_symbol_namespace): Attempt to search for the name as
6935 is before consideration of imports.
6936 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
6937 search at every block level search.
6938 Now takes language argument.
6939 (lookup_symbol_aux): Updated.
6941 2010-03-15 Tom Tromey <tromey@redhat.com>
6943 * c-exp.y (name_not_typename): Add 'operator' clause.
6945 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
6947 * configure.ac: Exit if ${gdb_target_obs}" is not set.
6948 * configure: Regenerate.
6950 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6952 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
6953 and ".sdynbss". Update the comment.
6955 2010-03-15 Jie Zhang <jie@codesourcery.com>
6957 * MAINTAINERS: Update my email address.
6959 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6961 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
6963 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6965 * charset.c [USE_WIN32API]: Include <windows.h>.
6966 (_initialize_charset): Correct type of w32_host_default_charset.
6968 2010-03-14 Pedro Alves <pedro@codesourcery.com>
6970 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
6972 2010-03-12 Tom Tromey <tromey@redhat.com>
6975 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
6976 in a lexical block does not need a namespace.
6977 (new_symbol) <DW_TAG_variable>: Put extern variables on
6978 list_in_scope in all cases.
6980 2010-03-12 Stan Shebs <stan@codesourcery.com>
6982 * ax-gdb.c (gen_expr): Add shift expressions.
6983 (gen_expr_binop_rest): Ditto.
6985 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
6987 * buildsym.c (finish_block): Reset using_directives pointer
6988 after block initialization.
6990 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
6992 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
6993 * i386-tdep.c (i386_word_names): Likewise.
6995 2010-03-12 Pedro Alves <pedro@codesourcery.com>
6997 * target.c (memory_xfer_partial): Don't use the stack cache if
6998 inspecting trace frames.
6999 * tracepoint.c (finish_tfind_command): Invalidate the target
7002 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7004 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
7005 for the PIC displacement, print also the displacement value.
7006 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
7008 2010-03-10 Kevin Buettner <kevinb@redhat.com>
7010 * remote-mips.c (close_ports, mips_initialize_cleanups)
7011 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
7012 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
7013 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
7014 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
7015 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
7016 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
7017 comments describing each of these functions.
7018 (mips_enter_debug, mips_exit_debug, common_open)
7019 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
7020 blank line after the comment describing the function.
7022 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7024 * solib-svr4.c (svr4_exec_displacement): Return now success, new
7025 parameter displacementp. Update comment.
7026 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
7027 element exists. Return if svr4_exec_displacement was not successful.
7030 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7031 Daniel Jacobowitz <dan@codesourcery.com>
7033 * solib-svr4.c (read_program_header): Support type == -1 to read
7034 all program headers.
7035 (read_program_headers_from_bfd): New function.
7036 (svr4_static_exec_displacement): Remove and move the comment ...
7037 (svr4_exec_displacement): ... here. Remove variable found. New
7038 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
7039 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
7040 targets using read_program_headers_from_bfd. Remove the call of
7041 svr4_static_exec_displacement.
7043 2010-03-10 Tom Tromey <tromey@redhat.com>
7045 * dwarf2read.c (struct pubnames_header): Remove.
7046 (_PUBNAMES_HEADER): Remove.
7047 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
7048 (struct aranges_header): Remove.
7049 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
7050 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
7051 (PUBNAMES_SECTION): Remove.
7052 (ARANGES_SECTION): Remove.
7053 (dwarf2_locate_sections): Don't handle pubnames or aranges.
7054 (dwarf2_build_psymtabs): Remove dead code.
7055 (dwarf2_build_psymtabs_easy): Remove.
7057 2010-03-10 Tom Tromey <tromey@redhat.com>
7059 * elfread.c (elf_symfile_read): Don't call
7060 dwarf2_build_frame_info.
7061 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
7062 (struct dwarf2_per_objfile) <objfile>: New field.
7063 (dwarf2_has_info): Now idempotent. Set objfile field.
7064 (dwarf2_read_section): Check and set readin field. Call
7066 (dwarf2_build_psymtabs): Don't read all sections.
7067 (read_type_comp_unit_head): Read types section.
7068 (create_debug_types_hash_table): Likewise.
7069 (init_cu_die_reader): Add asserts.
7070 (process_type_comp_unit): Add assert.
7071 (dwarf2_build_psymtabs_hard): Read info section.
7072 (load_partial_comp_unit): Add assert.
7073 (create_all_comp_units): Read info section.
7074 (load_full_comp_unit): Likewise.
7075 (dwarf2_ranges_read): Read ranges section.
7076 (dwarf2_record_block_ranges): Add assert.
7077 (dwarf2_read_abbrevs): Read abbrev section.
7078 (read_indirect_string): Read str section.
7079 (dwarf_decode_line_header): Read line section.
7080 (read_signatured_type_at_offset): Read types section.
7081 (dwarf_decode_macros): Read macinfo section.
7082 (dwarf2_symbol_mark_computed): Read loc section.
7083 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
7084 dwarf2_build_frame_info.
7085 (dwarf2_build_frame_info): Unconditionally set
7086 dwarf2_frame_objfile_data on the objfile.
7087 * configure.ac: Check for posix_madvise.
7088 * config.in, configure: Rebuild.
7090 2010-03-10 Tom Tromey <tromey@redhat.com>
7092 * xcoffread.c (xcoff_start_psymtab): Update.
7093 (xcoff_end_psymtab): Update.
7094 * psymtab.c (allocate_psymtab): Remove dead code.
7095 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
7097 * mdebugread.c (parse_partial_symbols): Update.
7098 (new_psymtab): Likewise.
7099 * dwarf2read.c (process_psymtab_comp_unit): Update.
7100 (psymtab_to_symtab_1): Update.
7101 * dbxread.c (start_psymtab): Update.
7102 (end_psymtab): Likewise.
7104 2010-03-10 Tom Tromey <tromey@redhat.com>
7106 * xcoffread.c: Include psymtab.h.
7107 (xcoff_sym_fns): Update.
7108 * symtab.h (struct partial_symbol): Remove.
7109 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
7110 (struct partial_symtab): Remove.
7111 (PSYMTAB_TO_SYMTAB): Remove.
7112 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
7113 (find_pc_sect_psymtab): Remove.
7114 (find_pc_sect_symtab_via_partial): Declare.
7115 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
7116 (find_main_psymtab): Remove.
7117 (find_main_filename): Declare.
7118 (fixup_psymbol_section): Remove.
7119 (fixup_section): Declare.
7120 * symtab.c: Include psymtab.h.
7121 (lookup_symtab): Use lookup_symtab method.
7122 (lookup_partial_symtab): Remove.
7123 (find_pc_sect_psymtab_closer): Remove.
7124 (find_pc_sect_psymtab): Remove.
7125 (find_pc_sect_symtab_via_partial): New function.
7126 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
7127 (fixup_section): No longer static.
7128 (fixup_psymbol_section): Remove.
7129 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
7130 (lookup_global_symbol_from_objfile): Likewise.
7131 (lookup_symbol_aux_psymtabs): Remove.
7132 (lookup_symbol_aux_quick): New function.
7133 (lookup_symbol_global): Use lookup_symbol_aux_quick.
7134 (lookup_partial_symbol): Remove.
7135 (basic_lookup_transparent_type_quick): New function.
7136 (basic_lookup_transparent_type): Use it.
7137 (find_main_psymtab): Remove.
7138 (find_main_filename): New function.
7139 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
7140 (find_line_symtab): Use expand_symtabs_with_filename method.
7141 (output_partial_symbol_filename): New function.
7142 (sources_info): Use map_partial_symbol_filenames.
7143 (struct search_symbols_data): New type.
7144 (search_symbols_file_matches): New function.
7145 (search_symbols_name_matches): Likewise.
7146 (search_symbols): Use expand_symtabs_matching method.
7147 (struct add_name_data): Rename from add_macro_name_data.
7148 (add_macro_name): Update.
7149 (add_partial_symbol_name): New function.
7150 (default_make_symbol_completion_list): Use
7151 map_partial_symbol_names.
7152 (struct add_partial_symbol_name): New type.
7153 (maybe_add_partial_symtab_filename): New function.
7154 (make_source_files_completion_list): Use
7155 map_partial_symbol_filenames.
7156 (expand_line_sal): Use expand_symtabs_with_filename method.
7157 * symmisc.c: Include psymtab.h.
7158 (print_objfile_statistics): Use print_stats method.
7159 (dump_objfile): Use dump method.
7160 (dump_psymtab, maintenance_print_psymbols)
7161 (maintenance_info_psymtabs, maintenance_check_symtabs)
7162 (extend_psymbol_list): Remove.
7163 * symfile.h (struct quick_symbol_functions): New struct.
7164 (struct sym_fns) <qf>: New field.
7165 (sort_pst_symbols): Remove.
7166 (increment_reading_symtab): Declare.
7167 * symfile.c: Include psymtab.h.
7168 (compare_psymbols, sort_pst_symbols): Remove.
7169 (psymtab_to_symtab): Remove.
7170 (increment_reading_symtab): New function.
7171 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
7173 (set_initial_language): Use find_main_filename.
7174 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
7175 (free_named_symtabs): Remove unused code.
7176 (start_psymtab_common, add_psymbol_to_bcache)
7177 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
7179 * stack.c: Include psymtab.h, symfile.h.
7180 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
7181 * source.h (psymtab_to_fullname): Don't declare.
7182 * source.c: Include psymtab.h.
7183 (select_source_symtab): Use find_last_source_symtab method.
7184 (forget_cached_source_info): Use forget_cached_source_info
7186 (find_and_open_source): No longer static.
7187 (psymtab_to_fullname): Remove.
7188 * somread.c: Include psymtab.h.
7189 (som_sym_fns): Update.
7190 * psympriv.h: New file.
7191 * psymtab.h: New file.
7192 * psymtab.c: New file.
7193 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
7194 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
7195 * objfiles.c: Include psymtab.h.
7196 (objfile_relocate1): Use relocate method.
7197 (objfile_has_partial_symbols): Use has_symbols method.
7198 * mipsread.c: Include psymtab.h.
7199 (ecoff_sym_fns): Update.
7200 * mi/mi-cmd-file.c: Include psymtab.h.
7201 (print_partial_file_name): New function.
7202 (mi_cmd_file_list_exec_source_files): Use
7203 map_partial_symbol_filenames.
7204 * mdebugread.c: Include psympriv.h.
7205 * machoread.c: Include psympriv.h.
7206 (macho_sym_fns): Update.
7207 * m2-exp.y (yylex): Use lookup_symtab.
7208 * elfread.c: Include psympriv.h.
7209 (elf_sym_fns): Update.
7210 * dwarf2read.c: Include psympriv.h.
7211 * dbxread.c: Include psympriv.h.
7212 (aout_sym_fns): Update.
7213 * cp-support.c: Include psymtab.h.
7214 (read_in_psymtabs): Remove.
7215 (make_symbol_overload_list_qualified): Use
7216 expand_symtabs_for_function method.
7217 * coffread.c: Include psympriv.h.
7218 (coff_sym_fns): Update.
7219 * blockframe.c: Include psymtab.h.
7220 (find_pc_partial_function): Use find_pc_sect_symtab method.
7221 * ada-lang.h (ada_update_initial_language): Update.
7222 * ada-lang.c: Include psymtab.h.
7223 (ada_update_initial_language): Remove 'main_pst' argument.
7224 (ada_lookup_partial_symbol): Remove.
7225 (struct ada_psym_data): New type.
7226 (ada_add_psyms): New function.
7227 (ada_add_non_local_symbols): Use map_ada_symtabs method.
7228 (struct add_partial_datum): New type.
7229 (ada_add_partial_symbol_completions): New function.
7230 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
7231 (ada_exception_support_info_sniffer): Update.
7232 * Makefile.in (SFILES): Add psymtab.c.
7233 (COMMON_OBS): Add psymtab.o.
7234 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
7236 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7238 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
7240 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
7243 * cp-namespace.c (cp_add_using): Deleted.
7244 (cp_add_using_directive): Use obstack allocations.
7245 Merged the function cp_add_using into this one.
7246 Added 'struct obstack *' argument.
7247 (cp_scan_for_anonymous_namespaces): Updated.
7248 * cp-support.h: Updated.
7249 * dwarf2read.c (read_import_statement): Updated.
7250 (read_namespace): Updated.
7252 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7254 * windows-nat.c (cygwin_conv_path): Remove old macro.
7256 2010-03-10 Pedro Alves <pedro@codesourcery.com>
7258 * breakpoint.c (condition_command): Handle watchpoint conditions.
7259 (is_hardware_watchpoint): Add comment.
7260 (is_watchpoint): New.
7261 (update_watchpoint): Don't reparse the watchpoint's condition
7264 (watchpoint_check): Use it.
7265 (bpstat_check_watchpoint): Handle it.
7266 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
7267 conditions in a frame where it makes sense.
7268 (watch_command_1): Store the innermost block of the condition
7270 (delete_breakpoint): Delete the watchpoint condition expression.
7271 * breakpoint.h (struct bp_location) <cond>: Update comment.
7272 (struct breakpoint): New field `cond_exp_valid_block'.
7274 2010-03-09 Joel Brobecker <brobecker@adacore.com>
7276 Adjust handling of Ada DIEs after dwarf2_physname patch.
7277 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
7279 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
7280 Pierre Muller <muller@ics.u-strasbg.fr>
7282 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
7283 from/to posix/win32.
7284 (windows_make_so): Use non-Cygwin 1.7 specific function.
7285 (windows_create_inferior): Make sure that cygallargs points to
7286 original args in non Cygwin 1.7. case.
7288 2010-03-09 Michael Snyder <msnyder@vmware.com>
7290 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
7291 after target_read_memory to get host byte order.
7292 (i386_process_record): Ditto.
7294 2010-03-09 Keith Seitz <keiths@redhat.com>
7296 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
7297 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
7298 print out const or volatile qualifiers, too.
7299 (c_type_print_args): Add parameters show_artificial and language.
7300 Skip artificial parameters when requested.
7301 Use the appropriate language printer.
7302 (c_type_print_varspec): Tell c_type_print_args to skip artificial
7303 parameters and pass language_c.
7304 * dwarf2read.c (die_list): New file global.
7305 (struct partial_die_info): Update comments for name field.
7306 (pdi_needs_namespace): Renamed to ...
7307 (die_needs_namespace): ... this. Rewrite.
7308 (dwarf2_linkage_name): Remove.
7309 (add_partial_symbol): Do not predicate the call to
7310 partial_die_full_name based on pdi_needs_namespace.
7311 Remove call to cp_check_possible_namespace_symbols and associated
7313 (guess_structure_name): Do not inspect child subprogram DIEs.
7314 (dwarf2_fullname): Update comments.
7315 Use die_needs_namespace to assist in computing the name.
7316 (read_func_scope): Use dwarf2_name to get the DIE's name.
7317 Use dwarf2_physname to get the "linkage name" of the DIE.
7318 (dwarf2_add_member_field): Use dwarf2_physname instead of
7319 dwarf2_linkage_name.
7320 (read_structure_type): For structs and classes, set TYPE_NAME, too.
7321 (determine_class): Remove.
7322 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
7324 (new_symbol): Unconditionally call dwarf2_name.
7325 Compute the "linkage name" using dwarf2_physname.
7326 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
7327 When determining to scan for anonymous C++ namespaces, ignore
7329 (dwarf2_physname): New function.
7330 (dwarf2_full_name): Move content to new function and call
7332 (dwarf2_compute_name): "New" function.
7333 (_initialize_dwarf2_read): Initialize die_list.
7334 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
7336 (gnu_v3_print_method_ptr): Use the physname for virtual methods
7337 without a demangled name.
7338 Print out type information for non-virtual methods.
7339 * linespec.c (decode_line_1): Force ANY string using "::" (or
7340 "." for java) to use decode_compound, and clean up any stray quoting.
7341 If we found a file symtab, re-evaluate whether the remainder is_quoted.
7342 (decode_compound): Stop consuming at an open parenthesis.
7343 Keep template parameters.
7344 Keep any overload information.
7345 Keep keywords like "const".
7346 Remove paren_pointer.
7347 Move is_quoted check from set_flags to here.
7348 Remove #if 0 code from 2000. Ten years is long enough.
7349 (find_method): Before comparing symbol names, canonicalize the string
7351 If a specific overload is requested, find it. Otherwise throw an error.
7352 (find_method_overload_end): New function.
7353 (set_flags): Remove.
7354 (decode_compound): Assume that parentheses are matched.
7356 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
7358 * linespec.c (decode_line_1): Keep important keywords like
7359 "const" and "volatile".
7360 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
7361 * typeprint.h (c_type_print_args): Add declaration.
7362 * ui-file.c (do_ui_file_obsavestring): New function.
7363 (ui_file_obsavestring): New function.
7364 * ui-file.h (ui_file_obsavestring): Add declaration.
7365 * valops.c (find_overload_match): Resolve the object to
7367 If the object is a data member, search the object for the member
7368 and return with staticp set.
7369 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
7370 Do not attempt to extract a function name from non-function types.
7371 If the extracted function name and the original name are the same,
7372 we don't have a C++ method.
7374 From Jan Kratochvil <jan.kratochvil@redhat.com>:
7375 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
7377 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
7378 and arguments from symbol lookups.
7379 * ax-gdb.c (gen_expr): Likewise.
7380 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
7381 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
7382 lookup_possible_namespace_symbol): Likewise.
7383 * cp-support.c (read_in_psymtabs): Likewise.
7384 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
7385 * language.h (la_lookup_symbol_nonlocal): Likewise.
7386 * scm-valprint.c (scm_inferior_print): Likewise.
7387 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
7388 * solib-svr.c (elf_lookup_lib): Likewise.
7389 * solib.c (show_auto_solib_add): Likewise.
7390 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
7391 * symmisc.c (maintenance_check_symtabs): Likewise.
7392 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
7393 lookup_symbol_aux_local, lookup_symbol_aux_block,
7394 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
7395 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
7396 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
7397 basic_lookup_transparent_type, find_main_psymtab,
7398 lookup_block_symbol): Likewise.
7399 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
7400 lookup_symbol_global, lookup_symbol_aux_block,
7401 lookup_symbol_partial_symbol, lookup_block_symbol,
7402 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
7404 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
7406 * python/python-internal.h: Include symtab.h.
7408 2010-03-09 Joel Brobecker <brobecker@adacore.com>
7409 Pierre Muller <muller@ics.u-strasbg.fr>
7411 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
7412 * p-valprint.c (pascal_val_print): Remove undeed block and fix
7415 2010-03-08 Tom Tromey <tromey@redhat.com>
7417 * breakpoint.c (breakpoint_1): Add "QUIT".
7419 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
7420 Pedro Alves <pedro@codesourcery.com>
7422 * solib.c (solib_find): Replace extension if
7423 solib_symbols_extension is set in the target gdbarch.
7424 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
7425 solib_symbols_extension to "sym".
7426 * gdbarch.sh (solib_symbols_extension): New variable.
7427 (pstring): New function.
7428 * gdbarch.h, gdbarch.c: Regenerate.
7430 2010-03-08 Tom Tromey <tromey@redhat.com>
7434 * utils.c: Include main.h.
7435 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
7436 (defaulted_query): Use default answer if `batch_flag'.
7437 * main.h (batch_flag): Declare.
7438 * main.c (batch_flag): New global.
7439 (captured_main): Remove 'batch'. Update.
7441 2010-03-08 Kevin Buettner <kevinb@redhat.com>
7443 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
7446 * remote-mips.c (rockhopper_ops): New target_ops struct.
7447 (MON_ROCKHOPPER): New mips_monitor_type.
7448 (read_hex_value): New function.
7449 (mips_request): Send 8-byte values with a 'T' packet. Read the
7450 packet argument as a string and use read_hex_value to parse it.
7451 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
7452 (rockhopper_open): New function.
7453 (mips_wait): Read the PC, FP and SP fields as strings. Use
7454 read_hex_value to parse them and mips_set_register to commit them.
7455 (mips_set_register): New function.
7456 (mips_fetch_registers): Do not cast register value to "unsigned"
7457 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
7458 (mips_store_registers): Use a 'T' packet to set registers when
7459 using MON_ROCKHOPPER.
7460 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
7461 and expect the total to be printed before the entry address.
7462 (_initialize_remote_mips): Initialize and add rockhopper_ops.
7464 2010-03-08 Kevin Buettner <kevinb@redhat.com>
7466 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
7467 Change return value to int. Store value fetched in location
7468 addressed by `val'. Use function's return value as success
7469 or failure indicator. Adjust all callers.
7471 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
7473 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
7475 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7476 Hui Zhu <teawater@gmail.com>
7478 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
7479 tmp_to_stopped_data_address.
7480 (record_open): Reset tmp_to_stopped_by_watchpoint and
7481 tmp_to_stopped_data_address.
7482 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
7483 to_stopped_data_address.
7485 2010-03-08 Hui Zhu <teawater@gmail.com>
7487 * i386-tdep.c (i386_process_record): Initialize regnum.
7489 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7491 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
7492 Do not warn on ".gnu.liblist" and ".gnu.conflict".
7494 2010-03-08 Joel Brobecker <brobecker@adacore.com>
7496 Memory error when reading wrong core file.
7497 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
7498 errors while reading the inferior memory, and return zero if
7499 an exception was raised.
7501 2010-03-07 Michael Snyder <msnyder@vmware.com>
7503 * record.c (record_restore): Rename tmpu8 to rectype.
7505 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
7506 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
7508 (i386_record_push): Rename local tmpulongest to addr.
7510 (i386_process_record): Rename local tmpulongest to addr.
7512 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
7515 Rename local variable tmpu8 to opcode8 and regnum.
7517 2010-03-07 Joel Brobecker <brobecker@adacore.com>
7519 * remote.c (remote_get_ada_task_ptid): New function.
7520 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
7522 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
7524 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
7525 block. Define helper macros to reduce ifdefs in code.
7526 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
7527 size. Call unadorned GetModuleFileNameEx rather than
7528 GetModuleFileNameEx*.
7529 (windows_make_so): Use __PMAX to denote maximum buffer size and
7530 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
7532 (get_image_name): Use __PMAX to denote maximum buffer size.
7533 (handle_load_dll): Likewise.
7534 (windows_pid_to_exec_file): Likewise.
7535 (windows_create_inferior): Add many accommodations for older Cygwin and
7537 (bad_GetModuleFileNameExW): Control inclusion of this function based on
7538 __USEWIDE conditional.
7539 (bad_GetModuleFileNameExA): Likewise.
7540 (_initialize_loadable): Just use real function names without the dyn_
7541 part since they are defined earlier.
7543 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
7544 Tom Tromey <tromey@redhat.com>
7546 * utils.c (host_char_to_target): Add 'gdbarch' argument.
7547 (parse_escape): Likewise.
7548 * python/py-utils.c (unicode_to_target_string): Update.
7549 (unicode_to_target_python_string): Update.
7550 (target_string_to_unicode): Update.
7551 * printcmd.c (printf_command): Update.
7552 * p-exp.y (yylex): Update.
7553 * objc-exp.y (yylex): Update.
7554 * mi/mi-parse.c: Include charset.h.
7555 (mi_parse_escape): New function.
7556 (mi_parse_argv): Use it.
7557 * jv-exp.y (yylex): Update.
7558 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
7560 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
7561 * gdbarch.sh (auto_charset, auto_wide_charset): New.
7562 * gdbarch.c: Rebuild.
7563 * gdbarch.h: Rebuild.
7564 * defs.h (parse_escape): Update.
7565 * cli/cli-setshow.c: Include arch-utils.h.
7566 (do_setshow_command): Update.
7567 * cli/cli-cmds.c (echo_command): Update.
7568 * charset.h (target_charset, target_wide_charset): Update.
7569 * charset.c: Include arch-utils.h.
7570 (target_charset_name): Default to "auto".
7571 (target_wide_charset_name): Likewise.
7572 (show_target_charset_name): Handle "auto".
7573 (show_target_wide_charset_name): Likewise.
7574 (be_le_arch): New global.
7575 (set_be_le_names): Add 'gdbarch' argument.
7576 (validate): Likewise. Don't call set_be_le_names.
7577 (set_charset_sfunc, set_host_charset_sfunc)
7578 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
7580 (target_charset): Add 'gdbarch' argument.
7581 (target_wide_charset): Likewise. Remove 'byte_order' argument.
7582 (auto_target_charset_name): New global.
7583 (default_auto_charset, default_auto_wide_charset): New functions.
7584 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
7585 for target charsets. Copy result of nl_langinfo. Use GetACP if
7587 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
7588 remove 'byte_order' argument. Update.
7589 (classify_type): Likewise.
7590 (c_emit_char): Update.
7591 (c_printchar): Update.
7592 (c_printstr): Update.
7593 (c_get_string): Update.
7594 (evaluate_subexp_c): Update.
7595 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
7597 * python/python.c (gdbpy_target_charset): New function.
7598 (gdbpy_target_wide_charset): Likewise.
7599 (GdbMethods): Update.
7602 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7604 * symfile.c (build_section_addr_info_from_objfile): Do not mask
7605 off high address bits.
7607 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7609 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
7610 address as UnsignedLongLong, not LongLong.
7612 2010-03-05 Kevin Buettner <kevinb@redhat.com>
7613 Pedro Alves <pedro@codesourcery.com>
7615 * remote-mips.c (gdbthread.h): Include.
7616 (remote_mips_ptid): Declare.
7617 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
7618 (common_open): Set inferior_ptid, add it as an inferior, and
7619 as a thread too. Delete FIXME comment regarding start_remote().
7620 (mips_close): Invoke generic_mourn_inferior().
7621 (mips_kill): Make sure that target_mourn_inferior is invoked.
7622 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
7623 it's now invoked from mips_close().
7624 (mips_load): Don't null out inferior_ptid. Don't call
7625 clear_symtab_users().
7626 (mips_thread_alive, mips_pid_to_str): New functions.
7627 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
7628 to_thread_alive and to_pid_to_str operations.
7630 2010-03-04 Tom Tromey <tromey@redhat.com>
7632 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
7633 in DWARF 3 and later.
7634 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
7636 2010-03-04 Keith Seitz <keiths@redhat.com>
7638 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
7639 If the filename portion of the linespec was quoted, recheck the
7640 remainder for additional quoting.
7641 (locate_first_half): Skip over completer chars, too.
7643 2010-03-04 Tom Tromey <tromey@redhat.com>
7645 * printcmd.c (printf_command): Pass dummy argument to
7648 2010-03-04 Doug Evans <dje@google.com>
7650 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
7653 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
7655 2010-03-04 Pedro Alves <pedro@codesourcery.com>
7657 * breakpoint.c (update_watchpoint): Create a sentinel location if
7658 the software watchpoint isn't watching any memory.
7659 (breakpoint_address_bits): Skip dummy software watchpoint locations.
7661 2010-03-04 Pedro Alves <pedro@codesourcery.com>
7663 * utils.c (fputs_maybe_filtered): Check if there's already a top
7664 level interpreter before dereferencing it. If there isn't one,
7665 don't paginate either.
7667 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7669 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
7670 the state right when single stepping.
7671 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
7672 Get the next PC along with the instruction state.
7673 (thumb_get_next_pc): Remove.
7674 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
7676 2010-03-04 Hui Zhu <teawater@gmail.com>
7678 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
7680 2010-03-03 Pedro Alves <pedro@codesourcery.com>
7682 * utils.c (fputs_maybe_filtered): Always disable pagination if the
7683 top level interpreter is MI.
7685 2010-03-03 Stan Shebs <stan@codesourcery.com>
7687 * remote.c (remote_download_tracepoint): Iterate over locations.
7688 * tracepoint.c (validate_actionline): Ditto.
7689 (encode_actions): Add location argument.
7690 (trace_dump_command): Check all locations to see if stepping
7693 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
7694 Eli Zaretskii <eliz@gnu.org>
7696 * NEWS: Add X86 general purpose registers section.
7698 2010-03-03 Tom Tromey <tromey@redhat.com>
7701 * varobj.c (install_new_value): Handle case where new print_value
7704 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
7707 * printcmd.c (printf_command): Print end of format string using
7710 2010-03-02 Tom Tromey <tromey@redhat.com>
7712 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
7713 * defs.h (read_command_lines_1): Add missing 'void'.
7714 * cli/cli-script.c (recurse_read_control_structure): Add missing
7716 (read_next_line): Likewise.
7717 (read_command_lines_1): Likewise.
7719 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7721 * spu-tdep.c (spu_analyze_prologue): Track instruction to
7722 store backchain as part of prologue.
7724 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
7726 * progspace.c (update_address_spaces): Update inferior address spaces
7729 2010-03-02 Doug Evans <dje@google.com>
7731 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
7732 lowpc,highpc args to addrmap_set_empty.
7734 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
7736 * amd64-tdep.c (amd64_byte_names): New.
7737 (amd64_word_names): Likewise.
7738 (amd64_dword_names): Likewise.
7739 (amd64_pseudo_register_name): Likewise.
7740 (amd64_pseudo_register_read): Likewise.
7741 (amd64_pseudo_register_write): Likewise.
7742 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
7743 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
7744 set_gdbarch_pseudo_register_write and
7745 set_tdesc_pseudo_register_name. Don't call
7746 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
7748 * i386-tdep.c (i386_num_mmx_regs): Removed.
7749 (i386_num_pseudo_regs): Likewise.
7750 (i386_byte_names): New.
7751 (i386_word_names): Likewise.
7752 (i386_byte_regnum_p): Likewise.
7753 (i386_word_regnum_p): Likewise.
7754 (i386_mmx_regnum_p): Updated.
7755 (i386_pseudo_register_name): Make it global. Handle byte and
7756 word pseudo-registers.
7757 (i386_pseudo_register_read): Likewise.
7758 (i386_pseudo_register_write): Likewise.
7759 (i386_pseudo_register_type): Handle byte, word and dword
7761 (i386_register_reggroup_p): Don't include pseudo
7762 registers, except for MXX, in any register groups. Don't
7763 include pseudo byte, word, dword registers in general_reggroup.
7764 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
7765 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
7766 pseudo-registers after word pseudo-registers. Call
7767 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
7769 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
7770 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
7772 (i386_byte_regnum_p): New.
7773 (i386_word_regnum_p): Likewise.
7774 (i386_dword_regnum_p): Likewise.
7775 (i386_pseudo_register_name): Likewise.
7776 (i386_pseudo_register_read): Likewise.
7777 (i386_pseudo_register_write): Likewise.
7779 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7781 * target-descriptions.c (tdesc_type): Remove
7782 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7783 (tdesc_predefined_types): Likewise.
7784 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
7785 if flag name is empty.
7786 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
7788 * features/i386/32bit-core.xml: Define i386_eflags.
7789 * features/i386/64bit-core.xml: Likewise.
7791 * features/i386/32bit-sse.xml: Define i386_mxcsr.
7792 * features/i386/64bit-sse.xml: Likewise.
7794 * features/i386/amd64-linux.c: Regenerated.
7795 * features/i386/amd64.c: Likewise.
7796 * features/i386/i386-linux.c: Likewise.
7797 * features/i386/i386.c: Likewise.
7799 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
7801 * gdbtypes.c (append_composite_type_field_raw): New.
7802 (append_composite_type_field_aligned): Use the new function.
7803 * gdbtypes.h (append_composite_type_field_raw): Declare.
7804 * target-descriptions.c (struct tdesc_type_field): Add start and end.
7805 (struct tdesc_type_flag): New type.
7806 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
7807 kind. Add size to u.u. Add u.f for flags.
7808 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
7809 (tdesc_free_type): Likewise.
7810 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
7811 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
7812 (tdesc_add_bitfield, tdesc_add_flag): New.
7813 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
7814 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
7815 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
7816 current_type. Add current_type_size and current_type_is_flags.
7817 (tdesc_start_union): Clear the new fields.
7818 (tdesc_start_struct, tdesc_start_flags): New.
7819 (tdesc_start_field): Handle struct fields, including bitfields.
7820 (field_attributes): Make type optional. Add start and end.
7821 (union_children): Rename to struct_union_children.
7822 (union_attributes): Rename to struct_union_attributes. Add optional
7824 (flags_attributes): New.
7825 (feature_children): Add struct and flags.
7826 * features/gdb-target.dtd: Add flags and struct to features.
7827 Make field type optional. Add field start and end.
7829 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7831 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
7832 (amd64_linux_read_description): Likewise.
7833 (_initialize_amd64_linux_nat): Set to_read_description to
7834 amd64_linux_read_description.
7836 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
7837 (amd64_linux_register_name): Removed.
7838 (amd64_linux_register_type): Likewise.
7839 (amd64_linux_core_read_description): New.
7840 (amd64_linux_init_abi): Set target description to
7841 tdesc_amd64_linux if needed. Support orig_rax in target
7842 description. Don't call set_gdbarch_register_name nor
7843 set_gdbarch_register_type. Call
7844 set_gdbarch_core_read_description.
7845 (_initialize_amd64_linux_tdep): Call
7846 initialize_tdesc_amd64_linux.
7848 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
7850 * amd64-tdep.c: Include "features/i386/amd64.c".
7851 (amd64_register_names): Removed.
7852 (amd64_register_name): Likewise.
7853 (amd64_register_type): Likewise.
7854 (amd64_init_abi): Set num_core_regs and register_names. Set
7855 target description to tdesc_amd64 if needed. Don't call
7856 set_gdbarch_register_name nor set_gdbarch_register_type.
7857 (_initialize_amd64_tdep): New.
7859 * i386-linux-nat.c (i386_linux_read_description): New.
7860 (_initialize_i386_linux_nat): Set to_read_description to
7861 i386_linux_read_description.
7863 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
7864 (i386_linux_register_name): Removed.
7865 (i386_linux_core_read_description): New.
7866 (i386_linux_read_description): Likewise.
7867 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
7868 Set target description to tdesc_i386_linux if needed. Support
7869 orig_eax. Set register_reggroup_p. Call
7870 set_gdbarch_core_read_description.
7871 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
7873 * i386-linux-tdep.h (tdesc_i386_linux): New.
7875 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
7878 * i386-tdep.c: Include "features/i386/i386.c".
7879 (i386_register_names): Make it const.
7880 (i386_mmx_names): Likewise.
7881 (i386_num_register_names): Removed.
7882 (i386_register_name): Likewise.
7883 (i386_eflags_type): Likewise.
7884 (i386_mxcsr_type): Likewise.
7885 (i386_sse_type): Likewise.
7886 (i386_register_type): Likewise.
7887 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
7888 (i386_pseudo_register_name): New.
7889 (i386_pseudo_register_type): Likewise.
7890 (i386_mmx_type): Make it static.
7891 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
7892 I387_NUM_REGS. Set num_core_regs and register_names. Don't
7893 call set_gdbarch_register_name nor set_gdbarch_register_type.
7894 Set register_reggroup_p. Set target description to tdesc_i386
7895 if needed. Call set_tdesc_pseudo_register_type,
7896 set_tdesc_pseudo_register_name and tdesc_use_registers.
7897 (_initialize_i386_tdep): Call initialize_tdesc_i386.
7898 initialize_tdesc_x86_64.
7900 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
7901 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
7902 register_names, tdesc and register_reggroup_p.
7903 (I386_NUM_FREGS): Removed.
7904 (i386_eflags_type): Likewise.
7905 (i386_mxcsr_type): Likewise.
7906 (i386_mmx_type): Likewise.
7907 (i386_sse_type): Likewise.
7908 (i386_register_name): Likewise.
7909 (i386_regnum): Add I386_MXCSR_REGNUM.
7910 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
7912 * i387-tdep.h (I387_NUM_REGS): New.
7914 * regformats/i386/i386-linux.dat: Generated.
7915 * regformats/i386/i386.dat: Likewise.
7916 * regformats/i386/amd64-linux.dat: Likewise.
7917 * regformats/i386/amd64.dat: Likewise.
7919 * regformats/reg-i386-linux.dat: Removed.
7920 * regformats/reg-i386.dat: Likewise.
7921 * regformats/reg-x86-64-linux.dat: Likewise.
7922 * regformats/reg-x86-64.dat: Likewise.
7924 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
7926 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
7927 cygwin_conv_path API rather than the deprecated
7928 cygwin_conv_to_full_posix_path.
7930 (GetModuleFileNameExA): Undefine for Cygwin.
7931 (GetModuleFileNameExW): Define for Cygwin.
7932 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
7933 Call GetModuleFileNameExW and convert path to POSIX using
7935 (windows_make_so): Always define p. Drop unused variable m.
7936 Don't use Win32 functions to check file existance, rather use
7937 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
7938 Use canonicalize_file_name to get full path.
7939 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
7940 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
7941 use correct target buffer size in call to WideCharToMultiByte.
7942 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
7943 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
7944 (windows_create_inferior): Convert all paths and arguments to wchar_t
7945 and use CreateProcessW on Cygwin.
7946 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
7947 (bad_GetModuleFileNameExA): Undefine for Cygwin.
7948 (bad_GetModuleFileNameExW): Define for Cygwin.
7949 (_initialize_loadable): Load GetModuleFileNameExW into
7950 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
7952 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
7955 * python/py-frame.c (frapy_read_var): Add block argument and logic
7956 to cope with user provided blocks.
7958 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7960 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
7963 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
7965 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
7966 (COMMON_OBS): ... to here since it's used unconditionally.
7967 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
7970 2010-02-26 David Daney <ddaney@caviumnetworks.com>
7972 * mips-linux-tdep.c: Update struct sigframe comments.
7973 (SIGFRAME_CODE_OFFSET): Delete macro.
7974 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
7976 (mips_linux_n32n64_sigframe_init): Same.
7978 2010-02-26 Kevin Buettner <kevinb@redhat.com>
7980 * remote-mips.c (mips_load): Don't use pseudo-register when
7981 invalidating regcache.
7983 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7985 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
7987 2010-02-26 Pedro Alves <pedro@codesourcery.com>
7989 * NEWS: Add "New targets" section, and mention ARM Symbian
7992 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
7994 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
7995 add ADDR_SIZE member.
7996 (allocate_piece_closure): Update.
7997 (copy_pieced_value_closure): Likewise.
7998 (dwarf2_evaluate_loc_desc): Likewise.
7999 (read_pieced_value): Use DWARF address size instead of
8000 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
8002 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
8003 Tom Tromey <tromey@redhat.com>
8005 * python/py-type.c (typy_lookup_typename): Add in block argument.
8006 If provided restrict lookup to specified blocks.
8007 (gdbpy_lookup_type): Likewise.
8008 (typy_lookup_type): Likewise.
8010 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8015 * arm-symbian-tdep.c: New.
8016 * configure.tgt (arm*-*-symbianelf*): New target.
8017 (*-*-symbianelf*): New OS.
8018 * osabi.c (gdb_osabi_names): Add Symbian.
8019 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
8020 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
8021 (ALLDEPFILES): Add arm-symbian-tdep.c.
8023 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8025 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
8027 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8029 * mi/mi-main.c (mi_cmd_execute): Fix typo.
8031 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8032 Tom Tromey <tromey@redhat.com>
8033 Thiago Jung Bauermann <bauerman@br.ibm.com>
8035 * python/python.c (_initialize_python): Call
8036 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
8037 gdbpy_initialize_blocks.
8038 * python/python-internal.h: Declare struct symbol, block and
8039 symtab_and_line. Declare block_object_type and
8041 (gdbpy_lookup_symbol gdbpy_block_for_pc)
8042 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
8043 (symbol_to_symbol_object, block_to_block_object)
8044 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
8045 (gdbpy_initialize_blocks ): Declare.
8046 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
8047 (frapy_select): Add methods.
8048 (frapy_read_var): Add symbol branch.
8049 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
8051 (SUBDIR_PYTHON_SRCS): Likewise.
8052 (py-symbol.o): New rule.
8053 (py-symtab.o): Likewise.
8054 (py-block.o): Likewise.
8055 * python/py-symbol.c: New file.
8056 * python/py-symtab.c: Likewise.
8057 * python/py-block.c: Likewise.
8059 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8063 * inferior.h (prepare_for_detach): Declare.
8064 (struct inferior) <detaching>: New field.
8065 * infrun.c (prepare_for_detach): New.
8066 (handle_inferior_event) <random signal>: Don't stop if detaching.
8067 * target.c (target_detach): Call prepare_for_detach.
8069 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8071 Per-process displaced stepping queue.
8073 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
8074 (displaced_step_gdbarch, displaced_step_closure,
8075 (displaced_step_original, displaced_step_copy): Move globals to
8077 (struct displaced_step_inferior_state): ... new structure.
8078 (displaced_step_inferior_states): New global.
8079 (get_displaced_stepping_state, add_displaced_stepping_state)
8080 (remove_displaced_stepping_state, infrun_inferior_exit): New
8082 (displaced_step_clear): Add displaced_step_inferior_state
8083 parameter, and adjust to handle it.
8084 (displaced_step_clear_cleanup): Parameter is now a
8085 displaced_step_inferior_state. Adjust.
8086 (displaced_step_prepare): Adjust.
8087 (displaced_step_fixup, displaced_step_fixup)
8088 (infrun_thread_ptid_changed, resume): Adjust.
8089 (init_wait_for_inferior): Don't call displaced_step_clear.
8090 (infrun_thread_stop_requested): Rewrite.
8091 (_initialize_infrun): Install infrun_inferior_exit as
8092 inferior_exit observer.
8094 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8096 * inferior.h (ptid_match): Declare.
8097 * infrun.c (ptid_match): New.
8098 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
8099 (handle_notification): Add debug output.
8100 * linux-nat.c (ptid_match): Delete.
8102 2010-02-24 David S. Miller <davem@davemloft.net>
8104 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
8105 * syscalls/sparc-linux.xml: New.
8106 * syscalls/sparc64-linux.xml: New.
8107 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
8108 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
8109 (sparc32_linux_get_syscall_number): New function.
8110 (sparc32_linux_init_abi): Set syscall XML file name and hook up
8111 syscall number fetcher.
8112 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
8113 (sparc64_linux_get_syscall_number): New function.
8114 (sparc64_linux_init_abi): Set syscall XML file name and hook up
8115 syscall number fetcher.
8117 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8121 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
8122 * inferior.c (add_inferior_silent): Notify inferior_added
8124 (delete_inferior_1): Notify inferior_removed observer.
8125 (exit_inferior_1): Pass inferior, not pid, to observer.
8126 (inferior_appeared): Likewise.
8127 (add_inferior_with_spaces): New.
8128 (add_inferior_command): Use the above.
8129 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
8132 * inflow.c (inflow_inferior_exit): Likewise.
8133 * jit.c (jit_inferior_exit_hook): Likewise.
8135 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
8137 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8138 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
8139 (report_initial_inferior): New.
8140 (mi_inferior_removed): Register the above. Make sure
8141 inferior_added observer is called on the first inferior.
8142 (mi_new_thread, mi_thread_exit): Thread group is now identified by
8143 inferior number, not pid.
8144 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
8146 * mi/mi-main.c (current_context): New.
8147 (proceed_thread_callback): Use typed closure.
8148 Proceed everything if pid is 0. Most implementation split into
8149 (proceed_thread): ... this.
8150 (run_one_inferior): New.
8151 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
8152 Adjust for multiexec behaviour.
8153 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8154 (mi_cmd_execute): Handle the 'thread-group' option here.
8155 Do some extra checks.
8156 * mi-parse.c (mi_parse): Handle the --all and --thread-group
8158 * mi-parse.h (struct mi_parse): New fields all and thread_group.
8160 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8162 Make -exec-run a proper MI commands.
8164 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
8165 * mi/mi-cmds.c (mi_cmds): Adjust.
8166 * mi/mi-main.c (mi_cmd_exec_run): New.
8168 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8169 Stan Shebs <stan@codesourcery.com>
8171 * tracepoint.h (set_traceframe_number)
8172 (cleanup_restore_current_traceframe): Declare.
8173 * tracepoint.c (set_traceframe_number): New.
8174 (struct current_traceframe_cleanup): New.
8175 (do_restore_current_traceframe_cleanup)
8176 (restore_current_traceframe_cleanup_dtor)
8177 (make_cleanup_restore_current_traceframe): New.
8178 * infrun.c: Include tracepoint.h.
8179 (fetch_inferior_event): Switch out and in of tfind mode.
8181 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8183 * breakpoint.c (breakpoint_init_inferior): Also delete
8184 bp_shlib_event breakpoints.
8185 * solib-frv.c (enable_break): Remove call to
8186 remove_solib_event_breakpoints.
8187 * solib-svr4.c (enable_break): Ditto.
8188 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
8189 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
8190 * solib-som.c (som_solib_create_inferior_hook): Ditto.
8191 * solib-spu.c (spu_enable_break): Ditto.
8193 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8195 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
8197 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8199 * varobj.c (varobj_update): Avoid non-constants in initializers.
8201 2010-02-23 Tom Tromey <tromey@redhat.com>
8203 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
8204 handle big-endian values.
8205 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
8207 2010-02-22 Pedro Alves <pedro@codesourcery.com>
8212 * breakpoint.c (insert_bp_location): If inserting the read
8213 watchpoint failed, fallback to an access watchpoint.
8214 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
8215 if the value changed, if not watching the same memory for writes.
8216 (watchpoint_locations_match): Add comment.
8217 (update_global_location_list): Copy the location's watchpoint type.
8218 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
8219 handle read watchpoints here.
8220 (i386_insert_watchpoint): Read watchpoints aren't supported.
8221 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
8223 * target.h (target_insert_watchpoint): Update description.
8225 2010-02-19 Tom Tromey <tromey@redhat.com>
8227 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
8228 * m2-typeprint.c (m2_print_type): Update.
8229 * gdbtypes.c (recursive_dump_type): Update.
8230 (copy_type_recursive): Update.
8231 * c-typeprint.c (c_type_print_varspec_prefix): Update.
8232 (c_type_print_base): Update.
8233 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
8235 (struct cplus_struct_type) <ntemplate_args>: Remove.
8236 <struct template_arg>: Remove.
8237 <is_dynamic>: Move earlier.
8238 (TYPE_TEMPLATE_ARGS): Remove.
8239 (TYPE_NTEMPLATE_ARGS): Remove.
8240 (TYPE_TEMPLATE_ARG): Remove.
8242 2010-02-19 Tom Tromey <tromey@redhat.com>
8244 PR c++/8693, PR c++/9496:
8245 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
8246 * c-exp.y (lex_one_token): Rename from yylex. Don't call
8247 write_dollar_variable. Don't try to classify NAME tokens.
8248 (token_and_value): New type.
8249 (token_fifo, popping, name_obstack): New globals.
8250 (classify_name): New function.
8251 (classify_inner_name): Likewise.
8253 (VARIABLE): Now has type sval.
8254 (exp : VARIABLE): Call write_dollar_variable.
8255 (qualified_name): Use TYPENAME, not typebase. Add production for
8256 multiple "::" instances.
8257 (variable): Use name_not_typename.
8258 (qualified_type): Remove.
8261 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8263 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
8264 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
8265 found by bfd_get_section_by_name.
8266 * symfile.h (struct section_addr_info) <sectindex>: New comment.
8268 2010-02-19 Joel Brobecker <brobecker@adacore.com>
8270 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
8271 7.0 section" into "Changes in 7.1".
8273 2010-02-19 Joel Brobecker <brobecker@adacore.com>
8275 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
8276 * version.in: Bump version to 7.1.50.20100219-cvs.
8278 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
8280 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
8281 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
8283 2010-02-17 Tom Tromey <tromey@redhat.com>
8285 * NEWS: Add Python API Improvements section.
8287 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
8289 * NEWS: Correct typo.
8291 2010-02-17 Tom Tromey <tromey@redhat.com>
8293 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
8295 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8297 * symfile.c (build_section_addr_info_from_objfile): Include sections
8298 only if they are SEC_ALLOC or SEC_LOAD.
8300 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
8303 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
8304 of ULONGEST for address size.
8306 2010-02-17 Tom Tromey <tromey@redhat.com>
8308 * NEWS: Add C++ improvements section.
8310 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
8312 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
8313 PyThreadState_Swap): Avoid "statement with no effect" warning.
8315 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8317 * solib-svr4.c (enable_break <target_auxv_search>): New variable
8318 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
8320 2010-02-17 Tristan Gingold <gingold@adacore.com>
8321 Petr Hluzin <petr.hluzin@gmail.com>
8323 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
8324 gdb_assert. Fix info->size for SIG prologue.
8326 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8328 * infcmd.c (show_inferior_tty_command): Check for NULL.
8329 Correct output message.
8331 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8333 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
8334 FUNCTION contains parentheses. Improve removal of a trailing
8337 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8339 * gcore.c (do_bfd_delete_cleanup): New function.
8340 (gcore_command): Use it. Discard the cleanup after success.
8341 (gcore_copy_callback): Delete dead code.
8343 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8345 * symfile.c (addr_info_make_relative): Always use
8346 find_lowest_section.
8348 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
8350 * NEWS: Added entry for namespace fixes.
8352 2010-02-15 Tom Tromey <tromey@redhat.com>
8354 * dwarf2read.c (guess_structure_name): Allocate name on the
8357 2010-02-15 Tom Tromey <tromey@redhat.com>
8359 * c-typeprint.c (c_type_print_base): Reverse order of test.
8361 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8363 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
8364 initialize it from ELF BFD. Extend the prelink condition by it.
8366 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8368 * defs.h (parse_pid_to_attach): New.
8369 * utils.c (parse_pid_to_attach): New.
8370 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
8371 * gnu-nat.c (gnu_attach): Likewise.
8372 * nto-procfs.c (procfs_attach): Likewise.
8373 * procfs.c (procfs_attach): Likewise.
8374 * windows-nat.c (windows_attach): Likewise.
8375 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
8376 * inf-ttrace.c (inf_ttrace_attach): Likewise.
8377 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
8380 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
8382 * MAINTAINERS: Add myself for write after approval privileges.
8384 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8386 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
8389 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8391 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
8392 only if INFO_VERBOSE.
8394 2010-02-12 Tomas Holmberg <th@virtutech.com>
8396 * mi/mi-main.c: Added the --reverse flag to the following MI
8397 commands: exec-continue, exec-finish, exec-next, exec-step,
8398 exec-next-instruction, exec-step-instruction. This is to
8399 support reverse execution over the MI interface to gdb.
8401 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8403 * tracepoint.c (_initialize_tracepoint): Specify that the address
8404 range of `tfind outsize' is exclusive, and that the address range
8405 of `tfind range' is inclusive, in the commands' help strings.
8407 2010-02-12 Joel Brobecker <brobecker@adacore.com>
8409 Spurious "dll not found" error messages on x64-windows.
8410 * windows-nat.c: Add include of complaints.h.
8411 (handle_unload_dll): Change dll-not-found error into a complaint.
8413 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8415 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
8416 bp_tracepoint and bp_fast_tracepoint, not
8417 bp_loc_software_breakpoint.
8418 (update_global_location_list): Tracepoints are never duplicates of
8421 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8423 * breakpoint.c (break_command_really): Change return type to int.
8424 Return false if no breakpoint was created, true otherwise.
8425 (trace_command): Don't set the tracepoint count if no tracepoint
8427 (ftrace_command): Ditto.
8428 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
8429 created in the breakpoints table.
8431 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8432 Ulrich Weigand <uweigand@de.ibm.com>
8434 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
8436 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8438 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
8439 the offset value isn't of integral type.
8441 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8443 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
8446 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8448 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
8449 non-subscriptable types.
8450 * valarith.c (binop_types_user_defined_p): New, abstracted out
8452 (binop_user_defined_p): ... this.
8453 * value.h (binop_types_user_defined_p): Declare.
8455 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8457 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
8458 Merge uploaded TSVs before merging uploaded tracepoints.
8460 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8462 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
8464 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
8466 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
8467 whitespace character after a dot in comment.
8468 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
8470 (list_args_or_locals): For the 'all' (that is
8471 -stack-list-variables) case, always output list of tuples.
8472 Output 'arg' field if variable is argument.
8474 2010-02-10 Tom Tromey <tromey@redhat.com>
8476 * parser-defs.h (parser_debug): Declare.
8477 * parse.c (_initialize_parse): Install "debug parser" set/show
8479 (parser_debug): New global.
8480 (show_parserdebug): New function.
8481 * c-exp.y (c_parse): Set yydebug.
8483 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
8485 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
8486 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8487 (tdesc_predefined_types): Add i387_ext, i386_eflags and
8489 (tdesc_find_type): New.
8490 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
8491 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8493 * target-descriptions.h (tdesc_find_type): New.
8495 2010-02-10 Michael Snyder <msnyder@vmware.com>
8497 * gdb-gdb.py: Comment fix.
8499 2010-02-09 Tristan Gingold <gingold@adacore.com>
8501 * machoread.c (macho_symfile_relocate): New function.
8502 (macho_sym_fns): Use macho_symfile_relocate instead of
8503 default_symfile_relocate.
8504 (macho_oso_data): New type.
8505 (current_oso): New variable.
8506 (macho_add_oso_symfile): Do not compute section_addr_info, but
8507 instead set vma of sections.
8508 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
8509 Set and clear current_oso.
8511 2010-02-09 Joel Brobecker <brobecker@adacore.com>
8513 Wrong type description for tagged type parameter.
8514 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
8515 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
8516 reference to a tagged type.
8518 2010-02-09 Tristan Gingold <gingold@adacore.com>
8520 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
8521 brothers of the parent.
8523 2010-02-08 Tom Tromey <tromey@redhat.com>
8527 * valops.c (search_struct_field): Make 'name' const.
8528 (search_struct_method): Likewise.
8529 (find_method_list): Make 'method' const.
8530 (value_struct_elt): Make 'name' and 'err' const.
8531 (value_find_oload_method_list): Make 'method' const.
8532 (find_overload_match): Make 'name' const.
8533 * eval.c (evaluate_subexp_standard): New locals function,
8535 <OP_FUNCALL>: Handle OP_SCOPE specially.
8537 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8539 * infrun.c (handle_inferior_event): Do not look up regcache
8540 for exited processes.
8542 2010-02-08 Chris Moller <moller@mollerware.com>
8545 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8546 warn if found, and assume length = 1.
8548 2010-02-08 Chris Moller <cmoller@redhat.com>
8551 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
8552 (cp_print_static_field) Fix use of obstacks.
8554 2010-02-08 Pedro Alves <pedro@codesourcery.com>
8556 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
8557 resumed LWPs as resumed.
8558 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
8559 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
8560 of throwing an internal error. If an LWP of a process we're not
8561 waiting for reports a signal, don't force collecting a SIGSTOP,
8562 and if it was breakpoint hit in non-stop mode, cancel it. Don't
8563 go through all LWPs cancelling breakpoints in non-stop mode.
8564 (resume_stopped_resumed_lwps): New.
8565 (linux_nat_wait): Use it.
8567 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
8569 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
8570 i386/amd64 and i386/amd64-linux.
8571 (i386/i386-expedite): New.
8572 (i386/i386-linux-expedite): Likewise.
8573 (i386/amd64-expedite):Likewise.
8574 (i386/amd64-linux-expedite): Likewise.
8575 ($(outdir)/i386/i386-linux.dat): Likewise.
8576 ($(outdir)/i386/amd64.dat): Likewise.
8577 ($(outdir)/i386/amd64-linux.dat): Likewise.
8579 * features/i386/32bit-core.xml: New.
8580 * features/i386/32bit-linux.xml: Likewise.
8581 * features/i386/32bit-sse.xml: Likewise.
8582 * features/i386/64bit-core.xml: Likewise.
8583 * features/i386/64bit-linux.xml: Likewise.
8584 * features/i386/64bit-sse.xml: Likewise.
8585 * features/i386/i386-linux.xml: Likewise.
8586 * features/i386/i386.xml: Likewise.
8587 * features/i386/amd64-linux.xml: Likewise.
8588 * features/i386/amd64.xml: Likewise.
8589 * features/i386/i386-linux.c: Likewise.
8590 * features/i386/i386.c: Likewise.
8591 * features/i386/amd64-linux.c: Likewise.
8592 * features/i386/amd64.c: Likewise.
8594 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
8597 * cp-support.h: Added char* alias element to using_direct data
8599 (cp_add_using): Added char* alias argument.
8600 (cp_add_using_directive): Ditto.
8601 * cp-namespace.c: Updated with the above changes.
8602 (cp_lookup_symbol_imports): Check for aliases.
8603 * dwarf2read.c (read_import_statement): Figure out local alias
8604 for the import and pass it on to cp_add_using.
8605 (read_namespace): Pass alias argument to cp_add_using.
8607 2010-02-05 Hui Zhu <teawater@gmail.com>
8609 * defs.h (gdb_bfd_errmsg): New extern.
8610 * exec.c (exec_file_attach): Change bfd_errmsg to
8612 * utils.c (AMBIGUOUS_MESS1): New macro.
8613 (AMBIGUOUS_MESS2): New macro.
8614 (gdb_bfd_errmsg): New function.
8616 2010-02-04 Doug Evans <dje@google.com>
8618 * solib-svr4.c (enable_break): Add comment.
8620 2010-02-04 Anthony Green <green@moxielogic.com>
8622 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
8625 2010-02-04 Tom Tromey <tromey@redhat.com>
8627 * valops.c (search_struct_field): Account for
8628 value_embedded_offset. Fix check for virtual base past the end of
8629 the object. Use value_copy when making a slice of the value.
8631 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8634 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
8635 only if gdb_stdout is a tty.
8637 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8639 * target-descriptions.c: Include "osabi.h".
8640 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
8643 2010-02-04 Tristan Gingold <gingold@adacore.com>
8645 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
8646 (macho_symtab_read): Adjust calls to macho_add_oso.
8647 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
8648 (macho_symfile_read): Adjust call to macho_oso_symfile.
8649 (macho_new_init): Move this function after declarations.
8650 (macho_symfile_init): Ditto.
8651 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
8652 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
8654 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
8656 Include MI command in remotelog.
8658 * mi/mi-main.c (mi_execute_command): Call target_log_command.
8660 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8662 * remote.c (remote_state): Remove gdbarch.
8663 (init_remote_state): Don't set gdbarch.
8664 (remote_query_supported): Pass target_gdbarch instead of
8665 rs->gdbarch to gdbarch_qsupported.
8667 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8669 * gdbarch.sh: Add qsupported.
8671 * gdbarch.c: Regenerated.
8672 * gdbarch.h: Likewise.
8674 * remote.c (remote_state): Add gdbarch.
8675 (init_remote_state): Set gdbarch.
8676 (remote_query_supported): Support gdbarch_qsupported.
8678 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
8680 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
8681 __FreeBSD_kernel_version.
8683 2010-02-03 Tristan Gingold <gingold@adacore.com>
8685 * symfile.h (struct sym_fns): Add sym_relocate field.
8686 (default_symfile_relocate): New prototype.
8687 (symfile_relocate_debug_section): First argument is now an objfile.
8688 * symfile.c (default_symfile_relocate): Rename from
8689 symfile_relocate_debug_section, first argument is now an objfile.
8690 (symfile_relocate_debug_section): New function.
8691 * coffread.c (coff_sym_fns): Set sym_relocate field.
8692 * somread.c (som_sym_fns): Ditto.
8693 * mipsread.c (ecoff_sym_fns): Ditto.
8694 * machoread.c (macho_sym_fns): Ditto.
8695 * elfread.c (elf_sym_fns): Ditto.
8696 * dwarf2read.c (dwarf2_read_section): Ditto.
8697 * xcoffread.c (xcoff_sym_fns): Ditto.
8698 * dbxread.c (aout_sym_fns): Ditto.
8699 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
8700 (elfstab_build_psymtabs): Ditto.
8702 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8704 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
8706 2010-02-02 Tom Tromey <tromey@redhat.com>
8708 * valops.c (value_cast_structs): Try downcasting using the RTTI
8711 2010-02-02 Tom Tromey <tromey@redhat.com>
8713 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
8714 (gnuv2_baseclass_offset): Now static.
8715 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
8716 * gnu-v2-abi.h: Remove.
8718 2010-02-02 Tom Tromey <tromey@redhat.com>
8720 * m2-typeprint.c (m2_record_fields): Don't use
8722 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
8723 (struct main_type) <flag_declared_class>: New field.
8724 (struct cplus_struct_type) <declared_type>: Remove.
8725 <ntemplate_args>: Move earlier.
8726 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
8727 (DECLARED_TYPE_TEMPLATE): Remove.
8728 (TYPE_DECLARED_TYPE): Remove.
8729 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
8730 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
8731 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
8734 2010-02-02 Tom Tromey <tromey@redhat.com>
8736 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
8737 * valops.c (search_struct_field): Compute nbases after calling
8739 (check_field): Call CHECK_TYPEDEF.
8740 * cp-valprint.c (cp_print_value): Pass correct address to
8741 baseclass_offset. Fix check for virtual base past the end of the
8742 object. Don't offset address passed to cp_print_value_fields or
8743 apply_val_pretty_printer.
8744 (cp_print_value_fields): Fix call to val_print.
8745 (cp_print_value_fields_rtti): New function.
8746 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
8747 * p-valprint.c (pascal_object_print_value_fields): Fix call to
8749 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
8751 * language.h (struct language_defn) <la_val_print>: Document.
8752 * c-lang.h (cp_print_value_fields_rtti): Declare.
8754 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8757 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8758 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
8759 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8761 2010-02-01 Michael Matz <matz@suse.de>
8762 Daniel Jacobowitz <dan@codesourcery.com>
8764 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
8765 functions use a frame pointer.
8767 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8769 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
8770 by a conditional setting DYN_ADDR. Use DYN_ADDR.
8771 * config/djgpp/fnchange.lst: Add translations for
8772 symbol-without-target_section.exp and symbol-without-target_section.c.
8774 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8776 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
8777 (remote_breakpoint_for_pc): Correct invalid_p check.
8778 * gdbarch.c: Regenerated.
8780 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8782 * arm-tdep.c (arm_find_mapping_symbol): New function, from
8784 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
8785 (extend_buffer_earlier): New function.
8786 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
8787 (arm_adjust_breakpoint_address): New function.
8788 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
8790 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8792 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
8793 (arm_linux_thumb2_le_breakpoint): New constants.
8794 (arm_linux_init_abi): Set thumb2_breakpoint and
8795 thumb2_breakpoint_size.
8796 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
8797 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
8798 Implement support for single stepping through IT blocks if
8799 a 32-bit Thumb breakpoint instruction is available.
8800 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
8801 is available, use it when needed.
8802 (arm_remote_breakpoint_from_pc): New function.
8803 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
8804 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
8805 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
8807 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8809 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
8810 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
8811 * gdbarch.c, gdbarch.h: Regenerated.
8812 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
8813 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
8814 gdbarch_remote_breakpoint_from_pc.
8816 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8818 * infrun.c (prepare_to_proceed): Handle other signals which might
8820 (handle_inferior_event): Move the check for unusual breakpoint
8823 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
8825 amd64 - function returning record with field straddling 2 registers.
8826 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
8827 a record of length <= 16 in which a field straddles the two
8830 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8832 Implement return values on amd64-windows.
8833 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
8834 (amd64_windows_return_value): New function.
8835 (amd64_windows_init_abi): Call set_gdbarch_return_value with
8836 amd64_windows_return_value.
8838 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8840 amd64-windows: 32 bytes allocated on stack by caller for integer
8841 parameter registers.
8842 * i386-tdep.h (struct gdbarch_tdep): Add new field
8843 integer_param_regs_saved_in_caller_frame.
8844 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8845 tdep->integer_param_regs_saved_in_caller_frame to 1.
8846 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
8847 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
8849 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8851 amd64-windows: memory args passed by pointer during function calls.
8852 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
8853 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
8854 where tdep->memory_args_by_pointer is non-zero.
8855 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8856 tdep->memory_args_by_pointer to 1.
8858 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8860 amd64-windows: Integer parameters in function calls.
8861 * i386-tdep.h (enum amd64_reg_class): New, moved here from
8863 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
8864 call_dummy_integer_regs, and classify.
8865 * amd64-tdep.h (amd64_classify): Add declaration.
8866 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
8867 (amd64_reg_class): Delete, moved to i386-tdep.h.
8868 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
8869 Replace call to amd64_classify by call to tdep->classify.
8870 (amd64_push_arguments): Get the list of registers to use for
8871 passing integer parameters from the gdbarch tdep structure,
8872 rather than using a hardcoded one. Replace calls to amd64_classify
8873 by calls to tdep->classify.
8874 (amd64_push_dummy_call): Get the register number used for
8875 the "hidden" argument from tdep->call_dummy_integer_regs.
8876 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
8877 and tdep->call_dummy_integer_regs. Set tdep->classify.
8878 * amd64-windows-tdep.c: Add include of gdbtypes.h.
8879 (amd64_windows_dummy_call_integer_regs): New static global.
8880 (amd64_windows_classify): New function.
8881 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
8882 tdep->call_dummy_integer_regs and tdep->classify.
8884 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
8886 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
8887 for the new regcache. All callers updated.
8888 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
8889 (get_thread_arch_regcache): Do not set aspace here.
8890 * regcache.h (regcache_xmalloc): Update declaration.
8892 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
8893 regcache_xmalloc updated.
8895 2010-01-28 Joel Brobecker <brobecker@adacore.com>
8897 Another -Wunused-function error in procfs.c (sparc-solaris)
8898 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
8899 Only define if SYS_syssgi is defined.
8900 (remove_dbx_link_breakpoint): Delete declaration. Move up.
8901 (dbx_link_addr, insert_dbx_link_bpt_in_file)
8902 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
8905 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
8907 * windows-nat.c (windows_initialization_done): New variable.
8908 (get_windows_debug_event): Issue error when process dies before
8909 completely initializing.
8910 (do_initial_windows_stuff): Set flag to indicate when we are done with
8911 the initial steps of attaching to the child.
8913 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8915 * symtab.h (struct symbol <symtab>): New comment on NULL values.
8917 2010-01-27 Doug Evans <dje@google.com>
8919 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
8921 * breakpoint.c (bpstat_stop_status): Delete useless code.
8923 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8925 * printcmd.c (display_uses_solib_p): Remove variable section. Access
8926 objfile via SYMBOL_SYMTAB.
8928 2010-01-26 Tom Tromey <tromey@redhat.com>
8931 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
8932 coerce_array on result.
8934 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8936 * cp-namespace.c (cp_lookup_symbol_namespace): Added
8937 search_parent argument.
8938 (cp_add_using): Initialize 'searched' field.
8939 (reset_directive_searched): New function.
8940 * cp-support.h: Add 'searched' field to using_direct struct.
8941 (cp_lookup_symbol_imports): Ditto.
8942 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
8943 Perform recursive search.
8944 Implement non parent search.
8945 * valops.c (value_maybe_namespace_elt): Updated.
8947 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8950 * dwarf2read.c (read_lexical_block_scope): Create blocks for
8951 scopes which contain using directives even if they contain no
8953 * symtab.c (lookup_symbol_aux): Pass lowest level block to
8954 la_lookup_symbol_nonlocal.
8955 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
8956 cp_lookup_symbol_namespace.
8957 (cp_lookup_symbol_namespace): Perform an import lookup at every
8959 (cp_lookup_symbol_imports): New function.
8960 (cp_lookup_symbol_in_namespace): New function.
8962 2010-01-25 Tom Tromey <tromey@redhat.com>
8965 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
8968 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8970 * configure.ac: Only use host_os part when disabling TUI on osf.
8971 Use test to check variables, prefix strings with x.
8972 * configure: Regenerate.
8974 * solib-osf.c (osf_current_sos): Initialize tail.
8976 2010-01-25 gingold <gingold@adacore.com>
8978 * windows-nat.c (windows_continue): Use %x to print thread id.
8979 (get_windows_debug_event): Ditto.
8981 2010-01-22 Tom Tromey <tromey@redhat.com>
8984 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
8985 type and arguments. Use smash_to_methodptr_type.
8986 (read_structure_type): Call quirk_gcc_member_function_pointer
8988 * gdbtypes.h (smash_to_methodptr_type): Declare.
8989 * gdbtypes.c (smash_to_methodptr_type): New function.
8990 (lookup_methodptr_type): Use it.
8992 2010-01-21 Tom Tromey <tromey@redhat.com>
8995 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
8996 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
8997 * glibc-tdep.c (find_minsym_and_objfile): Remove.
8998 (glibc_skip_solib_resolver): Use
8999 lookup_minimal_symbol_and_objfile.
9001 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
9003 * inflow.c (check_syscall): Guard by #if clause for GO32 and
9006 2010-01-20 Tom Tromey <tromey@redhat.com>
9009 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
9010 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
9011 * dwarf2expr.c (new_dwarf_expr_context): Allocate
9012 dwarf_stack_values, not CORE_ADDRs.
9013 (execute_stack_op): Change DW_OP_div and comparison operators to
9014 use signed operands.
9016 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
9018 Per-inferior args and tty and environment.
9020 * infcmd.c (inferior_args): Rename to ...
9021 (inferior_args_scratch): ... this.
9022 (inferior_io_terminal): Rename to ...
9023 (inferior_io_terminal_scratch): ... this.
9024 (inferior_argc, inferior_argv): Remove.
9025 (set_inferior_io_terminal, get_inferior_io_terminal): Store
9026 inside current_inferior().
9027 (set_inferior_tty_command, show_inferior_tty_command): New.
9028 (get_inferior_args, set_inferior_args): Store inside
9030 (notice_args_set): Likewise and rename to...
9031 (set_args_command): ... this.
9032 (set_inferior_args_vector): Likewise.
9033 (notice_args_read): Rename to...
9034 (show_args_command): ...new.
9035 (tty_command): Remove.
9036 (run_command_1): Don't free old args, as they are freed by
9037 set_inferior_arg now.
9038 (run_no_args_command): Likewise.
9039 (inferior_environ): Remove.
9040 (run_command_1): Use environment of the current inferior.
9041 (environment_info, set_environment_command)
9042 (unset_environment_command, path_info, path_command): Likewise.
9043 (_initialize_infcmd): Adjust for function and variable renames.
9044 Do not init inferior_environ.
9045 * inferior.h (set_inferior_arg): Adjust prototype.
9046 (struct inferior): New fields args, argc, argv, terminal, environment.
9047 (inferior_environ): Remove declaration.
9048 * inferior.c (free_inferior): Free new fields.
9049 (add_inferior_silent): Initialize 'environment' field.
9050 * main.c (captured_main): Set arguments only after the initial
9051 inferior has been created. Set set_inferior_io_terminal,
9053 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
9055 (_initialize_mi_cmd_env): Adjust for disappearance of global
9057 * solib.c (solib_find): Use environment of the current inferior.
9059 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9061 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
9063 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
9065 2010-01-20 Joel Brobecker <brobecker@adacore.com>
9067 Get rid of ada-lang.c:function_name_from_pc.
9068 * ada-lang.c: Add "stack.h" #include.
9069 (function_name_from_pc): Delete.
9070 (is_known_support_routine): Replace call to function_name_from_pc
9071 by call to find_frame_funname.
9072 (ada_unhandled_exception_name_addr_from_raise): Likewise.
9074 2010-01-19 Tom Tromey <tromey@redhat.com>
9077 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
9080 2010-01-19 Tom Tromey <tromey@redhat.com>
9082 * top.c (stop_sig, float_handler, do_nothing): Remove.
9084 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9086 * breakpoint.c (watchpoint_check): Check the call
9087 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
9089 * config/djgpp/fnchange.lst: Add translations for
9090 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
9091 watchpoint-cond-gone-stripped.c.
9093 2010-01-19 Tom Tromey <tromey@redhat.com>
9096 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
9097 into parent scope, and enumerator into grandparent scope.
9099 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9101 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
9103 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9105 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
9106 i[34567]86-*-solaris2.1[0-9]*.
9107 * configure.tgt: Likewise.
9109 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9111 * NEWS: Document the source command enhancement allowing it
9112 to load Python scripts. Document the "set/show script-extension"
9115 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9117 Add -Wunused-function to compile flags.
9118 * configure.ac: Add -Wunused-function to build_warnings.
9119 * configure: Regenerate.
9121 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9123 "delete" ada-lex.c:input function, not used.
9124 * ada-lex.l: #define YY_NO_INPUT.
9126 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9128 Delete free_named_symtabs and associated cleanup.
9129 * symfile.h (free_named_symtabs): Delete declaration.
9130 * symfile.c: Remove some commented out code (clear_symtab_users_once).
9131 (cashier_psymtab): Comment function out.
9133 (free_named_symtabs): Delete.
9134 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
9135 * dbxread.c (end_psymtab): Likewise.
9136 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
9137 * exec.c (exec_close_1): Ditto.
9138 * xcoffread.c (xcoff_end_psymtab): Likewise.
9140 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9142 * stack.c (print_block_frame_labels): Comment function out.
9144 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9146 Delete unused or undefined functions.
9147 * breakpoint.c (ep_parse_optional_filename): Delete.
9148 * dcache.c (dcache_write_line): Remove declaration.
9149 * infrun.c (build_infrun): Remove declaration.
9150 * tracepoint.c (tracepoint_save_command): Remove declaration.
9151 * linux-nat.c (init_lwp_list): Delete. No longer used.
9152 * event-loop.c (check_async_signal_handlers): Delete declaration.
9153 * infrun.c (init_execution_control_state): Delete.
9154 (proceed): Update comment to avoid mentioning
9155 init_execution_control_state.
9156 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
9157 * ada-lang.c (ada_to_static_fixed_value): Delete.
9158 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
9159 * cp-namespace.c (cp_copy_usings): Delete.
9160 * xml-syscall.c (xml_number_of_syscalls): Delete.
9161 * progspace.c (find_program_space_by_num): Delete.
9162 * inflow.c (handle_sigio): Delete declaration.
9163 * hppa-tdep.c (hppa_alignof): Delete.
9164 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
9165 (mipsnbsd_core_osabi_sniffer): Delete.
9167 2010-01-18 Tom Tromey <tromey@redhat.com>
9170 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
9171 (CONST_CAST): New tokens.
9172 (exp): Add new productions.
9173 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
9175 (is_cast_operator): New function.
9176 (yylex): Handle cast operators specially.
9177 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
9178 UNOP_REINTERPRET_CAST>: New cases.
9179 * expprint.c (print_subexp_standard): Likewise.
9180 (op_name_standard): Likewise.
9181 (dump_subexp_body_standard): Likewise.
9182 * parse.c (operator_length_standard): Likewise.
9183 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
9184 UNOP_REINTERPRET_CAST.
9185 * gdbtypes.c (class_types_same_p): New function.
9186 (is_ancestor): Use it.
9187 (is_public_ancestor): New function.
9188 (is_unique_ancestor_worker): Likewise.
9189 (is_unique_ancestor): Likewise.
9190 * gdbtypes.h (class_types_same_p, is_public_ancestor)
9191 (is_unique_ancestor): Declare.
9192 * valops.c (value_reinterpret_cast): New function.
9193 (dynamic_cast_check_1): Likewise.
9194 (dynamic_cast_check_2): Likewise.
9195 (value_dynamic_cast): Likewise.
9196 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
9198 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9200 Fix build failure when building without Python support.
9201 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
9204 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9206 Use XVS field type instead of doing a parallel lookup.
9207 * ada-lang.c (ada_get_base_type): Follow the XVS field type
9208 if it is a reference type instead of doing a type lookup using
9211 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9213 Trust PAD types instead of using PAD___XVS.
9214 * ada-lang.c (trust_pad_over_xvs): New static variable.
9215 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
9216 parallel XVS type, follow the XVS type instead of the PAD type.
9217 (unwrap_value): Make sure that there is no parallel XVE type
9218 before returning the value as is.
9219 (set_ada_list, show_ada_list): New static variables.
9220 (set_ada_command, show_ada_command): New functions.
9221 (_initialize_ada_language): Add new "set/show ada" prefix commands.
9222 Add new "set/show ada trust-PAD-over-XVS" setting.
9224 2010-01-18 Tom Tromey <tromey@redhat.com>
9225 Thiago Jung Bauermann <bauerman@br.ibm.com>
9227 Allow "source" to load python scripts.
9228 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
9229 * python/python.c (source_python_script): New function.
9230 * python/python.h (source_python_script): Add declaration.
9231 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
9232 (script_ext_off, script_ext_soft, script_ext_strict)
9233 (script_ext_enums, script_ext_mode): New static constants.
9234 (show_script_ext_mode, find_and_open_script): New functions.
9235 (source_script): Enhance to handle Python scripts.
9236 (init_cli_cmds): Add set/show script-extension commands.
9238 2010-01-16 Stan Shebs <stan@codesourcery.com>
9240 * tracepoint.h (struct trace_status): Use unsigned long long
9242 * tracepoint.c (trace_status_command): Fix printf directive.
9243 (trace_save_command): Check fwrite returns, fix printf directive.
9244 (trace_filename): New global.
9245 (tfile_open): Set it, check read returns.
9246 (tfile_close): Free trace_filename.
9247 (tfile_get_traceframe_address): Check read returns.
9248 (tfile_trace_find): Ditto.
9249 (tfile_fetch_registers): Ditto.
9250 (tfile_xfer_partial): Ditto.
9251 (tfile_get_trace_state_variable_value): Ditto.
9253 2010-01-15 Stan Shebs <stan@codesourcery.com>
9255 Add trace file support.
9256 * tracepoint.h (enum trace_stop_reason): New enum.
9257 (struct trace_status): New struct.
9258 (parse_trace_status): Declare.
9259 (struct uploaded_tp): Move here from remote.c,
9260 add fields for actions.
9261 (struct uploaded_tsv): New struct.
9262 * tracepoint.c (tfile_ops): New target vector.
9263 (trace_fd): New global.
9264 (tfile_open): New function.
9265 (tfile_close): New function.
9266 (tfile_files_info): New function.
9267 (tfile_get_trace_status): New function.
9268 (tfile_get_traceframe_address): New function.
9269 (tfile_trace_find): New function.
9270 (tfile_fetch_registers): New function.
9271 (tfile_xfer_partial): New function.
9272 (tfile_get_trace_state_variable_value): New function.
9273 (init_tfile_ops): New function.
9274 (_initialize_tracepoint): Call it, add tfile target.
9275 (trace_status): New global.
9276 (current_trace_status): New function.
9277 (trace_running_p): Remove, change all users to get from
9278 current_trace_status()->running.
9279 (get_trace_status): Remove.
9280 (trace_status_command): Call target_get_trace_status directly,
9281 report more detail including tracing stop reasons.
9282 (trace_find_command): Always allow tfind on a file.
9283 (trace_find_pc_command): Ditto.
9284 (trace_find_tracepoint_command): Ditto.
9285 (trace_find_line_command): Ditto.
9286 (trace_find_range_command): Ditto.
9287 (trace_find_outside_command): Ditto.
9288 (trace_frames_offset, cur_offset): Declare as off_t.
9289 (trace_regblock_size): Rename from reg_size, update users.
9290 (parse_trace_status): New function.
9291 (tfile_interp_line): New function.
9292 (disconnect_or_stop_tracing): Ensure current trace
9293 status before asking what to do.
9294 (stop_reason_names): New global.
9295 (trace_save_command): New command.
9296 (get_uploaded_tp): Move here from remote.c.
9297 (find_matching_tracepoint): Ditto.
9298 (merge_uploaded_tracepoints): New function.
9299 (parse_trace_status): Use stop_reason_names.
9300 (_initialize_tracepoint): Define tsave command.
9301 * target.h (target_ops): New fields to_save_trace_data,
9302 to_upload_tracepoints, to_upload_trace_state_variables,
9303 to_get_raw_trace_data, change to_get_trace_status
9304 to take a pointer to a status struct.
9305 (target_save_trace_data): New macro.
9306 (target_upload_tracepoints): New macro.
9307 (target_upload_trace_state_variables): New macro.
9308 (target_get_raw_trace_data): New macro.
9309 * target.c (update_current_target): Add new methods, change
9310 signature of to_get_trace_status.
9311 * remote.c (hex2bin): Make globally visible.
9313 (remote_download_trace_state_variable): Download name also.
9314 (remote_get_trace_status): Update parameter, use
9316 (remote_save_trace_data): New function.
9317 (remote_upload_tracepoints): New function.
9318 (remote_upload_trace_state_variables): New function.
9319 (remote_get_raw_trace_data): New function.
9320 (remote_start_remote): Use them.
9321 (_initialize_remote_ops): Add operations.
9322 * ax-gdb.c: Include breakpoint.h.
9323 * breakpoint.c (create_tracepoint_from_upload): Use
9324 break_command_really, return tracepoint, warn about unimplemented
9326 * NEWS: Mention trace file addition.
9328 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9330 Fix compilation warning on gcc-3.4.
9331 * exec.c (print_section_info): Move the `displacement' variable
9332 initialization to its declaration.
9334 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9336 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
9339 2010-01-15 Eric Botcazou <botcazou@adacore.com>
9341 "info tasks" broken by typedefs in ATCB type definitions.
9342 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
9343 ada_check_typedef before retrieving the length of the type for
9346 2010-01-15 Joel Brobecker <brobecker@adacore.com>
9348 Do not use name-based lookup for unconstrained packed arrays.
9349 * ada-lang.c (find_parallel_type_by_descriptive_type):
9350 Limit the fallback to name-based lookups to the case where
9351 the type is a constrained packed array.
9353 2010-01-15 Joel Brobecker <brobecker@adacore.com>
9355 Enhance gdb-gdb.py to handle main_type.type_specific.
9356 * gdb-gdb.py: Print the type-specific part of struct main_type.
9358 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9360 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
9361 * configure: Regenerate.
9362 * config.in: Regenerate.
9363 * utils.c: Include sys/resource.h.
9364 (dump_core, can_dump_core): New.
9365 (internal_vproblem): Update the comment. Check can_dump_core while
9366 setting dump_core_p. Replace two abort calls by dump_core calls.
9368 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9369 Eli Zaretskii <eliz@gnu.org>
9371 * NEWS: Document the PIE support.
9373 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9375 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
9376 (check_is_pie_binary, _initialize_linux_tdep): Remove.
9378 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9380 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
9381 Replace exec_entry_point call by bfd_get_start_address.
9383 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9385 Support Valgrind attachments broken by the PIE support.
9386 * auxv.c: Include gdbcore.h.
9387 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
9388 parameters ops, object and annex. Remove their assertions.
9389 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
9390 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
9391 (memory_xfer_auxv): ... here.
9392 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
9394 * procfs.c (procfs_xfer_partial): Likewise.
9395 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
9396 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
9397 (svr4_solib_create_inferior_hook): Conditionalize the
9398 svr4_relocate_main_executable call.
9400 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9402 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
9403 target_section. Find SECT in current_target_sections, gdb_assert it.
9404 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
9406 * symtab.c (lookup_objfile_from_block): Return the binary file instead
9407 of separate debug info file.
9409 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9411 Support PIEs with no symfile_objfile.
9412 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
9413 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
9415 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9417 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
9419 (svr4_static_exec_displacement): ... a new function.
9420 (svr4_exec_displacement): New function.
9421 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
9422 new_offsets using alloca now. Remove variable old_chain and changed.
9423 Call objfile_relocate unconditionally now.
9425 2010-01-14 Doug Evans <dje@google.com>
9427 * gdbtypes.c (arch_flags_type): Fix comment.
9428 * gdbtypes.h (arch_composite_type): Fix comment.
9430 2009-01-14 Tristan Gingold <gingold@adacore.com>
9432 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
9433 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
9434 to symbol_file_add_from_bfd. Add OSO as separate objfile.
9435 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
9436 macho_add_oso_symfile.
9437 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
9439 2010-01-14 Joel Brobecker <brobecker@adacore.com>
9441 Tru64: Dead threads are never deleted.
9442 * dec-thread.c (dec_thread_ptid_is_alive): New function.
9443 (dec_thread_count_gdb_threads): Fix counter increment.
9444 (dec_thread_add_gdb_thread): Fix *listp increment.
9445 (resync_thread_list): Fix bug in deletion of dead threads that
9446 caused all threads to be deleted, instead of just the dead ones.
9448 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
9452 * python/python-internal.h: Add lazy_string_object_type
9454 (create_lazy_string_object, gdbpy_initialize_lazy_string)
9455 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
9456 * python/py-value.c (valpy_lazy_string): New function.
9457 (convert_value_from_python): Add lazy string conversion.
9458 * python/py-prettyprint.c (pretty_print_one_value): Check if
9459 return is also a lazy string.
9460 (print_string_repr): Add lazy string printing branch.
9461 (print_children): Likewise.
9462 * python/py-lazy-string.c: New file. Implement lazy strings.
9463 * python/python.c (_initialize_python): Call
9464 gdbpy_initialize_lazy_string.
9465 * varobj.c (value_get_print_value): Add lazy string printing
9466 branch. Account for encoding.
9467 * c-lang.c (c_printstr): Account for new encoding argument. If
9468 encoding is NULL, find encoding suited for type, otherwise use
9470 * language.h (language_defn): Add encoding argument.
9471 (LA_PRINT_STRING): Likewise.
9472 * language.c (unk_lang_printstr): Update to reflect new encoding
9473 argument to language_defn.
9474 * ada-lang.h (ada_printstr): Likewise.
9475 * c-lang.h (c_printstr): Likewise.
9476 * p-lang.h (pascal_printstr);
9477 * f-lang.c (f_printstr): Likewise.
9478 * m2-lang.c (m2_printstr): Likewise.
9479 * objc-lang.c (objc_printstr): Likewise.
9480 * p-lang.c (pascal_printstr): Likewise.
9481 * scm-lang.c (scm_printstr): Likewise.
9482 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
9484 * ada-valprint.c (ada_printstr): Likewise.
9485 * f-valprint.c (f_val_print): Likewise
9486 * m2-valprint.c (m2_val_print): Likewise.
9487 * p-valprint.c (pascal_val_print): Likewise.
9488 * expprint.c (print_subexp_standard): Likewise.
9489 * valprint.c (val_print_string): Likewise.
9490 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
9491 (SUBDIR_PYTHON_SRCS): Likewise.
9492 (py-lazy-string.o): New rule.
9494 2010-01-13 Doug Evans <dje@google.com>
9496 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
9497 uninitialized" warning from gcc on local `tree'.
9499 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
9501 Implement core awareness.
9503 * bcache.c (compare_ints): Remove
9504 (print_percentage): Use compare_positive_ints.
9505 * defs.h (compare_positive_ints): Declare.
9506 * linux-nat.h (struct lin_lwp): New field core.
9507 (linux_nat_core_of_thread_1): Declare.
9508 * linux-nat.c (add_lwp): Init the 'core' field.
9509 (linux_nat_wait_1): Record the core.
9510 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
9511 (linux_nat_add_target): Register the above.
9512 * linux-thread-db.c (update_thread_core): New.
9513 (thread_db_find_new_threads): Update core information for
9515 * remote.c (struct private_thread_info): New.
9516 (free_private_thread_info, demand_private_info): New.
9517 (PACKET_qXfer_threads, use_osdata_threads): New.
9518 (struct thread_item, threads_parsing_context
9519 (start_thread, end_thread, thread_attributes)
9520 (thread_children, threads_children, threads_elements): New.
9521 (remote_threads_info): Try qXfer:threads before anything
9523 (remote_protocol_packets): Register qXfer:threads.
9524 (remote_open_1): Init use_osdata_threads.
9525 (struct stop_reply): New field 'core'.
9526 (remote_parse_stop_reply): Parse core number.
9527 (process_stop_reply): Record core number.
9528 (remote_xfer_partial): Handle qXfer:threads.
9529 (remote_core_of_thread): New.
9530 (init_remote_ops): Register remote_core_of_thread.
9531 (_initialize_remote): Register qXfer:read.
9532 * target.c (target_core_of_thread): New
9533 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
9534 (struct target_ops): New field to_core_of_threads.
9535 (target_core_of_thread): Declare.
9536 * gdbthread.h (struct thread_info): New field private_dtor.
9537 * thread.c (print_thread_info): Report the core.
9538 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
9539 * utils.c (compare_positive_ints): New.
9540 * features/threads.dtd: New.
9541 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
9542 * mi/mi-main.c (struct collect_cores_data, collect_cores)
9543 (do_nothing, free_vector_of_osdata_items)
9544 (splay_tree_int_comparator, free_splay_tree): New.
9545 (print_one_inferior_data): Implemented printing of selected
9546 inferiors. Collect and print cores.
9547 (output_cores): New.
9548 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
9549 thread groups together with --available.
9551 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9553 * configure: Regenerate (for _STRUCTURED_PROC).
9555 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9557 Delete dead function.
9558 * ada-lang.c (extract_string): Delete. No longer used.
9560 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9562 Fix -Wunused warning in dec-thread.c.
9563 * dec-thread.c (dec_thread_count_gdb_threads)
9564 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
9566 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9568 * ada-valprint.c (ada_print_floating): Remove trailing space.
9570 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9572 Add support for DW_AT_GNAT_descriptive_type.
9573 * gdbtypes.h (enum type_specific_kind): New enum.
9574 (struct main_type) [type_specific_field]: New component.
9575 [type_specific]: Add new component "gnat_stuff".
9576 (struct gnat_aux_type): New type.
9577 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
9578 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
9579 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
9580 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
9581 (TYPE_SPECIFIC_FIELD): New macros.
9582 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
9583 type does not hold any cplus-specific data.
9584 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
9585 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
9586 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
9587 cplus-specific data.
9588 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
9589 Set new component TYPE_SPECIFIC_FIELD (type).
9590 (gnat_aux_default): New constant.
9591 (allocate_gnat_aux_type): New function.
9592 (init_type): Add initialization the type-specific stuff for
9593 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
9594 (print_gnat_stuff): New function.
9595 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
9596 specific data. Adjust code that prints the contents of the
9597 type-specific union using the TYPE_SPECIFIC_FIELD value.
9598 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
9599 the type cplus stuff for Ada types.
9600 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
9601 Error out if these routines are called with an Ada type.
9602 (read_structure_type, read_array_type, read_subrange_type):
9603 Add call to set_descriptive_type.
9604 (set_die_type): Initialize the gnat-specific data if necessary.
9605 (need_gnat_info, die_descriptive_type, set_descriptive_type):
9607 * ada-lang.c (decode_constrained_packed_array_type): Use
9608 decode_constrained_packed_array_type instead of doing a standard
9609 lookup to locate a parallel type.
9610 (find_parallel_type_by_descriptive_type): New function.
9611 (ada_find_parallel_type_with_name): New function.
9612 (ada_find_parallel_type): Reimplement using
9613 ada_find_parallel_type_with_name.
9614 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
9615 to check if type has a cplus stuff.
9616 * linespec.c (total_number_of_methods): Likewise.
9617 * mdebugread.c (new_type): Likewise.
9619 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9621 * NEWS: Document the 0b binary number prefix parsing.
9623 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9625 * objfiles.c (objfile_relocate1): Change the return type to int.
9626 Describe the new return value. Return non-zero if data changed.
9627 (objfile_relocate): New variable changed. Set it. Call
9628 breakpoint_re_set depending on CHANGED.
9630 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9632 Implement binary numbers parsing.
9633 * c-exp.y (parse_number): New case 'b' and 'B'.
9635 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9636 Tristan Gingold <gingold@adacore.com>
9638 * solib.c (info_sharedlibrary_command): Replace
9639 objfile_has_partial_symbols and objfile_has_full_symbols calls by
9640 objfile_has_symbols.
9642 2010-01-10 Joel Brobecker <brobecker@adacore.com>
9644 * NEWS: Document the improvements made to the mips-irix port.
9646 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9648 Fix the documentation of valprint.c:value_print.
9649 * valprint.c (value_print): Update the function description to
9650 mention that the syntax of the output follows the current_language,
9653 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9655 Fix displacement of separate debug info files.
9656 * objfiles.c (objfile_relocate): Rename to ...
9657 (objfile_relocate1): ... here and make it static. Extend the comment.
9658 (objfile_relocate): New function.
9659 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
9660 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
9661 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
9662 allocated using alloca.
9663 * symfile.c (copy_section_addr_info): Remove.
9664 (build_section_addr_info_from_objfile): Make it global. New variables
9665 addr_bit and mask, use them.
9666 * symfile.h (build_section_addr_info_from_objfile): New prototype.
9667 (copy_section_addr_info): Remove.
9669 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9671 Signal unwinder for mips-irix N32.
9672 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
9674 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
9675 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
9676 (SIGCONTEXT_LO_OFF): New macros.
9677 (mips_irix_n32_tramp_frame_init): New function.
9678 (mips_irix_n32_tramp_frame): New static constant.
9679 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
9681 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9683 Breakpoint in shared library does not work on mips-irix.
9684 * procfs.c: #include "observer.h".
9685 (procfs_inferior_created): New function, moving here the code
9686 which unsets the syssgi syscall-exit notifications.
9687 (procfs_create_inferior): Remove the code which unsets the syssgi
9688 syscall-exit notifications. It is too early to do this here.
9689 (_initialize_procfs): Attach the procfs_inferior_created observer.
9691 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9693 Wrong return convention for arrays (mips-irix).
9694 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
9695 128 bits or smaller are returned the same way as structs
9696 and unions of the the same size.
9698 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9700 Cannot set the PC on mips-irix.
9701 * irix5-nat.c (fill_gregset): Check regno against the raw PC
9702 register number, no the cooked one.
9704 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9706 Error while loading core file on mips-irix.
9707 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
9708 if debugging from a core file.
9710 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9712 GDB hangs when attaching to process on mips-irix.
9713 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
9714 attaching to a process.
9716 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9718 Use the correct breakpoint instruction on mips-irix.
9719 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
9720 containing the correct breakpoint instruction to use on mips-irix.
9721 Use it when the osabi is GDB_OSABI_IRIX.
9723 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9725 -Wunused warning in procfs.c (mips-irix only).
9726 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
9727 throughout instead of using praddset and prdelset respectively.
9729 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9731 GDB crash while stepping into function.
9732 * infrun.c (handle_inferior_event): Refetch the current frame
9733 after handling what.main_action, in case that pointer became
9736 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9738 Fix build failure of solaris-hosted cross debuggers.
9739 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
9741 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
9743 Fix build failure on sparc-solaris.
9744 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
9746 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9748 Move some symfile code into subroutines.
9749 * symfile.h (relative_addr_info_to_section_offsets)
9750 (addr_info_make_relative): New prototypes.
9751 * symfile.c (default_symfile_offsets): Move a part to ...
9752 (relative_addr_info_to_section_offsets): ... this new function.
9753 (default_symfile_offsets): Call it.
9754 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
9756 (addr_info_make_relative): ... this new function.
9758 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9760 Add from_tty to solib_create_inferior_hook.
9761 * infcmd.c (post_create_inferior): Move solib_add after
9762 solib_create_inferior_hook. Pass from_tty to
9763 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
9764 0 from_tty and comment why.
9765 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
9766 * linux-nat.c (linux_child_follow_fork): Likewise.
9767 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
9768 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
9770 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
9771 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
9772 * solib-null.c (null_solib_create_inferior_hook): Likewise.
9773 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
9774 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
9775 * solib-som.c (som_solib_create_inferior_hook): Likewise.
9776 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
9777 Pass it to svr4_so_ops.solib_create_inferior_hook.
9778 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
9780 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
9782 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
9784 * solib-target.c (solib_target_solib_create_inferior_hook): New
9786 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
9787 it to ops->solib_create_inferior_hook.
9788 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
9789 Move solib_add after solib_create_inferior_hook, call it now with
9790 from_tty as 0. New comment there.
9791 * solib.h (solib_create_inferior_hook): New parameter from_tty.
9792 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
9795 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
9798 * infrun.c (handle_inferior_event): Use get_thread_regcache
9799 with events ptid, not get_current_regcache.
9801 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9803 GDB crash with empty executable name (MinGW).
9804 * source.c (openp): Add assert that parameter string is not NULL.
9805 if parameter string is an empty string, then return with a failure
9808 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9810 Get rid of support for VAX Floats.
9811 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9812 (ada_vax_float_print_function): Delete.
9813 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9814 (ada_vax_float_print_function): Delete.
9815 * ada-typeprint.c (print_vax_floating_point_type): Delete.
9816 (ada_print_type): Remove support for VAX floats.
9817 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
9819 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9821 * stabsread.c (read_args): Handle zero arguments.
9823 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9825 Cannot find in-tree libiconv.a after reconfigure.
9826 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
9827 that we can use, then cache the path to this archive.
9828 * configure: Regenerate.
9830 2010-01-07 Stan Shebs <stan@codesourcery.com>
9832 Make tracepoint operations go through target vector.
9833 * target.h (enum trace_find_type): New enum.
9834 (struct target_ops): New fields to_trace_init,
9835 to_download_tracepoint, to_download_trace_state_variable,
9836 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
9837 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
9838 to_set_disconnected_tracing.
9839 (target_trace_init): New macro.
9840 (target_download_tracepoint): New macro.
9841 (target_download_trace_state_variable): New macro.
9842 (target_trace_start): New macro.
9843 (target_trace_set_readonly_regions): New macro.
9844 (target_get_trace_status): New macro.
9845 (target_trace_stop): New macro.
9846 (target_trace_find): New macro.
9847 (target_get_trace_state_variable_value): New macro.
9848 (target_set_disconnected_tracing): New macro.
9849 * target.c (update_current_target): Inherit and set defaults for
9850 tracepoint operations.
9851 * tracepoint.c (default_collect): Make globally visible.
9852 (target_is_remote): Remove, along with all calls.
9853 (tvariables_info): Call target_get_trace_state_variable_value.
9854 (remote_set_transparent_ranges): Remove.
9855 (trace_start_command): Call target_trace_init,
9856 target_download_tracepoint, etc.
9857 (download_tracepoint): Remove.
9858 (trace_stop_command): Simplify.
9859 (stop_tracing): Call target_trace_stop.
9860 (get_trace_status): Call target_get_trace_status.
9861 (trace_status_command): Add case for targets that cannot trace.
9862 (finish_tfind_command): Change to take numerical arguments, call
9864 (trace_find_command): Update call to finish_tfind_command.
9865 (trace_find_pc_command): Ditto.
9866 (trace_find_tracepoint_command): Ditto.
9867 (trace_find_line_command): Ditto.
9868 (trace_find_range_command): Ditto.
9869 (trace_find_outside_command): Ditto.
9870 (set_disconnected_tracing_value): Call
9871 target_set_disconnected_tracing.
9872 * remote.c: Add protocol encoding bits from tracepoint.c.
9873 (trace_error): Move from tracepoint.c.
9874 (remote_get_noisy_reply): Ditto.
9875 (free_actions_list_cleanup_wrapper): Ditto.
9876 (free_actions_list): Ditto.
9877 (remote_trace_init): New function.
9878 (remote_download_tracepoint): New function.
9879 (remote_download_trace_state_variable): New function.
9880 (remote_trace_set_readonly_regions): New function.
9881 (remote_trace_start): New function.
9882 (remote_get_trace_status): New function.
9883 (remote_trace_stop): New function.
9884 (remote_trace_find): New function.
9885 (remote_download_trace_state_variable): New function.
9886 (remote_set_disconnected_tracing): New function.
9887 (init_remote_ops): Add tracepoint operations.
9889 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
9891 2010-01-07 Tristan Gingold <gingold@adacore.com>
9893 * symfile.c (build_section_addr_info_from_objfile): New function.
9894 (symbol_file_add_separate): Don't use offsets from objfile but
9897 2010-01-06 Stan Shebs <stan@codesourcery.com>
9899 Support disconnected tracing.
9900 * infcmd.c (detach_command): Ask whether to stop tracing.
9901 * cli/cli-cmds.c (quit_command): Ditto.
9902 * breakpoint.h (struct breakpoint): New field number_on_target.
9903 * breakpoint.c (create_tracepoint_from_upload): New function.
9904 (get_tracepoint_by_number_on_target): New function.
9905 * remote.c (struct remote): New field disconnected_tracing.
9906 (remote_disconnected_tracing_feature): New function.
9907 (remote_protocol_features): Add DisconnectedTracing.
9908 (struct uploaded_tp): New struct.
9909 (uploaded_tps): New global.
9910 (get_uploaded_tp): New function.
9911 (find_matching_tracepoint): New function.
9912 (remote_get_tracing_state): New function.
9913 (remote_start_remote): Call it.
9914 * tracepoint.c (disconnected_tracing): New global.
9915 (trace_start_command): Initialize number_on_target.
9916 (stop_tracing): New function, split out from...
9917 (trace_stop_command): Call stop_tracing.
9918 (get_trace_status): New function, split out from...
9919 (trace_status_command): Call get_trace_status, add info on
9920 disconnection behavior.
9921 (disconnect_or_stop_tracing): New function.
9922 (finish_tfind_command): Translate from number on target.
9923 (trace_find_tracepoint_command): Translate to number on target.
9924 (send_disconnected_tracing_value): New function.
9925 (set_disconnected_tracing): New function.
9926 (_initialize_tracepoint): Add disconnected-tracing variable.
9927 * NEWS: Mention disconnected tracing.
9929 2010-01-06 Tristan Gingold <gingold@adacore.com>
9931 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
9932 parameter to main_objfile. Iterate on all separate debug objfiles.
9933 * symfile.h (symbol_file_add_separate)
9934 (find_separate_debug_file_by_debuglink): Remove parameter names.
9935 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
9936 (reread_symbols): Use free_objfile_separate_debug.
9937 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
9939 (objfile_separate_debug_iterate, add_separate_debug_objfile)
9940 (free_objfile_separate_debug): New prototypes.
9941 * objfiles.c (objfile_separate_debug_iterate): New function.
9942 (add_separate_debug_objfile, free_objfile_separate_debug): New
9944 (free_objfile): Use free_objfile_separate_debug. Adjust for
9945 multiple separate debug objfile.
9946 (objfile_has_symbols): Adjust comment. Iterate on all separate
9948 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
9950 (lookup_minimal_symbol_text): Ditto.
9951 (lookup_minimal_symbol_by_pc_name): Ditto.
9952 (lookup_minimal_symbol_solib_trampoline): Ditto.
9953 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
9956 2010-01-05 Stan Shebs <stan@codesourcery.com>
9958 Add fast tracepoints.
9959 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
9960 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
9961 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
9962 * breakpoint.c (tracepoint_type): New function.
9963 (ALL_TRACEPOINTS): Use it.
9964 (should_be_inserted): Ditto.
9965 (bpstat_check_location): Ditto.
9966 (print_one_breakpoint_location): Ditto.
9967 (user_settable_breakpoint): Ditto.
9968 (set_breakpoint_location_function): Ditto.
9969 (disable_breakpoints_in_shlibs): Ditto.
9970 (delete_trace_command): Ditto.
9971 (print_it_typical): Add bp_fast_tracepoint case.
9972 (bpstat_what): Ditto.
9973 (print_one_breakpoint_location): Ditto.
9974 (allocate_bp_location): Ditto.
9976 (breakpoint_re_set_one): Ditto.
9977 (disable_command): Ditto.
9978 (enable_command): Ditto.
9979 (check_fast_tracepoint_sals): New function.
9980 (break_command_really): Call it.
9981 (ftrace_command): New function.
9982 (_initialize_breakpoint): Add ftrace command.
9983 * gdbarch.sh (fast_tracepoint_valid_at): New.
9984 * gdbarch.h, gdbarch.c: Regenerate.
9985 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
9986 (i386_gdbarch_init): Use it.
9987 * remote.c (struct remote_state): New field fast_tracepoints.
9988 (PACKET_FastTracepoints): New packet config type.
9989 (remote_fast_tracepoint_feature): New function.
9990 (remote_protocol_features): Add FastTracepoints.
9991 (remote_supports_fast_tracepoints): New function.
9992 (_initialize_remote): Add FastTracepoints.
9993 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
9994 * NEWS: Mention fast tracepoints.
9996 2010-01-06 Joel Brobecker <brobecker@adacore.com>
9998 * gdb-gdb.py: New file.
10000 2010-01-05 Michael Snyder <msnyder@vmware.com>
10002 * infrun.c (handle_inferior_event): Fix typo in comment.
10004 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10006 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
10008 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10010 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
10012 (s390-linux32-expedite): Define.
10013 (s390-linux64-expedite): Define.
10014 (s390x-linux64-expedite): Define.
10015 * features/s390-acr.xml: New file.
10016 * features/s390-fpr.xml: New file.
10017 * features/s390-core32.xml: New file.
10018 * features/s390-core64.xml: New file.
10019 * features/s390x-core64.xml: New file.
10020 * features/s390-linux32.xml: New file.
10021 * features/s390-linux64.xml: New file.
10022 * features/s390x-linux64.xml: New file.
10023 * features/s390-linux32.c: New generated file.
10024 * features/s390-linux64.c: New generated file.
10025 * features/s390x-linux64.c: New generated file.
10027 * regformats/s390-linux32.dat: New generated file.
10028 * regformats/s390-linux64.dat: New generated file.
10029 * regformats/s390x-linux64.dat: New generated file.
10030 * regformats/reg-s390.dat: Remove.
10031 * regformats/reg-s390x.dat: Remove.
10033 * s390-nat.c: Include "auxv.h" and <elf.h>.
10034 (HWCAP_S390_HIGH_GPRS): Define if undefined.
10035 (s390_target_wordsize): New function.
10036 (s390_auxv_parse): Likewise.
10037 (s390_get_hwcap): Likewise.
10038 (s390_read_description): Likewise.
10039 (_initialize_s390_nat): Install s390_auxv_parse and
10040 s390_read_description.
10042 * s390-tdep.c: Include "features/s390-linux32.c",
10043 "features/s390-linux64.c", and "features/s390x-linux64.c".
10044 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
10045 (s390_register_call_saved): New function.
10046 (s390_register_name): Remove.
10047 (s390_register_type): Remove.
10048 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
10049 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
10050 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
10051 (s390_pseudo_register_name): New function.
10052 (s390_pseudo_register_type): New function.
10053 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
10054 Handle full GPR pesudos and varying pseudo register numbers.
10055 (s390_pseudo_register_write): Likewise
10056 (s390x_pseudo_register_read): Remove.
10057 (s390x_pseudo_register_write): Likewise.
10058 (s390_register_group): Remove.
10059 (s390_pseudo_register_group): New function.
10060 (s390_regmap_gregset): Add GPR upper halves.
10061 (s390x_regmap_gregset): Likewise.
10062 (s390_regmap_fpregset): Likewise.
10063 (s390_regmap_upper): New global variable.
10064 (s390_upper_regset): New global variable.
10065 (s390_upper_regset_sections): New global variable.
10066 (s390_regset_from_core_section): Handle GPR upper halves.
10067 (s390_core_read_description): New function.
10068 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
10069 register information. Handle varying pseudo register numbers.
10070 (s390_backchain_frame_unwind_cache): Likewise.
10071 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
10072 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
10073 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
10074 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
10075 Handle varying pseudo register numbers.
10076 (s390_unwind_pc): Handle varying pseudo register numbers.
10077 (s390_dwarf2_prev_register): New function.
10078 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
10079 register information. Handle varying pseudo register numbers.
10080 Install s390_dwarf2_prev_register to unwind full GPRs.
10081 (s390_gdbarch_init): Handle target descriptions. Assign varying
10082 pseudo register numbers. Install s390_adjust_frame_regnum.
10083 (_initialize_s390_tdep): Initialize target descriptions.
10085 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
10086 (S390_NUM_REGS): Redefine to include upper half registers.
10087 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
10088 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
10089 (tdesc_s390_linux32): Add declaration.
10090 (tdesc_s390_linux64): Likewise.
10091 (tdesc_s390x_linux64): Likewise.
10093 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10095 * regset.h (struct core_regset_section): Add HUMAN_NAME.
10096 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
10097 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
10098 (ppc_linux_vmx_regset_sections): Likewise.
10099 (ppc_linux_fp_regset_sections): Likewise.
10101 * corelow.c (get_core_register_section): Constify arguments.
10102 (get_core_registers): Use gdbarch_core_regset_sections instead
10103 of hard-coded platform-specific register section names.
10105 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10107 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
10108 a register, assume the least-significant part is used.
10109 (write_pieced_value): Likewise.
10111 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10113 * printcmd.c: Include "arch-utils.h".
10114 (do_one_display): Re-parse expression if current architecture changed.
10116 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10117 Joel Brobecker <brobecker@adacore.com>
10119 * gdbtypes.c (check_typedef): New comment on type length.
10120 * value.c (allocate_value_lazy): Remove the unused atype variable. New
10121 comment on type length.
10122 (value_primitive_field): Keep the original TYPE value, new comment.
10124 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10126 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
10127 p_start. Change != comparisons to > and < comparisons.
10129 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10131 * cli/cli-script.c (process_next_line): Check P2 overrun.
10133 2009-01-01 Joel Brobecker <brobecker@adacore.com>
10135 Update the copyright hearder to add year 2010 for most GDB files.
10137 2009-01-01 Joel Brobecker <brobecker@adacore.com>
10139 Fix build failure in inf-ptrace.c.
10140 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
10142 2010-01-01 Joel Brobecker <brobecker@adacore.com>
10144 * top.c (print_gdb_version): Update copyright year.
10146 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
10148 Fix break *FUN'address thread NUM.
10149 * ada-lex.l (task): Expand rule to also match the thread keyword.
10151 2010-01-01 Joel Brobecker <brobecker@adacore.com>
10153 Fix break *FUN'address task NUM.
10154 * ada-lex.l (task): New rule.
10155 * ada-lang.c (valid_task_id): Make sure the Ada task list has
10156 been built before using it.
10158 For older changes see ChangeLog-2009.
10164 version-control: never