* tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-02-19 Jiong Wang <jiwang@tilera.com>
2
3 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4 (tilegx_write_pc): New function.
5 (tilegx_cannot_reference_register): Return zero if REGNO
6 is TILEGX_FAULTNUM_REGNUM.
7 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
8 (tilegx_register_name): Add handling of "faultnum" register.
9 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11 handling of TILEGX_FAULTNUM_REGNUM.
12 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
13
14 2013-02-19 Jiong Wang <jiwang@tilera.com>
15
16 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
17 should be aligned to 64bit.
18
19 2013-02-19 Kai Tietz <ktietz@redhat.com>
20
21 * windows-nat.c (windows_xfer_memory): Fix debug-output
22 for LLP64.
23
24 2013-02-19 Lei Liu <lei.liu2@windriver.com>
25
26 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
27 Don't check DSP register number if HAVE_DSP is not set.
28
29 2013-02-19 Alan Modra <amodra@gmail.com>
30
31 * elfread.c (struct build_id): Delete. Use struct elf_build_id
32 throughout file instead.
33 (build_id_bfd_get): Update to use new elf_tdata build_id field.
34 Don't xmalloc return value.
35 (build_id_verify): Similarly. Don't xfree.
36 (build_id_to_debug_filename): Update.
37 (find_separate_debug_file_by_buildid): Update, don't xfree.
38
39 2013-02-18 Tom Tromey <tromey@redhat.com>
40
41 PR gdb/15102:
42 * dwarf2read.c (read_subrange_type): Use result of
43 'check_typedef'.
44
45 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
46
47 * frame.c: Remove one extra white space after #include
48 directive.
49
50 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
51
52 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
53
54 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
55
56 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
57 and dir commands into an if block.
58
59 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
60
61 * python/py-breakpoint (struct pybp_code): Use int instead of
62 enum type_code.
63
64 2013-02-15 Pedro Alves <pedro@codesourcery.com>
65 Hafiz Abid Qadeer <abidh@codesourcery.com>
66
67 * NEWS: Mention new field "trace-file".
68 * tracepoint.c (trace_status_mi): Output "trace-file" field.
69 (tfile_open): Record the trace file's filename in the trace
70 status.
71 (tfile_files_info): Mention the name of the trace file.
72 Check the "filename" field explicitely.
73 (trace_status_command): Explicitely check "filename" field.
74 (trace_find_command): Ditto.
75 (trace_find_pc_command): Ditto.
76 (trace_find_tracepoint_command): Ditto.
77 (trace_find_line_command): Ditto.
78 (trace_find_range_command): Ditto.
79 (trace_find_outside_command): Ditto.
80 * tracepoint.h (struct trace_status) <from_file>: Rename it
81 to "filename" and make it hold the trace file's filename
82 instead of a boolean.
83 * remote.c (remote_get_trace_status): Initialize "filename"
84 field with NULL instead of 0.
85
86 2013-02-15 Yao Qi <yao@codesourcery.com>
87
88 * remote.c: Fix a typo.
89
90 2013-02-14 Pierre Muller <muller@sourceware.org>
91
92 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
93
94 2013-02-14 Pedro Alves <palves@redhat.com>
95
96 * utils.c (savestring): Don't #undef it. Move function to
97 common/common-utils.c.
98 * common/common-utils.c: Include gdb_string.h.
99 (savestring): Move here from utils.c.
100 * common/common-utils.h (savestring): Declare.
101
102 2013-02-14 Pedro Alves <palves@redhat.com>
103
104 * utils.c (savestring): Rename parameter 'size' to 'len'.
105
106 2013-02-14 Pedro Alves <palves@redhat.com>
107 Yufeng Zhang <yufeng.zhang@arm.com>
108
109 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
110 (aarch64_inferior_data, struct aarch64_inferior_data):
111 Delete.
112 (struct aarch64_process_info): New.
113 (aarch64_process_list): New global.
114 (aarch64_find_process_pid, aarch64_add_process)
115 (aarch64_process_info_get): New functions.
116 (aarch64_inferior_data_get): Delete.
117 (aarch64_process_info_get): New function.
118 (aarch64_forget_process): New function.
119 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
120 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
121 aarch64_get_debug_reg_state.
122 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
123 instead of linux_nat_iterate_watchpoint_lwps.
124 (aarch64_linux_new_fork): New function.
125 (aarch64_linux_child_post_startup_inferior): Use
126 aarch64_forget_process instead of aarch64_init_debug_reg_state.
127 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
128 (aarch64_linux_remove_hw_breakpoint)
129 (aarch64_handle_aligned_watchpoint)
130 (aarch64_handle_unaligned_watchpoint)
131 (aarch64_linux_insert_watchpoint)
132 (aarch64_linux_remove_watchpoint)
133 (aarch64_linux_stopped_data_address): Adjust to pass the current
134 process id to aarch64_debug_reg_state.
135 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
136 linux_nat_new_fork hook, and aarch64_forget_process as
137 linux_nat_forget_process hook; remove the call to
138 register_inferior_data_with_cleanup.
139
140 2013-02-14 Pedro Alves <palves@redhat.com>
141
142 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
143 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
144 lval_memory.
145
146 2013-02-14 Pedro Alves <pedro@codesourcery.com>
147 Hafiz Abid Qadeer <abidh@codesourcery.com>
148
149 * tracepoint.h (validate_trace_state_variable_name): Declare.
150 * tracepoint.c (validate_trace_state_variable_name): New.
151 (trace_variable_command): Parse the trace state variable's name
152 without using parse_expression. Do several validations.
153 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
154 trace state variable's name with parse_expression. Validate it.
155
156 2013-02-14 Yao Qi <yao@codesourcery.com>
157
158 * infcmd.c (breakpoint_proceeded): Remove it.
159
160 2013-02-14 Yao Qi <yao@codesourcery.com>
161
162 * tracepoint.c (end_actions_pseudocommand): Make it static.
163 (while_stepping_pseudocommand): Likewise.
164 * tracepoint.h (end_actions_pseudocommand): Remove the
165 declaration.
166 (while_stepping_pseudocommand): Likewise.
167
168 2013-02-14 Yao Qi <yao@codesourcery.com>
169
170 * cli/cli-decode.c (help_cmd): Remove the declaration of
171 "cmdlist".
172 (help_all): Likewise.
173
174 2013-02-13 Pedro Alves <palves@redhat.com>
175
176 * amd64-linux-nat.c (update_debug_registers_callback):
177 Update comment.
178 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
179 iterate_over_lwps.
180 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
181 i386_debug_reg_state.
182 (amd64_linux_new_fork): New function.
183 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
184 linux_nat_new_fork hook, and i386_forget_process as
185 linux_nat_forget_process hook.
186 * i386-linux-nat.c (update_debug_registers_callback):
187 Update comment.
188 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
189 iterate_over_lwps.
190 (i386_linux_prepare_to_resume): Pass the lwp's pid to
191 i386_debug_reg_state.
192 (i386_linux_new_fork): New function.
193 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
194 linux_nat_new_fork hook, and i386_forget_process as
195 linux_nat_forget_process hook.
196 * i386-nat.c (i386_init_dregs): Delete.
197 (i386_inferior_data, struct i386_inferior_data):
198 Delete.
199 (struct i386_process_info): New.
200 (i386_process_list): New global.
201 (i386_find_process_pid, i386_add_process, i386_process_info_get):
202 New functions.
203 (i386_inferior_data_get): Delete.
204 (i386_process_info_get): New function.
205 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
206 (i386_forget_process): New function.
207 (i386_cleanup_dregs): Rewrite.
208 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
209 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
210 (i386_stopped_data_address, i386_insert_hw_breakpoint)
211 (i386_remove_hw_breakpoint): Adjust to pass the current process id
212 to i386_debug_reg_state.
213 (i386_use_watchpoints): Don't register inferior data.
214 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
215 adjust comment.
216 (i386_forget_process): Declare.
217 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
218 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
219 New static globals.
220 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
221 (add_initial_lwp): New, factored out from ...
222 (add_lwp): ... this. Don't check the number of lwps before
223 calling linux_nat_new_thread.
224 (linux_nat_iterate_watchpoint_lwps): Delete.
225 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
226 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
227 forks and vforks.
228 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
229 initial lwp.
230 (linux_nat_kill, linux_nat_mourn_inferior): Call
231 linux_nat_forget_process.
232 (linux_nat_set_new_fork, linux_nat_set_forget_process)
233 (linux_nat_forget_process): New functions.
234 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
235 type.
236 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
237 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
238 types.
239 (linux_nat_set_new_fork, linux_nat_set_forget_process)
240 (linux_nat_forget_process): New declarations.
241
242 * amd64fbsd-nat.c (super_mourn_inferior): New global.
243 (amd64fbsd_mourn_inferior): New function.
244 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
245 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
246
247 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
248
249 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
250 Adding _().
251
252 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
253
254 * aarch64-linux-nat.c (debug_reg_change_callback)
255 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
256 %s and phex().
257
258 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
259
260 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
261 with LONGEST.
262
263 2013-02-13 Pedro Alves <palves@redhat.com>
264 Hafiz Abid Qadeer <abidh@codesourcery.com>
265
266 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
267
268 2013-02-12 Tom Tromey <tromey@redhat.com>
269
270 PR symtab/11464:
271 * c-exp.y (lex_one_token): Initialize other fields of yylval on
272 NAME return.
273 (classify_inner_name): Remove 'first_name' argument, add
274 'context'. Remove unused variable.
275 (yylex): Explicitly maintain the context type. Exit loop earlier
276 if NAME result is seen.
277
278 2013-02-12 Pedro Alves <palves@redhat.com>
279
280 * amd64-darwin-tdep.c: Add (C) after Copyright.
281 * cli/cli-cmds.h: Ditto.
282 * cli/cli-decode.c: Ditto.
283 * cli/cli-decode.h: Ditto.
284 * cli/cli-dump.c: Ditto.
285 * cli/cli-dump.h: Ditto.
286 * cli/cli-interp.c: Ditto.
287 * cli/cli-logging.c: Ditto.
288 * cli/cli-script.c: Ditto.
289 * cli/cli-script.h: Ditto.
290 * cli/cli-setshow.c: Ditto.
291 * cli/cli-setshow.h: Ditto.
292 * cli/cli-utils.c: Ditto.
293 * cli/cli-utils.h: Ditto.
294 * config/alpha/nm-osf3.h: Ditto.
295 * config/djgpp/djconfig.sh: Ditto.
296 * config/i386/nm-fbsd.h: Ditto.
297 * config/i386/nm-i386gnu.h: Ditto.
298 * config/nm-linux.h: Ditto.
299 * config/nm-nto.h: Ditto.
300 * config/rs6000/nm-rs6000.h: Ditto.
301 * config/sparc/nm-sol2.h: Ditto.
302 * darwin-nat-info.c: Ditto.
303 * dfp.c: Ditto.
304 * dfp.h: Ditto.
305 * gdb-demangle.h: Ditto.
306 * i386-darwin-nat.c: Ditto.
307 * i386-darwin-tdep.c: Ditto.
308 * linux-fork.h: Ditto.
309 * m32c-tdep.c: Ditto.
310 * microblaze-linux-tdep.c: Ditto.
311 * microblaze-rom.c: Ditto.
312 * microblaze-tdep.c: Ditto.
313 * microblaze-tdep.h: Ditto.
314 * mips-linux-tdep.h: Ditto.
315 * ppc-ravenscar-thread.c: Ditto.
316 * ppc-ravenscar-thread.h: Ditto.
317 * prologue-value.c: Ditto.
318 * prologue-value.h: Ditto.
319 * ravenscar-thread.c: Ditto.
320 * ravenscar-thread.h: Ditto.
321 * sparc-ravenscar-thread.c: Ditto.
322 * sparc-ravenscar-thread.h: Ditto.
323 * tilegx-linux-tdep.c: Ditto.
324 * unwind_stop_reasons.def: Ditto.
325 * windows-nat.h: Ditto.
326 * xtensa-linux-tdep.c: Ditto.
327 * xtensa-xtregs.c: Ditto.
328 * regformats/regdat.sh: Ditto.
329 * regformats/regdef.h: Ditto.
330
331 2013-02-12 Pedro Alves <palves@redhat.com>
332
333 * break-catch-sig.c: Update copyright years.
334
335 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
336
337 Add support for a destructor for ui_out data and use it to
338 provide a ui_out destructor.
339 * ui-out.h: Declare the new ui_out destructor.
340 (ui_out_impl): Add a field for data destructor in ui_out_impl.
341 * ui-out.c (default_data_destroy): Add a default data destructor
342 which does nothing.
343 (default_ui_out_impl): Set the new data_destroy field to
344 default_data_destroy
345 (uo_data_destroy): Local function which invokes the data
346 destructor if present.
347 (clear_table): Local function which clears the table data of a
348 ui_out object.
349 (ui_out_destroy): Public function which frees a ui_out object.
350 (ui_out_table_end): Use the new clear_table function.
351 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
352 NULL.
353 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
354 to NULL.
355
356 2013-02-11 Doug Evans <dje@google.com>
357
358 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
359 (printf_decfloat): New function. Broken out from ui_printf.
360 Remove unnecessary code to shift the entire format string down.
361 (printf_pointer): New function.
362 (ui_printf): Code to print C strings, wide C strings, decfloats,
363 and pointers moved to separate functions.
364
365 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
366
367 * valops.c (value_assign): Handling bitfield offset in
368 `lval_internalvar_component' case.
369
370 2013-02-08 Doug Evans <dje@google.com>
371
372 * common/format.c (parse_format_string): Fix whitespace.
373
374 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
375
376 * stack.c (return_command): Work around uninitialized variable
377 warning.
378
379 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
380
381 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
382 number of the registers from 36 to 34.
383
384 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
385
386 * NEWS: Mention new AArch64 native and target support.
387
388 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
389
390 * MAINTAINERS (Write After Approval): Add myself.
391
392 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
393 Marcus Shawcroft <marcus.shawcroft@arm.com>
394 Nigel Stephens <nigel.stephens@arm.com>
395 Yufeng Zhang <yufeng.zhang@arm.com>
396
397 * aarch64-linux-nat.c: New file.
398 * config/aarch64/linux.mh: New file.
399 * configure.host: Add AArch64.
400 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
401
402 2013-02-07 Doug Evans <dje@google.com>
403
404 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
405 disassemble command.
406
407 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
408
409 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
410 set_gdbarch_fetch_tls_load_module_address.
411
412 2013-02-06 David S. Miller <davem@davemloft.net>
413
414 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
415 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
416 * value.c (struct_return_convention): New function.
417 (using_struct_return): Implement in terms of struct_return_convention.
418 * value.h (struct_return_convention): Declare.
419 * stack.c (return_command): Allow successful overriding of the return
420 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
421
422 2013-02-06 Tom Tromey <tromey@redhat.com>
423
424 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
425 outside of TRY_CATCH.
426
427 2013-02-06 Yao Qi <yao@codesourcery.com>
428
429 * mi/mi-interp.c: Include "tracepoint.h".
430 (mi_tsv_modified): Declare.
431 (mi_tsv_created, mi_tsv_deleted): Update declaration.
432 (mi_interpreter_init): Call observer_attach_tsv_modified.
433 (mi_tsv_modified): New.
434 (mi_tsv_created, mi_tsv_deleted): Update.
435 * tracepoint.c (trace_variable_command): Call
436 observer_notify_tsv_modified if the initial value of tsv is
437 changed.
438 (delete_trace_state_variable): Call
439 observer_notify_tsv_deleted earlier.
440 (trace_variable_command): Caller update.
441 (create_tsv_from_upload): Likewise.
442 * observer.sh: Declare "struct trace_state_variable".
443
444 * NEWS: Mention the new MI notification "=tsv-modified".
445
446 2013-02-05 Doug Evans <dje@google.com>
447
448 * completer.c (location_completer): Fix typo in comment.
449
450 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
451
452 * breakpoint.c (add_location_to_breakpoint): Insert the location with
453 ADDRESS sorted.
454
455 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
456
457 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
458 Refactor if statement to avoid trailing || operator.
459
460 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
461
462 * NEWS: Add PowerPC FreeBSD as a new native configuration.
463
464 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
465
466 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
467 * configure.host: Add powerpc*-*-freebsd* target.
468 * configure.tgt: Add target info for powerpc*-*-freebsd*.
469 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
470 * config/powerpc/fbsd.mh: New file.
471
472 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
473 Denys Vlasenko <dvlasenk@redhat.com>
474 Pedro Alves <palves@redhat.com>
475
476 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
477 (struct elf_internal_linux_prpsinfo): Forward declare.
478 * gdbarch.h, gdbarch.c: Regenerate.
479 * linux-tdep.c: Include `cli/cli-utils.h'.
480 (linux_fill_prpsinfo): New function.
481 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
482 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
483 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
484 depending on gdbarch pointer bitness.
485 * ppc-linux-tdep.c: Include elf-bfd.h.
486 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
487 on 32-bit.
488
489 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
490 Marcus Shawcroft <marcus.shawcroft@arm.com>
491 Nigel Stephens <nigel.stephens@arm.com>
492 Yufeng Zhang <yufeng.zhang@arm.com>
493
494 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
495
496 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
497 Marcus Shawcroft <marcus.shawcroft@arm.com>
498 Nigel Stephens <nigel.stephens@arm.com>
499 Yufeng Zhang <yufeng.zhang@arm.com>
500
501 * aarch64-newlib-tdep.c: New file.
502 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
503 aarch64*-*-elf.
504 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
505 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
506 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
507 * osabi.c (gdb_osabi_names): Add "Newlib".
508
509 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
510 Marcus Shawcroft <marcus.shawcroft@arm.com>
511 Nigel Stephens <nigel.stephens@arm.com>
512 Yufeng Zhang <yufeng.zhang@arm.com>
513
514 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
515 (ALLDEPFILES): Add aarch64-linux-tdep.c.
516 * aarch64-linux-tdep.c: New file.
517 * aarch64-linux-tdep.h: New file.
518 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
519 * configure.tgt: Add aarch64-none-linux-gnu.
520
521 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
522 Marcus Shawcroft <marcus.shawcroft@arm.com>
523 Nigel Stephens <nigel.stephens@arm.com>
524 Yufeng Zhang <yufeng.zhang@arm.com>
525
526 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
527 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
528 (ALLDEPFILES): Add aarch64-tdep.c.
529 * aarch64-tdep.c: New file.
530 * aarch64-tdep.h: New file.
531 * configure.tgt: Add AArch64.
532 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
533 (aarch64-expedite): New definition.
534 * features/aarch64-core.xml: New file.
535 * features/aarch64-fpu.xml: New file.
536 * features/aarch64-without-fpu.c: New file (generated).
537 * features/aarch64-without-fpu.xml: New file.
538 * features/aarch64.c: New file (generated).
539 * features/aarch64.xml: New file.
540 * regformats/aarch64-without-fpu.dat: New file (generated).
541 * regformats/aarch64.dat: New file (generated).
542
543 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
544
545 * contrib/expect-read1.c: New file.
546 * contrib/expect-read1.sh: New file.
547
548 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
549
550 * dwarf2read.c (file_file_name): New function with code from
551 file_full_name.
552 (file_full_name): Move most of the code to file_file_name.
553 (macro_start_file): Rename variable full_name to file_name and use
554 file_file_name for it. Add comp_dir parameter to new_macro_table.
555 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
556 macro_source_file->filename access by macro_source_fullname call.
557 * macroscope.c (_initialize_macroscope): Update the new_macro_table
558 caller.
559 * macrotab.c (struct macro_table): New field comp_dir.
560 (macro_include): New variables link_fullname and source_fullname.
561 Replace any macro_source_file->filename access by macro_source_fullname
562 call.
563 (macro_lookup_inclusion): Remove the partial filenames checking code.
564 (check_for_redefinition): New variables source_fullname and
565 found_key_fullname. Replace any macro_source_file->filename access by
566 macro_source_fullname call.
567 (macro_undef): New variables source_fullname and key_fullname. Replace
568 any macro_source_file->filename access by macro_source_fullname call.
569 (macro_lookup_definition): New variables retval and source_fullname.
570 Replace any macro_source_file->filename access by macro_source_fullname
571 call.
572 (foreach_macro): New variable key_fullname. Replace any
573 macro_source_file->filename access by macro_source_fullname call.
574 (foreach_macro_in_scope): New variable datum_fullname. Replace any
575 macro_source_file->filename access by macro_source_fullname call.
576 (new_macro_table): Add parameter comp_dir. Initialize T with it.
577 (macro_source_fullname): New function.
578 * macrotab.h (struct macro_source_file): Extent the filename field
579 comment.
580 (new_macro_table): New parameter comp_dir, add a comment for it.
581 (macro_source_fullname): new declaration.
582
583 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
584
585 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
586 this_real_name to outer block. Use it also for
587 compare_filenames_for_search.
588 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
589 with dw2_get_real_path for file_matcher, considering also
590 BASENAMES_MAY_DIFFER.
591 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
592
593 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
594
595 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
596 to the file_matcher parameter. Pass 0 to it.
597 (dwarf2_create_include_psymtab): Copy also DIRNAME.
598 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
599 NULL psymtab_to_fullname result.
600 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
601 an expected filename instead.
602 (expand_symtabs_matching_via_partial): Add basenames parameter to the
603 file_matcher parameter. Call also psymtab_to_fullname, after newly
604 considering BASENAMES_MAY_DIFFER.
605 * source.c (rewrite_source_path): Remove static.
606 * source.h (rewrite_source_path): New declaration.
607 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
608 the expand_symtabs_matching field. Comment it.
609 * symtab.c (file_matches): New function comment. Add parameter
610 basenames, implement it.
611 (search_symbols_file_matches): Add basenames parameter. Update the
612 file_matches caller.
613 (search_symbols): Match FILES also against symtab_to_fullname.
614 Optimize it for BASENAMES_MAY_DIFFER.
615
616 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
617
618 * source.c (print_source_lines_base): Print for TUI also "fullname".
619 * tui/tui-data.c (init_content_element): Change tui_locator_element
620 field to full_name.
621 * tui/tui-data.h (struct tui_locator_element): Likewise.
622 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
623 tui_update_locator_filename calls to tui_update_locator_fullname.
624 Replace symtab->filename refererence by symtab_to_fullname call.
625 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
626 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
627 field to full_name. Replace symtab->filename refererence by
628 symtab_to_fullname call.
629 (tui_show_symtab_source): Rename parameter to fullname. Change
630 tui_locator_element field to full_name.
631 * tui/tui-stack.c: Include source.h.
632 (tui_set_locator_filename): Rename the declaration to ...
633 (tui_set_locator_fullname): ... here. Rename its parameter to
634 fullname, updates its comment.
635 (tui_set_locator_info): Rename its parameter to fullname.
636 (tui_set_locator_filename): Rename the definition to ...
637 (tui_set_locator_fullname): ... here. Rename its parameter to
638 fullname, updates its comment. Change tui_locator_element field to
639 full_name.
640 (tui_set_locator_info): Rename its parameter to fullname.
641 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
642 (tui_update_locator_filename): Rename to ...
643 (tui_update_locator_fullname): ... here. Rename callee to
644 tui_set_locator_fullname.
645 (tui_show_frame_info): Replace symtab->filename refererence by
646 symtab_to_fullname call.
647 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
648 (tui_update_locator_fullname): ... here.
649 * tui/tui-winsource.c (tui_display_main): Rename the callee to
650 tui_update_locator_fullname. Replace symtab->filename refererence by
651 symtab_to_fullname call.
652 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
653 Rename the callee to tui_update_locator_fullname.
654 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
655
656 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
657
658 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
659 by symtab_to_filename_for_display calls.
660 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
661 (clear_command): New variable sal_fullname, initialize it. Replace
662 compare_filenames_for_search by filename_cmp with sal_fullname.
663 (say_where, update_static_tracepoint): Replace symtab->filename
664 refererences by symtab_to_filename_for_display calls.
665 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
666 Likewise.
667 * dwarf2read.c: Include source.h.
668 (fixup_go_packaging): Replace symtab->filename refererences by
669 symtab_to_filename_for_display calls.
670 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
671 Replace symtab->filename refererences by symtab_to_filename_for_display
672 calls.
673 (create_sals_line_offset, convert_linespec_to_sals): New variable
674 fullname, initialize it, replace symtab->filename reference by the
675 variable.
676 * linux-fork.c: Include source.h.
677 (info_checkpoints_command): Replace symtab->filename refererences by
678 symtab_to_filename_for_display calls.
679 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
680 by symtab_to_filename_for_display calls.
681 * mdebugread.c: Include source.h.
682 (psymtab_to_symtab_1): Replace symtab->filename refererences by
683 symtab_to_filename_for_display calls.
684 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
685 (mi_cmd_file_list_exec_source_files): Likewise.
686 * printcmd.c: Include source.h.
687 (build_address_symbolic): Replace symtab->filename refererences by
688 symtab_to_filename_for_display calls.
689 * psymtab.c (partial_map_symtabs_matching_filename)
690 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
691 with psymtab_to_fullname.
692 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
693 by symtab_to_filename_for_display calls.
694 (stpy_get_filename): New variable filename, initialize it, use instead
695 of symtab->filename refererences.
696 (salpy_str): Make variable filename const char *. Replace
697 symtab->filename refererences by symtab_to_filename_for_display calls.
698 * skip.c: Include source.h and filenames.h.
699 (skip_file_command): Remove const from the symtab variable. Replace
700 symtab->filename refererences by symtab_to_fullname call.
701 (function_name_is_marked_for_skip): New variables searched_for_fullname
702 and fullname. Use them to search also with symtab's fullname.
703 * source.c (find_source_lines): Replace symtab->filename refererences
704 by symtab_to_filename_for_display calls.
705 (print_source_lines_base): New variable filename, use it instead of
706 symtab->filename. Replace symtab->filename refererences by
707 symtab_to_filename_for_display calls.
708 (line_info, forward_search_command): Replace symtab->filename
709 refererences by symtab_to_filename_for_display calls.
710 (reverse_search_command): Replace symtab->filename refererences by
711 symtab_to_filename_for_display calls. New variable filename for it.
712 * stack.c (frame_info): Likewise.
713 * symmisc.c: Include source.h.
714 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
715 (maintenance_info_symtabs): Replace symtab->filename refererences by
716 symtab_to_filename_for_display calls.
717 * symtab.c (iterate_over_some_symtabs): Call
718 compare_filenames_for_search also with symtab_to_fullname.
719 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
720 symtab->filename refererences by symtab_to_filename_for_display calls.
721 (find_line_symtab): Replace symtab->filename refererences by
722 symtab_to_filename_for_display calls.
723 (file_matches): Replace filename_cmp by compare_filenames_for_search.
724 (print_symbol_info): Make the last parameter const char *. New
725 variable s_filename. Use it in the function.
726 (symtab_symbol_info): Make the last_filename variable const char *.
727 Replace symtab->filename refererences by symtab_to_filename_for_display
728 calls.
729 (rbreak_command): New variable fullname. Use it. Replace
730 symtab->filename refererence by symtab_to_filename_for_display call.
731 * tracepoint.c (set_traceframe_context, trace_find_line_command)
732 (print_one_static_tracepoint_marker): Replace symtab->filename
733 refererences by symtab_to_filename_for_display calls.
734 * tui/tui-source.c (tui_set_source_content): New variables filename and
735 s_filename. Replace symtab->filename refererences by this variable.
736 Replace other symtab->filename refererences by
737 symtab_to_filename_for_display calls.
738
739 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
740 Jan Kratochvil <jan.kratochvil@redhat.com>
741
742 Add a new variable that controls a way in which filenames are
743 displayed.
744 * NEWS (set filename-display): New entry.
745 * source.c (filename_display_basename, filename_display_relative)
746 (filename_display_absolute, filename_display_kind_names)
747 (filename_display_string, show_filename_display_string)
748 (symtab_to_filename_for_display): New.
749 (_initialize_source): Added initialization of 'filename-display'
750 variable.
751 * source.h (symtab_to_filename_for_display): Added declaration.
752 * stack.c (print_frame): Added new variable and calling of a new
753 function and condition with this variable. Changed third argument of
754 calling of a function.
755
756 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
757
758 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
759 Rename field reference filename to fullname.
760 * tui/tui-data.h (struct tui_source_info): Rename field filename to
761 fullname. New comment for it.
762 * tui/tui-source.c (tui_set_source_content): Rename field reference
763 filename to fullname. Initialize field by symtab_to_fullname now.
764 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
765 reference filename to fullname. Use symtab_to_fullname during
766 comparison.
767
768 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
769
770 Code cleanup.
771 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
772 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
773 filename to fullname. Rename variable this_name to this_fullname.
774 Lowercase FILENAME_CMP call.
775 (dw2_find_symbol_file): New comment for the returned string.
776 (dwarf2_gdb_index_functions): Rename the function to
777 dw2_expand_symtabs_with_fullname.
778 * psymtab.c (read_psymtabs_with_filename): Rename to ...
779 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
780 fullname.
781 (psym_functions): Rename the function to read_psymtabs_with_fullname.
782 * symfile.h (struct quick_symbol_functions): Rename field
783 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
784 parameter filename to fullname. Document returned string meaning for
785 find_symbol_file.
786 * symtab.c (find_line_symtab): Rename the called function to
787 expand_symtabs_with_fullname.
788
789 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
790
791 Code cleanup.
792 * breakpoint.c (clear_command): Remove variable is_abs, unify the
793 call of filename_cmp with compare_filenames_for_search.
794 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
795 is_abs, unify the call of FILENAME_CMP with
796 compare_filenames_for_search. New gdb_asserts for real_path and name.
797 Unify the call of compare_filenames_for_search with FILENAME_CMP.
798 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
799 * symfile.h (struct quick_symbol_functions): Extend the comment for
800 map_symtabs_matching_filename.
801 * symtab.c (compare_filenames_for_search): Remove the function comment
802 relative path requirement. Handle absolute filenames, with a comment.
803 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
804 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
805 real_path and name. Unify the call of compare_filenames_for_search
806 with FILENAME_CMP.
807 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
808
809 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
810
811 Code cleanup.
812 * breakpoint.c (print_breakpoint_location): Replace bp_location field
813 source_file references by symtab field references. Remove variables
814 sal and fullname.
815 (momentary_breakpoint_from_master, add_location_to_breakpoint):
816 (clear_command, say_where): Replace bp_location field source_file
817 references by symtab field references.
818 (bp_location_dtor): Remove the source_file reference.
819 (update_static_tracepoint): Replace bp_location field source_file
820 references by symtab field references.
821 (breakpoint_free_objfile): New function.
822 * breakpoint.h (struct bp_location): Extend the comment for line_number.
823 Replace the field source_file by field symtab, extend its comment.
824 (breakpoint_free_objfile): New declaration.
825 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
826 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
827 field source_file references by symtab field references.
828
829 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
830
831 Replace xfullpath calls by gdb_realpath calls.
832 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
833 function comment.
834 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
835 Remove it from the iterate_over_some_symtabs call.
836 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
837 Remove it from the dw2_map_expand_apply calls, remove a block handling
838 it.
839 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
840 Remove it from the iterate_over_some_symtabs call.
841 (partial_map_symtabs_matching_filename): Remove parameter full_path.
842 Remove it from the partial_map_expand_apply calls, remove a block
843 handling it. Drop gdb_realpath call and cleanups from the real_path
844 handling.
845 * source.c (openp): Drop the comment part about xfullpath. Replace
846 xfullpath calls by gdb_realpath calls.
847 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
848 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
849 from method map_symtabs_matching_filename and its comment.
850 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
851 gdb_realpath call.
852 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
853 remove it also from the function comment, remove a block handling it.
854 Drop gdb_realpath call and cleanups from the real_path handling.
855 (iterate_over_symtabs): Drop variable full_path and its use.
856 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
857 * utils.c (xfullpath): Remove.
858 * utils.h (xfullpath): Remove.
859
860 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
861
862 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
863 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
864 (ALLDEPFILES): Add ppc64-tdep.c.
865 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
866 ppc64-tdep.o to gdb_target_obs.
867 * ppc64-tdep.h: New file.
868 * ppc64-tdep.c: New file.
869 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
870 ppc-linux-tdep.c to here.
871 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
872 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
873 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
874 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
875 from ppc-linux-tdep.c to here.
876 (ppc64_convert_from_func_ptr_addr): Rename from
877 ppc64_linux_convert_from_func_ptr_addr to
878 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
879 here.
880 * rs6000-tdep.c:
881 (read_insn): Move from ppc-linux-tdep.c to here.
882 (insns_match_pattern, insn_d_field, insn_ds_field): Move
883 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
884 * ppc-linux-tdep.c: Include ppc64-tdep.h.
885 Removed above functions.
886 (ppc_linux_init_abi): Adjust.
887
888 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
889
890 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
891
892 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
893
894 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
895
896 2013-02-01 Pedro Alves <palves@redhat.com>
897
898 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
899 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
900
901 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
902
903 * elfread.c (elf_symfile_read): Limit separate debug info additions to
904 files with no separate debug info.
905 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
906 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
907 only for files with no separate debug info.
908
909 2013-01-31 Tom Tromey <tromey@redhat.com>
910
911 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
912 change type.
913 (struct jit_program_space_data): Rename from jit_inferior_data.
914 Update comments.
915 (get_jit_program_space_data): Rename from get_jit_inferior_data.
916 Change return type. Attach data to program space.
917 (jit_program_space_data_cleanup): Rename from
918 jit_inferior_data_cleanup; change argument type.
919 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
920 change type.
921 (jit_register_code): Update.
922 (jit_update_inferior_cache): Remove.
923 (jit_breakpoint_deleted): Get jit data from the location's program
924 space.
925 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
926 'ps_data', change type.
927 (jit_inferior_init, jit_breakpoint_re_set_internal)
928 (jit_event_handler): Update.
929 (free_objfile_data): Get data from objfile's program space.
930 (_initialize_jit): Update.
931
932 2013-01-31 Tom Tromey <tromey@redhat.com>
933
934 PR gdb/13987:
935 * jit.c (struct jit_inferior_data) <cached_code_address,
936 jit_breakpoint>: New fields.
937 (jit_breakpoint_re_set_internal): Fix logging. Only create
938 breakpoint if cached address has changed.
939 (jit_update_inferior_cache, jit_breakpoint_deleted): New
940 functions.
941 (_initialize_jit): Register breakpoint deleted observer.
942
943 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
944
945 * infrun.c (handle_syscall_event): Remove unused gdbarch.
946 (save_infcall_suspend_state): Ifdef out unused inf.
947 (restore_infcall_suspend_state): Ifdef out unused inf.
948 * jit.c (jit_register_code): Remove unused i, b, inf_data.
949 (jit_frame_sniffer): Remove unused inf_data.
950
951 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
952
953 * c-exp.y (classify_inner_name): Remove unused type.
954 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
955 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
956 need_escape.
957 (c_get_string): Remove unused kind.
958 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
959
960 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
961
962 * charset.c (intermediate_encoding): Remove unused i.
963 * completer.c (signal_completer): Remove unused i.
964 * continuations.c (discard_my_continuations_1): Remove unused
965 continuation_ptr.
966 * corelow.c (core_close): Remove unuseD name.
967 (get_core_siginfo): Remove unused pid.
968 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
969 i, cps.
970 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
971 (loclist_describe_location): Remove unused first.
972 * event-top.c (command_line_handler): Remove unused got_eof.
973 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
974 (resize_section_table): Remove unused old_value.
975 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
976 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
977 * i386-tdep.c (i386_process_record): Remove unused rex.
978 * infcmd.c (get_return_value): Remove unused uiout.
979 * jv-lang.c (type_from_class): Remove unused is_array.
980 * jv-valprint.c (java_val_print): Remove unused i.
981 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
982 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
983 * m2-typeprint.c (m2_print_type): Remove unused code.
984 * macroexp.c (get_character_constant): Remove unused body_start.
985 (macro_stringify): Remove unused result.
986 * objc-lang.c (find_methods): Remove unused gdbarch.
987 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
988 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
989 * stack.c (print_frame_args): Remove unused summary.
990 * thread.c (thread_apply_command): Remove unused p.
991 * valarith.c (value_x_unop): Remove unused mangle_ptr.
992 * valops.c (search_struct_method): Remove unused skip.
993 * valprint.c (generic_val_print): Remove unused byte_order.
994 * varobj.c (varobj_update): Remove unused changed.
995 * cli/cli-cmds.c (complete_command): Remove unused next_item.
996 (alias_command): Remove unused c.
997 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
998 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
999 format.
1000 (mi_cmd_data_write_memory): Remove unused word_format.
1001 (mi_cmd_data_write_memory_bytes): Remove unused r.
1002 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
1003 p_start, p_end.
1004 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
1005 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
1006 line_width.
1007
1008 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1009
1010 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
1011 * symtab.c (iterate_over_symtabs): Remove unused s.
1012 (find_pc_sect_symtab): Remove unused pspAce.
1013 (find_pc_sect_line): Remove unused alt_symtab.
1014 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
1015 (completion_list_add_name): Remove unused newsize.
1016
1017 2013-01-31 Tom Tromey <tromey@redhat.com>
1018
1019 PR c++/14998:
1020 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
1021 TYPE_CODE_FUNC.
1022
1023 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1024
1025 * target.c (target_read_string): Remove unused origlen.
1026
1027 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1028
1029 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
1030 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
1031 * ax-general.c (ax_print): Remove unused is_float.
1032 * blockframe.c (block_innermost_frame): Remove unused start, end.
1033 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
1034
1035 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1036
1037 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
1038 (svr4_read_so_list): Remove unused lmo.
1039 * solib-target.c (solib_target_relocate_section_addresses): Remove
1040 unused flags.
1041
1042 2013-01-30 Tom Tromey <tromey@redhat.com>
1043
1044 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1045
1046 2013-01-30 Tom Tromey <tromey@redhat.com>
1047
1048 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1049 * utils.c (gnu_debuglink_crc32): Remove.
1050 * utils.h (gnu_debuglink_crc32): Don't declare.
1051
1052 2013-01-30 Tom Tromey <tromey@redhat.com>
1053
1054 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1055 (read_structure_type, read_enumeration_type): Remove cast.
1056
1057 2013-01-30 Tom Tromey <tromey@redhat.com>
1058
1059 * dwarf2read.c (read_namespace_type): Remove cast.
1060 (read_typedef): Likewise.
1061
1062 2013-01-29 Tom Tromey <tromey@redhat.com>
1063
1064 * dwarf2read.c (free_dwo_file): Remove assert.
1065
1066 2013-01-29 Tom Tromey <tromey@redhat.com>
1067
1068 * value.c (deprecated_set_value_modifiable): Remove.
1069 * value.h (deprecated_set_value_modifiable): Remove.
1070
1071 2013-01-28 Doug Evans <dje@google.com>
1072
1073 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1074 to addresses from dwo files.
1075
1076 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1077
1078 * valops.c (find_overload_match): Remove unused argument 'lax'.
1079 * value.h: Remove unused argument 'lax' from the declaration of
1080 find_overload_match.
1081 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1082 to find_overload_match.
1083 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1084 argument to find_overload_match.
1085
1086 2013-01-25 Tom Tromey <tromey@redhat.com>
1087
1088 * dwarf2read.c (processing_has_namespace_info): Remove.
1089 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1090 (process_die, read_func_scope, dwarf2_start_symtab)
1091 (new_symbol_full): Update.
1092
1093 2013-01-25 Tom Tromey <tromey@redhat.com>
1094
1095 * cp-namespace.c (cp_set_block_scope): Remove.
1096 * cp-support.h (cp_set_block_scope): Remove.
1097 * dbxread.c: Include block.h.
1098 (cp_set_block_scope): New function.
1099 (process_one_symbol): Update.
1100 * dwarf2read.c (read_func_scope): Use block_set_scope.
1101
1102 2013-01-25 Pedro Alves <palves@redhat.com>
1103
1104 * remote.c (add_current_inferior_and_thread): Tweak comment.
1105
1106 2013-01-25 Tom Tromey <tromey@redhat.com>
1107
1108 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1109 (cp_add_using_directive): Add 'copy_names' argument.
1110 * cp-support.h (cp_add_using_directive): Update.
1111 (struct using_direct) <import_src, import_dest, alias,
1112 declaration>: Now const.
1113 * dwarf2read.c (read_import_statement): Use obconcat.
1114 Don't copy names passed to cp_add_using_directive.
1115
1116 2013-01-25 Tom Tromey <tromey@redhat.com>
1117
1118 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1119
1120 2013-01-25 Pedro Alves <palves@redhat.com>
1121
1122 * remote.c (stop_reply_extract_thread): New.
1123 (add_current_inferior_and_thread): New parameter 'wait_status'.
1124 Handle it.
1125 (remote_start_remote): Pass wait status to
1126 add_current_inferior_and_thread.
1127 (extended_remote_run): Update comment.
1128 (extended_remote_create_inferior_1): Pass wait status to
1129 add_current_inferior_and_thread.
1130
1131 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1132 Ulrich Weigand <uweigand@de.ibm.com>
1133
1134 * valarith.c (value_vector_widen): New function for replicating a
1135 scalar into a vector.
1136 (value_binop): Use value_vector_widen to widen scalar to vector
1137 rather than casting, this better matches gcc C behaviour.
1138 * valops.c (value_casst): Update logic for casting between vector
1139 types, and for casting from scalar to vector, try to match gcc C
1140 behaviour.
1141 * value.h (value_vector_widen): Declare.
1142 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1143 function, handle special case for casting scalar to vector.
1144 (opencl_relop): Use opencl_value_cast.
1145 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1146 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1147 in order to use opencl_value_cast.
1148
1149 2013-01-25 Yao Qi <yao@codesourcery.com>
1150
1151 * event-loop.c: Include "queue.h".
1152 (gdb_event_p): New typedef.
1153 (DECLARE_QUEUE_P): Use.
1154 (DEFINE_QUEUE_P): Use.
1155 (async_queue_event): Remove.
1156 (gdb_event_xfree): New.
1157 (initialize_event_loop): New.
1158 (process_event): Use QUEUE macros.
1159 (event_queue): Remove.
1160 (gdb_wait_for_event): Caller update.
1161 (check_async_event_handlers): Likewise.
1162 (poll_timers): Likewise.
1163 * event-loop.h (initialize_event_loop): Declare.
1164 * event-loop.c (gdb_event_xfree): New.
1165 * top.c (gdb_init): Call initialize_event_loop.
1166
1167 2013-01-25 Yao Qi <yao@codesourcery.com>
1168
1169 * event-loop.c (async_queue_event): Remove one parameter
1170 'position'. Remove code handling 'position' == TAIL.
1171 (gdb_wait_for_event): Caller update.
1172 (check_async_event_handlers): Caller update.
1173 (poll_timers): Caller update.
1174 * event-loop.h (enum queue_position): Remove.
1175
1176 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1177
1178 * MAINTAINERS: Update my email.
1179
1180 2013-01-25 Yao Qi <yao@codesourcery.com>
1181
1182 * main.c (print_gdb_help): Remove "--epoch" from the help
1183 message.
1184
1185 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1186
1187 * symtab.c (skip_prologue_using_sal): Consider a file
1188 change the same as an increased line number
1189
1190 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1191
1192 * MAINTAINERS (Write After Approval): Add myself to the list.
1193
1194 2013-01-24 Tom Tromey <tromey@redhat.com>
1195
1196 * ada-lang.h (ada_decode_symbol): Make return type const.
1197 * ada-lang.c (ada_decode_symbol): Likewise.
1198
1199 2013-01-23 Doug Evans <dje@google.com>
1200
1201 * linespec.c (find_linespec_symbols): Make static.
1202
1203 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1204
1205 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1206 type on float conversion for complex type.
1207
1208 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1209
1210 Add a new class gdb.Architecture which exposes GDB's
1211 internal representation of architecture via GDB Python API.
1212 * Makefile.in: Add entries corresponding to the new file
1213 python/py-arch.c.
1214 * NEWS (Python Scripting): Add entries for the new class
1215 gdb.Architecture and the new method gdb.Frame.architecture.
1216 * python/py-arch.c: Implement gdb.Architecture class.
1217 * python/py-frame.c (frapy_arch): Implement the method
1218 gdb.Frame.architecture().
1219 (frame_object_methods): Add 'architecture' to the method table.
1220 * python/python-internal.h: Add declarations of new utility
1221 functions.
1222 * python/python.c (_initialize_python): Initialize
1223 gdb.Architecture class.
1224
1225 2013-01-23 Doug Evans <dje@google.com>
1226
1227 Work around binutils/15021.
1228 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1229 type_unit_group out of union s. All uses updated.
1230 (read_index_from_section): Watch for index version 8.
1231 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1232 an imported symtab.
1233 (write_psymtabs_to_index): Increment version number to 8.
1234
1235 2013-01-22 Pedro Alves <palves@redhat.com>
1236
1237 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1238 user-visible.
1239
1240 2013-01-22 Pedro Alves <palves@redhat.com>
1241
1242 * annotate.c (annotate_breakpoints_changed): Rename to ...
1243 (annotate_breakpoints_invalid): ... this. Make static.
1244 (breakpoint_changed): Adjust.
1245 (_initialize_annotate): Always install the observers. Install a
1246 "breakpoint_created" observer.
1247 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1248 * breakpoint.c (set_breakpoint_condition)
1249 (breakpoint_set_commands, do_map_commands_command)
1250 (init_raw_breakpoint, clear_command, set_ignore_count)
1251 (enable_breakpoint_disp): No longer call
1252 annotate_breakpoints_changed.
1253
1254 2013-01-22 Pedro Alves <palves@redhat.com>
1255
1256 * annotate.c: Include "inferior.h".
1257 (frames_invalid_emitted)
1258 (breakpoints_invalid_emitted): New globals.
1259 (async_background_execution_p): New function.
1260 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1261 emitting the annotation if it has already been emitted.
1262 (annotate_display_prompt): New function.
1263 * annotate.h (annotate_display_prompt): New declaration.
1264 * event-top.c: Include annotate.h.
1265 (display_gdb_prompt): Call annotate_display_prompt.
1266
1267 2013-01-22 Pedro Alves <palves@redhat.com>
1268
1269 * annotate.c (ignore_count_changed): Delete.
1270 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1271 (annotate_ignore_count_change): Delete.
1272 (annotate_stopped): Don't emit a delayed breakpoints-changed
1273 annotation.
1274 * annotate.h (annotate_ignore_count_change): Delete.
1275 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1276 annotate_ignore_count_change.
1277
1278 2013-01-22 Tom Tromey <tromey@redhat.com>
1279
1280 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1281 require_rvalue for a register location.
1282
1283 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1284
1285 * breakpoint.c (print_one_breakpoint_location): Add MI
1286 field 'thread-groups' when printing a breakpoint.
1287 (output_thread_groups): New function.
1288
1289 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1290
1291 * python/lib/gdb/commands/explore.py
1292 (CompoundExplorer.explore_expr): Correct the name of a method
1293 being invoked.
1294 (ExploreTypeCommand.invoke): Add a missing 'return'.
1295
1296 2013-01-21 Tom Tromey <tromey@redhat.com>
1297
1298 * gdb_obstack.h (obconcat): Move declaration here, from...
1299 * symfile.h (obconcat): ... here.
1300 * gdb_obstack.c: New file.
1301 (obconcat): Move from...
1302 * symfile.c (obconcat): ... here.
1303 * Makefile.in (SFILES): Add gdb_obstack.c.
1304 (COMMON_OBS): Add gdb_obstack.o.
1305
1306 2013-01-21 Tom Tromey <tromey@redhat.com>
1307
1308 * symfile.h (obsavestring): Don't declare.
1309 * symfile.c (obsavestring): Remove.
1310 * ada-exp.y: Use obstack_copy0, not obsavestring.
1311 * ada-lang.c: Use obstack_copy0, not obsavestring.
1312 * coffread.c: Use obstack_copy0, not obsavestring.
1313 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1314 * dbxread.c: Use obstack_copy0, not obsavestring.
1315 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1316 * jit.c: Use obstack_copy0, not obsavestring.
1317 * mdebugread.c: Use obstack_copy0, not obsavestring.
1318 * psymtab.c: Use obstack_copy0, not obsavestring.
1319 * stabsread.c: Use obstack_copy0, not obsavestring.
1320 * xcoffread.c: Use obstack_copy0, not obsavestring.
1321
1322 2013-01-21 Tom Tromey <tromey@redhat.com>
1323
1324 * dwarf2read.c (fixup_go_packaging): Save package name
1325 on objfile obstack.
1326 * gdbtypes.c (init_type): Don't copy name.
1327
1328 2013-01-21 Tom Tromey <tromey@redhat.com>
1329
1330 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1331 const.
1332 (struct attribute) <u.str>: Now const.
1333 (struct fnfieldlist) <name>: Now const.
1334 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1335 (partial_die_parent_scope): Make return type const.
1336 (partial_die_full_name, add_partial_symbol): Update.
1337 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1338 'name' const.
1339 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1340 (read_file_scope, read_func_scope, dwarf2_add_field)
1341 (dwarf2_add_member_fn, read_structure_type)
1342 (process_enumeration_scope, read_array_type, read_module_type)
1343 (read_base_type, read_subrange_type): Update.
1344 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1345 (new_symbol_full, guess_full_die_structure_name): Update.
1346 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1347 (dwarf2_name): Return const type.
1348 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1349 const.
1350
1351 2013-01-21 Tom Tromey <tromey@redhat.com>
1352
1353 * gdbtypes.c (init_type): Make 'name' const.
1354 * gdbtypes.h (init_type): Update.
1355
1356 2013-01-21 Tom Tromey <tromey@redhat.com>
1357
1358 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1359 (start_symtab): Make 'name' and 'dirname' const. Use
1360 set_last_source_file.
1361 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1362 (last_source_file): Define. Now static.
1363 (set_last_source_file, get_last_source_file): New functions.
1364 * buildsym.h (last_source_file): Don't declare.
1365 (start_symtab): Update.
1366 (set_last_source_file, get_last_source_file): Declare.
1367 * coffread.c (complete_symtab): Use set_last_source_file.
1368 (coff_end_symtab): Likewise.
1369 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1370 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1371 set_last_source_file.
1372 (process_one_symbol): Use get_last_source_file.
1373 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1374 (psymtab_to_symtab_1): Use get_last_source_file.
1375 * xcoffread.c (process_linenos): Use get_last_source_file.
1376 (complete_symtab): Use set_last_source_file.
1377 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1378 (scan_xcoff_symtab): Use set_last_source_file.
1379
1380 2013-01-21 Tom Tromey <tromey@redhat.com>
1381
1382 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1383 (symbol_set_names): Remove casts. Handle field const-ness.
1384
1385 2013-01-21 Tom Tromey <tromey@redhat.com>
1386
1387 * dwarf2read.c (new_symbol_full): Remove cast.
1388 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1389 * symtab.h (symbol_set_demangled_name): Update.
1390
1391 2013-01-21 Tom Tromey <tromey@redhat.com>
1392
1393 * main.c (captured_main): Call bfd_init.
1394
1395 2013-01-21 Tom Tromey <tromey@redhat.com>
1396
1397 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1398 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1399 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1400 * NEWS: Update.
1401
1402 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1403
1404 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1405
1406 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1407
1408 Fix gdb.fortran/common-block.exp crash in PIE mode.
1409 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1410 LOC_COMMON_BLOCK.
1411 * f-valprint.c (info_common_command_for_block): Expect
1412 LOC_COMMON_BLOCK in gdb_assert.
1413 * symtab.h (struct general_symbol_info): Update comment for the
1414 common_block member.
1415 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1416 (enum address_class): New member LOC_COMMON_BLOCK.
1417
1418 2013-01-18 David Blaikie <dblaikie@gmail.com>
1419
1420 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1421
1422 2013-01-18 Tom Tromey <tromey@redhat.com>
1423
1424 PR c++/14999:
1425 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1426 Call require_rvalue.
1427
1428 2013-01-18 Yao Qi <yao@codesourcery.com>
1429
1430 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1431 (dbx_read_symtab): New declaration.
1432 (dbx_psymtab_to_symtab): Delete.
1433 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1434 Rename parameter PST to SELF. Exchanged two parameters.
1435 (start_psymtab): Caller update.
1436 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1437 (dwarf2_read_symtab): New declaration.
1438 (dwarf2_psymtab_to_symtab): Delete.
1439 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1440 Rename parameter PST to SELF. Exchanged two parameters.
1441 (create_partial_symtab): Caller update.
1442 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1443 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1444 Rename parameter PST to SELF. Exchanged two parameters.
1445 (parse_partial_symbols, new_psymtab): Caller update.
1446 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1447 two parameters.
1448 * psymtab.c (psymtab_to_symtab): Caller update.
1449 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1450 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1451 Rename parameter PST to SELF. Exchanged two parameters.
1452 (xcoff_start_psymtab): Caller update.
1453
1454 2013-01-18 Yao Qi <yao@codesourcery.com>
1455
1456 * infrun.c (proceed): Rename local variable 'oneproc' to
1457 'force_step'.
1458
1459 2013-01-17 Doug Evans <dje@google.com>
1460
1461 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1462 (dw2_build_type_unit_groups): Delete. All uses updated.
1463
1464 * symtab.h (struct symbol_search): Add comment.
1465
1466 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1467
1468 * symtab.c (compare_filenames_for_search): New comment for
1469 HAS_DRIVE_SPEC.
1470
1471 2013-01-17 Tom Tromey <tromey@redhat.com>
1472
1473 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1474
1475 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1476
1477 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1478 initialize it by existing make_cleanup. Call new do_cleanups.
1479
1480 2013-01-17 Tom Tromey <tromey@redhat.com>
1481
1482 * cp-abi.c (cp_abi_completer): New function.
1483 (_initialize_cp_abi): Set completer for "set cp-abi".
1484
1485 2013-01-17 Tom Tromey <tromey@redhat.com>
1486
1487 * mem-break.c: Remove obsolete comment.
1488 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1489
1490 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1491
1492 * jit.c (jit_reader_load_command): Interpret the jit reader name
1493 as an absolute path if it begins with a forward slash.
1494
1495 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1496
1497 PR gdb/14550
1498
1499 * jit.c (finalize_symtab): Ensure that only the global block has a
1500 NULL superblock.
1501
1502 2013-01-17 Pedro Alves <palves@redhat.com>
1503
1504 * acinclude.m4: Include ../config/plugins.m4,
1505 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1506 * Makefile.in (aclocal_m4_deps): Update.
1507 * aclocal.m4: Renegerate.
1508
1509 2013-01-16 Doug Evans <dje@google.com>
1510
1511 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1512
1513 2013-01-16 Pedro Alves <palves@redhat.com>
1514 Tom Tromey <tromey@redhat.com>
1515
1516 PR cli/7221:
1517 * NEWS: Add "catch signal".
1518 * breakpoint.c (base_breakpoint_ops): No longer static.
1519 (bpstat_explains_signal): New function.
1520 (init_catchpoint): No longer static.
1521 (base_breakpoint_explains_signal): New function.
1522 (base_breakpoint_ops): Initialize new field.
1523 * breakpoint.h (enum bpstat_signal_value): New.
1524 (struct breakpoint_ops) <explains_signal>: New field.
1525 (bpstat_explains_signal): Remove macro, declare as function.
1526 (base_breakpoint_ops, init_catchpoint): Declare.
1527 * break-catch-sig.c: New file.
1528 * inferior.h (signal_catch_update): Declare.
1529 * infrun.c (signal_catch): New global.
1530 (handle_syscall_event): Update for change to
1531 bpstat_explains_signal.
1532 (handle_inferior_event): Likewise. Always handle random signals
1533 via bpstats.
1534 (signal_cache_update): Check signal_catch.
1535 (signal_catch_update): New function.
1536 (_initialize_infrun): Initialize signal_catch.
1537 * Makefile.in (SFILES): Add break-catch-sig.c.
1538 (COMMON_OBS): Add break-catch-sig.o.
1539
1540 2013-01-16 Tom Tromey <tromey@redhat.com>
1541
1542 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1543 (print_one_catch_solib, print_one_catch_syscall)
1544 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1545 "catch-type".
1546
1547 2013-01-16 Yao Qi <yao@codesourcery.com>
1548
1549 * printcmd.c (current_display_number): Make it static.
1550
1551 2013-01-16 Yao Qi <yao@codesourcery.com>
1552
1553 * infcmd.c (step_once): Don't check '!single_inst' as it was
1554 checked before.
1555
1556 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1557
1558 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1559
1560 2013-01-14 Tom Tromey <tromey@redhat.com>
1561
1562 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1563 set command.
1564 * command.h (add_setshow_string_noescape_cmd): Update.
1565 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1566 (complete_set_gnutarget): New function.
1567 (_initialize_core): Set the "set gnutarget" completer.
1568
1569 2013-01-14 Tom Tromey <tromey@redhat.com>
1570
1571 PR symtab/14442:
1572 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1573 (c_type_print_modifier): Likewise.
1574 * dwarf2read.c (read_tag_restrict_type): New function.
1575 (read_type_die_1): Handle DW_TAG_restrict_type.
1576 * gdbtypes.c (make_restrict_type): New function.
1577 (recursive_dump_type): Handle TYPE_RESTRICT.
1578 * gdbtypes.h (enum type_flag_values): Renumber.
1579 (enum type_instance_flag_value): Add
1580 TYPE_INSTANCE_FLAG_RESTRICT.
1581 (TYPE_RESTRICT): New macro.
1582 (make_restrict_type): Declare.
1583
1584 2013-01-14 Tom Tromey <tromey@redhat.com>
1585
1586 PR symtab/14931:
1587 * psymtab.c (struct psymtab_state): New.
1588 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1589 functions.
1590 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1591 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1592
1593 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1594 Pedro Alves <palves@redhat.com>
1595
1596 PR remote/14786
1597
1598 * remote.c (remote_threads_info): Make a copy of the reply from
1599 qfThreadInfo and use that instead of rs->buf.
1600
1601 2013-01-14 Yao Qi <yao@codesourcery.com>
1602
1603 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1604 (dbx_psymtab_to_symtab): Likewise.
1605 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1606 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1607 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1608
1609 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1610
1611 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1612 make_cleanup_restore_current_language. Call set_language. Move
1613 OLD_CHAIN and INNER_CHAIN cleanups.
1614 * utils.c (do_restore_current_language)
1615 (make_cleanup_restore_current_language): New functions.
1616 * utils.h (make_cleanup_restore_current_language): New declaration.
1617
1618 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1619
1620 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1621 non-existing files.
1622
1623 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1624 non-existing files if FILENAME is already absolute.
1625
1626 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1627
1628 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1629 fputs_filtered. Append trailing newline.
1630
1631 2013-01-11 Yao Qi <yao@codesourcery.com>
1632 Stan Shebs <stan@codesourcery.com>
1633
1634 * psymtab.c (init_psymbol_list): Clarify the comment.
1635
1636 2013-01-11 Yao Qi <yao@codesourcery.com>
1637
1638 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1639 (update_dprintf_command_list): Assert that 'printf_line' is
1640 non-null. Remove condition check.
1641
1642 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1643
1644 Code cleanup.
1645 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1646 type const char *.
1647 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1648 const char *.
1649 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1650
1651 2013-01-09 Anthony Green <green@moxielogic.com>
1652
1653 * cp-abi.c (cplus_print_vtable): Don't return value from void
1654 function.
1655 * ada-lang.c (re_set_catch_assert): Ditto.
1656
1657 2013-01-09 Doug Evans <dje@google.com>
1658
1659 * symfile.h (quick_symbol_functions): Delete member
1660 pre_expand_symtabs_matching. All uses removed.
1661 * dwarf2read.c (dw2_lookup_symbol): Implement.
1662 (dw2_do_expand_symtabs_matching): Delete.
1663 (dw2_pre_expand_symtabs_matching): Delete.
1664 (struct dw2_symtab_iterator): New type.
1665 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1666 (dw2_expand_symtabs_for_function): Rewrite.
1667 (dwarf2_gdb_index_functions): Update.
1668 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1669 (psym_functions): Update.
1670
1671 2013-01-09 Tom Tromey <tromey@redhat.com>
1672
1673 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1674 * configure: Rebuild.
1675 * configure.ac: Add somread.o to the build if BFD has SOM
1676 support.
1677 * somread.c: Include som/aout.h, not syms.h.
1678 (som_symtab_read): Use som_external_symbol_dictionary_record.
1679 Unpack records manually.
1680 (_initialize_somread): Declare.
1681
1682 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1683
1684 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1685 Cast return_address to 64bits.
1686
1687 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1688
1689 * printcmd.c: Remove define of function output_command.
1690 * tracepoint.c: Remove extern of function output_command.
1691 * valprint.h: (output_command): New extern.
1692
1693 2013-01-07 Tom Tromey <tromey@redhat.com>
1694
1695 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1696 Remove.
1697 (objc_language_defn): Use c_printchar, c_printstr,
1698 c_emit_char.
1699
1700 2013-01-07 Tom Tromey <tromey@redhat.com>
1701
1702 PR cli/7719:
1703 * NEWS: Update.
1704 * ada-valprint.c (printstr, print_field_values): Remove
1705 "inspect_it" code.
1706 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1707 code.
1708 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1709 code.
1710 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1711 * main.c (captured_main): Remove "epoch" argument.
1712 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1713 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1714 * p-valprint.c (pascal_object_print_value_fields): Remove
1715 "inspect_it" code.
1716 * printcmd.c (print_command_1): Remove 'inspect' argument.
1717 (print_command, call_command): Update.
1718 (inspect_command): Remove.
1719 (_initialize_printcmd): Make "inspect" an alias for "print".
1720 * top.c (epoch_interface): Remove.
1721 * top.h (epoch_interface): Remove.
1722 * valprint.c (user_print_options): Update.
1723 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1724 * valprint.h (struct value_print_options) <inspect_it>: Remove
1725 field.
1726
1727 2013-01-04 Tom Tromey <tromey@redhat.com>
1728
1729 * valprint.h (read_string): Add 'extern'.
1730
1731 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1732
1733 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1734 used to decide whether to define darwin_read_dyld_info or not.
1735
1736 2013-01-03 Pierre Muller <muller@sourceware.org>
1737
1738 * main.c (relocate_gdb_directory): Avoid calling stat function
1739 if DIR is empty.
1740
1741 2013-01-03 Yao Qi <yao@codesourcery.com>
1742
1743 * psymtab.c (fixup_psymbol_section): Update declaration.
1744 (fixup_psymbol_section): Remove code returning value.
1745
1746 2013-01-03 Yao Qi <yao@codesourcery.com>
1747
1748 * symtab.h: Remove some out of date comments.
1749 (enum exception_event_kind): Move it ...
1750 * breakpoint.c: ... here.
1751
1752 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1753
1754 PR gdb/14405
1755 * darwin-nat.c (darwin_read_dyld_info): Only build if
1756 TASK_DYLD_INFO_COUNT is defined.
1757 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1758 TASK_DYLD_INFO_COUNT is defined.
1759
1760 2013-01-02 Tom Tromey <tromey@redhat.com>
1761
1762 * symfile.h (struct ecoff_debug_hack): Remove.
1763 * objfiles.c: Don't include mdebugread.h.
1764
1765 2013-01-02 Tom Tromey <tromey@redhat.com>
1766
1767 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1768 * configure.ac: Check for Mach-O support in BFD. Update
1769 CONFIG_OBS.
1770 * configure: Rebuild.
1771
1772 2013-01-02 Tom Tromey <tromey@redhat.com>
1773
1774 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1775 * configure.ac: Use GDB_AC_CHECK_BFD.
1776 * configure: Rebuild.
1777
1778 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1779
1780 * MAINTAINERS: Update my email.
1781
1782 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1783
1784 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1785
1786 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1787
1788 * rs6000-nat.c (bss_data_overlap): New function.
1789 (vmap_symtab): Use it to adjust the .bss section's offset.
1790
1791 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1792
1793 Update year range in copyright notice of all files.
1794
1795 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1796
1797 * top.c (print_gdb_version): Update copyright year.
1798
1799 For older changes see ChangeLog-2012.
1800 \f
1801 Local Variables:
1802 mode: change-log
1803 left-margin: 8
1804 fill-column: 74
1805 version-control: never
1806 coding: utf-8
1807 End:
This page took 0.066208 seconds and 4 git commands to generate.