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