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