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