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