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