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