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