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