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