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