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