1 2010-04-22 Chris Moller <cmoller@redhat.com>
3 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
4 method of popping recursion-detection stack with a method based on
5 obstack_object_size(). (Similar to the PR9167 patch below, but for
6 the static array obstack rather than the static member obstack.)
8 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
10 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
11 (_initialize_amd64_linux_nat): Replace
12 amd64_linux_gregset64_reg_offset with
13 amd64_linux_gregset_reg_offset.
15 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
18 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
20 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
23 * stabsread.c (set_length_in_type_chain): New function.
24 (read_struct_type): Call set_length_in_type_chain function.
25 (read_enum_type): Idem.
27 2010-04-21 Stan Shebs <stan@codesourcery.com>
28 Nathan Sidwell <nathan@codesourcery.com>
30 * tracepoint.c (trace_save): Open in binary mode.
32 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
34 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
36 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
37 builtin_char32 fields.
38 * printcmd.c (decode_format): Set char size to '\0'
39 for strings unless explicit size is given.
40 (print_formatted): Correct calculation of NEXT_ADDRESS
41 for 16 or 32 bit strings.
42 (do_examine): Do not force byte size for strings.
43 Use builtin_char16 and builtin_char32 types to display
44 16 or 32 bit-wide strings.
45 (x_command): Set LAST_SIZE to 'b' for string type.
47 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
50 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
53 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
54 there is no .reg-xstate section.
55 (i386_linux_core_read_description): Check XCR0 first.
57 2010-04-21 Mike Frysinger <vapier@gentoo.org>
59 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
62 2010-04-21 Chris Moller <cmoller@redhat.com>
65 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
66 method of popping recursion-detection stack with a method based on
67 obstack_object_size().
69 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
72 * p-valprint.c (pascal_val_print): Fix default printing of integer
75 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
77 Fix compilation warning on gcc-4.1.2.
78 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
79 local variable`pc' to zero.
81 2010-04-20 Joel Brobecker <brobecker@adacore.com>
83 Implement thread support with core files on alpha-tru64.
84 * dec-thread.c (dec_thread_find_new_threads): New function,
85 extracted from resync_thread_list.
86 (resync_thread_list): Add OPS parameter. Replace extracted-out
87 code by call to dec_thread_find_new_threads.
88 (dec_thread_wait): Update call to resync_thread_list.
89 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
91 2010-04-20 Joel Brobecker <brobecker@adacore.com>
93 * ada-lang.c (value_pointer): New function.
94 (make_array_descriptor): Call value_pointer to convert addresses to
97 2010-04-20 Joel Brobecker <brobecker@adacore.com>
99 * rs6000-aix-tdep.c: #include exceptions.h.
100 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
101 while reading the memory at ADDR, then ADDR cannot be a function
104 2010-04-20 Joel Brobecker <brobecker@adacore.com>
106 * ada-typeprint.c (ada_print_typedef): New function.
107 * ada-lang.h (ada_print_typedef): Add declaration.
108 * ada-lang.c (ada_language_defn): set la_print_typdef field
109 to ada_print_typedef.
111 2010-04-20 Joel Brobecker <brobecker@adacore.com>
113 * procfs.c (procfs_address_to_host_pointer): Only define when used.
115 2010-04-20 Joel Brobecker <brobecker@adacore.com>
117 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
118 (iterate_over_mappings): Adjust function profile. Add declaration.
119 (insert_dbx_link_bpt_in_region, info_mappings_callback):
122 2010-04-20 Joel Brobecker <brobecker@adacore.com>
124 * procfs.c (solib_mappings_callback): Move function up to avoid
127 2010-04-20 Joel Brobecker <brobecker@adacore.com>
129 * procfs.c (find_signalled_thread, find_stop_signal): Move
130 these functions down to define them only when used.
132 2010-04-20 Joel Brobecker <brobecker@adacore.com>
134 * valprint.c (common_val_print): Fix the value before extracting
136 * ada-lang.c (ada_to_fixed_value): Make this function extern.
137 * ada-lang.h (ada_to_fixed_value): New function declaration.
138 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
139 to avoid code duplication and fix a bug in the handling of
140 fixed types contents.
142 2010-04-20 Tom Tromey <tromey@redhat.com>
144 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
145 (read_partial_die): Likewise.
146 (dwarf_attr_name): Likewise.
148 2010-04-20 Chris Moller <cmoller@redhat.com>
152 * cp-valprint.c (global): Adding new static array recursion
154 (cp_print_value_fields, cp_print_static_field): Added new static
155 array recursion detection code.
157 2010-04-20 Mark Kettenis <kettenis@gnu.org>
159 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
160 general-purpose register set should be 68 instead of 144.
161 (i386_linux_sse_regset_sections): Likewise.
162 (i386_linux_avx_regset_sections): Likewise.
164 2010-04-20 Stan Shebs <stan@codesourcery.com>
165 Nathan Sidwell <nathan@codesourcery.com>
167 * dwarf2loc.c (struct axs_var_loc): New struct.
168 (dwarf2_tracepoint_var_loc): New function.
169 (dwarf2_tracepoint_var_access): New function.
170 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
172 (locexpr_describe_location_piece): New function.
173 (locexpr_describe_location_1): New function.
174 (locexpr_describe_location): Call it, update signature.
175 (loclist_describe_location): Rewrite to loop over locations,
177 * symtab.h (struct symbol_computed_ops): Add address to
178 describe_location arguments, return void.
179 * printcmd.c (address_info): Get context PC, pass to computed
180 location description.
181 * tracepoint.c (scope_info): Ditto.
182 * ax-gdb.c (trace_kludge): Export.
184 2010-04-20 Tom Tromey <tromey@redhat.com>
186 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
187 (struct dwarf2_cie) <segment_size>: New field.
188 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
189 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
191 (read_attribute_value): Handle DW_FORM_flag_present,
192 DW_FORM_sec_offset, DW_FORM_exprloc.
193 (dump_die_shallow): Likewise.
194 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
195 (dwarf2_const_value): Handle DW_FORM_exprloc.
196 (attr_form_is_block): Likewise.
197 (struct line_header) <maximum_ops_per_instruction>: New field.
198 (dwarf_decode_line_header): Set new field.
199 (dwarf_decode_lines): Handle new field.
201 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
203 * f-exp.y: Add new production to recognize the `logical*8' type.
204 (LOGICAL_S8_KEYWORD): New token.
205 * f-lang.c (enum f_primitive_types)
206 <f_primitive_type_logical_s8>: New field.
207 (f_language_arch_info): Handling `logical*8' type.
208 (build_fortran_types): Building `logical*8' type.
209 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
211 2010-04-19 Doug Evans <dje@google.com>
213 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
214 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
217 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
219 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
221 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
223 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
224 type to void function.
226 2010-04-19 Stan Shebs <stan@codesourcery.com>
227 Vladimir Prus <vladimir@codesourcery.com>
229 * tracepoint.c (tfind_1): Add missing newline, report exit from
231 * target.c (update_current_target): Make default
232 to_trace_find return -1.
234 2010-04-19 Mike Frysinger <vapier@gentoo.org>
236 * objc-lang.c (find_methods): Move symname check up.
238 2010-04-19 Pedro Alves <pedro@codesourcery.com>
240 * ada-lang.c (print_recreate_exception)
241 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
242 not "catch unhandled".
244 2010-04-19 Pedro Alves <pedro@codesourcery.com>
248 Implement `save-breakpoints'.
250 * breakpoint.c (save_cmdlist): New.
251 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
253 (print_recreate_catch_fork): New.
254 (catch_fork_breakpoint_ops): Install it.
255 (print_recreate_catch_vfork): New.
256 (catch_vfork_breakpoint_ops): Install it.
257 (print_recreate_catch_syscall): New.
258 (catch_syscall_breakpoint_ops): Install it.
259 (print_recreate_catch_exec): New.
260 (catch_exec_breakpoint_ops): Install it.
261 (print_recreate_exception_catchpoint): New.
262 (gnu_v3_exception_catchpoint_ops): Install it.
263 (save_breakpoints): New, based on tracepoint_save_command, but
264 handle all breakpoint types.
265 (save_breakpoints_command): New.
266 (tracepoint_save_command): Rename to...
267 (save_tracepoints_command): ... this, and reimplement using
270 (_initialize_breakpoints): Install the "save" command prefix.
271 Install the "save breakpoints" command. Make "save-tracepoints" a
272 deprecated alias for "save tracepoints".
273 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
274 * ada-lang.c (print_recreate_exception): New.
275 (print_recreate_catch_exception): New.
276 (catch_exception_breakpoint_ops): Install it.
277 (print_recreate_catch_exception_unhandled): New.
278 (catch_exception_unhandled_breakpoint_ops): Install it.
279 (print_recreate_catch_assert): New.
280 (catch_assert_breakpoint_ops): Install it.
282 * NEWS: Mention the new `save breakpoints' command. Mention the
283 new `save tracepoints' alias and that `save-tracepoints' is now
286 2010-04-18 Pedro Alves <pedro@codesourcery.com>
290 * tui/tui-out.c: Include cli-out.h.
291 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
292 (tui_begin, tui_end, tui_field_int, tui_field_skip)
293 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
294 (tui_message, tui_wrap_hint, tui_flush): Delete forward
296 (struct ui_out_data): Rename to...
297 (struct tui_ui_out_data): ... this. Remove `stream' and
298 `suppress_output' fields, and inherit cli_ui_out_data.
299 (tui_out_data): New typedef.
300 (tui_ui_out_impl): Don't initialize fields staticaly.
301 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
302 (tui_begin, tui_end): Delete.
303 (tui_field_int): Adjust to delegate most work to the base type.
304 (tui_field_skip): Delete.
305 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
306 delegate most work to the base type.
307 (tui_spaces): Delete.
308 (tui_text): Adjust to delegate most work to the base type.
309 (tui_message): Delete.
310 (tui_wrap_hint): Delete.
312 (out_field_fmt): Delete.
313 (field_separator): Delete.
314 (tui_out_new): Adjust to initialize the base type.
315 (_initialize_tui_out): Initialize tui_ui_out_impl.
316 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
318 (cli_out_data): Adjust.
319 (cli_ui_out_impl): Make extern.
320 (cli_table_header, cli_field_int, cli_field_skip): Use
321 uo_field_string instead of cli_field_string.
322 (cli_redirect): Adjust to use cli_out_data.
323 (cli_out_data_ctor): New.
324 (cli_out_new): Use it.
325 * cli-out.h (struct ui_file): Remove forward declaration.
326 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
327 (cli_ui_out_impl): Declare.
328 (cli_out_data_ctor): Declare.
329 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
330 (uo_field_string): No longer static.
331 (ui_out_data): Change return type to void pointer.
332 (ui_out_new): Change `data' parameter type to void pointer.
333 * ui-out.h (struct ui_out_data): Don't forward declare.
334 (ui_out_data): Change return type to void pointer.
335 (ui_out_new): Change `data' parameter type to void pointer.
336 (uo_field_string): Declare.
338 2010-04-17 Pedro Alves <pedro@codesourcery.com>
340 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
341 instead of always false.
343 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
346 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
349 2010-04-17 Pedro Alves <pedro@codesourcery.com>
351 * breakpoint.c (watchpoints_triggered): Use
352 is_hardware_watchpoint.
353 (watchpoints_triggered): Ditto.
354 (bpstat_check_location): Use is_watchpoint and
355 is_hardware_watchpoint.
356 (bpstat_check_watchpoint): Use is_watchpoint and
357 is_hardware_watchpoint.
358 (bpstat_stop_status): Fix comment.
359 (user_settable_breakpoint): Use is_watchpoint.
360 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
361 (disable_watchpoints_before_interactive_call_start): Use
363 (enable_watchpoints_after_interactive_call_stop): Use
365 (clear_command): Use is_watchpoint.
366 (do_enable_breakpoint): Use is_watchpoint.
368 2010-04-16 Mike Frysinger <vapier@gentoo.org>
370 * solib-frv.c (enable_break1_done): Delete.
371 (enable_break2): Do not check enable_break1_done. Move the
372 enable_break2_done setting and call to
373 remove_solib_event_breakpoints() to the end. Return without
374 warning when the contents of _dl_debug_addr are 0.
375 (enable_break): Do not set enable_break1_done.
376 (frv_clear_solib): Likewise.
378 2010-04-16 Kevin Buettner <kevinb@redhat.com>
380 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
381 instead of an error if no PLT entry is found. Return a
382 potentially useful result.
383 (m32c_m16c_pointer_to_address): Add code to search for function
384 address when no .plt entry is found.
386 2010-04-16 Stan Shebs <stan@codesourcery.com>
388 * tracepoint.c (trace_variable_command): Run a cleanup.
390 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
392 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
394 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
396 Support for Windows OS Thread Information Block.
397 * NEWS: Document new feature.
398 * remote.c (PACKET_qGetTIBAddr): New enum element.
399 (remote_get_tib_address): New function.
400 (init_remote_ops): Set to_get_tib_address field
401 to remote_get_tib_address.
402 (_initialize_remote): Add add_packet_config_cmd
403 for PACKET_qGetTIBAddr.
404 * target.c (update_current_target): Set default value for
405 new to_get_tib_address field.
406 * target.h (target_ops): New field to_get_tib_address.
407 (target_get_tib_address): New macro.
408 * windows-nat.c (thread_info): Add thread_local_base field.
409 (windows_add_thread): Add tlb argument of type 'void *'.
410 (fake_create_process): Adapt windows_add_thread call.
411 (get_windows_debug_event): Idem.
412 (windows_get_tib_address): New function.
413 (init_windows_ops): Set to_get_tib_address field
414 to remote_get_tib_address.
415 (_initialize_windows_nat): Replace info_w32_cmdlist
416 initialization by a call to init_w32_command_list.
417 (info_w32_command, info_w32_cmdlist): Removed from here...
418 to windows-tdep.c file.
419 * windows-tdep.h (info_w32_cmdlist): Declare.
420 (init_w32_command_list): New external function
422 * windows-tdep.c: Add several headers.
423 (info_w32_cmdlist): to here, made global.
424 (thread_information_32): New struct.
425 (thread_information_64): New struct.
426 (TIB_NAME): New char array.
427 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
428 (maint_display_all_tib): New static variable.
429 (windows_get_tlb_type): New function.
430 (tlb_value_read, tlb_value_write): New functions.
431 (tlb_value_funcs): New static struct.
432 (tlb_make_value): New function.
433 (display_one_tib): New function.
434 (display_tib): New function.
435 (show_maint_show_all_tib):New function.
436 (info_w32_command): Moved from windows-nat.c.
437 (init_w32_command_list): New function.
438 (_initialize_windows_tdep): New function.
439 New "maint set/show show-all-tib" command
440 New "$_tlb" internal variable.
442 2010-04-16 Joel Brobecker <brobecker@adacore.com>
444 * tui/tui-regs.c (tui_display_register): Add comment about
446 * tui/tui-stack.c (tui_show_locator_content): Ditto.
448 2010-04-15 Stan Shebs <stan@codesourcery.com>
450 * frame.c: Include tracepoint.h.
451 (get_current_frame): Allow a trace frame to be an alternate source
453 * tracepoint.c (tfind_1): Don't try to get current stack frame if
456 2010-04-15 Pedro Alves <pedro@codesourcery.com>
458 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
460 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
462 2010-04-15 Doug Evans <dje@google.com>
464 * NEWS: Add entry for python program space support.
465 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
466 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
467 (py-progspace.o): New rule.
468 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
470 (find_pretty_printer_from_progspace): New function.
471 (find_pretty_printer_from_gdb): New function.
472 (find_pretty_printer): Rewrite.
473 * python/py-progspace.c: New file.
474 * python/python-internal.h (program_space): Add forward decl.
475 (pspace_to_pspace_object, pspy_get_printers): Declare.
476 (gdbpy_initialize_pspace): Declare.
477 * python/python.c: #include "progspace.h".
478 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
479 (_initialize_python): Call gdbpy_initialize_pspace.
480 (GdbMethods): Add current_progspace, progspaces.
482 Add -s option to source command.
483 * NEWS: Document new option.
484 * cli/cli-cmds.c (find_and_open_script): Add function comment.
485 Delete from_tty and cleanupp args. Split filep arg into file and
486 full_pathp. New arg search_path.
487 (source_script_from_stream): New function.
488 (source_script_with_search): New function.
489 (source_script): Rewrite.
490 (source_command): Parse "-s" option.
491 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
492 * python/python.c (source_python_script): Make file arg a const char *.
493 Don't call fclose, leave for caller.
494 * python/python.h (source_python_script): Update.
496 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
497 Pedro Alves <pedro@codesourcery.com>
499 Avoid rereading shared libraries that haven't changed.
501 * solib.c (free_so_symbols): New function, from ...
502 (free_so): ... here. Call it.
503 (solib_read_symbols): Don't warn here if symbols have already been
505 (solib_add): Warn here instead, if a pattern was specified.
506 (reload_shared_libraries_1): New.
507 (reload_shared_libraries): Rewrite to not fetch the library list.
509 2010-04-14 Doug Evans <dje@google.com>
511 * source.c (openp): Strip DOS drive letter if present before
512 concatenating string to search path.
514 2010-04-14 Pedro Alves <pedro@codesourcery.com>
516 * objfiles.h (gdb_bfd_close_or_warn): Declare.
517 * objfiles.c (gdb_bfd_close_or_warn): New.
518 * corelow.c: Include objfiles.h
519 (core_close): Use gdb_bfd_close_or_warn.
520 * elfread.c (build_id_verify): Ditto.
521 * exec.c (exec_close, exec_close_1): Ditto.
523 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
524 Pedro Alves <pedro@codesourcery.com>
526 Group errors for many missing shared libraries.
528 * solist.h (struct so_list): Remove from_tty.
529 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
530 (solib_map_sections): Take so_list argument. Return 0 if we
531 failed to open a BFD. Add target sections here.
532 (symbol_add_stub): Delete.
533 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
534 not from_tty copied from the so_list. Don't warn a second time
535 for a missing library.
536 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
537 add to the section table here. Print out a single warning for all
539 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
542 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
544 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
545 error/warning messages. Capitalize and use complete sentences.
546 (blpy_block_syms_iternext): Likewise.
547 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
548 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
549 (frame_info_to_frame_object, frapy_read_var)
550 (gdbpy_frame_stop_reason_string): Likewise.
551 * python/py-lazy-string.c (stpy_convert_to_value)
552 (gdbpy_create_lazy_string_object): Likewise.
553 * python/py-objfile.c (objfpy_set_printers): Likewise.
554 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
555 * python/python.c (parameter_to_python): Likewise.
556 * python/py-type.c (typy_range, typy_target): Likewise.
557 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
558 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
561 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
565 * python/py-prettyprint.c (pretty_print_one_value): Test for
567 (print_string_repr): Test for Py_None. Set flags accordingly.
568 Return value depending on return type.
569 (print_children): Take a value indicating whether data was printed
570 before this function was called. Alter output accordingly.
571 (apply_val_pretty_printer): Capture return value from
572 print_string_repr and pass to print_children.
574 2010-04-13 Mark Kettenis <kettenis@gnu.org>
577 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
578 register note sections.
579 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
581 (i386_linux_init_abi): Install list of supported register note
582 sections that matches the target description.
584 2010-04-13 Pedro Alves <pedro@codesourcery.com>
586 * remote.c (remote_get_noisy_reply): Don't error out on empty
588 (remote_start_remote): Update and merge tracepoints and trace
589 state variables as long as the target supports tracepoints.
590 (remote_trace_init): Fix prototype.
591 (remote_download_trace_state_variable): Validate reply.
592 (remote_trace_set_readonly_regions): Fix prototype.
593 (remote_trace_start): Fix prototype. Check for empty reply.
594 (remote_get_trace_status): Small cleanup.
595 (remote_trace_stop): Fix prototype. Check for empty reply.
596 (remote_trace_find): Check for empty reply.
597 (remote_save_trace_data): Validate reply.
598 (remote_set_disconnected_tracing): Check for empty reply, and
600 (remote_set_circular_trace_buffer): Ditto.
602 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
604 Suppress unused value warning during compilation.
605 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
607 * tui/tui-stack.c (tui_show_locator_content): Likewise.
609 2010-04-12 Stan Shebs <stan@codesourcery.com>
611 * tracepoint.c (tfile_xfer_partial): Check read result.
613 2010-04-12 Mike Frysinger <vapier@gentoo.org>
615 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
616 * remote-sim.c (gdbsim_files_info): Likewise.
618 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
620 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
621 * arm-linux-nat.c (arm_linux_vfp_register_count): New
623 (fetch_vfp_registers): New function to fetch VFP registers.
624 (store_vfp_registers): New function to store VFP registers.
625 (arm_linux_fetch_inferior_registers): Add support for VFP
627 (arm_linux_store_inferior_registers): Likewise.
628 (arm_linux_read_description): Likewise.
629 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
632 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
634 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
636 (amd64_collect_xstateregset): Likewise.
638 2010-04-09 Stan Shebs <stan@codesourcery.com>
640 * tracepoint.c (trace_status_mi): Report frames created.
642 * tracepoint.c (trace_dump_command): Include default-collect
645 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
647 * symtab.c (find_function_start_sal): Never return SAL pointing
648 before function start address, even if line info is missing.
650 2010-04-09 Pedro Alves <pedro@codesourcery.com>
652 * NEWS: Mention tracepoints support.
654 2010-04-09 Pedro Alves <pedro@codesourcery.com>
656 * tracepoint.c (trace_status_mi): Report disconnected tracing and
657 circular trace buffer statuses.
659 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
661 * config/djgpp/fnchange.lst: Fix typo in translations for
662 symbol-without-target_section.exp and symbol-without-target_section.c.
664 2010-04-09 Pedro Alves <pedro@codesourcery.com>
666 * breakpoint.c (condition_command): Pass condition expression to
667 set_breakpoint_condition stripped from breakpoint number.
669 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
670 Thiago Jung Bauermann <bauerman@br.ibm.com>
671 Tom Tromey <tromey@redhat.com>
673 * breakpoint.c (condition_command): Simplify. Move condition
675 (set_breakpoint_condition): ... here. New function.
676 * breakpoint.h (set_breakpoint_condition): Declare.
677 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
678 (SUBDIR_PYTHON_SRCS): Likewise.
679 (py-breakpoint.o): New rule.
680 * python/py-breakpoint.c: New file.
681 * python/python-internal.h (gdbpy_breakpoints)
682 (gdbpy_initialize_breakpoints): Declare.
683 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
685 2010-04-09 Pedro Alves <pedro@codesourcery.com>
687 * regformats/regdat.sh: Include server.h. Don't include
690 2010-04-08 Stan Shebs <stan@codesourcery.com>
691 Pedro Alves <pedro@codesourcery.com>
693 * tracepoint.h (struct trace_status): New fields disconnected_tracing
695 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
696 * tracepoint.c (trace_status_command): Display target's status for
697 disconnected tracing and circular buffer.
698 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
699 query for non-disconnected-tracing case, remove the stop_tracing
701 (tfile_open): Clear disconnected and circular buffer status.
702 (trace_save): Save disconnected and circular buffer status.
703 (parse_trace_status): Parse disconnected and circular buffer status,
704 also recognize disconnected as a stop reason.
705 * remote.c (remote_set_disconnected_tracing): Only set
706 QTDisconnected if the remote end supports disconnected tracing.
707 Warn otherwise, if trying to enable disconnected tracing.
708 * infcmd.c (detach_command): Update disconnect_tracing call.
709 * cli/cli-cmds.c (quit_command): Ditto.
711 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
713 * i387-tdep.c (i387_collect_xsave): Replace abort with
716 2010-04-08 Stan Shebs <stan@codesourcery.com>
718 * breakpoint.c (default_collect_info): New function.
719 (breakpoints_info): Call it.
720 (maintenance_info_breakpoints): Ditto.
721 (tracepoints_info): Ditto.
723 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
725 * i387-tdep.c (i387_collect_xsave): Re-indent.
727 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
729 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
730 if HAVE_PTRACE_GETFPXREGS is defined.
731 (i386_linux_read_description): Set have_ptrace_getfpxregs and
732 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
734 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
735 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
736 if .reg-xfp section doesn't exist.
737 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
739 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
741 * i386-tdep.c: Include "features/i386/i386-mmx.c".
742 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
743 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
744 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
745 (i386_gdbarch_init): Update comments.
746 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
748 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
750 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
752 * features/Makefile (i386/i386-mmx-expedite): New.
753 (i386/i386-mmx-linux-expedite): Likewise.
754 ($(outdir)/i386/i386-mmx.dat): Likewise.
755 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
757 * features/i386/i386-mmx-linux.c: New.
758 * features/i386/i386-mmx-linux.xml: Likewise.
759 * features/i386/i386-mmx.c: Likewise.
760 * features/i386/i386-mmx.xml: Likewise.
761 * regformats/i386/i386-mmx-linux.dat: Likewise.
762 * regformats/i386/i386-mmx.dat: Likewise.
764 * features/Makefile (WHICH): Add i386/i386-mmx and
767 2010-04-08 Doug Evans <dje@google.com>
769 * source.c (openp): Skip $cdir in PATH.
771 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
774 * python/py-lazy-string.c (stpy_convert_to_value): Check for
776 (gdbpy_create_lazy_string_object): Allow strings with a NULL
777 address and a zero length.
779 2010-04-08 Hui Zhu <teawater@gmail.com>
781 * i386-tdep.c (i386_process_record): Add support for insn
784 2010-04-07 Doug Evans <dje@google.com>
786 * python/python.c (source_python_script): Use ensure_python_env
787 to prepare environment for script.
789 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
791 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
792 <sys/uio.h> and "i386-xstate.h".
793 (PTRACE_GETREGSET): New.
794 (PTRACE_SETREGSET): Likewise.
795 (have_ptrace_getregset): Likewise.
796 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
798 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
800 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
801 (amd64_linux_store_inferior_registers): Likewise.
802 (amd64_linux_read_description): Check and enable AVX target
805 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
806 and "features/i386/amd64-avx-linux.c".
807 (amd64_linux_regset_sections): New.
808 (amd64_linux_core_read_description): Check and enable AVX
810 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
811 set_gdbarch_core_regset_sections.
812 (_initialize_amd64_linux_tdep): Call
813 initialize_tdesc_amd64_avx_linux.
815 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
816 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
817 (tdesc_amd64_avx_linux): New.
818 (amd64_linux_update_xstateregset): Likewise.
820 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
821 (amd64_ymm_names): New.
822 (amd64_ymmh_names): Likewise.
823 (amd64_register_name): Likewise.
824 (amd64_supply_xstateregset): Likewise.
825 (amd64_collect_xstateregset): Likewise.
826 (amd64_supply_xsave): Likewise.
827 (amd64_collect_xsave): Likewise.
828 (AMD64_NUM_REGS): Removed.
829 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
830 %xmmN if AVX is available.
831 (amd64_pseudo_register_name): Support pseudo YMM registers.
832 (amd64_regset_from_core_section): Support .reg-xstate section.
833 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
834 and ymm0h_regnum. Call set_gdbarch_register_name.
835 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
837 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
839 (AMD64_NUM_REGS): New.
840 (amd64_supply_xsave): Likewise.
841 (amd64_collect_xsave): Likewise.
842 (amd64_register_name): Removed.
843 (amd64_register_type): Likewise.
845 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
847 * i387-tdep.c: Include "i386-xstate.h".
848 (XSAVE_XSTATE_BV_ADDR): New.
849 (xsave_avxh_offset): Likewise.
850 (XSAVE_AVXH_ADDR): Likewise.
851 (i387_supply_xsave): Likewise.
852 (i387_collect_xsave): Likewise.
854 * i387-tdep.h (I387_NUM_YMM_REGS): New.
855 (I387_YMM0H_REGNUM): Likewise.
856 (I387_YMMENDH_REGNUM): Likewise.
857 (i387_supply_xsave): Likewise.
858 (i387_collect_xsave): Likewise.
860 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
862 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
863 <sys/uio.h> and "i386-xstate.h".
864 (PTRACE_GETREGSET): New.
865 (PTRACE_SETREGSET): Likewise.
866 (fetch_xstateregs): Likewise.
867 (store_xstateregs): Likewise.
868 (GETXSTATEREGS_SUPPLIES): Likewise.
869 (regmap): Include 8 upper YMM registers.
870 (i386_linux_fetch_inferior_registers): Support XSAVE extended
872 (i386_linux_store_inferior_registers): Likewise.
873 (i386_linux_read_description): Check and enable AVX target
876 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
877 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
878 (i386_linux_regset_sections): Add ".reg-xstate".
879 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
880 (i386_linux_core_read_xcr0): New.
881 (i386_linux_core_read_description): Check and enable AVX target
883 (i386_linux_init_abi): Set xsave_xcr0_offset.
884 (_initialize_i386_linux_tdep): Call
885 initialize_tdesc_i386_avx_linux.
887 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
888 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
889 (i386_linux_core_read_xcr0): New.
890 (tdesc_i386_avx_linux): Likewise.
891 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
893 * i386-tdep.c: Include "i386-xstate.h" and
894 "features/i386/i386-avx.c".
895 (i386_ymm_names): New.
896 (i386_ymmh_names): Likewise.
897 (i386_ymmh_regnum_p): Likewise.
898 (i386_ymm_regnum_p): Likewise.
899 (i386_xmm_regnum_p): Likewise.
900 (i386_register_name): Likewise.
901 (i386_ymm_type): Likewise.
902 (i386_supply_xstateregset): Likewise.
903 (i386_collect_xstateregset): Likewise.
904 (i386_sse_regnum_p): Removed.
905 (i386_pseudo_register_name): Support pseudo YMM registers.
906 (i386_pseudo_register_type): Likewise.
907 (i386_pseudo_register_read): Likewise.
908 (i386_pseudo_register_write): Likewise.
909 (i386_dbx_reg_to_regnum): Return %ymmN register number for
910 %xmmN if AVX is available.
911 (i386_regset_from_core_section): Support .reg-xstate section.
912 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
913 (i386_process_record): Replace i386_sse_regnum_p with
915 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
916 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
917 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
918 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
919 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
920 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
922 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
924 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
925 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
927 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
928 (I386_AVX_NUM_REGS): New.
929 (i386_xmm_regnum_p): Likewise.
930 (i386_ymm_regnum_p): Likewise.
931 (i386_ymmh_regnum_p): Likewise.
933 * common/i386-xstate.h: New.
935 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
937 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
939 * features/Makefile (WHICH): Add i386/i386-avx,
940 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
941 (i386/i386-avx-expedite): New.
942 (i386/i386-avx-linux-expedite): Likewise.
943 (i386/x86-64-avx-expedite):Likewise.
944 (i386/x86-64-avx-linux-expedite): Likewise.
945 ($(outdir)/i386/i386-avx.dat): New dependency.
946 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
947 ($(outdir)/i386/x86-avx-64.dat): Likewise.
948 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
950 * features/i386/32bit-avx.xml: New.
951 * features/i386/64bit-avx.xml: Likewise.
952 * features/i386/i386-avx-linux.c: Likewise.
953 * features/i386/i386-avx-linux.xml: Likewise.
954 * features/i386/i386-avx.c: Likewise.
955 * features/i386/i386-avx.xml: Likewise.
956 * features/i386/x86-64-avx-linux.c: Likewise.
957 * features/i386/x86-64-avx-linux.xml: Likewise.
958 * features/i386/x86-64-avx.c: Likewise.
959 * features/i386/x86-64-avx.xml: Likewise.
960 * regformats/i386/i386-avx-linux.dat: Likewise.
961 * regformats/i386/i386-avx.dat: Likewise.
962 * regformats/i386/x86-64-avx-linux.dat: Likewise.
963 * regformats/i386/x86-64-avx.dat: Likewise.
965 2010-04-07 Doug Evans <dje@google.com>
967 * top.c (source_file_name): Make const char *.
968 * top.h (source_file_name): Update.
969 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
971 (script_from_file): Change `file' arg to const char *.
972 * cli/cli-script.h (script_from_file): Update.
974 2010-04-06 Doug Evans <dje@google.com>
976 * cli/cli-cmds.c (source_command): Run cleanups.
978 2010-04-06 Stan Shebs <stan@codesourcery.com>
980 * defs.h (char_ptr): Move typedef here from...
981 * ada-lang.c (char_ptr): Remove.
982 * charset.c (char_ptr): Remove.
983 * tracepoint.h (struct uploaded_string): Remove.
984 (struct uploaded_tp): Use vectors for string arrays.
985 * tracepoint.c (trace_save): Use vectors of actions.
986 (parse_tracepoint_definition): Ditto.
987 (get_uploaded_tp): Clear vectors.
988 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
989 (next_cmd): Change to an int.
990 (read_next_cmd): Use vector of command strings.
992 2010-04-06 Doug Evans <dje@google.com>
994 * top.h (source_script, cd_command): Delete.
995 * main.c: #include "cli/cli-cmds.h"
997 2010-04-06 Kevin Buettner <kevinb@redhat.com>
999 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
1000 type in bytes, not bits.
1002 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
1004 * stabsread.c (define_symbol): Add support for char
1005 and string constants.
1007 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
1009 Remove remaining "%ll" uses.
1010 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
1012 * rs6000-nat.c (rs6000_ptrace64): Idem.
1013 * solib-pa64.c (pa64_current_sos): Idem.
1014 * solib-spu.c (spu_current_sos): Idem.
1015 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
1017 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
1019 * sh64-tdep.c (sh64_show_media_regs): Idem.
1021 2010-04-05 Stan Shebs <stan@codesourcery.com>
1023 * tracepoint.c: Include gdbcore.h.
1024 (tfile_xfer_partial): Return partial results, also try reading
1026 (tfile_has_all_memory): New function.
1027 (init_tfile_ops): Use it.
1029 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
1032 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
1033 the changes in data-directory.
1034 (init_sysinfo): Reload the syscall XML file if the data-directory
1037 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1040 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
1042 2010-04-04 Stan Shebs <stan@codesourcery.com>
1043 Nathan Sidwell <nathan@codesourcery.com>
1045 * breakpoint.c (breakpoint_1): Add filter argument, return number of
1046 breakpoints printed.
1047 (is_hardware_watchpoint): Make argument const.
1048 (is_watchpoint): Ditto.
1049 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
1051 (breakpoints_info): Pass NULL to breakpoint_1.
1052 (maintenance_info_breakpoints): Ditto.
1053 (watchpoints_info): New function.
1054 (tracepoints_info): Use breakpoint_1 filter.
1055 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
1056 (_initialize_breakpoint): Make "info watchpoints" its own command.
1057 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
1058 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
1060 2010-04-04 Stan Shebs <stan@codesourcery.com>
1062 * tracepoint.c (tfile_fetch_registers): Add fallback case.
1064 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1066 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
1067 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
1069 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1071 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
1072 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
1074 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1076 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
1079 2010-04-02 Hui Zhu <teawater@gmail.com>
1081 * i386-tdep.c (OT_DQUAD): New enum.
1082 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
1083 SSE3, SSSE3 and SSE4.
1085 2010-04-02 Hui Zhu <teawater@gmail.com>
1087 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
1090 2010-04-02 Pedro Alves <pedro@codesourcery.com>
1092 * tracepoint.c (trace_dump_actions): New, factored out from
1093 trace_dump_command, and adjusted to recurse into while-stepping's
1095 (trace_dump_command): Use it.
1097 2010-04-02 Pedro Alves <pedro@codesourcery.com>
1099 * breakpoint.h (struct counted_command_line): Moved definition to
1100 breakpoint.c, and forward declare.
1101 (breakpoint_commands): Declare.
1102 * breakpoint.c (struct counted_command_line): Moved here.
1103 (breakpoint_commands): New.
1104 * tracepoint.c (encode_actions): Use breakpoint_commands.
1105 * remote.c (remote_download_tracepoint): Ditto.
1107 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
1109 * remote.c (remote_parse_stop_reply): Use hex_string instead
1110 of phex_nz for error.
1112 2010-04-01 Stan Shebs <stan@codesourcery.com>
1113 Nathan Sidwell <nathan@codesourcery.com>
1115 * tracepoint.h (enum actionline_type): Remove.
1116 (validate_actionline): Change return to void.
1117 * tracepoint.c (report_agent_reqs_errors): New function.
1118 (validate_actionline): Call it, change return to void, report errors
1120 (collect_symbol): Call report_agent_reqs_errors.
1121 (encode_actions_1): Ditto.
1122 (encode_actions): Don't expect a result from validate_actionline.
1124 2010-04-01 Stan Shebs <stan@codesourcery.com>
1126 * tracepoint.c (trace_start_command): Confirm if trace is running.
1127 (trace_stop_command): Error if trace not running.
1129 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
1131 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
1132 (AMD64_NUM_LOWER_BYTE_REGS): New.
1133 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
1134 (amd64_pseudo_register_write): Likewise.
1135 (amd64_init_abi): Set num_byte_regs to 20.
1137 2010-04-01 Pedro Alves <pedro@codesourcery.com>
1139 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
1140 (prev_breakpoint_count): New.
1141 (set_breakpoint_count): Adjust.
1142 (rbreak_start_breakpoint_count): New.
1143 (start_rbreak_breakpoints): Adjust.
1144 (end_rbreak_breakpoints): Adjust.
1145 (struct commands_info) <arg>: New field.
1146 (do_map_commands_command): Tweak output to include breakpoint spec
1148 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
1149 ARG was empty on entry. Set INFO's arg.
1150 (create_breakpoint): Adjust.
1152 * NEWS: Clarify `commands' changes.
1154 2010-04-01 Pedro Alves <pedro@codesourcery.com>
1156 * tracepoint.c: Include stack.h.
1157 (struct add_local_symbols_data): New.
1158 (do_collect_symbol): New.
1159 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
1160 iterate_over_block_local_vars.
1161 * stack.c (print_block_frame_locals): Rewrite as ...
1162 (iterate_over_block_locals): ... this. Take a callback function
1163 pointer and generic data pointer, and call that instead of
1164 print_variable_and_value.
1165 (struct print_variable_and_value_data): New.
1166 (do_print_variable_and_value): New.
1167 (iterate_over_block_local_vars): New, abstracted out from
1168 print_frame_local_vars.
1169 (print_frame_local_vars): Rewrite using
1170 iterate_over_block_local_vars.
1171 (iterate_over_block_arg_vars): New, abstracted out from
1172 print_frame_arg_vars.
1173 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
1174 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
1175 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
1177 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
1179 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
1180 instructions. Use the PC+4 if the base of the TBB or TBH is the
1183 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1185 Fix crash on reading wrong function declaration DWARF.
1186 * dwarf2read.c (read_subroutine_type): New variable void_type.
1187 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
1188 more close to their use.
1190 2010-03-31 Stan Shebs <stan@codesourcery.com>
1192 * breakpoint.c (tracepoint_save_command): Include variables,
1193 conditionals, tracepoint types, and default-collect.
1194 * tracepoint.c (save_trace_state_variables): New function.
1195 * tracepoint.h (save_trace_state_variables): Declare it.
1197 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
1199 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
1201 2010-03-30 Keith Seitz <keiths@redhat.com>
1203 * c-typeprint.c (c_type_print_args): Don't print "void"
1204 for java, regardless of whether it is TYPE_PROTOTYPED.
1205 Use the passed-in language instead of current_language.
1206 (c_type_print_varspec_suffix): Use current_language instead
1207 of assuming language_c.
1208 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
1209 any return type specifier from the physname.
1211 2010-03-30 Pedro Alves <pedro@codesourcery.com>
1213 * tui/tui-interp.c (tui_is_toplevel): New.
1215 (tui_allowed_p): New.
1216 * tui/tui.c (tui_enable): Check if the TUI is allowed before
1218 * tui/tui.h (tui_allowed_p): Declare.
1220 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
1222 * serial.h: Include winsock2.h before windows.h.
1224 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
1226 * NEWS: Mention xmlRegisters= in qSupported packet.
1228 * i386-tdep.c: Include "remote.h".
1229 (_initialize_i386_tdep): Call register_remote_support_xml.
1231 * remote.c (remote_support_xml): New.
1232 (register_remote_support_xml): Likewise.
1233 (remote_query_supported_append): Likewise.
1234 (remote_query_supported): Support remote_support_xml.
1236 * remote.h (register_remote_support_xml): New.
1238 2010-03-29 Stan Shebs <stan@codesourcery.com>
1240 * tracepoint.c (trace_find_line_command): Remove dead code.
1242 * tracepoint.h (struct uploaded_string): New struct.
1243 (struct uploaded_tp): New fields for source strings.
1244 * breakpoint.c (this_utp, next_cmd): New globals.
1245 (read_uploaded_action): New function.
1246 (create_tracepoint_from_upload): Fill in more parts
1248 * tracepoint.c (encode_source_string): New function.
1249 (trace_save): Write out source strings, fix error checks.
1250 (parse_tracepoint_definition): Add source string parsing.
1251 * remote.c (PACKET_TracepointSource): New packet type.
1252 (remote_download_command_source): New function.
1253 (remote_download_tracepoint): Download source pieces also.
1254 (_initialize_remote): Add packet config command.
1256 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
1259 * tracepoint.c (start_tracing): Check tracepoints before sending
1260 commands to target, don't start if all tracepoints disabled.
1262 2010-03-28 Pedro Alves <pedro@codesourcery.com>
1264 * cli/cli-script.c (process_next_line): Handle 'stepping'.
1266 2010-03-26 Stan Shebs <stan@codesourcery.com>
1268 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
1270 2010-03-26 Tom Tromey <tromey@redhat.com>
1272 * breakpoint.c (commands_command_1): Duplicate 'arg'.
1274 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1276 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
1277 (skip_prologue_sal): Remove local definition.
1278 (resolve_sal_pc): Remove now unnecessary code.
1279 * linespec.c (minsym_found): Call skip_prologue_sal.
1280 * symtab.c (find_function_start_pc): Remove.
1281 (find_function_start_sal): Extract prologue skipping into ...
1282 (skip_prologue_sal): ... this new function. Handle code both
1283 with and without debug info. Respect SAL's explicit_pc and
1284 explicit_line flags. Inline old find_function_start_pc.
1285 * symtab.h (find_function_start_pc): Remove.
1286 (skip_prologue_sal): Add prototype.
1288 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1290 * dwarf2read.c (read_func_scope): Also scan specification DIEs
1291 for DW_TAG_imported_module children.
1293 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1295 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
1296 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
1297 * completer.c (add_struct_fields): Fix inverted logic.
1299 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1301 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
1303 2010-03-26 Pedro Alves <pedro@codesourcery.com>
1305 * tracepoint.c (current_trace_status): Don't make sure error_desc
1307 (parse_trace_status): Release a previous error_desc string, and
1308 set it to NULL by default. If stop reason is tracepoint_error,
1309 make sure error_desc is not left NULL.
1311 2010-03-26 Pedro Alves <pedro@codesourcery.com>
1313 * tracepoint.c (trace_save): Remove X from tracepoint error
1316 2010-03-26 Pedro Alves <pedro@codesourcery.com>
1318 * tracepoint.c (parse_trace_status): Don't allow plain strings in
1319 the terror description. Don't expect an X prefix.
1321 2010-03-25 Stan Shebs <stan@codesourcery.com>
1323 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
1324 (struct trace_status): New field error_desc.
1325 * tracepoint.c (stop_reason_names): Add terror.
1326 (current_trace_status): Ensure non-NULL error description.
1327 (trace_status_command): Add error report.
1328 (trace_status_mi): Ditto.
1329 (trace_save): Add special case for error description.
1330 (parse_trace_status): Add case for errors.
1332 2010-03-25 Keith Seitz <keiths@redhat.com>
1334 * dwarf2read.c (read_subroutine_type): If the compilation unit
1335 language is Java, mark any formal parameter named "this" as
1336 artificial (GCC/43521).
1337 (dwarf2_name): Add special handling for Java constructors.
1339 2010-03-25 Tom Tromey <tromey@redhat.com>
1341 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
1342 * infrun.c (handle_inferior_event): Change initialization of
1344 (handle_inferior_event): Change assignment to stop_stack_dummy.
1345 (normal_stop): Update use of stop_stack_dummy.
1346 (struct inferior_status) <stop_stack_dummy>: Change type.
1347 * inferior.h (stop_stack_dummy): Update.
1348 * infcmd.c (stop_stack_dummy): Change type.
1349 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
1351 (call_function_by_hand): Call set_std_terminate_breakpoint.
1352 Rewrite std::terminate handling.
1353 * breakpoint.h (enum bptype) <bp_std_terminate,
1354 bp_std_terminate_master>: New.
1355 (enum stop_stack_kind): New.
1356 (struct bpstat_what) <call_dummy>: Change type.
1357 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
1359 * breakpoint.c (create_std_terminate_master_breakpoint): New
1361 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
1362 Call create_std_terminate_master_breakpoint.
1363 (print_it_typical): Handle new breakpoint kinds.
1364 (bpstat_stop_status): Handle bp_std_terminate_master.
1365 (bpstat_what): Correctly set call_dummy field. Handle
1366 bp_std_terminate_master and bp_std_terminate.
1367 (print_one_breakpoint_location): Update.
1368 (allocate_bp_location): Update.
1369 (set_std_terminate_breakpoint): New function.
1370 (delete_std_terminate_breakpoint): Likewise.
1371 (create_thread_event_breakpoint): Update.
1372 (delete_command): Update.
1373 (breakpoint_re_set_one): Update.
1374 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
1376 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1378 * symfile.c (build_section_addr_info_from_bfd): New.
1379 (build_section_addr_info_from_objfile): Base it on
1380 build_section_addr_info_from_bfd.
1381 (addrs_section_compar, addrs_section_sort): New.
1382 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
1383 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
1384 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
1386 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
1388 * elfread.c (find_separate_debug_file_by_buildid):
1389 Remove unused local variable.
1391 2010-03-24 Tom Tromey <tromey@redhat.com>
1393 PR breakpoints/9352:
1394 * NEWS: Mention changes to `commands' and `rbreak'.
1395 * symtab.c (do_end_rbreak_breakpoints): New function.
1396 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
1397 end_rbreak_breakpoints.
1398 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
1399 (set_breakpoint_count): Likewise. Clear last_was_multi.
1400 (multi_start, multi_end, last_was_multi): New globals.
1401 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
1403 (struct commands_info): New
1404 (do_map_commands_command): New function.
1405 (commands_command_1): New function.
1406 (commands_command): Use it.
1407 (commands_from_control_command): Likewise.
1408 (do_delete_breakpoint): New function.
1409 (delete_command): Use it.
1410 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
1411 (do_map_disable_breakpoint): New function.
1412 (disable_command): Use it.
1413 (do_map_enable_breakpoint): New function.
1414 (enable_command): Use it.
1415 (enable_once_breakpoint): Add argument.
1416 (enable_once_command): Update.
1417 (enable_delete_breakpoint): Add argument.
1418 (enable_delete_command): Update.
1419 (break_command_really): Set last_was_multi when needed.
1420 (check_tracepoint_command): Fix formatting.
1421 (validate_commands_for_breakpoint): New function.
1422 (breakpoint_set_commands): Use it.
1423 (tracepoint_save_command): Update.
1424 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
1427 2010-03-24 Tom Tromey <tromey@redhat.com>
1429 * breakpoint.h (struct counted_command_line): New struct.
1430 (struct breakpoint) <commands>: Change type.
1431 (struct bpstats) <commands>: Change type.
1432 <commands_left>: New field.
1433 * breakpoint.c (alloc_counted_command_line): New function.
1434 (incref_counted_command_line): Likewise.
1435 (decref_counted_command_line): Likewise.
1436 (do_cleanup_counted_command_line): Likewise.
1437 (make_cleanup_decref_counted_command_line): Likewise.
1438 (breakpoint_set_commands): Use decref_counted_command_line and
1439 alloc_counted_command_line.
1440 (commands_command): Don't error if breakpoint commands are
1442 (commands_from_control_command): Likewise.
1443 (bpstat_free): Update.
1444 (bpstat_copy): Likewise.
1445 (bpstat_clear_actions): Likewise.
1446 (bpstat_do_actions_1): Likewise.
1447 (bpstat_stop_status): Likewise.
1448 (print_one_breakpoint_location): Likewise.
1449 (delete_breakpoint): Likewise.
1450 (bpstat_alloc): Initialize new field.
1451 (tracepoint_save_command): Update.
1452 * tracepoint.c (encode_actions): Update.
1453 (trace_dump_command): Update.
1455 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1457 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
1458 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
1459 (read_structure_type): For RealView, set TYPE_STUB on structures with
1460 no byte size and no children.
1461 (read_subroutine_type): Mark functions as prototyped by default.
1462 * symtab.c (producer_is_realview): New function.
1463 * symtab.h (expand_line_sal): Fix declaration formatting.
1464 (producer_is_realview): Declare.
1466 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1468 * arm-tdep.c (skip_prologue_function): New function.
1469 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
1470 (thumb_analyze_prologue): Document return value. Recognize more
1471 Thumb instructions, skippable calls, and some Thumb-2 instructions.
1473 (arm_skip_prologue): Remove call dummy check. Check the prologue
1474 for non-GNU compilers.
1475 (arm_instruction_changes_pc): New function.
1476 (arm_analyze_prologue): New function, broken out from
1477 arm_scan_prologue. Recognize more ARM instructions and skippable
1478 calls. Update comments. Handle NULL cache. Return the address
1479 of the first unrecognized instruction. Do not skip past other
1480 instructions which change control flow. Add debug output.
1481 (arm_scan_prologue): Use arm_analyze_prologue.
1482 (ARM_PC_32): Delete.
1483 (shifted_reg_val): Simplify ARM_PC_32 check.
1485 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1487 * tracepoint.c (tvariables_info_1): Actually compute
1488 the number of rows in the result.
1490 2010-03-24 Pedro Alves <pedro@codesourcery.com>
1492 * remote.c (crc32): Constify `buf' parameter.
1493 (remote_verify_memory): New, abstracted out from...
1494 (compare_sections_command): ... this. Remove hardcoded target
1496 (init_remote_ops): Install remote_verify_memory.
1497 * target.c (target_verify_memory): New.
1498 * target.h (struct target_ops) <to_verify_memory>: New field.
1499 (target_verify_memory): Declare.
1501 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1503 Implement -trace-save.
1505 * mi-cmds.h (mi_cmds_trace_save): Declare.
1506 * mi-cmds.c (mi_cmds): Register -trace-save.
1507 * mi/mi-main.c (mi_cmd_trace_save): New.
1508 * remote.c (remote_save_trace_data): Take const parameter.
1509 * target.h (struct target_ops::to_save_trace_data): Take
1511 * target.c (update_current_target): Adjust to the above.
1512 * tracepoint.c (trave_save): New, extracted from
1513 (trace_save_command): ...this.
1514 (tfile_trace_find): Remove message that is unnecessary now
1515 that 'tfind' reports found frame.
1516 * tracepoint.h (trace_save): Declare.
1518 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1520 Implement -trace-find.
1522 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
1523 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
1524 * mi/mi-main.c (mi_cmd_trace_find): New.
1525 * target.h (struct target_ops): Document to_trace_find.
1526 * tracepoint.h (tfind_1): Declare.
1527 * tracepoint.c (finish_tfind_command): Rename to...
1529 * remote.c (remote_trace_find): Return -1 if target say
1530 there's no frame. Improve error diagnostics.
1532 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1534 -trace-define-variable and -trace-list-variables.
1536 * tracepoint.c (create_trace_state_variable): Make
1537 private copy of name, as opposed to assuming the
1538 pointer lives forever.
1539 (tvariables_info_1): New.
1540 (tvariables_info): Use the above.
1541 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
1543 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
1544 and -trace-list-variables.
1545 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
1546 (mi_cmd_trace_list_variables): New.
1547 * mi/mi-main.c (mi_cmd_trace_define_variable)
1548 (mi_cmd_trace_list_variables): New.
1550 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1552 Implement -break-passcount.
1554 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
1555 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
1556 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
1558 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1560 -trace-start/-trace-end/-trace-status.
1562 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
1564 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
1565 (mi_cmd_trace_stop): Declare.
1566 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
1567 (mi_cmd_trace_stop): New.
1568 * tracepoint.c (start_tracing): New, extracted from...
1569 (trace_start_command): ...this.
1570 (trace_status_mi): New.
1571 * tracepoint.h (struct trace_status): Document
1572 stopping_tracepoint.
1573 (start_tracing, stop_tracing, trace_status_mi): Declare.
1575 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1577 Implement creating tracepoints with -break-insert.
1579 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
1580 to mean that tracepoint should be created.
1582 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1584 * breakpoint.c (check_no_tracepoint_commands): Use
1585 current spelling of 'teval'.
1587 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1589 Unify actions and commands
1591 * defs.h (read_command_lines, read_command_lines_1): New
1592 parameters validator and closure.
1593 * tracepoint.h (struct action_line): Remove.
1594 * breakpoint.h (struct breakpoint): Remove the 'actions'
1596 * defs.h (enum command_control_type): New value
1597 while_stepping_control.
1598 (struct command_line): Add comments.
1599 * breakpoint.c (breakoint_is_tracepoint): New.
1600 (breakpoint_set_commands): For tracepoints,
1601 verify the commands are permissible.
1602 (check_tracepoint_commands): New.
1603 (commands_command): Require that each new line is validated using
1604 check_tracepoint_command, if we set commands for a tracepoint.
1605 (create_tracepoint_from_upload): Likewise.
1606 (print_one_breakpoint_location): Remove the code to print
1607 actions specifically.
1608 (tracepoint_save_command): Relay to print_command_lines.
1609 * cli/cli-script.c (process_next_line): New parameters validator
1610 and closure. Handle 'while-stepping'. Call validator if not null.
1611 (read_command_lines, read_command_lines1): Likewise.
1612 (recurse_read_control_structure): New parameters validator and
1613 closure. Handle while_stepping_control.
1614 (print_command_lines): Handle while-stepping.
1615 (get_command_line, define_command, document_command): Adjust.
1616 * remote.c (remote_download_tracepoint): Adjust.
1617 * tracepoint.c (make_cleanup_free_actions, read_actions)
1618 (free_actions, do_free_actions_cleanup): Remove.
1619 (trace_actions_command): Use read_command_lines.
1620 (validate_actionline): Use error in one place.
1621 (encode_actions_1): New, extracted from...
1622 (encode_actions): ...this. Also use cleanups for exception
1624 (trace_dump_command): Adjust.
1625 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
1628 2010-03-23 Mike Frysinger <vapier@gentoo.org>
1630 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
1632 2010-03-22 Stan Shebs <stan@codesourcery.com>
1634 * value.c (value_static_field): Be lazy about the field's value.
1636 2010-03-22 Reid Kleckner <reid@kleckner.net>
1639 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
1641 (disable_breakpoints_in_shlibs): Likewise.
1643 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
1645 * dwarf2read.c (partial_die_parent_scope): Work around buggy
1646 GCC 4.1 debug info generation (GCC PR c++/28460).
1647 (determine_prefix): Likewise.
1649 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
1651 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
1653 * tui/tui-layout.c (extract_display_start_addr): Likewise.
1655 2010-03-19 Stan Shebs <stan@codesourcery.com>
1657 * ax-gdb.c (gen_fetch): Handle bool.
1658 (gen_usual_unary): Ditto.
1660 (gen_equal): New function.
1661 (gen_less): New function.
1662 (gen_expr_binop_rest): Call them, also return integer type from
1666 2010-03-19 Tom Tromey <tromey@redhat.com>
1668 * jv-lang.c (jv_dynamics_objfile_data_key)
1669 (jv_type_objfile_data_key): New globals.
1670 (class_symtab): Move earlier.
1671 (jv_per_objfile_free): New function.
1672 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
1674 Remove ancient #if 1.
1675 (add_class_symbol): Remove redundant declaration.
1676 (java_lookup_class): Use alloc_type, not alloc_type_arch.
1677 (java_link_class_type): Mark as static. Update.
1678 (jv_clear_object_type): New function.
1679 (set_java_object_type): Likewise.
1680 (get_java_object_type): Use set_java_object_type.
1681 (is_object_type): Likewise.
1682 (_initialize_java_language): Register new objfile keys.
1683 (get_java_class_symtab): Add 'gdbarch' parameter.
1684 (add_class_symtab_symbol): Update.
1685 (type_from_class): Update.
1687 2010-03-19 Stan Shebs <stan@codesourcery.com>
1689 * ax-general.c (ax_const_l): Fix a sizing bug.
1691 2010-03-18 Joel Brobecker <brobecker@adacore.com>
1695 2010-03-18 Stan Shebs <stan@codesourcery.com>
1696 Pedro Alves <pedro@codesourcery.com>
1698 * target.h (struct target_ops): New method
1699 to_set_circular_trace_buffer.
1700 (target_set_circular_trace_buffer): New macro.
1701 * target.c (update_current_target): Add
1702 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
1704 * remote.c (remote_set_circular_trace_buffer): New function.
1705 (init_remote_ops): Add it to vector.
1706 * tracepoint.h (struct trace_status): New field traceframes_created,
1707 change buffer_size and buffer_free to int.
1708 * tracepoint.c (circular_trace_buffer): New global.
1709 (start_tracing): Send values of disconnected tracing and circular
1710 trace buffer settings.
1711 (set_circular_trace_buffer): New function.
1712 (parse_trace_state): Handle total space and frames created.
1713 (trace_status_command): Display total space and total frames
1715 (trace_save): Write out new status values.
1716 (parse_trace_status): Set traceframe_count, traceframes_created,
1717 buffer_free and buffer_size to -1 by default.
1718 (_initialize_tracepoint): New setshow for circular-trace-buffer.
1719 * NEWS: Mention the circular trace buffer option.
1721 2010-03-18 Tom Tromey <tromey@redhat.com>
1723 * infcmd.c (finish_command_continuation): Wrap print_return_value
1726 2010-03-18 Joel Brobecker <brobecker@adacore.com>
1728 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
1729 DIE has a name before creating the associated partial symbol.
1730 (read_func_scope): Emit a complaint if the subprogram does not
1731 have a name or when we can't extract the subprogram PC bounds.
1733 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
1735 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
1736 instead of selected frame architecture.
1738 2010-03-18 Pedro Alves <pedro@codesourcery.com>
1740 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
1741 a valid selected thread, and that it is not running.
1742 (advance_command): Ditto.
1743 (finish_command): Ditto.
1745 2010-03-17 Stan Shebs <stan@codesourcery.com>
1747 * ax-gdb.c (require_rvalue): Disallow non-scalars.
1749 * infcall.c: Include tracepoint.h.
1750 (call_function_by_hand): Disallow calls in tfind mode.
1751 * infcmd.c: Include tracepoint.h.
1752 (ensure_not_tfind_mode): New function.
1753 (continue_1): Call it.
1755 (jump_command): Ditto.
1756 (signal_command): Ditto.
1757 (advance_command): Ditto.
1758 (until_command): Ditto.
1759 (finish_command): Ditto.
1760 * tracepoint.h (disconnect_or_stop_tracing): Declare.
1762 * ax-gdb.h (struct axs_value): New field optimized_out.
1763 (gen_trace_for_var): Add gdbarch argument.
1764 * ax-gdb.c (gen_trace_static_fields): New function.
1765 (gen_traced_pop): Call it, add gdbarch argument.
1766 (gen_trace_for_expr): Update call to it.
1767 (gen_trace_for_var): Ditto, and report optimized-out variables.
1768 (gen_struct_ref_recursive): Check for optimized-out value.
1769 (gen_struct_elt_for_reference): Ditto.
1770 (gen_static_field): Pass gdbarch instead of expression, assume
1771 optimization if field not found.
1772 (gen_var_ref): Set the optimized_out flag.
1773 (gen_expr): Error on optimized-out variable.
1774 * tracepoint.c (collect_symbol): Handle struct-valued vars as
1775 expressions, skip optimized-out variables with computed locations.
1776 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
1777 erroring out if location expression missing.
1778 (loclist_tracepoint_var_ref): Don't error out here.
1780 2010-03-17 Tom Tromey <tromey@redhat.com>
1782 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
1783 DWARF data is available.
1785 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
1787 * symfile.c (generic_load): Reset breakpoints after loading.
1789 2010-03-17 Tom Tromey <tromey@redhat.com>
1791 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
1793 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1795 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
1796 create_breakpoint call, adjust the parameters.
1798 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1799 Chandru <chandru@in.ibm.com>
1801 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
1802 * valarith.c (value_subscripted_rvalue): Suppress error if
1803 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1805 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
1807 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
1809 2010-03-16 Joel Brobecker <brobecker@adacore.com>
1811 * ada-tasks.c (task_command_1): Check that the task ptid is valid
1812 before doing the associated thread switch.
1814 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
1816 * MAINTAINERS: Update my email address.
1818 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
1820 Simplify MI breakpoint setting.
1822 * breakpoint.c (break_command_really): Make nonstatic and
1824 (create_breakpoint): ...this. Rename prior function by this name
1826 (create_breakpoint_sal): ...this.
1827 (create_breakpoints): Rename to...
1828 (create_breakpoints_sal): ...this.
1829 (set_breakpoint): Remove.
1830 * breakpoint.h: Adjust to above changes.
1831 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
1833 2010-03-15 Stan Shebs <stan@codesourcery.com>
1835 * ax-gdb.c: Include cp-support.h.
1836 (find_field): Remove.
1837 (gen_primitive_field): New function.
1838 (gen_struct_ref_recursive): New function.
1839 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
1841 (gen_static_field): New function.
1842 (gen_struct_elt_for_reference): New.
1843 (gen_namespace_elt): New.
1844 (gen_maybe_namespace_elt): New.
1845 (gen_aggregate_elt_ref): New.
1846 (gen_expr): Add OP_SCOPE, display opcode name in error message.
1848 2010-03-15 Tom Tromey <tromey@redhat.com>
1850 * dwarf2read.c (die_needs_namespace): Also return 0 for
1853 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
1856 * cp-support.h: Added char *declaration element to using_direct
1858 (cp_add_using): Added char *declaration argument.
1859 (cp_add_using_directive): Ditto.
1860 (cp_lookup_symbol_imports): made extern.
1861 * cp-namespace.c: Updated with the above changes.
1862 * dwarf2read.c (read_import_statement): Ditto.
1863 (read_namespace): Ditto.
1864 (read_import_statement): Support import declarations.
1865 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
1867 Added support for 'declaration_only' search.
1868 (cp_lookup_symbol_namespace): Attempt to search for the name as
1869 is before consideration of imports.
1870 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
1871 search at every block level search.
1872 Now takes language argument.
1873 (lookup_symbol_aux): Updated.
1875 2010-03-15 Tom Tromey <tromey@redhat.com>
1877 * c-exp.y (name_not_typename): Add 'operator' clause.
1879 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
1881 * configure.ac: Exit if ${gdb_target_obs}" is not set.
1882 * configure: Regenerate.
1884 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1886 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
1887 and ".sdynbss". Update the comment.
1889 2010-03-15 Jie Zhang <jie@codesourcery.com>
1891 * MAINTAINERS: Update my email address.
1893 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
1895 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
1897 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
1899 * charset.c [USE_WIN32API]: Include <windows.h>.
1900 (_initialize_charset): Correct type of w32_host_default_charset.
1902 2010-03-14 Pedro Alves <pedro@codesourcery.com>
1904 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
1906 2010-03-12 Tom Tromey <tromey@redhat.com>
1909 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
1910 in a lexical block does not need a namespace.
1911 (new_symbol) <DW_TAG_variable>: Put extern variables on
1912 list_in_scope in all cases.
1914 2010-03-12 Stan Shebs <stan@codesourcery.com>
1916 * ax-gdb.c (gen_expr): Add shift expressions.
1917 (gen_expr_binop_rest): Ditto.
1919 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
1921 * buildsym.c (finish_block): Reset using_directives pointer
1922 after block initialization.
1924 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
1926 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
1927 * i386-tdep.c (i386_word_names): Likewise.
1929 2010-03-12 Pedro Alves <pedro@codesourcery.com>
1931 * target.c (memory_xfer_partial): Don't use the stack cache if
1932 inspecting trace frames.
1933 * tracepoint.c (finish_tfind_command): Invalidate the target
1936 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1938 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
1939 for the PIC displacement, print also the displacement value.
1940 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
1942 2010-03-10 Kevin Buettner <kevinb@redhat.com>
1944 * remote-mips.c (close_ports, mips_initialize_cleanups)
1945 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
1946 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
1947 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
1948 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
1949 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
1950 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
1951 comments describing each of these functions.
1952 (mips_enter_debug, mips_exit_debug, common_open)
1953 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
1954 blank line after the comment describing the function.
1956 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1958 * solib-svr4.c (svr4_exec_displacement): Return now success, new
1959 parameter displacementp. Update comment.
1960 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
1961 element exists. Return if svr4_exec_displacement was not successful.
1964 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1965 Daniel Jacobowitz <dan@codesourcery.com>
1967 * solib-svr4.c (read_program_header): Support type == -1 to read
1968 all program headers.
1969 (read_program_headers_from_bfd): New function.
1970 (svr4_static_exec_displacement): Remove and move the comment ...
1971 (svr4_exec_displacement): ... here. Remove variable found. New
1972 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
1973 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
1974 targets using read_program_headers_from_bfd. Remove the call of
1975 svr4_static_exec_displacement.
1977 2010-03-10 Tom Tromey <tromey@redhat.com>
1979 * dwarf2read.c (struct pubnames_header): Remove.
1980 (_PUBNAMES_HEADER): Remove.
1981 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
1982 (struct aranges_header): Remove.
1983 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
1984 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
1985 (PUBNAMES_SECTION): Remove.
1986 (ARANGES_SECTION): Remove.
1987 (dwarf2_locate_sections): Don't handle pubnames or aranges.
1988 (dwarf2_build_psymtabs): Remove dead code.
1989 (dwarf2_build_psymtabs_easy): Remove.
1991 2010-03-10 Tom Tromey <tromey@redhat.com>
1993 * elfread.c (elf_symfile_read): Don't call
1994 dwarf2_build_frame_info.
1995 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
1996 (struct dwarf2_per_objfile) <objfile>: New field.
1997 (dwarf2_has_info): Now idempotent. Set objfile field.
1998 (dwarf2_read_section): Check and set readin field. Call
2000 (dwarf2_build_psymtabs): Don't read all sections.
2001 (read_type_comp_unit_head): Read types section.
2002 (create_debug_types_hash_table): Likewise.
2003 (init_cu_die_reader): Add asserts.
2004 (process_type_comp_unit): Add assert.
2005 (dwarf2_build_psymtabs_hard): Read info section.
2006 (load_partial_comp_unit): Add assert.
2007 (create_all_comp_units): Read info section.
2008 (load_full_comp_unit): Likewise.
2009 (dwarf2_ranges_read): Read ranges section.
2010 (dwarf2_record_block_ranges): Add assert.
2011 (dwarf2_read_abbrevs): Read abbrev section.
2012 (read_indirect_string): Read str section.
2013 (dwarf_decode_line_header): Read line section.
2014 (read_signatured_type_at_offset): Read types section.
2015 (dwarf_decode_macros): Read macinfo section.
2016 (dwarf2_symbol_mark_computed): Read loc section.
2017 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
2018 dwarf2_build_frame_info.
2019 (dwarf2_build_frame_info): Unconditionally set
2020 dwarf2_frame_objfile_data on the objfile.
2021 * configure.ac: Check for posix_madvise.
2022 * config.in, configure: Rebuild.
2024 2010-03-10 Tom Tromey <tromey@redhat.com>
2026 * xcoffread.c (xcoff_start_psymtab): Update.
2027 (xcoff_end_psymtab): Update.
2028 * psymtab.c (allocate_psymtab): Remove dead code.
2029 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
2031 * mdebugread.c (parse_partial_symbols): Update.
2032 (new_psymtab): Likewise.
2033 * dwarf2read.c (process_psymtab_comp_unit): Update.
2034 (psymtab_to_symtab_1): Update.
2035 * dbxread.c (start_psymtab): Update.
2036 (end_psymtab): Likewise.
2038 2010-03-10 Tom Tromey <tromey@redhat.com>
2040 * xcoffread.c: Include psymtab.h.
2041 (xcoff_sym_fns): Update.
2042 * symtab.h (struct partial_symbol): Remove.
2043 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
2044 (struct partial_symtab): Remove.
2045 (PSYMTAB_TO_SYMTAB): Remove.
2046 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
2047 (find_pc_sect_psymtab): Remove.
2048 (find_pc_sect_symtab_via_partial): Declare.
2049 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
2050 (find_main_psymtab): Remove.
2051 (find_main_filename): Declare.
2052 (fixup_psymbol_section): Remove.
2053 (fixup_section): Declare.
2054 * symtab.c: Include psymtab.h.
2055 (lookup_symtab): Use lookup_symtab method.
2056 (lookup_partial_symtab): Remove.
2057 (find_pc_sect_psymtab_closer): Remove.
2058 (find_pc_sect_psymtab): Remove.
2059 (find_pc_sect_symtab_via_partial): New function.
2060 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
2061 (fixup_section): No longer static.
2062 (fixup_psymbol_section): Remove.
2063 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
2064 (lookup_global_symbol_from_objfile): Likewise.
2065 (lookup_symbol_aux_psymtabs): Remove.
2066 (lookup_symbol_aux_quick): New function.
2067 (lookup_symbol_global): Use lookup_symbol_aux_quick.
2068 (lookup_partial_symbol): Remove.
2069 (basic_lookup_transparent_type_quick): New function.
2070 (basic_lookup_transparent_type): Use it.
2071 (find_main_psymtab): Remove.
2072 (find_main_filename): New function.
2073 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
2074 (find_line_symtab): Use expand_symtabs_with_filename method.
2075 (output_partial_symbol_filename): New function.
2076 (sources_info): Use map_partial_symbol_filenames.
2077 (struct search_symbols_data): New type.
2078 (search_symbols_file_matches): New function.
2079 (search_symbols_name_matches): Likewise.
2080 (search_symbols): Use expand_symtabs_matching method.
2081 (struct add_name_data): Rename from add_macro_name_data.
2082 (add_macro_name): Update.
2083 (add_partial_symbol_name): New function.
2084 (default_make_symbol_completion_list): Use
2085 map_partial_symbol_names.
2086 (struct add_partial_symbol_name): New type.
2087 (maybe_add_partial_symtab_filename): New function.
2088 (make_source_files_completion_list): Use
2089 map_partial_symbol_filenames.
2090 (expand_line_sal): Use expand_symtabs_with_filename method.
2091 * symmisc.c: Include psymtab.h.
2092 (print_objfile_statistics): Use print_stats method.
2093 (dump_objfile): Use dump method.
2094 (dump_psymtab, maintenance_print_psymbols)
2095 (maintenance_info_psymtabs, maintenance_check_symtabs)
2096 (extend_psymbol_list): Remove.
2097 * symfile.h (struct quick_symbol_functions): New struct.
2098 (struct sym_fns) <qf>: New field.
2099 (sort_pst_symbols): Remove.
2100 (increment_reading_symtab): Declare.
2101 * symfile.c: Include psymtab.h.
2102 (compare_psymbols, sort_pst_symbols): Remove.
2103 (psymtab_to_symtab): Remove.
2104 (increment_reading_symtab): New function.
2105 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
2107 (set_initial_language): Use find_main_filename.
2108 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
2109 (free_named_symtabs): Remove unused code.
2110 (start_psymtab_common, add_psymbol_to_bcache)
2111 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
2113 * stack.c: Include psymtab.h, symfile.h.
2114 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
2115 * source.h (psymtab_to_fullname): Don't declare.
2116 * source.c: Include psymtab.h.
2117 (select_source_symtab): Use find_last_source_symtab method.
2118 (forget_cached_source_info): Use forget_cached_source_info
2120 (find_and_open_source): No longer static.
2121 (psymtab_to_fullname): Remove.
2122 * somread.c: Include psymtab.h.
2123 (som_sym_fns): Update.
2124 * psympriv.h: New file.
2125 * psymtab.h: New file.
2126 * psymtab.c: New file.
2127 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
2128 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
2129 * objfiles.c: Include psymtab.h.
2130 (objfile_relocate1): Use relocate method.
2131 (objfile_has_partial_symbols): Use has_symbols method.
2132 * mipsread.c: Include psymtab.h.
2133 (ecoff_sym_fns): Update.
2134 * mi/mi-cmd-file.c: Include psymtab.h.
2135 (print_partial_file_name): New function.
2136 (mi_cmd_file_list_exec_source_files): Use
2137 map_partial_symbol_filenames.
2138 * mdebugread.c: Include psympriv.h.
2139 * machoread.c: Include psympriv.h.
2140 (macho_sym_fns): Update.
2141 * m2-exp.y (yylex): Use lookup_symtab.
2142 * elfread.c: Include psympriv.h.
2143 (elf_sym_fns): Update.
2144 * dwarf2read.c: Include psympriv.h.
2145 * dbxread.c: Include psympriv.h.
2146 (aout_sym_fns): Update.
2147 * cp-support.c: Include psymtab.h.
2148 (read_in_psymtabs): Remove.
2149 (make_symbol_overload_list_qualified): Use
2150 expand_symtabs_for_function method.
2151 * coffread.c: Include psympriv.h.
2152 (coff_sym_fns): Update.
2153 * blockframe.c: Include psymtab.h.
2154 (find_pc_partial_function): Use find_pc_sect_symtab method.
2155 * ada-lang.h (ada_update_initial_language): Update.
2156 * ada-lang.c: Include psymtab.h.
2157 (ada_update_initial_language): Remove 'main_pst' argument.
2158 (ada_lookup_partial_symbol): Remove.
2159 (struct ada_psym_data): New type.
2160 (ada_add_psyms): New function.
2161 (ada_add_non_local_symbols): Use map_ada_symtabs method.
2162 (struct add_partial_datum): New type.
2163 (ada_add_partial_symbol_completions): New function.
2164 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
2165 (ada_exception_support_info_sniffer): Update.
2166 * Makefile.in (SFILES): Add psymtab.c.
2167 (COMMON_OBS): Add psymtab.o.
2168 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
2170 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
2172 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
2174 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
2177 * cp-namespace.c (cp_add_using): Deleted.
2178 (cp_add_using_directive): Use obstack allocations.
2179 Merged the function cp_add_using into this one.
2180 Added 'struct obstack *' argument.
2181 (cp_scan_for_anonymous_namespaces): Updated.
2182 * cp-support.h: Updated.
2183 * dwarf2read.c (read_import_statement): Updated.
2184 (read_namespace): Updated.
2186 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
2188 * windows-nat.c (cygwin_conv_path): Remove old macro.
2190 2010-03-10 Pedro Alves <pedro@codesourcery.com>
2192 * breakpoint.c (condition_command): Handle watchpoint conditions.
2193 (is_hardware_watchpoint): Add comment.
2194 (is_watchpoint): New.
2195 (update_watchpoint): Don't reparse the watchpoint's condition
2198 (watchpoint_check): Use it.
2199 (bpstat_check_watchpoint): Handle it.
2200 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
2201 conditions in a frame where it makes sense.
2202 (watch_command_1): Store the innermost block of the condition
2204 (delete_breakpoint): Delete the watchpoint condition expression.
2205 * breakpoint.h (struct bp_location) <cond>: Update comment.
2206 (struct breakpoint): New field `cond_exp_valid_block'.
2208 2010-03-09 Joel Brobecker <brobecker@adacore.com>
2210 Adjust handling of Ada DIEs after dwarf2_physname patch.
2211 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
2213 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
2214 Pierre Muller <muller@ics.u-strasbg.fr>
2216 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
2217 from/to posix/win32.
2218 (windows_make_so): Use non-Cygwin 1.7 specific function.
2219 (windows_create_inferior): Make sure that cygallargs points to
2220 original args in non Cygwin 1.7. case.
2222 2010-03-09 Michael Snyder <msnyder@vmware.com>
2224 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
2225 after target_read_memory to get host byte order.
2226 (i386_process_record): Ditto.
2228 2010-03-09 Keith Seitz <keiths@redhat.com>
2230 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
2231 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
2232 print out const or volatile qualifiers, too.
2233 (c_type_print_args): Add parameters show_artificial and language.
2234 Skip artificial parameters when requested.
2235 Use the appropriate language printer.
2236 (c_type_print_varspec): Tell c_type_print_args to skip artificial
2237 parameters and pass language_c.
2238 * dwarf2read.c (die_list): New file global.
2239 (struct partial_die_info): Update comments for name field.
2240 (pdi_needs_namespace): Renamed to ...
2241 (die_needs_namespace): ... this. Rewrite.
2242 (dwarf2_linkage_name): Remove.
2243 (add_partial_symbol): Do not predicate the call to
2244 partial_die_full_name based on pdi_needs_namespace.
2245 Remove call to cp_check_possible_namespace_symbols and associated
2247 (guess_structure_name): Do not inspect child subprogram DIEs.
2248 (dwarf2_fullname): Update comments.
2249 Use die_needs_namespace to assist in computing the name.
2250 (read_func_scope): Use dwarf2_name to get the DIE's name.
2251 Use dwarf2_physname to get the "linkage name" of the DIE.
2252 (dwarf2_add_member_field): Use dwarf2_physname instead of
2253 dwarf2_linkage_name.
2254 (read_structure_type): For structs and classes, set TYPE_NAME, too.
2255 (determine_class): Remove.
2256 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
2258 (new_symbol): Unconditionally call dwarf2_name.
2259 Compute the "linkage name" using dwarf2_physname.
2260 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
2261 When determining to scan for anonymous C++ namespaces, ignore
2263 (dwarf2_physname): New function.
2264 (dwarf2_full_name): Move content to new function and call
2266 (dwarf2_compute_name): "New" function.
2267 (_initialize_dwarf2_read): Initialize die_list.
2268 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
2270 (gnu_v3_print_method_ptr): Use the physname for virtual methods
2271 without a demangled name.
2272 Print out type information for non-virtual methods.
2273 * linespec.c (decode_line_1): Force ANY string using "::" (or
2274 "." for java) to use decode_compound, and clean up any stray quoting.
2275 If we found a file symtab, re-evaluate whether the remainder is_quoted.
2276 (decode_compound): Stop consuming at an open parenthesis.
2277 Keep template parameters.
2278 Keep any overload information.
2279 Keep keywords like "const".
2280 Remove paren_pointer.
2281 Move is_quoted check from set_flags to here.
2282 Remove #if 0 code from 2000. Ten years is long enough.
2283 (find_method): Before comparing symbol names, canonicalize the string
2285 If a specific overload is requested, find it. Otherwise throw an error.
2286 (find_method_overload_end): New function.
2287 (set_flags): Remove.
2288 (decode_compound): Assume that parentheses are matched.
2290 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
2292 * linespec.c (decode_line_1): Keep important keywords like
2293 "const" and "volatile".
2294 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
2295 * typeprint.h (c_type_print_args): Add declaration.
2296 * ui-file.c (do_ui_file_obsavestring): New function.
2297 (ui_file_obsavestring): New function.
2298 * ui-file.h (ui_file_obsavestring): Add declaration.
2299 * valops.c (find_overload_match): Resolve the object to
2301 If the object is a data member, search the object for the member
2302 and return with staticp set.
2303 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
2304 Do not attempt to extract a function name from non-function types.
2305 If the extracted function name and the original name are the same,
2306 we don't have a C++ method.
2308 From Jan Kratochvil <jan.kratochvil@redhat.com>:
2309 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
2311 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
2312 and arguments from symbol lookups.
2313 * ax-gdb.c (gen_expr): Likewise.
2314 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
2315 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
2316 lookup_possible_namespace_symbol): Likewise.
2317 * cp-support.c (read_in_psymtabs): Likewise.
2318 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
2319 * language.h (la_lookup_symbol_nonlocal): Likewise.
2320 * scm-valprint.c (scm_inferior_print): Likewise.
2321 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
2322 * solib-svr.c (elf_lookup_lib): Likewise.
2323 * solib.c (show_auto_solib_add): Likewise.
2324 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
2325 * symmisc.c (maintenance_check_symtabs): Likewise.
2326 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
2327 lookup_symbol_aux_local, lookup_symbol_aux_block,
2328 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
2329 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
2330 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
2331 basic_lookup_transparent_type, find_main_psymtab,
2332 lookup_block_symbol): Likewise.
2333 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
2334 lookup_symbol_global, lookup_symbol_aux_block,
2335 lookup_symbol_partial_symbol, lookup_block_symbol,
2336 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
2338 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
2340 * python/python-internal.h: Include symtab.h.
2342 2010-03-09 Joel Brobecker <brobecker@adacore.com>
2343 Pierre Muller <muller@ics.u-strasbg.fr>
2345 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
2346 * p-valprint.c (pascal_val_print): Remove undeed block and fix
2349 2010-03-08 Tom Tromey <tromey@redhat.com>
2351 * breakpoint.c (breakpoint_1): Add "QUIT".
2353 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
2354 Pedro Alves <pedro@codesourcery.com>
2356 * solib.c (solib_find): Replace extension if
2357 solib_symbols_extension is set in the target gdbarch.
2358 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2359 solib_symbols_extension to "sym".
2360 * gdbarch.sh (solib_symbols_extension): New variable.
2361 (pstring): New function.
2362 * gdbarch.h, gdbarch.c: Regenerate.
2364 2010-03-08 Tom Tromey <tromey@redhat.com>
2368 * utils.c: Include main.h.
2369 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
2370 (defaulted_query): Use default answer if `batch_flag'.
2371 * main.h (batch_flag): Declare.
2372 * main.c (batch_flag): New global.
2373 (captured_main): Remove 'batch'. Update.
2375 2010-03-08 Kevin Buettner <kevinb@redhat.com>
2377 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
2380 * remote-mips.c (rockhopper_ops): New target_ops struct.
2381 (MON_ROCKHOPPER): New mips_monitor_type.
2382 (read_hex_value): New function.
2383 (mips_request): Send 8-byte values with a 'T' packet. Read the
2384 packet argument as a string and use read_hex_value to parse it.
2385 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
2386 (rockhopper_open): New function.
2387 (mips_wait): Read the PC, FP and SP fields as strings. Use
2388 read_hex_value to parse them and mips_set_register to commit them.
2389 (mips_set_register): New function.
2390 (mips_fetch_registers): Do not cast register value to "unsigned"
2391 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
2392 (mips_store_registers): Use a 'T' packet to set registers when
2393 using MON_ROCKHOPPER.
2394 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
2395 and expect the total to be printed before the entry address.
2396 (_initialize_remote_mips): Initialize and add rockhopper_ops.
2398 2010-03-08 Kevin Buettner <kevinb@redhat.com>
2400 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
2401 Change return value to int. Store value fetched in location
2402 addressed by `val'. Use function's return value as success
2403 or failure indicator. Adjust all callers.
2405 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
2407 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
2409 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2410 Hui Zhu <teawater@gmail.com>
2412 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
2413 tmp_to_stopped_data_address.
2414 (record_open): Reset tmp_to_stopped_by_watchpoint and
2415 tmp_to_stopped_data_address.
2416 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
2417 to_stopped_data_address.
2419 2010-03-08 Hui Zhu <teawater@gmail.com>
2421 * i386-tdep.c (i386_process_record): Initialize regnum.
2423 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2425 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
2426 Do not warn on ".gnu.liblist" and ".gnu.conflict".
2428 2010-03-08 Joel Brobecker <brobecker@adacore.com>
2430 Memory error when reading wrong core file.
2431 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
2432 errors while reading the inferior memory, and return zero if
2433 an exception was raised.
2435 2010-03-07 Michael Snyder <msnyder@vmware.com>
2437 * record.c (record_restore): Rename tmpu8 to rectype.
2439 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
2440 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
2442 (i386_record_push): Rename local tmpulongest to addr.
2444 (i386_process_record): Rename local tmpulongest to addr.
2446 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
2449 Rename local variable tmpu8 to opcode8 and regnum.
2451 2010-03-07 Joel Brobecker <brobecker@adacore.com>
2453 * remote.c (remote_get_ada_task_ptid): New function.
2454 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
2456 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
2458 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
2459 block. Define helper macros to reduce ifdefs in code.
2460 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
2461 size. Call unadorned GetModuleFileNameEx rather than
2462 GetModuleFileNameEx*.
2463 (windows_make_so): Use __PMAX to denote maximum buffer size and
2464 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
2466 (get_image_name): Use __PMAX to denote maximum buffer size.
2467 (handle_load_dll): Likewise.
2468 (windows_pid_to_exec_file): Likewise.
2469 (windows_create_inferior): Add many accommodations for older Cygwin and
2471 (bad_GetModuleFileNameExW): Control inclusion of this function based on
2472 __USEWIDE conditional.
2473 (bad_GetModuleFileNameExA): Likewise.
2474 (_initialize_loadable): Just use real function names without the dyn_
2475 part since they are defined earlier.
2477 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
2478 Tom Tromey <tromey@redhat.com>
2480 * utils.c (host_char_to_target): Add 'gdbarch' argument.
2481 (parse_escape): Likewise.
2482 * python/py-utils.c (unicode_to_target_string): Update.
2483 (unicode_to_target_python_string): Update.
2484 (target_string_to_unicode): Update.
2485 * printcmd.c (printf_command): Update.
2486 * p-exp.y (yylex): Update.
2487 * objc-exp.y (yylex): Update.
2488 * mi/mi-parse.c: Include charset.h.
2489 (mi_parse_escape): New function.
2490 (mi_parse_argv): Use it.
2491 * jv-exp.y (yylex): Update.
2492 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
2494 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
2495 * gdbarch.sh (auto_charset, auto_wide_charset): New.
2496 * gdbarch.c: Rebuild.
2497 * gdbarch.h: Rebuild.
2498 * defs.h (parse_escape): Update.
2499 * cli/cli-setshow.c: Include arch-utils.h.
2500 (do_setshow_command): Update.
2501 * cli/cli-cmds.c (echo_command): Update.
2502 * charset.h (target_charset, target_wide_charset): Update.
2503 * charset.c: Include arch-utils.h.
2504 (target_charset_name): Default to "auto".
2505 (target_wide_charset_name): Likewise.
2506 (show_target_charset_name): Handle "auto".
2507 (show_target_wide_charset_name): Likewise.
2508 (be_le_arch): New global.
2509 (set_be_le_names): Add 'gdbarch' argument.
2510 (validate): Likewise. Don't call set_be_le_names.
2511 (set_charset_sfunc, set_host_charset_sfunc)
2512 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
2514 (target_charset): Add 'gdbarch' argument.
2515 (target_wide_charset): Likewise. Remove 'byte_order' argument.
2516 (auto_target_charset_name): New global.
2517 (default_auto_charset, default_auto_wide_charset): New functions.
2518 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
2519 for target charsets. Copy result of nl_langinfo. Use GetACP if
2521 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
2522 remove 'byte_order' argument. Update.
2523 (classify_type): Likewise.
2524 (c_emit_char): Update.
2525 (c_printchar): Update.
2526 (c_printstr): Update.
2527 (c_get_string): Update.
2528 (evaluate_subexp_c): Update.
2529 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
2531 * python/python.c (gdbpy_target_charset): New function.
2532 (gdbpy_target_wide_charset): Likewise.
2533 (GdbMethods): Update.
2536 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
2538 * symfile.c (build_section_addr_info_from_objfile): Do not mask
2539 off high address bits.
2541 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
2543 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
2544 address as UnsignedLongLong, not LongLong.
2546 2010-03-05 Kevin Buettner <kevinb@redhat.com>
2547 Pedro Alves <pedro@codesourcery.com>
2549 * remote-mips.c (gdbthread.h): Include.
2550 (remote_mips_ptid): Declare.
2551 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
2552 (common_open): Set inferior_ptid, add it as an inferior, and
2553 as a thread too. Delete FIXME comment regarding start_remote().
2554 (mips_close): Invoke generic_mourn_inferior().
2555 (mips_kill): Make sure that target_mourn_inferior is invoked.
2556 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
2557 it's now invoked from mips_close().
2558 (mips_load): Don't null out inferior_ptid. Don't call
2559 clear_symtab_users().
2560 (mips_thread_alive, mips_pid_to_str): New functions.
2561 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
2562 to_thread_alive and to_pid_to_str operations.
2564 2010-03-04 Tom Tromey <tromey@redhat.com>
2566 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
2567 in DWARF 3 and later.
2568 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
2570 2010-03-04 Keith Seitz <keiths@redhat.com>
2572 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
2573 If the filename portion of the linespec was quoted, recheck the
2574 remainder for additional quoting.
2575 (locate_first_half): Skip over completer chars, too.
2577 2010-03-04 Tom Tromey <tromey@redhat.com>
2579 * printcmd.c (printf_command): Pass dummy argument to
2582 2010-03-04 Doug Evans <dje@google.com>
2584 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
2587 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
2589 2010-03-04 Pedro Alves <pedro@codesourcery.com>
2591 * breakpoint.c (update_watchpoint): Create a sentinel location if
2592 the software watchpoint isn't watching any memory.
2593 (breakpoint_address_bits): Skip dummy software watchpoint locations.
2595 2010-03-04 Pedro Alves <pedro@codesourcery.com>
2597 * utils.c (fputs_maybe_filtered): Check if there's already a top
2598 level interpreter before dereferencing it. If there isn't one,
2599 don't paginate either.
2601 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2603 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
2604 the state right when single stepping.
2605 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
2606 Get the next PC along with the instruction state.
2607 (thumb_get_next_pc): Remove.
2608 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
2610 2010-03-04 Hui Zhu <teawater@gmail.com>
2612 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
2614 2010-03-03 Pedro Alves <pedro@codesourcery.com>
2616 * utils.c (fputs_maybe_filtered): Always disable pagination if the
2617 top level interpreter is MI.
2619 2010-03-03 Stan Shebs <stan@codesourcery.com>
2621 * remote.c (remote_download_tracepoint): Iterate over locations.
2622 * tracepoint.c (validate_actionline): Ditto.
2623 (encode_actions): Add location argument.
2624 (trace_dump_command): Check all locations to see if stepping
2627 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
2628 Eli Zaretskii <eliz@gnu.org>
2630 * NEWS: Add X86 general purpose registers section.
2632 2010-03-03 Tom Tromey <tromey@redhat.com>
2635 * varobj.c (install_new_value): Handle case where new print_value
2638 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
2641 * printcmd.c (printf_command): Print end of format string using
2644 2010-03-02 Tom Tromey <tromey@redhat.com>
2646 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
2647 * defs.h (read_command_lines_1): Add missing 'void'.
2648 * cli/cli-script.c (recurse_read_control_structure): Add missing
2650 (read_next_line): Likewise.
2651 (read_command_lines_1): Likewise.
2653 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
2655 * spu-tdep.c (spu_analyze_prologue): Track instruction to
2656 store backchain as part of prologue.
2658 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
2660 * progspace.c (update_address_spaces): Update inferior address spaces
2663 2010-03-02 Doug Evans <dje@google.com>
2665 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
2666 lowpc,highpc args to addrmap_set_empty.
2668 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
2670 * amd64-tdep.c (amd64_byte_names): New.
2671 (amd64_word_names): Likewise.
2672 (amd64_dword_names): Likewise.
2673 (amd64_pseudo_register_name): Likewise.
2674 (amd64_pseudo_register_read): Likewise.
2675 (amd64_pseudo_register_write): Likewise.
2676 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
2677 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
2678 set_gdbarch_pseudo_register_write and
2679 set_tdesc_pseudo_register_name. Don't call
2680 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
2682 * i386-tdep.c (i386_num_mmx_regs): Removed.
2683 (i386_num_pseudo_regs): Likewise.
2684 (i386_byte_names): New.
2685 (i386_word_names): Likewise.
2686 (i386_byte_regnum_p): Likewise.
2687 (i386_word_regnum_p): Likewise.
2688 (i386_mmx_regnum_p): Updated.
2689 (i386_pseudo_register_name): Make it global. Handle byte and
2690 word pseudo-registers.
2691 (i386_pseudo_register_read): Likewise.
2692 (i386_pseudo_register_write): Likewise.
2693 (i386_pseudo_register_type): Handle byte, word and dword
2695 (i386_register_reggroup_p): Don't include pseudo
2696 registers, except for MXX, in any register groups. Don't
2697 include pseudo byte, word, dword registers in general_reggroup.
2698 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
2699 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
2700 pseudo-registers after word pseudo-registers. Call
2701 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
2703 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
2704 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
2706 (i386_byte_regnum_p): New.
2707 (i386_word_regnum_p): Likewise.
2708 (i386_dword_regnum_p): Likewise.
2709 (i386_pseudo_register_name): Likewise.
2710 (i386_pseudo_register_read): Likewise.
2711 (i386_pseudo_register_write): Likewise.
2713 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
2715 * target-descriptions.c (tdesc_type): Remove
2716 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
2717 (tdesc_predefined_types): Likewise.
2718 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
2719 if flag name is empty.
2720 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
2722 * features/i386/32bit-core.xml: Define i386_eflags.
2723 * features/i386/64bit-core.xml: Likewise.
2725 * features/i386/32bit-sse.xml: Define i386_mxcsr.
2726 * features/i386/64bit-sse.xml: Likewise.
2728 * features/i386/amd64-linux.c: Regenerated.
2729 * features/i386/amd64.c: Likewise.
2730 * features/i386/i386-linux.c: Likewise.
2731 * features/i386/i386.c: Likewise.
2733 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
2735 * gdbtypes.c (append_composite_type_field_raw): New.
2736 (append_composite_type_field_aligned): Use the new function.
2737 * gdbtypes.h (append_composite_type_field_raw): Declare.
2738 * target-descriptions.c (struct tdesc_type_field): Add start and end.
2739 (struct tdesc_type_flag): New type.
2740 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
2741 kind. Add size to u.u. Add u.f for flags.
2742 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
2743 (tdesc_free_type): Likewise.
2744 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
2745 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
2746 (tdesc_add_bitfield, tdesc_add_flag): New.
2747 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
2748 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
2749 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
2750 current_type. Add current_type_size and current_type_is_flags.
2751 (tdesc_start_union): Clear the new fields.
2752 (tdesc_start_struct, tdesc_start_flags): New.
2753 (tdesc_start_field): Handle struct fields, including bitfields.
2754 (field_attributes): Make type optional. Add start and end.
2755 (union_children): Rename to struct_union_children.
2756 (union_attributes): Rename to struct_union_attributes. Add optional
2758 (flags_attributes): New.
2759 (feature_children): Add struct and flags.
2760 * features/gdb-target.dtd: Add flags and struct to features.
2761 Make field type optional. Add field start and end.
2763 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
2765 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
2766 (amd64_linux_read_description): Likewise.
2767 (_initialize_amd64_linux_nat): Set to_read_description to
2768 amd64_linux_read_description.
2770 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
2771 (amd64_linux_register_name): Removed.
2772 (amd64_linux_register_type): Likewise.
2773 (amd64_linux_core_read_description): New.
2774 (amd64_linux_init_abi): Set target description to
2775 tdesc_amd64_linux if needed. Support orig_rax in target
2776 description. Don't call set_gdbarch_register_name nor
2777 set_gdbarch_register_type. Call
2778 set_gdbarch_core_read_description.
2779 (_initialize_amd64_linux_tdep): Call
2780 initialize_tdesc_amd64_linux.
2782 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
2784 * amd64-tdep.c: Include "features/i386/amd64.c".
2785 (amd64_register_names): Removed.
2786 (amd64_register_name): Likewise.
2787 (amd64_register_type): Likewise.
2788 (amd64_init_abi): Set num_core_regs and register_names. Set
2789 target description to tdesc_amd64 if needed. Don't call
2790 set_gdbarch_register_name nor set_gdbarch_register_type.
2791 (_initialize_amd64_tdep): New.
2793 * i386-linux-nat.c (i386_linux_read_description): New.
2794 (_initialize_i386_linux_nat): Set to_read_description to
2795 i386_linux_read_description.
2797 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
2798 (i386_linux_register_name): Removed.
2799 (i386_linux_core_read_description): New.
2800 (i386_linux_read_description): Likewise.
2801 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
2802 Set target description to tdesc_i386_linux if needed. Support
2803 orig_eax. Set register_reggroup_p. Call
2804 set_gdbarch_core_read_description.
2805 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
2807 * i386-linux-tdep.h (tdesc_i386_linux): New.
2809 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
2812 * i386-tdep.c: Include "features/i386/i386.c".
2813 (i386_register_names): Make it const.
2814 (i386_mmx_names): Likewise.
2815 (i386_num_register_names): Removed.
2816 (i386_register_name): Likewise.
2817 (i386_eflags_type): Likewise.
2818 (i386_mxcsr_type): Likewise.
2819 (i386_sse_type): Likewise.
2820 (i386_register_type): Likewise.
2821 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
2822 (i386_pseudo_register_name): New.
2823 (i386_pseudo_register_type): Likewise.
2824 (i386_mmx_type): Make it static.
2825 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
2826 I387_NUM_REGS. Set num_core_regs and register_names. Don't
2827 call set_gdbarch_register_name nor set_gdbarch_register_type.
2828 Set register_reggroup_p. Set target description to tdesc_i386
2829 if needed. Call set_tdesc_pseudo_register_type,
2830 set_tdesc_pseudo_register_name and tdesc_use_registers.
2831 (_initialize_i386_tdep): Call initialize_tdesc_i386.
2832 initialize_tdesc_x86_64.
2834 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
2835 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
2836 register_names, tdesc and register_reggroup_p.
2837 (I386_NUM_FREGS): Removed.
2838 (i386_eflags_type): Likewise.
2839 (i386_mxcsr_type): Likewise.
2840 (i386_mmx_type): Likewise.
2841 (i386_sse_type): Likewise.
2842 (i386_register_name): Likewise.
2843 (i386_regnum): Add I386_MXCSR_REGNUM.
2844 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
2846 * i387-tdep.h (I387_NUM_REGS): New.
2848 * regformats/i386/i386-linux.dat: Generated.
2849 * regformats/i386/i386.dat: Likewise.
2850 * regformats/i386/amd64-linux.dat: Likewise.
2851 * regformats/i386/amd64.dat: Likewise.
2853 * regformats/reg-i386-linux.dat: Removed.
2854 * regformats/reg-i386.dat: Likewise.
2855 * regformats/reg-x86-64-linux.dat: Likewise.
2856 * regformats/reg-x86-64.dat: Likewise.
2858 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
2860 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
2861 cygwin_conv_path API rather than the deprecated
2862 cygwin_conv_to_full_posix_path.
2864 (GetModuleFileNameExA): Undefine for Cygwin.
2865 (GetModuleFileNameExW): Define for Cygwin.
2866 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
2867 Call GetModuleFileNameExW and convert path to POSIX using
2869 (windows_make_so): Always define p. Drop unused variable m.
2870 Don't use Win32 functions to check file existance, rather use
2871 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
2872 Use canonicalize_file_name to get full path.
2873 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
2874 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
2875 use correct target buffer size in call to WideCharToMultiByte.
2876 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
2877 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
2878 (windows_create_inferior): Convert all paths and arguments to wchar_t
2879 and use CreateProcessW on Cygwin.
2880 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
2881 (bad_GetModuleFileNameExA): Undefine for Cygwin.
2882 (bad_GetModuleFileNameExW): Define for Cygwin.
2883 (_initialize_loadable): Load GetModuleFileNameExW into
2884 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
2886 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
2889 * python/py-frame.c (frapy_read_var): Add block argument and logic
2890 to cope with user provided blocks.
2892 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2894 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
2897 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
2899 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
2900 (COMMON_OBS): ... to here since it's used unconditionally.
2901 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
2904 2010-02-26 David Daney <ddaney@caviumnetworks.com>
2906 * mips-linux-tdep.c: Update struct sigframe comments.
2907 (SIGFRAME_CODE_OFFSET): Delete macro.
2908 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
2910 (mips_linux_n32n64_sigframe_init): Same.
2912 2010-02-26 Kevin Buettner <kevinb@redhat.com>
2914 * remote-mips.c (mips_load): Don't use pseudo-register when
2915 invalidating regcache.
2917 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
2919 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
2921 2010-02-26 Pedro Alves <pedro@codesourcery.com>
2923 * NEWS: Add "New targets" section, and mention ARM Symbian
2926 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
2928 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
2929 add ADDR_SIZE member.
2930 (allocate_piece_closure): Update.
2931 (copy_pieced_value_closure): Likewise.
2932 (dwarf2_evaluate_loc_desc): Likewise.
2933 (read_pieced_value): Use DWARF address size instead of
2934 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
2936 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
2937 Tom Tromey <tromey@redhat.com>
2939 * python/py-type.c (typy_lookup_typename): Add in block argument.
2940 If provided restrict lookup to specified blocks.
2941 (gdbpy_lookup_type): Likewise.
2942 (typy_lookup_type): Likewise.
2944 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
2949 * arm-symbian-tdep.c: New.
2950 * configure.tgt (arm*-*-symbianelf*): New target.
2951 (*-*-symbianelf*): New OS.
2952 * osabi.c (gdb_osabi_names): Add Symbian.
2953 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
2954 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
2955 (ALLDEPFILES): Add arm-symbian-tdep.c.
2957 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
2959 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
2961 2010-02-24 Pedro Alves <pedro@codesourcery.com>
2963 * mi/mi-main.c (mi_cmd_execute): Fix typo.
2965 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
2966 Tom Tromey <tromey@redhat.com>
2967 Thiago Jung Bauermann <bauerman@br.ibm.com>
2969 * python/python.c (_initialize_python): Call
2970 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
2971 gdbpy_initialize_blocks.
2972 * python/python-internal.h: Declare struct symbol, block and
2973 symtab_and_line. Declare block_object_type and
2975 (gdbpy_lookup_symbol gdbpy_block_for_pc)
2976 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
2977 (symbol_to_symbol_object, block_to_block_object)
2978 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
2979 (gdbpy_initialize_blocks ): Declare.
2980 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
2981 (frapy_select): Add methods.
2982 (frapy_read_var): Add symbol branch.
2983 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
2985 (SUBDIR_PYTHON_SRCS): Likewise.
2986 (py-symbol.o): New rule.
2987 (py-symtab.o): Likewise.
2988 (py-block.o): Likewise.
2989 * python/py-symbol.c: New file.
2990 * python/py-symtab.c: Likewise.
2991 * python/py-block.c: Likewise.
2993 2010-02-24 Pedro Alves <pedro@codesourcery.com>
2997 * inferior.h (prepare_for_detach): Declare.
2998 (struct inferior) <detaching>: New field.
2999 * infrun.c (prepare_for_detach): New.
3000 (handle_inferior_event) <random signal>: Don't stop if detaching.
3001 * target.c (target_detach): Call prepare_for_detach.
3003 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3005 Per-process displaced stepping queue.
3007 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
3008 (displaced_step_gdbarch, displaced_step_closure,
3009 (displaced_step_original, displaced_step_copy): Move globals to
3011 (struct displaced_step_inferior_state): ... new structure.
3012 (displaced_step_inferior_states): New global.
3013 (get_displaced_stepping_state, add_displaced_stepping_state)
3014 (remove_displaced_stepping_state, infrun_inferior_exit): New
3016 (displaced_step_clear): Add displaced_step_inferior_state
3017 parameter, and adjust to handle it.
3018 (displaced_step_clear_cleanup): Parameter is now a
3019 displaced_step_inferior_state. Adjust.
3020 (displaced_step_prepare): Adjust.
3021 (displaced_step_fixup, displaced_step_fixup)
3022 (infrun_thread_ptid_changed, resume): Adjust.
3023 (init_wait_for_inferior): Don't call displaced_step_clear.
3024 (infrun_thread_stop_requested): Rewrite.
3025 (_initialize_infrun): Install infrun_inferior_exit as
3026 inferior_exit observer.
3028 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3030 * inferior.h (ptid_match): Declare.
3031 * infrun.c (ptid_match): New.
3032 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
3033 (handle_notification): Add debug output.
3034 * linux-nat.c (ptid_match): Delete.
3036 2010-02-24 David S. Miller <davem@davemloft.net>
3038 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
3039 * syscalls/sparc-linux.xml: New.
3040 * syscalls/sparc64-linux.xml: New.
3041 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
3042 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
3043 (sparc32_linux_get_syscall_number): New function.
3044 (sparc32_linux_init_abi): Set syscall XML file name and hook up
3045 syscall number fetcher.
3046 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
3047 (sparc64_linux_get_syscall_number): New function.
3048 (sparc64_linux_init_abi): Set syscall XML file name and hook up
3049 syscall number fetcher.
3051 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
3055 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
3056 * inferior.c (add_inferior_silent): Notify inferior_added
3058 (delete_inferior_1): Notify inferior_removed observer.
3059 (exit_inferior_1): Pass inferior, not pid, to observer.
3060 (inferior_appeared): Likewise.
3061 (add_inferior_with_spaces): New.
3062 (add_inferior_command): Use the above.
3063 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
3066 * inflow.c (inflow_inferior_exit): Likewise.
3067 * jit.c (jit_inferior_exit_hook): Likewise.
3069 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
3071 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
3072 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
3073 (report_initial_inferior): New.
3074 (mi_inferior_removed): Register the above. Make sure
3075 inferior_added observer is called on the first inferior.
3076 (mi_new_thread, mi_thread_exit): Thread group is now identified by
3077 inferior number, not pid.
3078 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
3080 * mi/mi-main.c (current_context): New.
3081 (proceed_thread_callback): Use typed closure.
3082 Proceed everything if pid is 0. Most implementation split into
3083 (proceed_thread): ... this.
3084 (run_one_inferior): New.
3085 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
3086 Adjust for multiexec behaviour.
3087 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
3088 (mi_cmd_execute): Handle the 'thread-group' option here.
3089 Do some extra checks.
3090 * mi-parse.c (mi_parse): Handle the --all and --thread-group
3092 * mi-parse.h (struct mi_parse): New fields all and thread_group.
3094 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
3096 Make -exec-run a proper MI commands.
3098 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
3099 * mi/mi-cmds.c (mi_cmds): Adjust.
3100 * mi/mi-main.c (mi_cmd_exec_run): New.
3102 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3103 Stan Shebs <stan@codesourcery.com>
3105 * tracepoint.h (set_traceframe_number)
3106 (cleanup_restore_current_traceframe): Declare.
3107 * tracepoint.c (set_traceframe_number): New.
3108 (struct current_traceframe_cleanup): New.
3109 (do_restore_current_traceframe_cleanup)
3110 (restore_current_traceframe_cleanup_dtor)
3111 (make_cleanup_restore_current_traceframe): New.
3112 * infrun.c: Include tracepoint.h.
3113 (fetch_inferior_event): Switch out and in of tfind mode.
3115 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3117 * breakpoint.c (breakpoint_init_inferior): Also delete
3118 bp_shlib_event breakpoints.
3119 * solib-frv.c (enable_break): Remove call to
3120 remove_solib_event_breakpoints.
3121 * solib-svr4.c (enable_break): Ditto.
3122 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
3123 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
3124 * solib-som.c (som_solib_create_inferior_hook): Ditto.
3125 * solib-spu.c (spu_enable_break): Ditto.
3127 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
3129 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
3131 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
3133 * varobj.c (varobj_update): Avoid non-constants in initializers.
3135 2010-02-23 Tom Tromey <tromey@redhat.com>
3137 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
3138 handle big-endian values.
3139 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
3141 2010-02-22 Pedro Alves <pedro@codesourcery.com>
3146 * breakpoint.c (insert_bp_location): If inserting the read
3147 watchpoint failed, fallback to an access watchpoint.
3148 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
3149 if the value changed, if not watching the same memory for writes.
3150 (watchpoint_locations_match): Add comment.
3151 (update_global_location_list): Copy the location's watchpoint type.
3152 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
3153 handle read watchpoints here.
3154 (i386_insert_watchpoint): Read watchpoints aren't supported.
3155 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
3157 * target.h (target_insert_watchpoint): Update description.
3159 2010-02-19 Tom Tromey <tromey@redhat.com>
3161 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
3162 * m2-typeprint.c (m2_print_type): Update.
3163 * gdbtypes.c (recursive_dump_type): Update.
3164 (copy_type_recursive): Update.
3165 * c-typeprint.c (c_type_print_varspec_prefix): Update.
3166 (c_type_print_base): Update.
3167 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
3169 (struct cplus_struct_type) <ntemplate_args>: Remove.
3170 <struct template_arg>: Remove.
3171 <is_dynamic>: Move earlier.
3172 (TYPE_TEMPLATE_ARGS): Remove.
3173 (TYPE_NTEMPLATE_ARGS): Remove.
3174 (TYPE_TEMPLATE_ARG): Remove.
3176 2010-02-19 Tom Tromey <tromey@redhat.com>
3178 PR c++/8693, PR c++/9496:
3179 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
3180 * c-exp.y (lex_one_token): Rename from yylex. Don't call
3181 write_dollar_variable. Don't try to classify NAME tokens.
3182 (token_and_value): New type.
3183 (token_fifo, popping, name_obstack): New globals.
3184 (classify_name): New function.
3185 (classify_inner_name): Likewise.
3187 (VARIABLE): Now has type sval.
3188 (exp : VARIABLE): Call write_dollar_variable.
3189 (qualified_name): Use TYPENAME, not typebase. Add production for
3190 multiple "::" instances.
3191 (variable): Use name_not_typename.
3192 (qualified_type): Remove.
3195 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3197 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
3198 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
3199 found by bfd_get_section_by_name.
3200 * symfile.h (struct section_addr_info) <sectindex>: New comment.
3202 2010-02-19 Joel Brobecker <brobecker@adacore.com>
3204 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
3205 7.0 section" into "Changes in 7.1".
3207 2010-02-19 Joel Brobecker <brobecker@adacore.com>
3209 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
3210 * version.in: Bump version to 7.1.50.20100219-cvs.
3212 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
3214 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
3215 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
3217 2010-02-17 Tom Tromey <tromey@redhat.com>
3219 * NEWS: Add Python API Improvements section.
3221 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
3223 * NEWS: Correct typo.
3225 2010-02-17 Tom Tromey <tromey@redhat.com>
3227 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
3229 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3231 * symfile.c (build_section_addr_info_from_objfile): Include sections
3232 only if they are SEC_ALLOC or SEC_LOAD.
3234 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
3237 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
3238 of ULONGEST for address size.
3240 2010-02-17 Tom Tromey <tromey@redhat.com>
3242 * NEWS: Add C++ improvements section.
3244 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
3246 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
3247 PyThreadState_Swap): Avoid "statement with no effect" warning.
3249 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3251 * solib-svr4.c (enable_break <target_auxv_search>): New variable
3252 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
3254 2010-02-17 Tristan Gingold <gingold@adacore.com>
3255 Petr HluzÃn <petr.hluzin@gmail.com>
3257 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
3258 gdb_assert. Fix info->size for SIG prologue.
3260 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
3262 * infcmd.c (show_inferior_tty_command): Check for NULL.
3263 Correct output message.
3265 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
3267 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
3268 FUNCTION contains parentheses. Improve removal of a trailing
3271 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
3273 * gcore.c (do_bfd_delete_cleanup): New function.
3274 (gcore_command): Use it. Discard the cleanup after success.
3275 (gcore_copy_callback): Delete dead code.
3277 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
3279 * symfile.c (addr_info_make_relative): Always use
3280 find_lowest_section.
3282 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
3284 * NEWS: Added entry for namespace fixes.
3286 2010-02-15 Tom Tromey <tromey@redhat.com>
3288 * dwarf2read.c (guess_structure_name): Allocate name on the
3291 2010-02-15 Tom Tromey <tromey@redhat.com>
3293 * c-typeprint.c (c_type_print_base): Reverse order of test.
3295 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3297 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
3298 initialize it from ELF BFD. Extend the prelink condition by it.
3300 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3302 * defs.h (parse_pid_to_attach): New.
3303 * utils.c (parse_pid_to_attach): New.
3304 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
3305 * gnu-nat.c (gnu_attach): Likewise.
3306 * nto-procfs.c (procfs_attach): Likewise.
3307 * procfs.c (procfs_attach): Likewise.
3308 * windows-nat.c (windows_attach): Likewise.
3309 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
3310 * inf-ttrace.c (inf_ttrace_attach): Likewise.
3311 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
3314 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
3316 * MAINTAINERS: Add myself for write after approval privileges.
3318 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3320 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
3323 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3325 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
3326 only if INFO_VERBOSE.
3328 2010-02-12 Tomas Holmberg <th@virtutech.com>
3330 * mi/mi-main.c: Added the --reverse flag to the following MI
3331 commands: exec-continue, exec-finish, exec-next, exec-step,
3332 exec-next-instruction, exec-step-instruction. This is to
3333 support reverse execution over the MI interface to gdb.
3335 2010-02-12 Pedro Alves <pedro@codesourcery.com>
3337 * tracepoint.c (_initialize_tracepoint): Specify that the address
3338 range of `tfind outsize' is exclusive, and that the address range
3339 of `tfind range' is inclusive, in the commands' help strings.
3341 2010-02-12 Joel Brobecker <brobecker@adacore.com>
3343 Spurious "dll not found" error messages on x64-windows.
3344 * windows-nat.c: Add include of complaints.h.
3345 (handle_unload_dll): Change dll-not-found error into a complaint.
3347 2010-02-12 Pedro Alves <pedro@codesourcery.com>
3349 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
3350 bp_tracepoint and bp_fast_tracepoint, not
3351 bp_loc_software_breakpoint.
3352 (update_global_location_list): Tracepoints are never duplicates of
3355 2010-02-12 Pedro Alves <pedro@codesourcery.com>
3357 * breakpoint.c (break_command_really): Change return type to int.
3358 Return false if no breakpoint was created, true otherwise.
3359 (trace_command): Don't set the tracepoint count if no tracepoint
3361 (ftrace_command): Ditto.
3362 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
3363 created in the breakpoints table.
3365 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3366 Ulrich Weigand <uweigand@de.ibm.com>
3368 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
3370 2010-02-11 Pedro Alves <pedro@codesourcery.com>
3372 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
3373 the offset value isn't of integral type.
3375 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3377 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
3380 2010-02-11 Pedro Alves <pedro@codesourcery.com>
3382 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
3383 non-subscriptable types.
3384 * valarith.c (binop_types_user_defined_p): New, abstracted out
3386 (binop_user_defined_p): ... this.
3387 * value.h (binop_types_user_defined_p): Declare.
3389 2010-02-11 Pedro Alves <pedro@codesourcery.com>
3391 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
3392 Merge uploaded TSVs before merging uploaded tracepoints.
3394 2010-02-11 Pedro Alves <pedro@codesourcery.com>
3396 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
3398 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
3400 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
3401 whitespace character after a dot in comment.
3402 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
3404 (list_args_or_locals): For the 'all' (that is
3405 -stack-list-variables) case, always output list of tuples.
3406 Output 'arg' field if variable is argument.
3408 2010-02-10 Tom Tromey <tromey@redhat.com>
3410 * parser-defs.h (parser_debug): Declare.
3411 * parse.c (_initialize_parse): Install "debug parser" set/show
3413 (parser_debug): New global.
3414 (show_parserdebug): New function.
3415 * c-exp.y (c_parse): Set yydebug.
3417 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
3419 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
3420 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
3421 (tdesc_predefined_types): Add i387_ext, i386_eflags and
3423 (tdesc_find_type): New.
3424 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
3425 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
3427 * target-descriptions.h (tdesc_find_type): New.
3429 2010-02-10 Michael Snyder <msnyder@vmware.com>
3431 * gdb-gdb.py: Comment fix.
3433 2010-02-09 Tristan Gingold <gingold@adacore.com>
3435 * machoread.c (macho_symfile_relocate): New function.
3436 (macho_sym_fns): Use macho_symfile_relocate instead of
3437 default_symfile_relocate.
3438 (macho_oso_data): New type.
3439 (current_oso): New variable.
3440 (macho_add_oso_symfile): Do not compute section_addr_info, but
3441 instead set vma of sections.
3442 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
3443 Set and clear current_oso.
3445 2010-02-09 Joel Brobecker <brobecker@adacore.com>
3447 Wrong type description for tagged type parameter.
3448 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
3449 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
3450 reference to a tagged type.
3452 2010-02-09 Tristan Gingold <gingold@adacore.com>
3454 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
3455 brothers of the parent.
3457 2010-02-08 Tom Tromey <tromey@redhat.com>
3461 * valops.c (search_struct_field): Make 'name' const.
3462 (search_struct_method): Likewise.
3463 (find_method_list): Make 'method' const.
3464 (value_struct_elt): Make 'name' and 'err' const.
3465 (value_find_oload_method_list): Make 'method' const.
3466 (find_overload_match): Make 'name' const.
3467 * eval.c (evaluate_subexp_standard): New locals function,
3469 <OP_FUNCALL>: Handle OP_SCOPE specially.
3471 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3473 * infrun.c (handle_inferior_event): Do not look up regcache
3474 for exited processes.
3476 2010-02-08 Chris Moller <moller@mollerware.com>
3479 * valarith.c (value_ptrdiff): Added a test for a zero type length,
3480 warn if found, and assume length = 1.
3482 2010-02-08 Chris Moller <cmoller@redhat.com>
3485 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
3486 cp_print_static_field) Fix use of obstacks.
3488 2010-02-08 Pedro Alves <pedro@codesourcery.com>
3490 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
3491 resumed LWPs as resumed.
3492 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
3493 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
3494 of throwing an internal error. If an LWP of a process we're not
3495 waiting for reports a signal, don't force collecting a SIGSTOP,
3496 and if it was breakpoint hit in non-stop mode, cancel it. Don't
3497 go through all LWPs cancelling breakpoints in non-stop mode.
3498 (resume_stopped_resumed_lwps): New.
3499 (linux_nat_wait): Use it.
3501 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
3503 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
3504 i386/amd64 and i386/amd64-linux.
3505 (i386/i386-expedite): New.
3506 (i386/i386-linux-expedite): Likewise.
3507 (i386/amd64-expedite):Likewise.
3508 (i386/amd64-linux-expedite): Likewise.
3509 ($(outdir)/i386/i386-linux.dat): Likewise.
3510 ($(outdir)/i386/amd64.dat): Likewise.
3511 ($(outdir)/i386/amd64-linux.dat): Likewise.
3513 * features/i386/32bit-core.xml: New.
3514 * features/i386/32bit-linux.xml: Likewise.
3515 * features/i386/32bit-sse.xml: Likewise.
3516 * features/i386/64bit-core.xml: Likewise.
3517 * features/i386/64bit-linux.xml: Likewise.
3518 * features/i386/64bit-sse.xml: Likewise.
3519 * features/i386/i386-linux.xml: Likewise.
3520 * features/i386/i386.xml: Likewise.
3521 * features/i386/amd64-linux.xml: Likewise.
3522 * features/i386/amd64.xml: Likewise.
3523 * features/i386/i386-linux.c: Likewise.
3524 * features/i386/i386.c: Likewise.
3525 * features/i386/amd64-linux.c: Likewise.
3526 * features/i386/amd64.c: Likewise.
3528 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
3531 * cp-support.h: Added char* alias element to using_direct data
3533 (cp_add_using): Added char* alias argument.
3534 (cp_add_using_directive): Ditto.
3535 * cp-namespace.c: Updated with the above changes.
3536 (cp_lookup_symbol_imports): Check for aliases.
3537 * dwarf2read.c (read_import_statement): Figure out local alias
3538 for the import and pass it on to cp_add_using.
3539 (read_namespace): Pass alias argument to cp_add_using.
3541 2010-02-05 Hui Zhu <teawater@gmail.com>
3543 * defs.h (gdb_bfd_errmsg): New extern.
3544 * exec.c (exec_file_attach): Change bfd_errmsg to
3546 * utils.c (AMBIGUOUS_MESS1): New macro.
3547 (AMBIGUOUS_MESS2): New macro.
3548 (gdb_bfd_errmsg): New function.
3550 2010-02-04 Doug Evans <dje@google.com>
3552 * solib-svr4.c (enable_break): Add comment.
3554 2010-02-04 Anthony Green <green@moxielogic.com>
3556 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
3559 2010-02-04 Tom Tromey <tromey@redhat.com>
3561 * valops.c (search_struct_field): Account for
3562 value_embedded_offset. Fix check for virtual base past the end of
3563 the object. Use value_copy when making a slice of the value.
3565 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
3568 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
3569 only if gdb_stdout is a tty.
3571 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
3573 * target-descriptions.c: Include "osabi.h".
3574 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
3577 2010-02-04 Tristan Gingold <gingold@adacore.com>
3579 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
3580 (macho_symtab_read): Adjust calls to macho_add_oso.
3581 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
3582 (macho_symfile_read): Adjust call to macho_oso_symfile.
3583 (macho_new_init): Move this function after declarations.
3584 (macho_symfile_init): Ditto.
3585 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
3586 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
3588 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
3590 Include MI command in remotelog.
3592 * mi/mi-main.c (mi_execute_command): Call target_log_command.
3594 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
3596 * remote.c (remote_state): Remove gdbarch.
3597 (init_remote_state): Don't set gdbarch.
3598 (remote_query_supported): Pass target_gdbarch instead of
3599 rs->gdbarch to gdbarch_qsupported.
3601 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
3603 * gdbarch.sh: Add qsupported.
3605 * gdbarch.c: Regenerated.
3606 * gdbarch.h: Likewise.
3608 * remote.c (remote_state): Add gdbarch.
3609 (init_remote_state): Set gdbarch.
3610 (remote_query_supported): Support gdbarch_qsupported.
3612 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
3614 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
3615 __FreeBSD_kernel_version.
3617 2010-02-03 Tristan Gingold <gingold@adacore.com>
3619 * symfile.h (struct sym_fns): Add sym_relocate field.
3620 (default_symfile_relocate): New prototype.
3621 (symfile_relocate_debug_section): First argument is now an objfile.
3622 * symfile.c (default_symfile_relocate): Rename from
3623 symfile_relocate_debug_section, first argument is now an objfile.
3624 (symfile_relocate_debug_section): New function.
3625 * coffread.c (coff_sym_fns): Set sym_relocate field.
3626 * somread.c (som_sym_fns): Ditto.
3627 * mipsread.c (ecoff_sym_fns): Ditto.
3628 * machoread.c (macho_sym_fns): Ditto.
3629 * elfread.c (elf_sym_fns): Ditto.
3630 * dwarf2read.c (dwarf2_read_section): Ditto.
3631 * xcoffread.c (xcoff_sym_fns): Ditto.
3632 * dbxread.c (aout_sym_fns): Ditto.
3633 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
3634 (elfstab_build_psymtabs): Ditto.
3636 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
3638 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
3640 2010-02-02 Tom Tromey <tromey@redhat.com>
3642 * valops.c (value_cast_structs): Try downcasting using the RTTI
3645 2010-02-02 Tom Tromey <tromey@redhat.com>
3647 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
3648 (gnuv2_baseclass_offset): Now static.
3649 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
3650 * gnu-v2-abi.h: Remove.
3652 2010-02-02 Tom Tromey <tromey@redhat.com>
3654 * m2-typeprint.c (m2_record_fields): Don't use
3656 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
3657 (struct main_type) <flag_declared_class>: New field.
3658 (struct cplus_struct_type) <declared_type>: Remove.
3659 <ntemplate_args>: Move earlier.
3660 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
3661 (DECLARED_TYPE_TEMPLATE): Remove.
3662 (TYPE_DECLARED_TYPE): Remove.
3663 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
3664 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
3665 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
3668 2010-02-02 Tom Tromey <tromey@redhat.com>
3670 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
3671 * valops.c (search_struct_field): Compute nbases after calling
3673 (check_field): Call CHECK_TYPEDEF.
3674 * cp-valprint.c (cp_print_value): Pass correct address to
3675 baseclass_offset. Fix check for virtual base past the end of the
3676 object. Don't offset address passed to cp_print_value_fields or
3677 apply_val_pretty_printer.
3678 (cp_print_value_fields): Fix call to val_print.
3679 (cp_print_value_fields_rtti): New function.
3680 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
3681 * p-valprint.c (pascal_object_print_value_fields): Fix call to
3683 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
3685 * language.h (struct language_defn) <la_val_print>: Document.
3686 * c-lang.h (cp_print_value_fields_rtti): Declare.
3688 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3691 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
3692 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
3693 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
3695 2010-02-01 Michael Matz <matz@suse.de>
3696 Daniel Jacobowitz <dan@codesourcery.com>
3698 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
3699 functions use a frame pointer.
3701 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3703 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
3704 by a conditional setting DYN_ADDR. Use DYN_ADDR.
3705 * config/djgpp/fnchange.lst: Add translations for
3706 symbol-without-target_section.exp and symbol-without-target_section.c.
3708 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3710 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
3711 (remote_breakpoint_for_pc): Correct invalid_p check.
3712 * gdbarch.c: Regenerated.
3714 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3716 * arm-tdep.c (arm_find_mapping_symbol): New function, from
3718 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
3719 (extend_buffer_earlier): New function.
3720 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
3721 (arm_adjust_breakpoint_address): New function.
3722 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
3724 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3726 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
3727 (arm_linux_thumb2_le_breakpoint): New constants.
3728 (arm_linux_init_abi): Set thumb2_breakpoint and
3729 thumb2_breakpoint_size.
3730 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
3731 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
3732 Implement support for single stepping through IT blocks if
3733 a 32-bit Thumb breakpoint instruction is available.
3734 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
3735 is available, use it when needed.
3736 (arm_remote_breakpoint_from_pc): New function.
3737 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
3738 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
3739 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
3741 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3743 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
3744 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
3745 * gdbarch.c, gdbarch.h: Regenerated.
3746 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
3747 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
3748 gdbarch_remote_breakpoint_from_pc.
3750 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
3752 * infrun.c (prepare_to_proceed): Handle other signals which might
3754 (handle_inferior_event): Move the check for unusual breakpoint
3757 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
3759 amd64 - function returning record with field straddling 2 registers.
3760 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
3761 a record of length <= 16 in which a field straddles the two
3764 2010-01-29 Joel Brobecker <brobecker@adacore.com>
3766 Implement return values on amd64-windows.
3767 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
3768 (amd64_windows_return_value): New function.
3769 (amd64_windows_init_abi): Call set_gdbarch_return_value with
3770 amd64_windows_return_value.
3772 2010-01-29 Joel Brobecker <brobecker@adacore.com>
3774 amd64-windows: 32 bytes allocated on stack by caller for integer
3775 parameter registers.
3776 * i386-tdep.h (struct gdbarch_tdep): Add new field
3777 integer_param_regs_saved_in_caller_frame.
3778 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3779 tdep->integer_param_regs_saved_in_caller_frame to 1.
3780 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3781 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3783 2010-01-29 Joel Brobecker <brobecker@adacore.com>
3785 amd64-windows: memory args passed by pointer during function calls.
3786 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3787 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3788 where tdep->memory_args_by_pointer is non-zero.
3789 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3790 tdep->memory_args_by_pointer to 1.
3792 2010-01-29 Joel Brobecker <brobecker@adacore.com>
3794 amd64-windows: Integer parameters in function calls.
3795 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3797 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3798 call_dummy_integer_regs, and classify.
3799 * amd64-tdep.h (amd64_classify): Add declaration.
3800 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3801 (amd64_reg_class): Delete, moved to i386-tdep.h.
3802 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3803 Replace call to amd64_classify by call to tdep->classify.
3804 (amd64_push_arguments): Get the list of registers to use for
3805 passing integer parameters from the gdbarch tdep structure,
3806 rather than using a hardcoded one. Replace calls to amd64_classify
3807 by calls to tdep->classify.
3808 (amd64_push_dummy_call): Get the register number used for
3809 the "hidden" argument from tdep->call_dummy_integer_regs.
3810 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3811 and tdep->call_dummy_integer_regs. Set tdep->classify.
3812 * amd64-windows-tdep.c: Add include of gdbtypes.h.
3813 (amd64_windows_dummy_call_integer_regs): New static global.
3814 (amd64_windows_classify): New function.
3815 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
3816 tdep->call_dummy_integer_regs and tdep->classify.
3818 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
3820 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
3821 for the new regcache. All callers updated.
3822 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
3823 (get_thread_arch_regcache): Do not set aspace here.
3824 * regcache.h (regcache_xmalloc): Update declaration.
3826 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
3827 regcache_xmalloc updated.
3829 2010-01-28 Joel Brobecker <brobecker@adacore.com>
3831 Another -Wunused-function error in procfs.c (sparc-solaris)
3832 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
3833 Only define if SYS_syssgi is defined.
3834 (remove_dbx_link_breakpoint): Delete declaration. Move up.
3835 (dbx_link_addr, insert_dbx_link_bpt_in_file)
3836 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
3839 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
3841 * windows-nat.c (windows_initialization_done): New variable.
3842 (get_windows_debug_event): Issue error when process dies before
3843 completely initializing.
3844 (do_initial_windows_stuff): Set flag to indicate when we are done with
3845 the initial steps of attaching to the child.
3847 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3849 * symtab.h (struct symbol <symtab>): New comment on NULL values.
3851 2010-01-27 Doug Evans <dje@google.com>
3853 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
3855 * breakpoint.c (bpstat_stop_status): Delete useless code.
3857 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3859 * printcmd.c (display_uses_solib_p): Remove variable section. Access
3860 objfile via SYMBOL_SYMTAB.
3862 2010-01-26 Tom Tromey <tromey@redhat.com>
3865 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
3866 coerce_array on result.
3868 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
3870 * cp-namespace.c (cp_lookup_symbol_namespace): Added
3871 search_parent argument.
3872 (cp_add_using): Initialize 'searched' field.
3873 (reset_directive_searched): New function.
3874 * cp-support.h: Add 'searched' field to using_direct struct.
3875 (cp_lookup_symbol_imports): Ditto.
3876 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
3877 Perform recursive search.
3878 Implement non parent search.
3879 * valops.c (value_maybe_namespace_elt): Updated.
3881 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
3884 * dwarf2read.c (read_lexical_block_scope): Create blocks for
3885 scopes which contain using directives even if they contain no
3887 * symtab.c (lookup_symbol_aux): Pass lowest level block to
3888 la_lookup_symbol_nonlocal.
3889 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
3890 cp_lookup_symbol_namespace.
3891 (cp_lookup_symbol_namespace): Perform an import lookup at every
3893 (cp_lookup_symbol_imports): New function.
3894 (cp_lookup_symbol_in_namespace): New function.
3896 2010-01-25 Tom Tromey <tromey@redhat.com>
3899 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
3902 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3904 * configure.ac: Only use host_os part when disabling TUI on osf.
3905 Use test to check variables, prefix strings with x.
3906 * configure: Regenerate.
3908 * solib-osf.c (osf_current_sos): Initialize tail.
3910 2010-01-25 gingold <gingold@adacore.com>
3912 * windows-nat.c (windows_continue): Use %x to print thread id.
3913 (get_windows_debug_event): Ditto.
3915 2010-01-22 Tom Tromey <tromey@redhat.com>
3918 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
3919 type and arguments. Use smash_to_methodptr_type.
3920 (read_structure_type): Call quirk_gcc_member_function_pointer
3922 * gdbtypes.h (smash_to_methodptr_type): Declare.
3923 * gdbtypes.c (smash_to_methodptr_type): New function.
3924 (lookup_methodptr_type): Use it.
3926 2010-01-21 Tom Tromey <tromey@redhat.com>
3929 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
3930 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
3931 * glibc-tdep.c (find_minsym_and_objfile): Remove.
3932 (glibc_skip_solib_resolver): Use
3933 lookup_minimal_symbol_and_objfile.
3935 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
3937 * inflow.c (check_syscall): Guard by #if clause for GO32 and
3940 2010-01-20 Tom Tromey <tromey@redhat.com>
3943 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
3944 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
3945 * dwarf2expr.c (new_dwarf_expr_context): Allocate
3946 dwarf_stack_values, not CORE_ADDRs.
3947 (execute_stack_op): Change DW_OP_div and comparison operators to
3948 use signed operands.
3950 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
3952 Per-inferior args and tty and environment.
3954 * infcmd.c (inferior_args): Rename to ...
3955 (inferior_args_scratch): ... this.
3956 (inferior_io_terminal): Rename to ...
3957 (inferior_io_terminal_scratch): ... this.
3958 (inferior_argc, inferior_argv): Remove.
3959 (set_inferior_io_terminal, get_inferior_io_terminal): Store
3960 inside current_inferior().
3961 (set_inferior_tty_command, show_inferior_tty_command): New.
3962 (get_inferior_args, set_inferior_args): Store inside
3964 (notice_args_set): Likewise and rename to...
3965 (set_args_command): ... this.
3966 (set_inferior_args_vector): Likewise.
3967 (notice_args_read): Rename to...
3968 (show_args_command): ...new.
3969 (tty_command): Remove.
3970 (run_command_1): Don't free old args, as they are freed by
3971 set_inferior_arg now.
3972 (run_no_args_command): Likewise.
3973 (inferior_environ): Remove.
3974 (run_command_1): Use environment of the current inferior.
3975 (environment_info, set_environment_command)
3976 (unset_environment_command, path_info, path_command): Likewise.
3977 (_initialize_infcmd): Adjust for function and variable renames.
3978 Do not init inferior_environ.
3979 * inferior.h (set_inferior_arg): Adjust prototype.
3980 (struct inferior): New fields args, argc, argv, terminal, environment.
3981 (inferior_environ): Remove declaration.
3982 * inferior.c (free_inferior): Free new fields.
3983 (add_inferior_silent): Initialize 'environment' field.
3984 * main.c (captured_main): Set arguments only after the initial
3985 inferior has been created. Set set_inferior_io_terminal,
3987 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
3989 (_initialize_mi_cmd_env): Adjust for disappearance of global
3991 * solib.c (solib_find): Use environment of the current inferior.
3993 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3995 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
3997 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
3999 2010-01-20 Joel Brobecker <brobecker@adacore.com>
4001 Get rid of ada-lang.c:function_name_from_pc.
4002 * ada-lang.c: Add "stack.h" #include.
4003 (function_name_from_pc): Delete.
4004 (is_known_support_routine): Replace call to function_name_from_pc
4005 by call to find_frame_funname.
4006 (ada_unhandled_exception_name_addr_from_raise): Likewise.
4008 2010-01-19 Tom Tromey <tromey@redhat.com>
4011 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
4014 2010-01-19 Tom Tromey <tromey@redhat.com>
4016 * top.c (stop_sig, float_handler, do_nothing): Remove.
4018 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4020 * breakpoint.c (watchpoint_check): Check the call
4021 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
4023 * config/djgpp/fnchange.lst: Add translations for
4024 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
4025 watchpoint-cond-gone-stripped.c.
4027 2010-01-19 Tom Tromey <tromey@redhat.com>
4030 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
4031 into parent scope, and enumerator into grandparent scope.
4033 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4035 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
4037 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4039 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
4040 i[34567]86-*-solaris2.1[0-9]*.
4041 * configure.tgt: Likewise.
4043 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4045 * NEWS: Document the source command enhancement allowing it
4046 to load Python scripts. Document the "set/show script-extension"
4049 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4051 Add -Wunused-function to compile flags.
4052 * configure.ac: Add -Wunused-function to build_warnings.
4053 * configure: Regenerate.
4055 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4057 "delete" ada-lex.c:input function, not used.
4058 * ada-lex.l: #define YY_NO_INPUT.
4060 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4062 Delete free_named_symtabs and associated cleanup.
4063 * symfile.h (free_named_symtabs): Delete declaration.
4064 * symfile.c: Remove some commented out code (clear_symtab_users_once).
4065 (cashier_psymtab): Comment function out.
4067 (free_named_symtabs): Delete.
4068 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
4069 * dbxread.c (end_psymtab): Likewise.
4070 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
4071 * exec.c (exec_close_1): Ditto.
4072 * xcoffread.c (xcoff_end_psymtab): Likewise.
4074 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4076 * stack.c (print_block_frame_labels): Comment function out.
4078 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4080 Delete unused or undefined functions.
4081 * breakpoint.c (ep_parse_optional_filename): Delete.
4082 * dcache.c (dcache_write_line): Remove declaration.
4083 * infrun.c (build_infrun): Remove declaration.
4084 * tracepoint.c (tracepoint_save_command): Remove declaration.
4085 * linux-nat.c (init_lwp_list): Delete. No longer used.
4086 * event-loop.c (check_async_signal_handlers): Delete declaration.
4087 * infrun.c (init_execution_control_state): Delete.
4088 (proceed): Update comment to avoid mentioning
4089 init_execution_control_state.
4090 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
4091 * ada-lang.c (ada_to_static_fixed_value): Delete.
4092 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
4093 * cp-namespace.c (cp_copy_usings): Delete.
4094 * xml-syscall.c (xml_number_of_syscalls): Delete.
4095 * progspace.c (find_program_space_by_num): Delete.
4096 * inflow.c (handle_sigio): Delete declaration.
4097 * hppa-tdep.c (hppa_alignof): Delete.
4098 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
4099 (mipsnbsd_core_osabi_sniffer): Delete.
4101 2010-01-18 Tom Tromey <tromey@redhat.com>
4104 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
4105 (CONST_CAST): New tokens.
4106 (exp): Add new productions.
4107 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
4109 (is_cast_operator): New function.
4110 (yylex): Handle cast operators specially.
4111 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
4112 UNOP_REINTERPRET_CAST>: New cases.
4113 * expprint.c (print_subexp_standard): Likewise.
4114 (op_name_standard): Likewise.
4115 (dump_subexp_body_standard): Likewise.
4116 * parse.c (operator_length_standard): Likewise.
4117 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
4118 UNOP_REINTERPRET_CAST.
4119 * gdbtypes.c (class_types_same_p): New function.
4120 (is_ancestor): Use it.
4121 (is_public_ancestor): New function.
4122 (is_unique_ancestor_worker): Likewise.
4123 (is_unique_ancestor): Likewise.
4124 * gdbtypes.h (class_types_same_p, is_public_ancestor)
4125 (is_unique_ancestor): Declare.
4126 * valops.c (value_reinterpret_cast): New function.
4127 (dynamic_cast_check_1): Likewise.
4128 (dynamic_cast_check_2): Likewise.
4129 (value_dynamic_cast): Likewise.
4130 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
4132 2010-01-18 Joel Brobecker <brobecker@adacore.com>
4134 Fix build failure when building without Python support.
4135 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
4138 2010-01-18 Joel Brobecker <brobecker@adacore.com>
4140 Use XVS field type instead of doing a parallel lookup.
4141 * ada-lang.c (ada_get_base_type): Follow the XVS field type
4142 if it is a reference type instead of doing a type lookup using
4145 2010-01-18 Joel Brobecker <brobecker@adacore.com>
4147 Trust PAD types instead of using PAD___XVS.
4148 * ada-lang.c (trust_pad_over_xvs): New static variable.
4149 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
4150 parallel XVS type, follow the XVS type instead of the PAD type.
4151 (unwrap_value): Make sure that there is no parallel XVE type
4152 before returning the value as is.
4153 (set_ada_list, show_ada_list): New static variables.
4154 (set_ada_command, show_ada_command): New functions.
4155 (_initialize_ada_language): Add new "set/show ada" prefix commands.
4156 Add new "set/show ada trust-PAD-over-XVS" setting.
4158 2010-01-18 Tom Tromey <tromey@redhat.com>
4159 Thiago Jung Bauermann <bauerman@br.ibm.com>
4161 Allow "source" to load python scripts.
4162 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
4163 * python/python.c (source_python_script): New function.
4164 * python/python.h (source_python_script): Add declaration.
4165 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
4166 (script_ext_off, script_ext_soft, script_ext_strict)
4167 (script_ext_enums, script_ext_mode): New static constants.
4168 (show_script_ext_mode, find_and_open_script): New functions.
4169 (source_script): Enhance to handle Python scripts.
4170 (init_cli_cmds): Add set/show script-extension commands.
4172 2010-01-16 Stan Shebs <stan@codesourcery.com>
4174 * tracepoint.h (struct trace_status): Use unsigned long long
4176 * tracepoint.c (trace_status_command): Fix printf directive.
4177 (trace_save_command): Check fwrite returns, fix printf directive.
4178 (trace_filename): New global.
4179 (tfile_open): Set it, check read returns.
4180 (tfile_close): Free trace_filename.
4181 (tfile_get_traceframe_address): Check read returns.
4182 (tfile_trace_find): Ditto.
4183 (tfile_fetch_registers): Ditto.
4184 (tfile_xfer_partial): Ditto.
4185 (tfile_get_trace_state_variable_value): Ditto.
4187 2010-01-15 Stan Shebs <stan@codesourcery.com>
4189 Add trace file support.
4190 * tracepoint.h (enum trace_stop_reason): New enum.
4191 (struct trace_status): New struct.
4192 (parse_trace_status): Declare.
4193 (struct uploaded_tp): Move here from remote.c,
4194 add fields for actions.
4195 (struct uploaded_tsv): New struct.
4196 * tracepoint.c (tfile_ops): New target vector.
4197 (trace_fd): New global.
4198 (tfile_open): New function.
4199 (tfile_close): New function.
4200 (tfile_files_info): New function.
4201 (tfile_get_trace_status): New function.
4202 (tfile_get_traceframe_address): New function.
4203 (tfile_trace_find): New function.
4204 (tfile_fetch_registers): New function.
4205 (tfile_xfer_partial): New function.
4206 (tfile_get_trace_state_variable_value): New function.
4207 (init_tfile_ops): New function.
4208 (_initialize_tracepoint): Call it, add tfile target.
4209 (trace_status): New global.
4210 (current_trace_status): New function.
4211 (trace_running_p): Remove, change all users to get from
4212 current_trace_status()->running.
4213 (get_trace_status): Remove.
4214 (trace_status_command): Call target_get_trace_status directly,
4215 report more detail including tracing stop reasons.
4216 (trace_find_command): Always allow tfind on a file.
4217 (trace_find_pc_command): Ditto.
4218 (trace_find_tracepoint_command): Ditto.
4219 (trace_find_line_command): Ditto.
4220 (trace_find_range_command): Ditto.
4221 (trace_find_outside_command): Ditto.
4222 (trace_frames_offset, cur_offset): Declare as off_t.
4223 (trace_regblock_size): Rename from reg_size, update users.
4224 (parse_trace_status): New function.
4225 (tfile_interp_line): New function.
4226 (disconnect_or_stop_tracing): Ensure current trace
4227 status before asking what to do.
4228 (stop_reason_names): New global.
4229 (trace_save_command): New command.
4230 (get_uploaded_tp): Move here from remote.c.
4231 (find_matching_tracepoint): Ditto.
4232 (merge_uploaded_tracepoints): New function.
4233 (parse_trace_status): Use stop_reason_names.
4234 (_initialize_tracepoint): Define tsave command.
4235 * target.h (target_ops): New fields to_save_trace_data,
4236 to_upload_tracepoints, to_upload_trace_state_variables,
4237 to_get_raw_trace_data, change to_get_trace_status
4238 to take a pointer to a status struct.
4239 (target_save_trace_data): New macro.
4240 (target_upload_tracepoints): New macro.
4241 (target_upload_trace_state_variables): New macro.
4242 (target_get_raw_trace_data): New macro.
4243 * target.c (update_current_target): Add new methods, change
4244 signature of to_get_trace_status.
4245 * remote.c (hex2bin): Make globally visible.
4247 (remote_download_trace_state_variable): Download name also.
4248 (remote_get_trace_status): Update parameter, use
4250 (remote_save_trace_data): New function.
4251 (remote_upload_tracepoints): New function.
4252 (remote_upload_trace_state_variables): New function.
4253 (remote_get_raw_trace_data): New function.
4254 (remote_start_remote): Use them.
4255 (_initialize_remote_ops): Add operations.
4256 * ax-gdb.c: Include breakpoint.h.
4257 * breakpoint.c (create_tracepoint_from_upload): Use
4258 break_command_really, return tracepoint, warn about unimplemented
4260 * NEWS: Mention trace file addition.
4262 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4264 Fix compilation warning on gcc-3.4.
4265 * exec.c (print_section_info): Move the `displacement' variable
4266 initialization to its declaration.
4268 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4270 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
4273 2010-01-15 Eric Botcazou <botcazou@adacore.com>
4275 "info tasks" broken by typedefs in ATCB type definitions.
4276 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
4277 ada_check_typedef before retrieving the length of the type for
4280 2010-01-15 Joel Brobecker <brobecker@adacore.com>
4282 Do not use name-based lookup for unconstrained packed arrays.
4283 * ada-lang.c (find_parallel_type_by_descriptive_type):
4284 Limit the fallback to name-based lookups to the case where
4285 the type is a constrained packed array.
4287 2010-01-15 Joel Brobecker <brobecker@adacore.com>
4289 Enhance gdb-gdb.py to handle main_type.type_specific.
4290 * gdb-gdb.py: Print the type-specific part of struct main_type.
4292 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4294 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
4295 * configure: Regenerate.
4296 * config.in: Regenerate.
4297 * utils.c: Include sys/resource.h.
4298 (dump_core, can_dump_core): New.
4299 (internal_vproblem): Update the comment. Check can_dump_core while
4300 setting dump_core_p. Replace two abort calls by dump_core calls.
4302 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4303 Eli Zaretskii <eliz@gnu.org>
4305 * NEWS: Document the PIE support.
4307 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4309 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
4310 (check_is_pie_binary, _initialize_linux_tdep): Remove.
4312 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4314 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
4315 Replace exec_entry_point call by bfd_get_start_address.
4317 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4319 Support Valgrind attachments broken by the PIE support.
4320 * auxv.c: Include gdbcore.h.
4321 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
4322 parameters ops, object and annex. Remove their assertions.
4323 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
4324 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
4325 (memory_xfer_auxv): ... here.
4326 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
4328 * procfs.c (procfs_xfer_partial): Likewise.
4329 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
4330 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
4331 (svr4_solib_create_inferior_hook): Conditionalize the
4332 svr4_relocate_main_executable call.
4334 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4336 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
4337 target_section. Find SECT in current_target_sections, gdb_assert it.
4338 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
4340 * symtab.c (lookup_objfile_from_block): Return the binary file instead
4341 of separate debug info file.
4343 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4345 Support PIEs with no symfile_objfile.
4346 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
4347 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
4349 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4351 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
4353 (svr4_static_exec_displacement): ... a new function.
4354 (svr4_exec_displacement): New function.
4355 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
4356 new_offsets using alloca now. Remove variable old_chain and changed.
4357 Call objfile_relocate unconditionally now.
4359 2010-01-14 Doug Evans <dje@google.com>
4361 * gdbtypes.c (arch_flags_type): Fix comment.
4362 * gdbtypes.h (arch_composite_type): Fix comment.
4364 2009-01-14 Tristan Gingold <gingold@adacore.com>
4366 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
4367 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
4368 to symbol_file_add_from_bfd. Add OSO as separate objfile.
4369 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
4370 macho_add_oso_symfile.
4371 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
4373 2010-01-14 Joel Brobecker <brobecker@adacore.com>
4375 Tru64: Dead threads are never deleted.
4376 * dec-thread.c (dec_thread_ptid_is_alive): New function.
4377 (dec_thread_count_gdb_threads): Fix counter increment.
4378 (dec_thread_add_gdb_thread): Fix *listp increment.
4379 (resync_thread_list): Fix bug in deletion of dead threads that
4380 caused all threads to be deleted, instead of just the dead ones.
4382 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
4386 * python/python-internal.h: Add lazy_string_object_type
4388 (create_lazy_string_object, gdbpy_initialize_lazy_string)
4389 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
4390 * python/py-value.c (valpy_lazy_string): New function.
4391 (convert_value_from_python): Add lazy string conversion.
4392 * python/py-prettyprint.c (pretty_print_one_value): Check if
4393 return is also a lazy string.
4394 (print_string_repr): Add lazy string printing branch.
4395 (print_children): Likewise.
4396 * python/py-lazy-string.c: New file. Implement lazy strings.
4397 * python/python.c (_initialize_python): Call
4398 gdbpy_initialize_lazy_string.
4399 * varobj.c (value_get_print_value): Add lazy string printing
4400 branch. Account for encoding.
4401 * c-lang.c (c_printstr): Account for new encoding argument. If
4402 encoding is NULL, find encoding suited for type, otherwise use
4404 * language.h (language_defn): Add encoding argument.
4405 (LA_PRINT_STRING): Likewise.
4406 * language.c (unk_lang_printstr): Update to reflect new encoding
4407 argument to language_defn.
4408 * ada-lang.h (ada_printstr): Likewise.
4409 * c-lang.h (c_printstr): Likewise.
4410 * p-lang.h (pascal_printstr);
4411 * f-lang.c (f_printstr): Likewise.
4412 * m2-lang.c (m2_printstr): Likewise.
4413 * objc-lang.c (objc_printstr): Likewise.
4414 * p-lang.c (pascal_printstr): Likewise.
4415 * scm-lang.c (scm_printstr): Likewise.
4416 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
4418 * ada-valprint.c (ada_printstr): Likewise.
4419 * f-valprint.c (f_val_print): Likewise
4420 * m2-valprint.c (m2_val_print): Likewise.
4421 * p-valprint.c (pascal_val_print): Likewise.
4422 * expprint.c (print_subexp_standard): Likewise.
4423 * valprint.c (val_print_string): Likewise.
4424 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
4425 (SUBDIR_PYTHON_SRCS): Likewise.
4426 (py-lazy-string.o): New rule.
4428 2010-01-13 Doug Evans <dje@google.com>
4430 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
4431 uninitialized" warning from gcc on local `tree'.
4433 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
4435 Implement core awareness.
4437 * bcache.c (compare_ints): Remove
4438 (print_percentage): Use compare_positive_ints.
4439 * defs.h (compare_positive_ints): Declare.
4440 * linux-nat.h (struct lin_lwp): New field core.
4441 (linux_nat_core_of_thread_1): Declare.
4442 * linux-nat.c (add_lwp): Init the 'core' field.
4443 (linux_nat_wait_1): Record the core.
4444 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
4445 (linux_nat_add_target): Register the above.
4446 * linux-thread-db.c (update_thread_core): New.
4447 (thread_db_find_new_threads): Update core information for
4449 * remote.c (struct private_thread_info): New.
4450 (free_private_thread_info, demand_private_info): New.
4451 (PACKET_qXfer_threads, use_osdata_threads): New.
4452 (struct thread_item, threads_parsing_context
4453 (start_thread, end_thread, thread_attributes)
4454 (thread_children, threads_children, threads_elements): New.
4455 (remote_threads_info): Try qXfer:threads before anything
4457 (remote_protocol_packets): Register qXfer:threads.
4458 (remote_open_1): Init use_osdata_threads.
4459 (struct stop_reply): New field 'core'.
4460 (remote_parse_stop_reply): Parse core number.
4461 (process_stop_reply): Record core number.
4462 (remote_xfer_partial): Handle qXfer:threads.
4463 (remote_core_of_thread): New.
4464 (init_remote_ops): Register remote_core_of_thread.
4465 (_initialize_remote): Register qXfer:read.
4466 * target.c (target_core_of_thread): New
4467 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
4468 (struct target_ops): New field to_core_of_threads.
4469 (target_core_of_thread): Declare.
4470 * gdbthread.h (struct thread_info): New field private_dtor.
4471 * thread.c (print_thread_info): Report the core.
4472 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
4473 * utils.c (compare_positive_ints): New.
4474 * features/threads.dtd: New.
4475 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
4476 * mi/mi-main.c (struct collect_cores_data, collect_cores)
4477 (do_nothing, free_vector_of_osdata_items)
4478 (splay_tree_int_comparator, free_splay_tree): New.
4479 (print_one_inferior_data): Implemented printing of selected
4480 inferiors. Collect and print cores.
4481 (output_cores): New.
4482 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
4483 thread groups together with --available.
4485 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4487 * configure: Regenerate (for _STRUCTURED_PROC).
4489 2010-01-12 Joel Brobecker <brobecker@adacore.com>
4491 Delete dead function.
4492 * ada-lang.c (extract_string): Delete. No longer used.
4494 2010-01-12 Joel Brobecker <brobecker@adacore.com>
4496 Fix -Wunused warning in dec-thread.c.
4497 * dec-thread.c (dec_thread_count_gdb_threads)
4498 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
4500 2010-01-12 Joel Brobecker <brobecker@adacore.com>
4502 * ada-valprint.c (ada_print_floating): Remove trailing space.
4504 2010-01-12 Joel Brobecker <brobecker@adacore.com>
4506 Add support for DW_AT_GNAT_descriptive_type.
4507 * gdbtypes.h (enum type_specific_kind): New enum.
4508 (struct main_type) [type_specific_field]: New component.
4509 [type_specific]: Add new component "gnat_stuff".
4510 (struct gnat_aux_type): New type.
4511 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
4512 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
4513 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
4514 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
4515 (TYPE_SPECIFIC_FIELD): New macros.
4516 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
4517 type does not hold any cplus-specific data.
4518 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
4519 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
4520 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
4521 cplus-specific data.
4522 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
4523 Set new component TYPE_SPECIFIC_FIELD (type).
4524 (gnat_aux_default): New constant.
4525 (allocate_gnat_aux_type): New function.
4526 (init_type): Add initialization the type-specific stuff for
4527 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
4528 (print_gnat_stuff): New function.
4529 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
4530 specific data. Adjust code that prints the contents of the
4531 type-specific union using the TYPE_SPECIFIC_FIELD value.
4532 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
4533 the type cplus stuff for Ada types.
4534 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
4535 Error out if these routines are called with an Ada type.
4536 (read_structure_type, read_array_type, read_subrange_type):
4537 Add call to set_descriptive_type.
4538 (set_die_type): Initialize the gnat-specific data if necessary.
4539 (need_gnat_info, die_descriptive_type, set_descriptive_type):
4541 * ada-lang.c (decode_constrained_packed_array_type): Use
4542 decode_constrained_packed_array_type instead of doing a standard
4543 lookup to locate a parallel type.
4544 (find_parallel_type_by_descriptive_type): New function.
4545 (ada_find_parallel_type_with_name): New function.
4546 (ada_find_parallel_type): Reimplement using
4547 ada_find_parallel_type_with_name.
4548 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
4549 to check if type has a cplus stuff.
4550 * linespec.c (total_number_of_methods): Likewise.
4551 * mdebugread.c (new_type): Likewise.
4553 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4555 * NEWS: Document the 0b binary number prefix parsing.
4557 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4559 * objfiles.c (objfile_relocate1): Change the return type to int.
4560 Describe the new return value. Return non-zero if data changed.
4561 (objfile_relocate): New variable changed. Set it. Call
4562 breakpoint_re_set depending on CHANGED.
4564 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4566 Implement binary numbers parsing.
4567 * c-exp.y (parse_number): New case 'b' and 'B'.
4569 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4570 Tristan Gingold <gingold@adacore.com>
4572 * solib.c (info_sharedlibrary_command): Replace
4573 objfile_has_partial_symbols and objfile_has_full_symbols calls by
4574 objfile_has_symbols.
4576 2010-01-10 Joel Brobecker <brobecker@adacore.com>
4578 * NEWS: Document the improvements made to the mips-irix port.
4580 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4582 Fix the documentation of valprint.c:value_print.
4583 * valprint.c (value_print): Update the function description to
4584 mention that the syntax of the output follows the current_language,
4587 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4589 Fix displacement of separate debug info files.
4590 * objfiles.c (objfile_relocate): Rename to ...
4591 (objfile_relocate1): ... here and make it static. Extend the comment.
4592 (objfile_relocate): New function.
4593 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
4594 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
4595 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
4596 allocated using alloca.
4597 * symfile.c (copy_section_addr_info): Remove.
4598 (build_section_addr_info_from_objfile): Make it global. New variables
4599 addr_bit and mask, use them.
4600 * symfile.h (build_section_addr_info_from_objfile): New prototype.
4601 (copy_section_addr_info): Remove.
4603 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4605 Signal unwinder for mips-irix N32.
4606 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
4608 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
4609 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
4610 (SIGCONTEXT_LO_OFF): New macros.
4611 (mips_irix_n32_tramp_frame_init): New function.
4612 (mips_irix_n32_tramp_frame): New static constant.
4613 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
4615 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4617 Breakpoint in shared library does not work on mips-irix.
4618 * procfs.c: #include "observer.h".
4619 (procfs_inferior_created): New function, moving here the code
4620 which unsets the syssgi syscall-exit notifications.
4621 (procfs_create_inferior): Remove the code which unsets the syssgi
4622 syscall-exit notifications. It is too early to do this here.
4623 (_initialize_procfs): Attach the procfs_inferior_created observer.
4625 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4627 Wrong return convention for arrays (mips-irix).
4628 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
4629 128 bits or smaller are returned the same way as structs
4630 and unions of the the same size.
4632 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4634 Cannot set the PC on mips-irix.
4635 * irix5-nat.c (fill_gregset): Check regno against the raw PC
4636 register number, no the cooked one.
4638 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4640 Error while loading core file on mips-irix.
4641 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
4642 if debugging from a core file.
4644 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4646 GDB hangs when attaching to process on mips-irix.
4647 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
4648 attaching to a process.
4650 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4652 Use the correct breakpoint instruction on mips-irix.
4653 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
4654 containing the correct breakpoint instruction to use on mips-irix.
4655 Use it when the osabi is GDB_OSABI_IRIX.
4657 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4659 -Wunused warning in procfs.c (mips-irix only).
4660 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
4661 throughout instead of using praddset and prdelset respectively.
4663 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4665 GDB crash while stepping into function.
4666 * infrun.c (handle_inferior_event): Refetch the current frame
4667 after handling what.main_action, in case that pointer became
4670 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4672 Fix build failure of solaris-hosted cross debuggers.
4673 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
4675 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4677 Fix build failure on sparc-solaris.
4678 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
4680 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4682 Move some symfile code into subroutines.
4683 * symfile.h (relative_addr_info_to_section_offsets)
4684 (addr_info_make_relative): New prototypes.
4685 * symfile.c (default_symfile_offsets): Move a part to ...
4686 (relative_addr_info_to_section_offsets): ... this new function.
4687 (default_symfile_offsets): Call it.
4688 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
4690 (addr_info_make_relative): ... this new function.
4692 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4694 Add from_tty to solib_create_inferior_hook.
4695 * infcmd.c (post_create_inferior): Move solib_add after
4696 solib_create_inferior_hook. Pass from_tty to
4697 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
4698 0 from_tty and comment why.
4699 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
4700 * linux-nat.c (linux_child_follow_fork): Likewise.
4701 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
4702 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
4704 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
4705 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4706 * solib-null.c (null_solib_create_inferior_hook): Likewise.
4707 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4708 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
4709 * solib-som.c (som_solib_create_inferior_hook): Likewise.
4710 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
4711 Pass it to svr4_so_ops.solib_create_inferior_hook.
4712 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
4714 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
4716 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
4718 * solib-target.c (solib_target_solib_create_inferior_hook): New
4720 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
4721 it to ops->solib_create_inferior_hook.
4722 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
4723 Move solib_add after solib_create_inferior_hook, call it now with
4724 from_tty as 0. New comment there.
4725 * solib.h (solib_create_inferior_hook): New parameter from_tty.
4726 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
4729 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
4732 * infrun.c (handle_inferior_event): Use get_thread_regcache
4733 with events ptid, not get_current_regcache.
4735 2009-01-08 Joel Brobecker <brobecker@adacore.com>
4737 GDB crash with empty executable name (MinGW).
4738 * source.c (openp): Add assert that parameter string is not NULL.
4739 if parameter string is an empty string, then return with a failure
4742 2009-01-08 Joel Brobecker <brobecker@adacore.com>
4744 Get rid of support for VAX Floats.
4745 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
4746 (ada_vax_float_print_function): Delete.
4747 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
4748 (ada_vax_float_print_function): Delete.
4749 * ada-typeprint.c (print_vax_floating_point_type): Delete.
4750 (ada_print_type): Remove support for VAX floats.
4751 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
4753 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4755 * stabsread.c (read_args): Handle zero arguments.
4757 2009-01-08 Joel Brobecker <brobecker@adacore.com>
4759 Cannot find in-tree libiconv.a after reconfigure.
4760 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
4761 that we can use, then cache the path to this archive.
4762 * configure: Regenerate.
4764 2010-01-07 Stan Shebs <stan@codesourcery.com>
4766 Make tracepoint operations go through target vector.
4767 * target.h (enum trace_find_type): New enum.
4768 (struct target_ops): New fields to_trace_init,
4769 to_download_tracepoint, to_download_trace_state_variable,
4770 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
4771 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
4772 to_set_disconnected_tracing.
4773 (target_trace_init): New macro.
4774 (target_download_tracepoint): New macro.
4775 (target_download_trace_state_variable): New macro.
4776 (target_trace_start): New macro.
4777 (target_trace_set_readonly_regions): New macro.
4778 (target_get_trace_status): New macro.
4779 (target_trace_stop): New macro.
4780 (target_trace_find): New macro.
4781 (target_get_trace_state_variable_value): New macro.
4782 (target_set_disconnected_tracing): New macro.
4783 * target.c (update_current_target): Inherit and set defaults for
4784 tracepoint operations.
4785 * tracepoint.c (default_collect): Make globally visible.
4786 (target_is_remote): Remove, along with all calls.
4787 (tvariables_info): Call target_get_trace_state_variable_value.
4788 (remote_set_transparent_ranges): Remove.
4789 (trace_start_command): Call target_trace_init,
4790 target_download_tracepoint, etc.
4791 (download_tracepoint): Remove.
4792 (trace_stop_command): Simplify.
4793 (stop_tracing): Call target_trace_stop.
4794 (get_trace_status): Call target_get_trace_status.
4795 (trace_status_command): Add case for targets that cannot trace.
4796 (finish_tfind_command): Change to take numerical arguments, call
4798 (trace_find_command): Update call to finish_tfind_command.
4799 (trace_find_pc_command): Ditto.
4800 (trace_find_tracepoint_command): Ditto.
4801 (trace_find_line_command): Ditto.
4802 (trace_find_range_command): Ditto.
4803 (trace_find_outside_command): Ditto.
4804 (set_disconnected_tracing_value): Call
4805 target_set_disconnected_tracing.
4806 * remote.c: Add protocol encoding bits from tracepoint.c.
4807 (trace_error): Move from tracepoint.c.
4808 (remote_get_noisy_reply): Ditto.
4809 (free_actions_list_cleanup_wrapper): Ditto.
4810 (free_actions_list): Ditto.
4811 (remote_trace_init): New function.
4812 (remote_download_tracepoint): New function.
4813 (remote_download_trace_state_variable): New function.
4814 (remote_trace_set_readonly_regions): New function.
4815 (remote_trace_start): New function.
4816 (remote_get_trace_status): New function.
4817 (remote_trace_stop): New function.
4818 (remote_trace_find): New function.
4819 (remote_download_trace_state_variable): New function.
4820 (remote_set_disconnected_tracing): New function.
4821 (init_remote_ops): Add tracepoint operations.
4823 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
4825 2010-01-07 Tristan Gingold <gingold@adacore.com>
4827 * symfile.c (build_section_addr_info_from_objfile): New function.
4828 (symbol_file_add_separate): Don't use offsets from objfile but
4831 2010-01-06 Stan Shebs <stan@codesourcery.com>
4833 Support disconnected tracing.
4834 * infcmd.c (detach_command): Ask whether to stop tracing.
4835 * cli/cli-cmds.c (quit_command): Ditto.
4836 * breakpoint.h (struct breakpoint): New field number_on_target.
4837 * breakpoint.c (create_tracepoint_from_upload): New function.
4838 (get_tracepoint_by_number_on_target): New function.
4839 * remote.c (struct remote): New field disconnected_tracing.
4840 (remote_disconnected_tracing_feature): New function.
4841 (remote_protocol_features): Add DisconnectedTracing.
4842 (struct uploaded_tp): New struct.
4843 (uploaded_tps): New global.
4844 (get_uploaded_tp): New function.
4845 (find_matching_tracepoint): New function.
4846 (remote_get_tracing_state): New function.
4847 (remote_start_remote): Call it.
4848 * tracepoint.c (disconnected_tracing): New global.
4849 (trace_start_command): Initialize number_on_target.
4850 (stop_tracing): New function, split out from...
4851 (trace_stop_command): Call stop_tracing.
4852 (get_trace_status): New function, split out from...
4853 (trace_status_command): Call get_trace_status, add info on
4854 disconnection behavior.
4855 (disconnect_or_stop_tracing): New function.
4856 (finish_tfind_command): Translate from number on target.
4857 (trace_find_tracepoint_command): Translate to number on target.
4858 (send_disconnected_tracing_value): New function.
4859 (set_disconnected_tracing): New function.
4860 (_initialize_tracepoint): Add disconnected-tracing variable.
4861 * NEWS: Mention disconnected tracing.
4863 2010-01-06 Tristan Gingold <gingold@adacore.com>
4865 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
4866 parameter to main_objfile. Iterate on all separate debug objfiles.
4867 * symfile.h (symbol_file_add_separate)
4868 (find_separate_debug_file_by_debuglink): Remove parameter names.
4869 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
4870 (reread_symbols): Use free_objfile_separate_debug.
4871 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
4873 (objfile_separate_debug_iterate, add_separate_debug_objfile)
4874 (free_objfile_separate_debug): New prototypes.
4875 * objfiles.c (objfile_separate_debug_iterate): New function.
4876 (add_separate_debug_objfile, free_objfile_separate_debug): New
4878 (free_objfile): Use free_objfile_separate_debug. Adjust for
4879 multiple separate debug objfile.
4880 (objfile_has_symbols): Adjust comment. Iterate on all separate
4882 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
4884 (lookup_minimal_symbol_text): Ditto.
4885 (lookup_minimal_symbol_by_pc_name): Ditto.
4886 (lookup_minimal_symbol_solib_trampoline): Ditto.
4887 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
4890 2010-01-05 Stan Shebs <stan@codesourcery.com>
4892 Add fast tracepoints.
4893 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
4894 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
4895 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
4896 * breakpoint.c (tracepoint_type): New function.
4897 (ALL_TRACEPOINTS): Use it.
4898 (should_be_inserted): Ditto.
4899 (bpstat_check_location): Ditto.
4900 (print_one_breakpoint_location): Ditto.
4901 (user_settable_breakpoint): Ditto.
4902 (set_breakpoint_location_function): Ditto.
4903 (disable_breakpoints_in_shlibs): Ditto.
4904 (delete_trace_command): Ditto.
4905 (print_it_typical): Add bp_fast_tracepoint case.
4906 (bpstat_what): Ditto.
4907 (print_one_breakpoint_location): Ditto.
4908 (allocate_bp_location): Ditto.
4910 (breakpoint_re_set_one): Ditto.
4911 (disable_command): Ditto.
4912 (enable_command): Ditto.
4913 (check_fast_tracepoint_sals): New function.
4914 (break_command_really): Call it.
4915 (ftrace_command): New function.
4916 (_initialize_breakpoint): Add ftrace command.
4917 * gdbarch.sh (fast_tracepoint_valid_at): New.
4918 * gdbarch.h, gdbarch.c: Regenerate.
4919 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
4920 (i386_gdbarch_init): Use it.
4921 * remote.c (struct remote_state): New field fast_tracepoints.
4922 (PACKET_FastTracepoints): New packet config type.
4923 (remote_fast_tracepoint_feature): New function.
4924 (remote_protocol_features): Add FastTracepoints.
4925 (remote_supports_fast_tracepoints): New function.
4926 (_initialize_remote): Add FastTracepoints.
4927 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
4928 * NEWS: Mention fast tracepoints.
4930 2010-01-06 Joel Brobecker <brobecker@adacore.com>
4932 * gdb-gdb.py: New file.
4934 2010-01-05 Michael Snyder <msnyder@vmware.com>
4936 * infrun.c (handle_inferior_event): Fix typo in comment.
4938 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4940 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
4942 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
4944 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
4946 (s390-linux32-expedite): Define.
4947 (s390-linux64-expedite): Define.
4948 (s390x-linux64-expedite): Define.
4949 * features/s390-acr.xml: New file.
4950 * features/s390-fpr.xml: New file.
4951 * features/s390-core32.xml: New file.
4952 * features/s390-core64.xml: New file.
4953 * features/s390x-core64.xml: New file.
4954 * features/s390-linux32.xml: New file.
4955 * features/s390-linux64.xml: New file.
4956 * features/s390x-linux64.xml: New file.
4957 * features/s390-linux32.c: New generated file.
4958 * features/s390-linux64.c: New generated file.
4959 * features/s390x-linux64.c: New generated file.
4961 * regformats/s390-linux32.dat: New generated file.
4962 * regformats/s390-linux64.dat: New generated file.
4963 * regformats/s390x-linux64.dat: New generated file.
4964 * regformats/reg-s390.dat: Remove.
4965 * regformats/reg-s390x.dat: Remove.
4967 * s390-nat.c: Include "auxv.h" and <elf.h>.
4968 (HWCAP_S390_HIGH_GPRS): Define if undefined.
4969 (s390_target_wordsize): New function.
4970 (s390_auxv_parse): Likewise.
4971 (s390_get_hwcap): Likewise.
4972 (s390_read_description): Likewise.
4973 (_initialize_s390_nat): Install s390_auxv_parse and
4974 s390_read_description.
4976 * s390-tdep.c: Include "features/s390-linux32.c",
4977 "features/s390-linux64.c", and "features/s390x-linux64.c".
4978 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
4979 (s390_register_call_saved): New function.
4980 (s390_register_name): Remove.
4981 (s390_register_type): Remove.
4982 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
4983 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
4984 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
4985 (s390_pseudo_register_name): New function.
4986 (s390_pseudo_register_type): New function.
4987 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
4988 Handle full GPR pesudos and varying pseudo register numbers.
4989 (s390_pseudo_register_write): Likewise
4990 (s390x_pseudo_register_read): Remove.
4991 (s390x_pseudo_register_write): Likewise.
4992 (s390_register_group): Remove.
4993 (s390_pseudo_register_group): New function.
4994 (s390_regmap_gregset): Add GPR upper halves.
4995 (s390x_regmap_gregset): Likewise.
4996 (s390_regmap_fpregset): Likewise.
4997 (s390_regmap_upper): New global variable.
4998 (s390_upper_regset): New global variable.
4999 (s390_upper_regset_sections): New global variable.
5000 (s390_regset_from_core_section): Handle GPR upper halves.
5001 (s390_core_read_description): New function.
5002 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
5003 register information. Handle varying pseudo register numbers.
5004 (s390_backchain_frame_unwind_cache): Likewise.
5005 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
5006 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
5007 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
5008 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
5009 Handle varying pseudo register numbers.
5010 (s390_unwind_pc): Handle varying pseudo register numbers.
5011 (s390_dwarf2_prev_register): New function.
5012 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
5013 register information. Handle varying pseudo register numbers.
5014 Install s390_dwarf2_prev_register to unwind full GPRs.
5015 (s390_gdbarch_init): Handle target descriptions. Assign varying
5016 pseudo register numbers. Install s390_adjust_frame_regnum.
5017 (_initialize_s390_tdep): Initialize target descriptions.
5019 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
5020 (S390_NUM_REGS): Redefine to include upper half registers.
5021 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
5022 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
5023 (tdesc_s390_linux32): Add declaration.
5024 (tdesc_s390_linux64): Likewise.
5025 (tdesc_s390x_linux64): Likewise.
5027 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
5029 * regset.h (struct core_regset_section): Add HUMAN_NAME.
5030 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
5031 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
5032 (ppc_linux_vmx_regset_sections): Likewise.
5033 (ppc_linux_fp_regset_sections): Likewise.
5035 * corelow.c (get_core_register_section): Constify arguments.
5036 (get_core_registers): Use gdbarch_core_regset_sections instead
5037 of hard-coded platform-specific register section names.
5039 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
5041 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
5042 a register, assume the least-significant part is used.
5043 (write_pieced_value): Likewise.
5045 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
5047 * printcmd.c: Include "arch-utils.h".
5048 (do_one_display): Re-parse expression if current architecture changed.
5050 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5051 Joel Brobecker <brobecker@adacore.com>
5053 * gdbtypes.c (check_typedef): New comment on type length.
5054 * value.c (allocate_value_lazy): Remove the unused atype variable. New
5055 comment on type length.
5056 (value_primitive_field): Keep the original TYPE value, new comment.
5058 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5060 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
5061 p_start. Change != comparisons to > and < comparisons.
5063 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5065 * cli/cli-script.c (process_next_line): Check P2 overrun.
5067 2009-01-01 Joel Brobecker <brobecker@adacore.com>
5069 Update the copyright hearder to add year 2010 for most GDB files.
5071 2009-01-01 Joel Brobecker <brobecker@adacore.com>
5073 Fix build failure in inf-ptrace.c.
5074 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
5076 2010-01-01 Joel Brobecker <brobecker@adacore.com>
5078 * top.c (print_gdb_version): Update copyright year.
5080 2010-01-01 Joel Brobecker <brobecker@adacore.com>
5082 Fix break *FUN'address thread NUM.
5083 * ada-lex.l (task): Expand rule to also match the thread keyword.
5085 2010-01-01 Joel Brobecker <brobecker@adacore.com>
5087 Fix break *FUN'address task NUM.
5088 * ada-lex.l (task): New rule.
5089 * ada-lang.c (valid_task_id): Make sure the Ada task list has
5090 been built before using it.
5092 For older changes see ChangeLog-2009.
5098 version-control: never